AWD TMC 5160 issue

Ive built the mechanical aspect of the AWD setup and am now currently trying to program it it RatOS, ive made it as far as the printer recognizing the 4 motors but when ever i ask it to move i get this issue. here is the start of the conversation. https://discord.com/channels/582187371529764864/1111323236895051776/1122892139576168561
No description
54 Replies
Mr.Robot
Mr.RobotOP2y ago
these are my configs
PollePro
PollePro2y ago
i put my stepper settings into my printer.cfg have u tryed that?
Mr.Robot
Mr.RobotOP2y ago
i have an include at the bottom of my printer.cfg your saying add all of it in not as an include
miklschmidt
miklschmidt2y ago
This means klipper can't communicate with your drivers. Make sure all jumpers are set correctly (power jumper and SPI jumpers). Delete this:
[tmc5160 stepper_y]
cs_pin:PD11
#step_pin: PG0
#dir_pin: PG1
#enable_pin: !PF15
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
#position_max = 500
#position_endstop = 500
#homing_positive_dir = true
stealthchop_threshold: 0
interpolate: false

[tmc5160 stepper_x]
cs_pin:PC4
#step_pin: PF13
#dir_pin: PF12
#enable_pin: !PF14
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
#position_max = 500
stealthchop_threshold: 0
interpolate: false
[tmc5160 stepper_y]
cs_pin:PD11
#step_pin: PG0
#dir_pin: PG1
#enable_pin: !PF15
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
#position_max = 500
#position_endstop = 500
#homing_positive_dir = true
stealthchop_threshold: 0
interpolate: false

[tmc5160 stepper_x]
cs_pin:PC4
#step_pin: PF13
#dir_pin: PF12
#enable_pin: !PF14
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
#position_max = 500
stealthchop_threshold: 0
interpolate: false
Mr.Robot
Mr.RobotOP2y ago
all of them are set to 48v and the jumpers are set to SPI i deleted that section
PollePro
PollePro2y ago
can u take some pics of the board and drivers? 🙂
Mr.Robot
Mr.RobotOP2y ago
No description
Mr.Robot
Mr.RobotOP2y ago
No description
miklschmidt
miklschmidt2y ago
yep that looks good Hmm
PollePro
PollePro2y ago
Have u tryed switching your stepper drivers? Perhaps a faulty one?
miklschmidt
miklschmidt2y ago
Try swapping drivers around and see if the problem moves Also make sure the 48V PSU is on kekw a green light in the motor power LED so i assume that part is fine
miklschmidt
miklschmidt2y ago
Oh and remove this jumper
No description
Mr.Robot
Mr.RobotOP2y ago
i even double checked it 48V is good to go i sawapped the driver pulled the jumper
PollePro
PollePro2y ago
same error after swapping?
Mr.Robot
Mr.RobotOP2y ago
yep
PollePro
PollePro2y ago
same stepper?
Mr.Robot
Mr.RobotOP2y ago
yep stepper_y1 each time
PollePro
PollePro2y ago
it was stepper_x first?
Mr.Robot
Mr.RobotOP2y ago
yes at the beginging now it y1
PollePro
PollePro2y ago
Could be a stepper driver is dead check the back of it for "Holes" 🙂
Mr.Robot
Mr.RobotOP2y ago
lmfao
PollePro
PollePro2y ago
I had a dead stepper driver i was boxing with for a long time before i found out 🙂
miklschmidt
miklschmidt2y ago
Then the CS pin is prolly wrong
PollePro
PollePro2y ago
If u can wait for toomorrow u can have my printer.cfg 🙂
miklschmidt
miklschmidt2y ago
@mr.robot7392 yeah you're off by one
No description
miklschmidt
miklschmidt2y ago
It's PC7 and PF2, not PC6 and PC7 Should be:
[tmc5160 stepper_y1]
cs_pin: PC7
#step_pin: PF11
#dir_pin: PG3
#enable_pin: !PG5
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
stealthchop_threshold: 0
interpolate: false

[tmc5160 stepper_x1]
cs_pin:PF2
#step_pin: PG4
#dir_pin: PC1
#enable_pin: !PA0
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
stealthchop_threshold: 0
interpolate: false
[tmc5160 stepper_y1]
cs_pin: PC7
#step_pin: PF11
#dir_pin: PG3
#enable_pin: !PG5
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
stealthchop_threshold: 0
interpolate: false

[tmc5160 stepper_x1]
cs_pin:PF2
#step_pin: PG4
#dir_pin: PC1
#enable_pin: !PA0
#rotation_distance: 40
#microsteps: 64
#homing_speed: 50
#homing_retract_dist: 0
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
spi_software_sclk_pin: stepper_spi_sclk_pin
run_current: 1.768
driver_TBL: 0
driver_TOFF: 4
driver_HEND: 0
driver_HSTRT: 4
stealthchop_threshold: 0
interpolate: false
Mr.Robot
Mr.RobotOP2y ago
this do you always know what to do Thank you yes thats it @miklschmidt you sir are a god damn saint
miklschmidt
miklschmidt2y ago
Some times it takes me a while 😂
Mr.Robot
Mr.RobotOP2y ago
but youve saved my ass once again thank you very much
miklschmidt
miklschmidt2y ago
You're welcome 🙂
Mr.Robot
Mr.RobotOP2y ago
ok moving onto PId tunning thank you is there anything else i should do before i move forward??
miklschmidt
miklschmidt2y ago
Don't think so, follow the guide if in doubt 🙂
PollePro
PollePro2y ago
make sure your motors run the right way 😛
Mr.Robot
Mr.RobotOP2y ago
i think i have a few more things to work out up and left arrow keys move the motors towardss the rear right and right and down arrow keys do the opposite
PollePro
PollePro2y ago
Yea, Thats also were i got too 😛
Mr.Robot
Mr.RobotOP2y ago
@miklschmidt got anything for this one lol
miklschmidt
miklschmidt2y ago
invert the dir pins of X and Y. 5160's have inverted movement. Oh and when i say X and Y, i mean both X and X1 and Y and Y1
PollePro
PollePro2y ago
So put ! where there is non and remove ! where they are?
Mr.Robot
Mr.RobotOP2y ago
all 5160 's have inverted movement
miklschmidt
miklschmidt2y ago
indeed
PollePro
PollePro2y ago
Will have to do that aswell then 😛
miklschmidt
miklschmidt2y ago
If there's a ! remove it, if there's none add it you want
[stepper_x]
step_pin = x_step_pin
dir_pin = !x_dir_pin
enable_pin = !x_enable_pin
rotation_distance = 40
microsteps = 64
homing_speed = 50
homing_retract_dist = 5.0
position_max = 500
position_endstop = 0
endstop_pin = toolboard:x_endstop_pin

[stepper_y]
step_pin = y_step_pin
dir_pin = !y_dir_pin
enable_pin = !y_enable_pin
rotation_distance = 40
microsteps = 64
homing_speed = 50
homing_retract_dist = 5.0
position_max = 500
position_endstop = 500
endstop_pin = ^y_endstop_pin
homing_positive_dir = true

[stepper_x1]
#cs_pin:PC7
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
rotation_distance = 40
microsteps = 64


[stepper_y1]
#cs_pin: PC6
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
rotation_distance = 40
microsteps = 64
[stepper_x]
step_pin = x_step_pin
dir_pin = !x_dir_pin
enable_pin = !x_enable_pin
rotation_distance = 40
microsteps = 64
homing_speed = 50
homing_retract_dist = 5.0
position_max = 500
position_endstop = 0
endstop_pin = toolboard:x_endstop_pin

[stepper_y]
step_pin = y_step_pin
dir_pin = !y_dir_pin
enable_pin = !y_enable_pin
rotation_distance = 40
microsteps = 64
homing_speed = 50
homing_retract_dist = 5.0
position_max = 500
position_endstop = 500
endstop_pin = ^y_endstop_pin
homing_positive_dir = true

[stepper_x1]
#cs_pin:PC7
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
rotation_distance = 40
microsteps = 64


[stepper_y1]
#cs_pin: PC6
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
rotation_distance = 40
microsteps = 64
Oh @mr.robot7392 you want to check your [stepper_x1] and [stepper_y1] pins those are also off by one
Mr.Robot
Mr.RobotOP2y ago
thats commented out
miklschmidt
miklschmidt2y ago
Not in the one i have, can you post your current stepper configuration?
miklschmidt
miklschmidt2y ago
No description
miklschmidt
miklschmidt2y ago
It isn't You need to fix those
Mr.Robot
Mr.RobotOP2y ago
oh the dir pin i thought you meant the cs pin im sorry
miklschmidt
miklschmidt2y ago
No all of them. step, dir and enable They're all wrong it's the wrong pins See this message i'm replying to
miklschmidt
miklschmidt2y ago
@mr.robot7392 once you've fixed those and added ! in front of the dir_pins it should work. If the movement is still weird refer to this:
No description
Mr.Robot
Mr.RobotOP2y ago
ok i got them all moving the right direction so they all move in the correct direction but when i move left to right there is horrible sound and stutter forwards backwards no problem
miklschmidt
miklschmidt2y ago
If they were fighting eachother i'd assume it would make noise on Y moves too.. Could be that you just need to sync the pulleys. In any case, the AWD motors might need to spin the opposite way of the original ones, depending on how you're doing AWD.
Mr.Robot
Mr.RobotOP2y ago
I got it all sorted the belts needed tensioning there was too much slack and it was skipping over the front motors
miklschmidt
miklschmidt2y ago
Ah ok Great 👍

Did you find this page helpful?