makerbase-mks / MKS-Robin-Nano-V3.X

Robin nano V3 is an upgraded version of Robin Nano V2.0. The upgrade changes are quite large, including upgrading the MCU to the M4 core, and adding support for USB disk.
GNU General Public License v3.0
136 stars 65 forks source link

Drivers_MKS_TMC2209_2225_2208 Needs Update #89

Open mykepredko opened 2 years ago

mykepredko commented 2 years ago

I'm working with setting up a Robin Nano V3 with TMC2209 drivers and after following the instructions, I found that I had to take away the comments for "CHOPPER_TIMING" in configuration_adv.h (I set it to "CHOPPER_DEFAULT_24" because I'm using a 24V power supply) as well as the "CHOPPERTIMING#" where "#" is "X, X2, Y, Y2, etc.

I also took out the comments for "#define LINEAR AXES 3" (assuming I was going with X, Y & Z) in configuration.h.

After running "M122" in Pronterface with #define TMC_DEBUG in configuration_adv.h I got:

m122 SENDING:M122 X Y Z E Address 0 0 0 0 Enabled false false false false Set current 800 800 800 800 RMS current 795 795 795 795 MAX current 1121 1121 1121 1121 Run current 25/31 25/31 25/31 25/31 Hold current 12/31 12/31 12/31 12/31 CS actual 12/31 12/31 12/31 12/31 PWM scale vsense 1=.18 1=.18 1=.18 1=.18 stealthChop false false false false msteps 16 16 16 16 interp true true true true tstep max max max max PWM thresh. 98 98 658 283 [mm/s] 100 100 3 30 OT prewarn false false false false pwm scale sum 14 14 14 14 pwm scale auto 0 0 0 0 pwm offset auto 36 36 36 36 pwm grad auto 14 14 14 14 off time 4 4 4 4 blank time 24 24 24 24 hysteresis -end 2 2 2 2 -start 1 1 1 1 Stallguard thrs 0 0 0 0 uStep count 40 8 1000 40 DRVSTATUS X Y Z E sg_result 0 0 0 0 stst olb ola s2gb s2ga otpw ot 157C 150C 143C 120C s2vsa s2vsb Driver registers: X 0x80:0C:00:C0 Y 0x80:0C:00:C0 Z 0x80:0C:00:C0 E 0x80:0C:00:C0 Testing X connection... OK Testing Y connection... OK Testing Z connection... OK Testing E connection... OK

Hopefully things will work out, but I thought I'd bring this to your attention.

Thanx!