Skip to content

TMC5160 Drivers Not detected #1

@benagricola

Description

@benagricola

Using the example Klipper configs, as well as RRF, my SPIDER KING won't detect the BIG-5160 drivers I have installed in my board.

Klipper reports:

INFO:root:TMC stepper_x failed to init: Unable to write tmc spi 'stepper_x' register GLOBALSCALER
INFO:root:TMC stepper_y failed to init: Unable to write tmc spi 'stepper_y' register GLOBALSCALER
INFO:root:TMC stepper_z failed to init: Unable to write tmc spi 'stepper_z' register GLOBALSCALER

And RRF reports all drivers not present.

Additionally, the example Klipper configuration pins don't match the Pinout diagram in this repo, so I have no idea which pins are the correct ones.

The example Klipper config I'm using is this (using the pin layout from the PDF file in this repo).

[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_260035001147393532373434-if00
restart_method: command

[stepper_x]
step_pin: PG7
dir_pin: PG6
enable_pin: PE11
rotation_distance: 40
microsteps: 16
full_steps_per_rotation:200
endstop_pin: tmc5160_stepper_x:virtual_endstop
position_min: 0
position_endstop: 0
position_max: 235
homing_speed: 35
homing_retract_dist: 5
#homing_positive_dir: true

[tmc5160 stepper_x]
## Soft SPI
spi_software_mosi_pin: PE14
spi_software_miso_pin: PE13
spi_software_sclk_pin: PE12
cs_pin: PD2
diag0_pin: !PF6
interpolate: False
run_current: 0.8
#hold_current: 0.5
stealthchop_threshold: 0
sense_resistor: 0.075
driver_SGT: 1

[stepper_y]
step_pin: PG14
dir_pin: PG12
enable_pin: PG15
microsteps: 16
rotation_distance: 40
full_steps_per_rotation: 200
endstop_pin: tmc5160_stepper_y:virtual_endstop
position_min: 0
position_endstop: 0
position_max: 235
homing_speed: 35
homing_retract_dist: 5

[tmc5160 stepper_y]
## Soft SPI
spi_software_mosi_pin: PE14
spi_software_miso_pin: PE13
spi_software_sclk_pin: PE12
cs_pin: PD8
diag0_pin: !PF8
interpolate: False   #true   False 
run_current: 0.8
#hold_current: 0.5
stealthchop_threshold: 0
sense_resistor: 0.075
driver_SGT: 1

#####################################################################
#   Z Motor 
#####################################################################

[stepper_z]
step_pin: PD4
dir_pin: PD6
enable_pin: PD5
rotation_distance: 8
gear_ratio: 40:16
microsteps: 256
endstop_pin: tmc5160_stepper_z:virtual_endstop
position_endstop: 0
position_max: 235
position_min: 0
homing_speed: 7
second_homing_speed: 3
homing_retract_dist: 3

[tmc5160 stepper_z]
spi_software_mosi_pin: PE14
spi_software_miso_pin: PE13
spi_software_sclk_pin: PE12
cs_pin: PD7
diag0_pin: !PF11
interpolate: False   #true
run_current: 0.7
hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0

[printer]
kinematics: cartesian
max_velocity: 200
max_accel: 1500
max_z_velocity: 10
max_z_accel: 100
square_corner_velocity: 4.0

Big5160 boards are installed in the orientation from the WIKI - With the BIG-5160 text upside-down when looking at the board from the high voltage motor connectors.

Please help work out what's wrong here, because the board won't work without drivers :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions