Skip to main content

TMC 5160

Loading...

Basic Parameters​

  • Input Voltage: 12V-24V
  • Maximum Current: 4.4A
  • Applicable to: Marlin/Klipper/RRF Firmware
  • Drive Mode Support: TMC: SPI
  • Step/Direction Interface with microPlyer Microstep Interpolation
  • Maximum Resolution of 256 Microsteps
  • Supports stealthChop2 for Silent Operation and Smooth Motion
  • Supports Resonance Damping for Mid-Frequency Resonance
  • Supports spreadCycle High Dynamic Motor Control Chopper
  • Supports dcStep Load-Dependent Speed Control
  • Supports stallGuard2 High-Precision Sensorless Motor Load Detection
  • Supports coolStep Current Control, Saving Up to 75% Energy

Motherboard Jumper Instructions​

  • TMC5160 uses SPI jumper
  • The SPI pin of the FLY driver is the fourth pin from the left at the bottom, and the CS pin is the SPI pin. If the motherboard does not have corresponding pins, SPI cannot be used.
    Loading...

TMC5160 Reference Configuration​

Danger
  • The driver sense resistor is sense_resistor: 0.075. Please do not set it incorrectly.
  • You can only choose either spi_bus or spi_software.

SPI Mode Reference Configuration​

[tmc5160 stepper_x]
cs_pin:
spi_bus:
# spi_software_mosi_pin:
# spi_software_miso_pin:
# spi_software_sclk_pin:
run_current: 1.0 # Motor running current value
interpolate: False # Whether to enable 256 microstep interpolation (True to enable, False to disable)
sense_resistor: 0.075
stealthchop_threshold: 0
driver_DISS2G: 1
driver_DISS2VS: 1

Sensorless Homing Instructions​

Infinite Position Usage Tips
  • Using infinite position requires occupying one limit port. Under normal circumstances, the first drive position uses IO1, the second drive position uses IO2, and so on.
  • When using infinite position, please note: do not connect anything to the corresponding limit port.
  • Some FLY motherboards are directly connected to the drive port. Please check whether DIAG is directly connected to the corresponding pin.
Sensorless Homing Tips
  • This driver requires soldering the DIAG pin yourself, otherwise the sensorless homing function cannot be used
  • The original endstop_pin: needs to be commented out or deleted, then add endstop_pin: tmc5160_stepper_x:virtual_endstop
  • After configuring diag1_pin:, refresh the endstop status to confirm it is not triggered
  • After configuring driver_SGT:, you need to test and find a suitable value yourself
  • Reference configuration
[stepper_x]
# endstop_pin:
endstop_pin: tmc5160_stepper_x:virtual_endstop
homing_retract_dist: 0 # Not setting this to 0 may cause homing failure

[tmc5160 stepper_x]
diag1_pin: ^!
driver_SGT: 1

# After configuration, please ensure the endstop status is not triggered
# This pin typically uses the "^" prefix to enable the internal pull-up
# Sensitivity is related to belt tension and needs to be adjusted manually
# (Make sure driver_SGT is also set to an appropriate sensitivity value)

Loading...