Skip to content

Commit

Permalink
added AWD support (2x X, 2x Y) (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Surion79 authored Jun 19, 2024
1 parent e21871f commit e46365c
Show file tree
Hide file tree
Showing 38 changed files with 282 additions and 136 deletions.
9 changes: 1 addition & 8 deletions config/hardware/axis/X/0.9deg.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
[stepper_x]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring.cfg]
[include default_speed.cfg]
[include 0.9deg_1M.cfg]
8 changes: 8 additions & 0 deletions config/hardware/axis/X/0.9deg_1M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[stepper_x]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_1M.cfg]
[include default_speed.cfg]
13 changes: 13 additions & 0 deletions config/hardware/axis/X/0.9deg_2M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[stepper_x]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

[stepper_x1]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_2M.cfg]
[include default_speed.cfg]
9 changes: 1 addition & 8 deletions config/hardware/axis/X/1.8deg.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
[stepper_x]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring.cfg]
[include default_speed.cfg]
[include 1.8deg_1M.cfg]
8 changes: 8 additions & 0 deletions config/hardware/axis/X/1.8deg_1M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[stepper_x]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_1M.cfg]
[include default_speed.cfg]
13 changes: 13 additions & 0 deletions config/hardware/axis/X/1.8deg_2M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[stepper_x]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

[stepper_x1]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_2M.cfg]
[include default_speed.cfg]
13 changes: 1 addition & 12 deletions config/hardware/axis/X/TMC/TMC2209.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
# X TMC2209 definition

[gcode_macro _USER_VARIABLES]
variable_x_driver: "tmc2209"
gcode:

[tmc2209 stepper_x]
uart_pin: X_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[include TMC2209_1-Motor.cfg]
12 changes: 12 additions & 0 deletions config/hardware/axis/X/TMC/TMC2209_1-Motor.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# X TMC2209 definition

[gcode_macro _USER_VARIABLES]
variable_x_driver: "tmc2209"
gcode:

[tmc2209 stepper_x]
uart_pin: X_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
8 changes: 8 additions & 0 deletions config/hardware/axis/X/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_x1]
uart_pin: X1_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
16 changes: 1 addition & 15 deletions config/hardware/axis/X/TMC/TMC2240.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
# X TMC2240 definition

[gcode_macro _USER_VARIABLES]
variable_x_driver: "tmc2240"
gcode:

[tmc2240 stepper_x]
cs_pin: X_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_1-Motor.cfg]
15 changes: 15 additions & 0 deletions config/hardware/axis/X/TMC/TMC2240_1-Motor.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# X TMC2240 definition

[gcode_macro _USER_VARIABLES]
variable_x_driver: "tmc2240"
gcode:

[tmc2240 stepper_x]
cs_pin: X_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
11 changes: 11 additions & 0 deletions config/hardware/axis/X/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_x1]
cs_pin: X1_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
16 changes: 1 addition & 15 deletions config/hardware/axis/X/TMC/TMC5160.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
# X TMC5160 definition

[gcode_macro _USER_VARIABLES]
variable_x_driver: "tmc5160"
gcode:

[tmc5160 stepper_x]
cs_pin: X_TMCUART
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_1-Motor.cfg]
15 changes: 15 additions & 0 deletions config/hardware/axis/X/TMC/TMC5160_1-Motor.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# X TMC5160 definition

[gcode_macro _USER_VARIABLES]
variable_x_driver: "tmc5160"
gcode:

[tmc5160 stepper_x]
cs_pin: X_TMCUART
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
11 changes: 11 additions & 0 deletions config/hardware/axis/X/TMC/TMC5160_2-Motors.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[include TMC5160_1-Motor.cfg]

[tmc5160 stepper_x1]
cs_pin: X1_TMCUART
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
6 changes: 1 addition & 5 deletions config/hardware/axis/X/default_wiring.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
[stepper_x]
step_pin: X_STEP
dir_pin: X_DIR
enable_pin: !X_ENABLE
endstop_pin: X_STOP
[include default_wiring_1M.cfg]
5 changes: 5 additions & 0 deletions config/hardware/axis/X/default_wiring_1M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[stepper_x]
step_pin: X_STEP
dir_pin: X_DIR
enable_pin: !X_ENABLE
endstop_pin: X_STOP
6 changes: 6 additions & 0 deletions config/hardware/axis/X/default_wiring_2M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[include default_wiring_1M.cfg]

[stepper_x1]
step_pin: X1_STEP
dir_pin: X1_DIR
enable_pin: !X1_ENABLE
9 changes: 1 addition & 8 deletions config/hardware/axis/Y/0.9deg.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
[stepper_y]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring.cfg]
[include default_speed.cfg]
[include 0.9deg_1M.cfg]
8 changes: 8 additions & 0 deletions config/hardware/axis/Y/0.9deg_1M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[stepper_y]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_1M.cfg]
[include default_speed.cfg]
13 changes: 13 additions & 0 deletions config/hardware/axis/Y/0.9deg_2M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[stepper_y]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

[stepper_y1]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_2M.cfg]
[include default_speed.cfg]
9 changes: 1 addition & 8 deletions config/hardware/axis/Y/1.8deg.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
[stepper_y]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring.cfg]
[include default_speed.cfg]
[include 1.8deg_1M.cfg]
8 changes: 8 additions & 0 deletions config/hardware/axis/Y/1.8deg_1M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[stepper_y]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_1M.cfg]
[include default_speed.cfg]
13 changes: 13 additions & 0 deletions config/hardware/axis/Y/1.8deg_2M.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[stepper_y]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

[stepper_y1]
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_2M.cfg]
[include default_speed.cfg]
13 changes: 1 addition & 12 deletions config/hardware/axis/Y/TMC/TMC2209.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
# Y TMC2209 definition

[gcode_macro _USER_VARIABLES]
variable_y_driver: "tmc2209"
gcode:

[tmc2209 stepper_y]
uart_pin: Y_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[include TMC2209_1-Motor.cfg]
12 changes: 12 additions & 0 deletions config/hardware/axis/Y/TMC/TMC2209_1-Motor.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Y TMC2209 definition

[gcode_macro _USER_VARIABLES]
variable_y_driver: "tmc2209"
gcode:

[tmc2209 stepper_y]
uart_pin: Y_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
8 changes: 8 additions & 0 deletions config/hardware/axis/Y/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_y1]
uart_pin: Y1_TMCUART
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
16 changes: 1 addition & 15 deletions config/hardware/axis/Y/TMC/TMC2240.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
# Y TMC2240 definition

[gcode_macro _USER_VARIABLES]
variable_y_driver: "tmc2240"
gcode:

[tmc2240 stepper_y]
cs_pin: Y_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_1-Motor.cfg]
15 changes: 15 additions & 0 deletions config/hardware/axis/Y/TMC/TMC2240_1-Motor.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Y TMC2240 definition

[gcode_macro _USER_VARIABLES]
variable_y_driver: "tmc2240"
gcode:

[tmc2240 stepper_y]
cs_pin: Y_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
11 changes: 11 additions & 0 deletions config/hardware/axis/Y/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_y1]
cs_pin: Y1_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
16 changes: 1 addition & 15 deletions config/hardware/axis/Y/TMC/TMC5160.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
# Y TMC5160 definition

[gcode_macro _USER_VARIABLES]
variable_y_driver: "tmc5160"
gcode:

[tmc5160 stepper_y]
cs_pin: Y_TMCUART
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_1-Motor.cfg]
15 changes: 15 additions & 0 deletions config/hardware/axis/Y/TMC/TMC5160_1-Motor.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Y TMC5160 definition

[gcode_macro _USER_VARIABLES]
variable_y_driver: "tmc5160"
gcode:

[tmc5160 stepper_y]
cs_pin: Y_TMCUART
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
Loading

0 comments on commit e46365c

Please sign in to comment.