Need desperate help with tmc2130 :(

Have an issue you can't figure out on your own?
anthonyyaghi
Posts: 9
Joined: Sun Oct 14, 2018 8:09 am

Need desperate help with tmc2130 :(

Post by anthonyyaghi » Sun Oct 14, 2018 9:06 am

Hello everyone,

I recently burnt a driver on my Tevo tornado MKS base board. I decided to go for an MKS gen 1.4 and tmc2130 for a change and less noise but they are making my life hell :(

I tired to follow several guides and read the (minimal) documentation of the board, but I can't get them to work.
https://drive.google.com/file/d/1Z3H4sJ ... sp=sharing
https://drive.google.com/file/d/1FiD8pd ... sp=sharing

Image

Image
(Diagrams from https://toms3d.org/2017/12/09/tmc2130-guide/)

I am using the latest marlin version and I configured X, Y, Z and E0 to have tmc2130 driver, I tired to set multiple board (RAMPS_14, RAMPS_13, MKS_GEN...). Here is what is happening:

Console is telling me drivers are overheating the second I start the printer up.
X axis drives fine most of the time but it feels like it is week.
I can move the Y axis forward and backward but when I give it a home command it can't move unless I give it a push.
Z axis moves only downward but can't go up without a push.
Extruder doesn't work at all, doesn't even make a sound.

I feel like the the serial bus is not working correctly and the board can't configure the drivers to have the desired output current ? Can anyone help please ?

Thank you :)

Stefan
Posts: 223
Joined: Thu Jun 15, 2017 12:46 am

Re: Need desperate help with tmc2130 :(

Post by Stefan » Sun Oct 14, 2018 7:55 pm

Hi Anthony,

My first guess is that your currents may not be set optimally for the drivers. Try "M906 X700 Y700 Z700 E700" to set the mA for all four drivers. THEN, reset the EEPROM with "M500". For some reason, Marlin has difficulty setting those values after flashing the firmware. Adjust the "700" value as low as possible to keep the temperatures down. They run hot at 12V, but it is possible.

Heatsinks are an absolute must on these things. Ultimately, I had to put in a cooling fan, too. For testing purposes, I'd recommend keeping the board exposed and cooled. Get the currents set so the steppers behave properly, then deal with the cooling.

Let us know what happens!

-Stefan

anthonyyaghi
Posts: 9
Joined: Sun Oct 14, 2018 8:09 am

Re: Need desperate help with tmc2130 :(

Post by anthonyyaghi » Sun Oct 14, 2018 8:35 pm

Hi Stefan,

Yes I have my board in the open and every driver has a heatsink. I will try setting the current values then resetting the EEPROM as you suggest. Btw I tried a M122 and I am getting this output:

READ: Driver registers: X = 0x00:00:00:00
READ: Y = 0xFF:FF:00:00
READ: Z = 0x00:00:7F:FF
READ: E0 = 0xFF:FF:FF:FF


Running it again gives me different addresses:

READ: Driver registers: X = 0x00:00:00:00
READ: Y = 0xFF:FF:FF:FF
READ: Z = 0x00:00:00:00
READ: E0 = 0xFF:FF:FF:D8

Is this normal behavior ?

Thank you :)

Stefan
Posts: 223
Joined: Thu Jun 15, 2017 12:46 am

Re: Need desperate help with tmc2130 :(

Post by Stefan » Mon Oct 15, 2018 7:14 pm

Hi Anthony,

A value like "0xFF:FF:FF:FF" suggests a connection issue. Look at wiring, solder, etc.

-Stefan

anthonyyaghi
Posts: 9
Joined: Sun Oct 14, 2018 8:09 am

Re: Need desperate help with tmc2130 :(

Post by anthonyyaghi » Tue Oct 16, 2018 11:23 am

Hi Stefan,

Thank you for the continuous help I appreciate it :) sorry I am not able to reply quickly because I am working all day long. I checked the wiring quickly they seem to be ok. I am not able to execute "M500" I the EEPROM is disabled in the marlin configuration. I will fix it today and recheck the wiring before I get back to you with the updates.

Btw, do you think that it isn't a wiring problem but maybe the default pins are not functioning correctly for the bus because they are configured for the LCD or something ? I tried to disable everything that has to do with the LCD and SSD but maybe I missed something..

Thank you.

anthonyyaghi
Posts: 9
Joined: Sun Oct 14, 2018 8:09 am

Re: Need desperate help with tmc2130 :(

Post by anthonyyaghi » Wed Oct 17, 2018 9:51 pm

Stefan wrote:
Mon Oct 15, 2018 7:14 pm
Hi Anthony,

A value like "0xFF:FF:FF:FF" suggests a connection issue. Look at wiring, solder, etc.

-Stefan
Ok So I check all the wiring again but couldn't find any problem. I did a fresh configuration and only changed what is necessary to run the TMC2130, but as soon as I connect to the printed I get an error and the printer is halted (check below for the error). So I guessed maybe it is a bad pin on the board so I re-wired everything on AUX-2 and changed the pins accordingly in pins_RAMPS and the Configuration_adv (for software SPI). Still getting the same error message, here it is :( :(

READ: X driver error detected:
READ: overtemperature
READ: short to ground (coil A)
READ: short to ground (coil B)
READ: X Y Z E0
READ: Enabled false false false false
READ: Set current 800 800 800 800
READ: RMS current 795 795 795 795
READ: MAX current 1121 1121 1121 1121
READ: Run current 25/31 25/31 25/31 25/31
READ: Hold current 12/31 12/31 12/31 12/31
READ: CS actual 31/31 31/31 31/31 31/31
READ: PWM scale 255 255 255 255
READ: vsense 1=.18 1=.18 1=.18 1=.18
READ: stealthChop true true true true
READ: msteps 0 0 0 0
READ: tstep 4294967295 4294967295 4294967295 4294967295
READ: pwm
READ: threshold 0 0 0 0
READ: [mm/s] - - - -
READ: OT prewarn true true true true
READ: OT prewarn has
READ: been triggered false false false false
READ: off time 15 15 15 15
READ: blank time 54 54 54 54
READ: hysteresis
READ: -end 12 12 12 12
READ: -start 8 8 8 8
READ: Stallguard thrs 0 0 0 0
READ: DRVSTATUS X Y Z E0
READ: stallguard X X X X
READ: sg_result 1023 1023 1023 1023
READ: fsactive X X X X
READ: stst X X X X
READ: olb X X X X
READ: ola X X X X
READ: s2gb X X X X
READ: s2ga X X X X
READ: otpw X X X X
READ: ot X X X X
READ: Driver registers: X = 0xFF:FF:FF:FF
READ: Y = 0xFF:FF:FF:FF
READ: Z = 0xFF:FF:FF:FF
READ: E0 = 0xFF:FF:FF:FF
READ:
READ:
READ: Error:Printer halted. kill() called!

Stefan
Posts: 223
Joined: Thu Jun 15, 2017 12:46 am

Re: Need desperate help with tmc2130 :(

Post by Stefan » Wed Oct 17, 2018 11:54 pm

Hi Anthony,

Still makes me think its a short of some sort. Be sure you don't have flux or solder bridging pins. Another possibility is to try a different pin configuration (there are different combinations that work with AUX-1, so do a search for one.)

Here is a video that does a great step-by-step for the RAMPS 1.4 and TMC2130s by Alex Kenis.
https://www.youtube.com/watch?v=w4ZD4fx4z_A&t=7s

-Stefan

anthonyyaghi
Posts: 9
Joined: Sun Oct 14, 2018 8:09 am

Re: Need desperate help with tmc2130 :(

Post by anthonyyaghi » Thu Oct 18, 2018 9:08 pm

This is getting ridiculous, I re-checked everything for a short circuit or a bad connection and I am not an idiot I work with robotics and embedded systems a lot I know what I am doing but everything seems fine. I bought some new DRV8825 (only ones I could find) and installed them instead then changed the DRIVER_TYPE in the config file and restored the default pins but still nothing they are having the same issue: Steppers make a sound but they are too weak to do anything. I checked the input voltage and it is 24V as it should... At this point I am running out of ideas.

And btw I re-uploaded the original firmware on the new MKS board but the LCD wont light up :P

Thank you for all the help guys specially Stefan, I feel stupid not being able to figure this out.

anthonyyaghi
Posts: 9
Joined: Sun Oct 14, 2018 8:09 am

Re: Need desperate help with tmc2130 :(

Post by anthonyyaghi » Thu Oct 18, 2018 9:30 pm

Ok so there is 3 jumpers underneath each driver I previously had removed all of the for the 2130. I noticed that if I place them back the DRV8825 is there a certain configuration for the jumpers that might be preferable with the tmc2130 ?

Stefan
Posts: 223
Joined: Thu Jun 15, 2017 12:46 am

Re: Need desperate help with tmc2130 :(

Post by Stefan » Fri Oct 19, 2018 2:26 am

Hi Anthony,

Those jumpers should be removed for the TMCs, though I think they do nothing when a TMC is connected (they alter the microstepping in conventional drivers).

The ONE reason I prefer the RAMPS/Arduino combination over a MKS board is that each of those two pieces can be replaced individually for troubleshooting. (Ideally, we shouldn't have to worry about build quality, but in reality, I've thrown out a bunch of boards because they just didn't work.) We may be getting to that point.

Just in case, make sure you've gone through both configuration files to disable the TMCs. Also, does the LCD light up if you connect the board to USB?

I've scratch-built a few printers: each one was a rough journey through electronics.

-Stefan

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest