bigtreetech / BIGTREETECH-TMC2209-V1.2

TMC2209 is an ultra-silent motor driver IC for two-phase stepper motors. Its continuous drive current is 2A and peak current is 2.8A. Compared with TMC2208, the driving current of this IC is not only improved by 0.6a-0.8a, but also this IC increases the function of locked-motor test.
206 stars 37 forks source link

TMC2209 v1.2 sensorless homing does not work #14

Open Ubatami opened 2 years ago

Ubatami commented 2 years ago

I have TMC2209 v1.2 drivers connected to Ramps 1.4. Everything works fine except ability to trigger end-stops using sensor less homing Can somebody tell how to connect BTT tmc2209 v1.2 diag pin to ramps 1.4 end-stop pin ? Running M122 in Marlin returns 13:16:22.152 : N19 M122*26 13:16:22.152 : X Y Z 13:16:22.152 : Address 1 1 1 13:16:22.167 : Enabled false false false 13:16:22.167 : Set current 800 800 800 13:16:22.183 : RMS current 795 795 795 13:16:22.214 : MAX current 1121 1121 1121 13:16:22.214 : Run current 25/31 25/31 25/31 13:16:22.214 : Hold current 12/31 12/31 12/31 13:16:22.230 : CS actual 12/31 12/31 12/31 13:16:22.230 : PWM scale 13:16:22.245 : vsense 1=.18 1=.18 1=.18 13:16:22.261 : stealthChop true true true 13:16:22.276 : msteps 16 16 16 13:16:22.292 : interp true true true 13:16:22.323 : tstep max max max 13:16:22.323 : PWM thresh. 13:16:22.323 : [mm/s] 13:16:22.339 : OT prewarn false false false 13:16:22.354 : pwm scale sum 40 38 20 13:16:22.370 : pwm scale auto 1 0 0 13:16:22.386 : pwm offset auto 97 94 51 13:16:22.401 : pwm grad auto 38 31 44 13:16:22.417 : off time 3 3 3 13:16:22.432 : blank time 24 24 24 13:16:22.432 : hysteresis 13:16:22.448 : -end -1 -1 -1 13:16:22.479 : -start 1 1 1 13:16:22.479 : Stallguard thrs 255 255 255 13:16:22.495 : uStep count 520 104 88 13:16:22.495 : DRVSTATUS X Y Z 13:16:22.510 : sg_result 180 138 74 13:16:22.526 : stst 13:16:22.542 : olb 13:16:22.557 : ola 13:16:22.573 : s2gb 13:16:22.588 : s2ga 13:16:22.604 : otpw 13:16:22.620 : ot 13:16:22.635 : 157C 13:16:22.651 : 150C 13:16:22.666 : 143C 13:16:22.682 : 120C 13:16:22.698 : s2vsa 13:16:22.713 : s2vsb 13:16:22.713 : Driver registers: 13:16:22.729 : X 0xC0:0C:00:00 13:16:22.729 : Y 0xC0:0C:00:00 13:16:22.744 : Z 0xC0:0C:00:00 13:16:22.744 : Testing X connection... OK 13:16:22.760 : Testing Y connection... OK 13:16:22.760 : Testing Z connection... OK

realmemejeff commented 11 months ago

Here is the Pin info from the datasheet: DIAG 11 DO Diagnostic and StallGuard output. Hi level upon stall detection or driver error. Reset error condition by ENN=high.