diff --git a/macros/homing.cfg b/macros/homing.cfg index 42bae7b..f206f74 100644 --- a/macros/homing.cfg +++ b/macros/homing.cfg @@ -15,8 +15,8 @@ variable_homing_current: 0.49 variable_start_retract: 15 gcode: # Always use consistent run_current on A/B steppers during sensorless homing - {% set RUN_CURRENT_X = printer.configfile.settings['tmc2240 stepper_x'].run_current|float %} - {% set RUN_CURRENT_Y = printer.configfile.settings['tmc2240 stepper_y'].run_current|float %} + {% set RUN_CURRENT_X = printer.configfile.settings['tmc5160 stepper_x'].run_current|float %} + {% set RUN_CURRENT_Y = printer.configfile.settings['tmc5160 stepper_y'].run_current|float %} SET_TMC_CURRENT STEPPER=stepper_x CURRENT={homing_current} SET_TMC_CURRENT STEPPER=stepper_y CURRENT={homing_current} @@ -44,8 +44,8 @@ variable_homing_current: 0.49 variable_start_retract: 15 gcode: # Set current for sensorless homing - {% set RUN_CURRENT_X = printer.configfile.settings['tmc2240 stepper_x'].run_current|float %} - {% set RUN_CURRENT_Y = printer.configfile.settings['tmc2240 stepper_y'].run_current|float %} + {% set RUN_CURRENT_X = printer.configfile.settings['tmc5160 stepper_x'].run_current|float %} + {% set RUN_CURRENT_Y = printer.configfile.settings['tmc5160 stepper_y'].run_current|float %} SET_TMC_CURRENT STEPPER=stepper_x CURRENT={homing_current} SET_TMC_CURRENT STEPPER=stepper_y CURRENT={homing_current} #SET_TMC_FIELD FIELD=SGT STEPPER=stepper_x VALUE=1 diff --git a/octopus_pro_1.1.cfg b/octopus_pro_1.1.cfg index 2581293..b2410a4 100644 --- a/octopus_pro_1.1.cfg +++ b/octopus_pro_1.1.cfg @@ -25,15 +25,15 @@ enable_pin: !PF14 step_pin: PF13 dir_pin: PF12 microsteps: 128 -endstop_pin: tmc2240_stepper_x:virtual_endstop +endstop_pin: tmc5160_stepper_x:virtual_endstop -[tmc2240 stepper_x] +[tmc5160 stepper_x] interpolate: True cs_pin: PC4 spi_software_sclk_pin: PA5 spi_software_mosi_pin: PA7 spi_software_miso_pin: PA6 -diag0_pin: ^!PG6 +diag1_pin: ^!PG6 driver_SGT: 2 #1-3 # -64 is most sensitive value, 63 is least sensitive run_current: 1.25 #1.25 stealthchop_threshold: 0 @@ -45,15 +45,15 @@ enable_pin: !PG5 step_pin: PF11 dir_pin: PG3 microsteps: 128 -endstop_pin: tmc2240_stepper_y:virtual_endstop +endstop_pin: tmc5160_stepper_y:virtual_endstop -[tmc2240 stepper_y] +[tmc5160 stepper_y] interpolate: True cs_pin: PC6 spi_software_sclk_pin: PA5 spi_software_mosi_pin: PA7 spi_software_miso_pin: PA6 -diag0_pin: ^!PG10 +diag1_pin: ^!PG10 driver_SGT: 2 #2-3 #range is -64 to +63 run_current: 1.25 #1.25 stealthchop_threshold: 0