How to use Trinamic TMC2130 with RAMPS 1.4 in SPI mode

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2018
  • In this video I am showing how to use tmc2130 in SPI mode with Ramps 1.4 and Marlin firmware.
    00:00 Step 1: SPI Basics
    01:20 Step 2: Preparing Stepper Motor Driver for SPI
    02:15 Step 3: Cabling
    02:30 Step 4: Marlin Configuration
    10:05 Step 5: Sensorless Homing

ความคิดเห็น • 108

  • @piotrk8369
    @piotrk8369 5 ปีที่แล้ว

    I came across this film accidentally, looking for a solution to several problems related to the use of TMC2130 controllers. You did a good job!

  • @heeder777
    @heeder777 5 ปีที่แล้ว +1

    Great, I asked the about the bridges on the previous video. You rock man!

  • @posrproductions4605
    @posrproductions4605 6 ปีที่แล้ว +2

    Thank you. Great video!

  • @user-uh4xk6tx5z
    @user-uh4xk6tx5z 6 ปีที่แล้ว +1

    Thx for your support, we are the factory FYSETC on the China for the TMC2130, and the video is really helpful for everyone ,so if your Fans or friend want to by the driver of ours, we can give them the discount , also if u have any suggest , u can contact us.BR, from China FYSETC

    • @tcurdt
      @tcurdt 3 ปีที่แล้ว

      How on earth did you guys come up with such a horrible design for the bridges? The worst possible place. And why so small?

  • @siwilson1437
    @siwilson1437 5 ปีที่แล้ว +1

    Excellent guide, thank you

  • @TaylanEkinci
    @TaylanEkinci 6 ปีที่แล้ว

    teşekkür ederim, çok anlaşılır açıklamışsınız.

  • @DKTAz00
    @DKTAz00 6 ปีที่แล้ว

    Excellent, to the point video

  • @camilienbeaudoin7907
    @camilienbeaudoin7907 6 ปีที่แล้ว +1

    Thanks really helpful !

  • @nikoskalousis3523
    @nikoskalousis3523 6 ปีที่แล้ว +2

    Nice info. Thanks.

  • @abedtahrawi
    @abedtahrawi 5 ปีที่แล้ว

    Thanx alot for the detailed perfect video . you helped me :)

  • @rondlh20
    @rondlh20 5 ปีที่แล้ว

    Great info, thanks a lot!

  • @jet4fun54
    @jet4fun54 5 ปีที่แล้ว

    Very useful! Subscribed.

  • @splytdos
    @splytdos 6 ปีที่แล้ว

    Worth noting before trying to bridge those tiny pads:
    Use a camera that can get really close and zoom in or some other powerful magnification to check if the pads are already bridged. Some manufacturers ship these with the board contacts bridged as shown in this video, but they are so small you might not be able tell.
    I tried bridging them on my board and made a bit of a mess of it. In the process of trying to clean it up, I used my mobile phone as a magnifier to look at the other driver boards I got and saw that they already the pads bridged (probably 0 Ohm resistors). The resisters were black (the boards i have are green), and so tiny all I could see with my eyes were the solder spots on the end looking like tiny exposed pads... even when wearing some reading glasses and/or cheap fresnel magnifying sheets I have.

  • @sMAGTECH
    @sMAGTECH 6 ปีที่แล้ว +1

    Thanks for usefull video,

  • @citronski
    @citronski 6 ปีที่แล้ว +3

    Cheers mate, thats very, very, VERY usefull!

  • @tcurdt
    @tcurdt 3 ปีที่แล้ว +1

    Finally some useful information on this. Thanks for the video! Why are the bridges on cfg4+5 necessary?

  • @RichLeeFL
    @RichLeeFL 6 ปีที่แล้ว +3

    Thank you very much for posting this video. Tom's video was not very informative as far as the pins and I had some errors. I ended up replacing them with TMC2100 drivers as I thought it was just my poor soldering job causing the fault to ground errors. I still have the 2130s though, so maybe I'll give them another try... Thanks again.

  • @SILVIOFRANCO1
    @SILVIOFRANCO1 5 ปีที่แล้ว

    Thanks for the video. I am building a 3D Printer by myself and using MKS-Gen 1.4 with TMC 2130 drivers. I am having problems to configure it. Do you think that I need to follow the same procedure you used in your case?

  • @jordomaller
    @jordomaller 4 ปีที่แล้ว

    Can you plug your black connectors to aux 1 on top of the LCD full graphics display connector? If not where can you plug them in

  • @mechanicallydev4536
    @mechanicallydev4536 6 ปีที่แล้ว +1

    Hi mate! Thank you for the video, it really helped me.
    I found a better solution to connect the TMC2130 and made a video where I solder a new connector for the SPI pins, so you could still use regular SD Card readers and Displays :)
    BTW, the TMC2130 config pins are SO HARD to solder. It would be great if the driver had a DIP Switch for configuration.

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว +1

      Hello, thanks for the information, you are right soldering was really difficult at first try:)

    • @87osvald
      @87osvald 5 ปีที่แล้ว +1

      Do you mind sharing the link to your video?

    • @sched75
      @sched75 5 ปีที่แล้ว

      great video !! thx. do you have link to buy the 90 degree connectors u used?

    • @-xeL
      @-xeL 5 ปีที่แล้ว

      would you share the link for spi + sd card + lcd?
      thx :)

  • @b0bjedump
    @b0bjedump 6 ปีที่แล้ว

    Thanks for making this vid!! I'm also interested to know what exactly those solder bridges in the beginning are about ? Would a standard trinamic tmc2130 from watterot need those solder bridges ? I was under the impression that those are ready for SPI out of the box ?

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว +1

      You are welcome, no watterot drivers already has those bridges.

    • @enikka3504
      @enikka3504 6 ปีที่แล้ว

      thank you very much for this anwswer. So this bridge soldering thing is specially for those aliexpress drivers right?

    • @derekboreman9587
      @derekboreman9587 6 ปีที่แล้ว

      I purchased my drivers from digikey. I just burnt one up today and also the Arduino Mega Board and who knows what else. I do not know what happened or why.
      Do I need to solder these jumpers on the digikey boards. They are from trinamic directly.

  • @alperenarslan6036
    @alperenarslan6036 5 ปีที่แล้ว

    Ellerinize sağlık çok güzel bir video olmuş. Bende tmc2130 driverlarını kullanmak istiyorum. Kullanma amacım sessizlik ve end stopların tasarıma getirdiği çirkin görüntüyü ortadan kaldırmak. Video da bir şey dikkatimi çekti aux girişi olarak lcd nin aux girişlerini kullandınız. Lcd ve sd kartı bu setupla kullanmak mümkün mü? Teşekkürler.

  • @AkashManish
    @AkashManish 3 ปีที่แล้ว

    what did you clean it with?

  • @martindenardo7559
    @martindenardo7559 6 ปีที่แล้ว

    Hey, really nice video! What about if I'm using an LCD screen on AUX3? Is it possible to get both LCD and tmc2130 drivers working together by assigning different pins for MOSI/MISO/CLK signals?

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      Hello, now i am running my printer with lcd. I soldered a cable on lcd driver board for Mosi, miso, clk pins. They are common lines.

  • @jordomaller
    @jordomaller 2 ปีที่แล้ว

    Is one of the spi leads covering end stops?

  • @user-tm8ri2tk9c
    @user-tm8ri2tk9c 4 ปีที่แล้ว

    thank you very nice video. But i get fff error because i haven't removed 4 pins? cfg1, cfg2, cfg3, cfg0

  • @b0bjedump
    @b0bjedump 6 ปีที่แล้ว

    Are the jumpers on the ramps below the tmc2130 still required when using the stepper drivers with SPI ? Any ideas ?

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว +1

      Jumpers have no function at all, if you want you can remove them.

  • @alexandreprouvost3089
    @alexandreprouvost3089 6 ปีที่แล้ว

    Hi ! Did you put some header below the tmc ? (on the ramps card)

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      Hi, I didn’t modify anything on ramps board.

  • @Pizza63947
    @Pizza63947 5 ปีที่แล้ว

    I am not quite clear why you had to put fresh solder on the standalone pins. Was that necessary or were you just cleaning things up a bit?

    • @mytechtips4239
      @mytechtips4239  5 ปีที่แล้ว

      Hello, i soldered the standalone pins to make it work in spi mode. If you not need to use spi mode it is not necessary

  • @abelhorvath9352
    @abelhorvath9352 6 ปีที่แล้ว

    Hi, what does the solder bridging change? is it completely necessary? Btw your video finally got my drivers to work, thank you!

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว +4

      I am very happy to hear that you found my video helpful. My Chinese tmc2130 drivers came in standalone mode. So we need to do soldering bridges to convert it to spi mode. If your drivers also do not have those bridges, it is necessary to do otherwise spi mode will not work.

    • @dejayrezme8617
      @dejayrezme8617 6 ปีที่แล้ว +1

      Thanks a lot for the video and the explanation!

    • @michaelwu668
      @michaelwu668 6 ปีที่แล้ว +2

      Does that mean the "v1.1" version by Fystec are preset for spi control?
      www.aliexpress.com/item/5X-MKS-TMC2130-V1-1-For-SPI-Function-Stepstick-Stepper-Motor-Driver-With-Heat-Sink-5PCS/32849429358.html

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      Yes it means SPI mode.

    • @dejayrezme8617
      @dejayrezme8617 6 ปีที่แล้ว

      Ouch, after looking at the TMC2130 I got those bridges are really tiny. I'll need a more delicate solder point.
      Too bad those SPI mode stepper drivers haven't hit ebay yet.
      Thanks again for the instructions!

  • @Achtelmann
    @Achtelmann 6 ปีที่แล้ว

    I have the same v1.0 drivers like you and I succesfully created those bridges. The problem is if I plug them, they get really hot without a motor connected.

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      They must not get hot unless you installed them wrong or they are broken. I have mistakenly burned one stepper motor driver when i installed it 180 degree rotated to ramps board. After that it was getting hot.

  • @sL1pKn07SpinFlo
    @sL1pKn07SpinFlo 5 ปีที่แล้ว

    Hi. i can use 4x 2130tmc's and set the CS , all in the D pins in AUX2 port instead of AUX3? i want also use the SD card (only CS pins, i know the CLK, miso/mosi need use the pinst in the AUX3). greetings

    • @mytechtips4239
      @mytechtips4239  5 ปีที่แล้ว

      Yes you can use other pins for CS, it depends on your configuration.

  • @user-tm8ri2tk9c
    @user-tm8ri2tk9c 4 ปีที่แล้ว

    çok güzel bir video teşekkür ederim.Ama fff hatası alıyorum 4 tane pini çıkartmadığım için olabilir mi? cfg1,cfg2,cfg3,cfg0

  • @YuryPenkerton
    @YuryPenkerton 6 ปีที่แล้ว

    Thank you for this tutorial. Everything is almost fine. X and Y is quiet and react as should. But Extruder motor now clicking as if it don't have enough power (I didn't change it)... no jam in nozzle - 100%. What it can be?

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      You are welcome, which mode do you use for your extruder?

    • @YuryPenkerton
      @YuryPenkerton 6 ปีที่แล้ว

      It"s gone away. Now it's fine. I can't remember how I fixed it...

  • @jonasuea
    @jonasuea 4 ปีที่แล้ว

    Hello! Unfortunately I was unused to configure the TMC 2130 SPI drivers along with RAMPs, the engine do not work, 12V power, I connected everything right, but did not work. Can you share your firmware?

    • @mytechtips4239
      @mytechtips4239  4 ปีที่แล้ว

      Dear Jonas, currently i am using Klipper firmware and i do not have configuration file for marlin. I was using lastest version of marlin 8bit.

  • @Bajicoy
    @Bajicoy 6 ปีที่แล้ว +2

    Okay, panicing here, do I or do I not have to solder bridges on my tmc2130 because this is pretty different from thomas sanlander’s tmc2130 video

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      It depends on how you are going to use your board (jumper settings), after you decided which mode to use. After you learned your jumper settings, all you need is to control the pads.

    • @gibmirschnell
      @gibmirschnell 5 ปีที่แล้ว

      @@mytechtips4239 Unfortunately you didn't show how you set up your jumpers on the ramps :-)

    • @mytechtips4239
      @mytechtips4239  5 ปีที่แล้ว

      Dear @@gibmirschnell, jumper pins are not important because they are de-soldered on tmc2130 board as shown in the begining of video for spi connections. TMC2130 has no connection to jumper pins. It is up to you if you want you can remove them freely or leave as is

  • @TheJavaSync
    @TheJavaSync 5 ปีที่แล้ว

    Very nicest tutorial - I''ll follow It when I get Rams Shield, then ...& How about LCD display & SD card ?

    • @mytechtips4239
      @mytechtips4239  5 ปีที่แล้ว +1

      Hello, i explain that also in the video, i hope that it helped you.

    • @ojtechml
      @ojtechml 4 ปีที่แล้ว

      @@mytechtips4239 yeah but it makes use of the AUX 3 pins that the LCD also uses,.

  • @omeraras8711
    @omeraras8711 6 ปีที่แล้ว

    iyi çalışmalar, TMC2130 v1.0 var elimde. CFG1'i gnd ye çektim ve vref 1V olarak ayarladım. Sistem aşırı sesli çalışıyor. Motor frenlemesinde sürücülerden sinyal sesleri geliyor.Spreadcycle için cfg2 nin de open olması lazım fakat tmc2100 da fabrikasyon open durumunda, tmc2130 v1.0 için kendimi mi open yapmalıyız? -------------------------- there is TMC2130 v1.0. I set the CFG1 to gnd and set the vref to 1V. The system is operating with excessive noise. The motor braking signal sounds from the drivers. The cfg2 must be open for the spreadcycle, but if the tmc2100 is fabricated open, should we open the tmc2130 v1.0 myself?

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      Hello, do you still have the problem? I haven’t used tmc2100 so that i can not compare the pin configurations. If you are hearing high pitch noise please try with lower currents like 800 rms or change Chopper of time to 140T.

  • @Giovanni2862
    @Giovanni2862 6 ปีที่แล้ว

    Hardware linking?

  • @gibmirschnell
    @gibmirschnell 5 ปีที่แล้ว

    At 7:09 you're saying AUX3 on your ramps is occupied by a LCD screens, like in my case to. But not only the D49 and D53 Pins, the SPI Pins D50-D52 as well. So that's not making any sense to remap the driver SPI Pins, if I'm not able to use the SPI pins D50-52, right? What is the solution for this? I'm using a standard 4 Line LCD Display like many other printer are using as well.

    • @gibmirschnell
      @gibmirschnell 5 ปีที่แล้ว +1

      Just found this video accounting this issue:
      th-cam.com/video/w4ZD4fx4z_A/w-d-xo.html

    • @mytechtips4239
      @mytechtips4239  5 ปีที่แล้ว +1

      You can solder jumper wires on LCD connectors. I am using reprap.org/wiki/File:Smart_Adapter_v2.jpg this adapter with my LCD. As seen on 1:05 all spi bus is parallel. I am happy to hear that you found a solution. Best regards

  • @pinindumihiranga7738
    @pinindumihiranga7738 3 ปีที่แล้ว

    anyone have resourse link s for RamP mode operation(SPI) for motor controller TMC 5160;

  • @carlosufsmrs
    @carlosufsmrs 5 ปีที่แล้ว

    HELP!!
    I can´t find those instructions on the Marlin's Firmware!!
    I've got the last stable version 1.1.9.
    Does anyone have the current way to make the RAMPS & TMC2130 works togheter??

    • @mytechtips4239
      @mytechtips4239  5 ปีที่แล้ว +1

      Hello, this way is still valid.

  • @jrmariano02
    @jrmariano02 6 ปีที่แล้ว

    hi, i cant seem to get my mechanical endstops to work. im using endstops with 2 wires and i connected them to the signal and ground pin. any suggestions? i learned alot from this video as well, thanks.

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      Your settings must be exactly like in video (11:24). Please disable the endstoppullsup & change endstop_inverting for that axis to False.

    • @jrmariano02
      @jrmariano02 6 ปีที่แล้ว

      what i did now is, enabled all endstops MIN and MAX plugged all mech switches normally in MIN and plugged tmc 2130 DIAG to MAX "S" pin and disabled sensorless homing. it there going to be a problem with this long term? seems to be working at the moment

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      Btw M119 command in marlin shows the endstop states. You can test your endstops with this command and see their states

    • @jrmariano02
      @jrmariano02 6 ปีที่แล้ว

      MYtechtips yes i was able to do that 👍

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว +1

      I am also using mechanical endstops now :) it will not make any problem do not worry

  • @YuryPenkerton
    @YuryPenkerton 6 ปีที่แล้ว

    is it possible for correct senroless endstop for Z?

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      No it is not possible. It will not be accurate as endstop

  • @mertertorer7784
    @mertertorer7784 2 ปีที่แล้ว

    Hello bro, thank you for the great instruction. However, I could not make TMC2130 work with marlin 2.0 using RAMPS 1.4.
    I get Bad Response (All HIGH and All LOW) errors for my both TMC2130 driven axes (X and Y). I could not solve the problem even though I have watched and read almost every other instruction. I think somehow I am the only person that uses these components with marlin 2.0 in the whole community :D.
    Could you manage to upgrade this configuration to Marlin 2.0 or do you have any other recommendations for this problem?
    Thank you in advance.

    • @alejandropena8087
      @alejandropena8087 2 ปีที่แล้ว

      hi, for me the key is step 2, my tmc2130 come just like it shows in this video

    • @mertertorer7784
      @mertertorer7784 2 ปีที่แล้ว

      @@alejandropena8087 Thank you for your reply, my drivers were also came as in video and I have done required soldering. Unfortunately that didn't solve my problem :(. I have searched a lot but i still could not find any solution, maybe it is a hardware related problem.

  • @CEzikMaj
    @CEzikMaj 4 ปีที่แล้ว

    I don't know why, but I connected this using just one pin on the board

  • @alaamomen8048
    @alaamomen8048 5 ปีที่แล้ว

    Can I use 9axis of Tmc and make such this configuration!!?

    • @mytechtips4239
      @mytechtips4239  5 ปีที่แล้ว

      Each driver can control 1 axis only

  • @jakubstajner5155
    @jakubstajner5155 6 ปีที่แล้ว

    Nice video, but it's really bad practise to change something in pins_WHATEVER.h file.
    Instead you can simply override these settings via Configuration_adv.h
    and after that you can be shure the only changes you've done are just in 2 files - Configuration.h and Configuration_adv.h
    Migration of all your changes to new Marlin FW will be much less painful in the future ;)

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว +1

      Thanks for the information. I haven’t tested the configuration_adv.h for override. If it really override the variables it is cool. Best regards

    • @jakubstajner5155
      @jakubstajner5155 6 ปีที่แล้ว +1

      It works this way:
      #ifdef X_CS_PIN
      #undef X_CS_PIN
      #endif
      #define X_CS_PIN 4
      UNDEF is there for disable warnings that macro is already defined ;)

    • @jakubstajner5155
      @jakubstajner5155 6 ปีที่แล้ว

      I've used this RU instructable (specific for my board):
      translate.google.cz/translate?hl=cs&sl=auto&tl=en&u=http%3A%2F%2F3dtoday.ru%2Fblogs%2Ftosikdelta%2Fconnection-tmc2130-in-trigorilla-boards-anycubic-kossel%2F&sandbox=1
      It is applicable to many other boards, you just need to find out what pins you can use as CS pins to each TMC and where is SPI bus on your board.
      Also nice guide is here: toms3d.org/2017/12/09/tmc2130-guide/
      Good luck!

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว +1

      Thanks for the undef :) it really helped.

  • @ata_demir
    @ata_demir ปีที่แล้ว

    hocam belli türksün bize tane tane anlatsana lütfen. ramps 1.6 plus karta tmc sürücüleri direk takılıyor farklı bir ayar gerekiyor mu

  • @murteza1286
    @murteza1286 4 ปีที่แล้ว +2

    Turkish accent? 😁

  • @oguzhankorkmaz1267
    @oguzhankorkmaz1267 6 ปีที่แล้ว

    Türkçeside olsaymış çok iyi olurmuş

  • @airwolfpilot
    @airwolfpilot 2 ปีที่แล้ว

    türkçesini de bekliyoruz

  • @RolandVoyage
    @RolandVoyage 6 ปีที่แล้ว

    this is a very nice Video! i have buy a MKS Gen V1.4 and Motor Driver TMC2130 from Watterott.com. i have in Marlin 1.1.8 everything done the same, but is does not work!

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      Sorry i do not have experience with MKS Gen v1.4, if it is like ramps board it must work.

    • @RolandVoyage
      @RolandVoyage 6 ปีที่แล้ว

      I have found the mistake! it works now!

    • @e1ghthree
      @e1ghthree 6 ปีที่แล้ว

      RC3D can you share your configuration and setup? I’m having issues with sensorless homing.

  • @gigahertz7752
    @gigahertz7752 6 ปีที่แล้ว

    I don't understand if my driver working
    LETTI: Enabled false false
    LETTI: Set current 0 0
    LETTI: RMS current 1767 1767
    LETTI: MAX current 2491 2491
    LETTI: Run current 31/31 31/31
    LETTI: Hold current 31/31 31/31
    LETTI: CS actual 31/31 31/31
    LETTI: PWM scale 1 2
    LETTI: vsense 0=.325 0=.325
    LETTI: stealthChop true true
    LETTI: msteps 16 16
    LETTI: tstep 1048575 1048575
    LETTI: pwm
    LETTI: threshold 0 0
    LETTI: [mm/s] - -
    LETTI: OT prewarn false false
    LETTI: OT prewarn has
    LETTI: been triggered false false
    LETTI: off time 5 5
    LETTI: blank time 24 24
    LETTI: hysterisis
    LETTI: -end 2 2
    LETTI: -start 3 3
    LETTI: Stallguard thrs 0 0
    LETTI: DRVSTATUS X Y
    LETTI: stallguard
    LETTI: sg_result 0 0
    LETTI: fsactive
    LETTI: stst X X
    LETTI: olb
    LETTI: ola
    LETTI: s2gb
    LETTI: s2ga
    LETTI: otpw
    LETTI: ot
    LETTI: Driver registers:
    LETTI: X = 0x80:1F:00:00
    LETTI: Y = 0x80:1F:00:00
    LETTI:

    • @mytechtips4239
      @mytechtips4239  6 ปีที่แล้ว

      It is working, register values seem normal

    • @raider1284
      @raider1284 6 ปีที่แล้ว

      " Driver registers:
      LETTI: X = 0x80:1F:00:00
      LETTI: Y = 0x80:1F:00:00"
      its def seeing your drivers correctly in SPI mode. Those X and Y values would be all FFs if it wasnt wired up correctly.