Skip to content

Commit

Permalink
Support for TMC5160 on Z Axis (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
reineruhry authored Feb 14, 2024
1 parent 45a447d commit e350d0c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/hardware/axis/Z/TMC/TMC5160_1-Motor.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Z TMC5160 definition

# User variable only needed here as they are called recursively
[gcode_macro _USER_VARIABLES]
variable_z_driver: "tmc5160"
gcode:


[tmc5160 stepper_z]
cs_pin: Z_TMCUART
spi_speed: 500000
spi_software_sclk_pin: DRIVER_SPI_SCK
spi_software_mosi_pin: DRIVER_SPI_MOSI
spi_software_miso_pin: DRIVER_SPI_MISO
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
23 changes: 23 additions & 0 deletions config/hardware/axis/Z/TMC/TMC5160_3-Motors.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[include TMC5160_1-Motor.cfg]

[tmc5160 stepper_z1]
cs_pin: Z1_TMCUART
spi_speed: 500000
spi_software_sclk_pin: DRIVER_SPI_SCK
spi_software_mosi_pin: DRIVER_SPI_MOSI
spi_software_miso_pin: DRIVER_SPI_MISO
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0

[tmc5160 stepper_z2]
cs_pin: Z2_TMCUART
spi_speed: 500000
spi_software_sclk_pin: DRIVER_SPI_SCK
spi_software_mosi_pin: DRIVER_SPI_MOSI
spi_software_miso_pin: DRIVER_SPI_MISO
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
12 changes: 12 additions & 0 deletions config/hardware/axis/Z/TMC/TMC5160_4-Motors.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[include TMC5160_3-Motors.cfg]

[tmc5160 stepper_z3]
cs_pin: Z3_TMCUART
spi_speed: 500000
spi_software_sclk_pin: DRIVER_SPI_SCK
spi_software_mosi_pin: DRIVER_SPI_MOSI
spi_software_miso_pin: DRIVER_SPI_MISO
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
3 changes: 3 additions & 0 deletions user_templates/mcu.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
# [include config/hardware/axis/Z/TMC/TMC2240_1-Motor.cfg]
# [include config/hardware/axis/Z/TMC/TMC2240_3-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC2240_4-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC5160_1-Motor.cfg]
# [include config/hardware/axis/Z/TMC/TMC5160_3-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC5160_4-Motors.cfg]
# ----------------------------------------------------------------------------------------


Expand Down

0 comments on commit e350d0c

Please sign in to comment.