Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support 2 motor z axis #672

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions config/hardware/axis/Z/TMC/TMC2209_2-Motors.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[include TMC2209_1-Motor.cfg]

[tmc2209 stepper_z1]
uart_pin: Z1_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
9 changes: 1 addition & 8 deletions config/hardware/axis/Z/TMC/TMC2209_3-Motors.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
[include TMC2209_1-Motor.cfg]

[tmc2209 stepper_z1]
uart_pin: Z1_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[include TMC2209_2-Motors.cfg]

[tmc2209 stepper_z2]
uart_pin: Z2_TMCUART
Expand Down
11 changes: 11 additions & 0 deletions config/hardware/axis/Z/TMC/TMC2240_2-Motors.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[include TMC2240_1-Motor.cfg]

[tmc2240 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.7
stealthchop_threshold: 0
12 changes: 1 addition & 11 deletions config/hardware/axis/Z/TMC/TMC2240_3-Motors.cfg
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
[include TMC2240_1-Motor.cfg]

[tmc2240 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.7
stealthchop_threshold: 0
[include TMC2240_2-Motors.cfg]

[tmc2240 stepper_z2]
cs_pin: Z2_TMCUART
Expand Down
12 changes: 12 additions & 0 deletions config/hardware/axis/Z/TMC/TMC5160_2-Motors.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[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.075
stealthchop_threshold: 0
13 changes: 1 addition & 12 deletions config/hardware/axis/Z/TMC/TMC5160_3-Motors.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
[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.075
stealthchop_threshold: 0
[include TMC5160_2-Motors.cfg]

[tmc5160 stepper_z2]
cs_pin: Z2_TMCUART
Expand Down
9 changes: 9 additions & 0 deletions config/hardware/axis/Z/default_wiring_2M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# In this file we include the first motor
[include default_wiring_1M.cfg]

# And then, add a 2nd motor...
[stepper_z1]
step_pin: Z1_STEP
dir_pin: Z1_DIR
enable_pin: !Z1_ENABLE

11 changes: 3 additions & 8 deletions config/hardware/axis/Z/default_wiring_3M.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# In this file we include the first motor
[include default_wiring_1M.cfg]

# And then, add a 2nd and 3rd motor...
[stepper_z1]
step_pin: Z1_STEP
dir_pin: Z1_DIR
enable_pin: !Z1_ENABLE
# In this file we include the first 2 motors
[include default_wiring_2M.cfg]

# And then, add a 3rd motor...
[stepper_z2]
step_pin: Z2_STEP
dir_pin: Z2_DIR
Expand Down
3 changes: 3 additions & 0 deletions user_templates/mcu.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@
# [include config/hardware/axis/Y/TMC/TMC5160.cfg]
### 3. Z Drivers -------------------------------------------------------------------------
# [include config/hardware/axis/Z/TMC/TMC2209_1-Motor.cfg]
# [include config/hardware/axis/Z/TMC/TMC2209_2-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC2209_3-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC2209_4-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC2240_1-Motor.cfg]
# [include config/hardware/axis/Z/TMC/TMC2240_2-Motors.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_2-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC5160_3-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC5160_4-Motors.cfg]
# ----------------------------------------------------------------------------------------
Expand Down