Hi everyone.
I'm trying to set up the TMC2130 drivers on SPI on a 3D printer. I'm using Marlin 2.0 firmware and a RAMPS 1.6 plus board. When I connect the board and use M122 I get this:
X Y Z
Enabled false false false
Set current 600 600 600
RMS current 581 581 581
MAX current 819 819 819
Run current 18/31 18/31 18/31
Hold current 9/31 9/31 9/31
CS actual 9/31 9/31 9/31
PWM scale 0 0 0
vsense 1=.18 1=.18 1=.18
stealthChop true true true
msteps 16 16 16
tstep max max max
PWM thresh. 98 98 658
[mm/s] 100 100 3
OT prewarn false false false
off time 0 0 0
blank time 24 24 24
hysteresis
-end -1 -1 -1
-start 1 1 1
Stallguard thrs 0 0 0
uStep count 56 488 904
DRVSTATUS X Y Z
sg_result 0 0 0
stallguard
fsactive
stst
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x80:09:00:00
Y 0x80:09:00:00
[/code]
Z 0x80:09:00:00
Testing X connection... OK
Testing Y connection... OK
Testing Z connection... OK
I'm not sure if everything is ok, but the motors aren't moving.
I have tested the drivers on SPI using the Software_SPI example from the TMCStepper library, and it works fine.
On my Configuration.h I have:
and on my Configuration_adv.h I have:
also
I can't figure out what the problem is. Could someone help me?
I'm trying to set up the TMC2130 drivers on SPI on a 3D printer. I'm using Marlin 2.0 firmware and a RAMPS 1.6 plus board. When I connect the board and use M122 I get this:
X Y Z
Enabled false false false
Set current 600 600 600
RMS current 581 581 581
MAX current 819 819 819
Run current 18/31 18/31 18/31
Hold current 9/31 9/31 9/31
CS actual 9/31 9/31 9/31
PWM scale 0 0 0
vsense 1=.18 1=.18 1=.18
stealthChop true true true
msteps 16 16 16
tstep max max max
PWM thresh. 98 98 658
[mm/s] 100 100 3
OT prewarn false false false
off time 0 0 0
blank time 24 24 24
hysteresis
-end -1 -1 -1
-start 1 1 1
Stallguard thrs 0 0 0
uStep count 56 488 904
DRVSTATUS X Y Z
sg_result 0 0 0
stallguard
fsactive
stst
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x80:09:00:00
Y 0x80:09:00:00
[/code]
Z 0x80:09:00:00
Testing X connection... OK
Testing Y connection... OK
Testing Z connection... OK
I'm not sure if everything is ok, but the motors aren't moving.
I have tested the drivers on SPI using the Software_SPI example from the TMCStepper library, and it works fine.
On my Configuration.h I have:
#define X_DRIVER_TYPE TMC2130 #define Y_DRIVER_TYPE TMC2130 #define Z_DRIVER_TYPE TMC2130
and on my Configuration_adv.h I have:
#define X_CS_PIN 63 #define Y_CS_PIN 40 #define Z_CS_PIN 42 #define TMC_USE_SW_SPI #define TMC_SW_MOSI 51 #define TMC_SW_MISO 50 #define TMC_SW_SCK 52
also
* Software enable * * Use for drivers that do not use a dedicated enable pin, but rather handle the same * function through a communication line such as SPI or UART. */ #define SOFTWARE_DRIVER_ENABLE /** * TMC2130, TMC2160, TMC2208, TMC2209, TMC5130 and TMC5160 only * Use Trinamic's ultra quiet stepping mode. * When disabled, Marlin will use spreadCycle stepping mode. */ #define STEALTHCHOP_XY #define STEALTHCHOP_Z #define STEALTHCHOP_E
I can't figure out what the problem is. Could someone help me?