Gantry unrack, retune sensorless

This commit is contained in:
Kyle Brown 2022-07-14 22:06:46 -07:00
parent c7f4a7db51
commit 1ad32eabee
3 changed files with 18 additions and 13 deletions

View file

@ -20,7 +20,7 @@ max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
fan_speed: 0.4
fan_speed: 0.6
[controller_fan driver_fan]
## Controller Fan - FAN2 Connector

View file

@ -1,7 +1,7 @@
[gcode_macro SENSORLESS_HOME_X]
gcode:
# Do not change -> if so do sensorless tuning again
{% set HOME_CUR = 0.800 %}
{% set HOME_CUR = 0.750 %}
# End
{% set driver_config = printer.configfile.settings['tmc2209 stepper_x'] %}
@ -35,7 +35,7 @@ gcode:
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CUR}
#SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={HOME_CUR} # AWD
# Pause to ensure driver stall flag is clear
G4 P2000
G4 P2200
# Home
G28 Y0
# Move away
@ -59,24 +59,29 @@ gcode:
{% set home_all = params.X is not defined and params.Y is not defined and params.Z is not defined %}
{% if params.X is defined or home_all %}
SENSORLESS_HOME_X
{% endif %}
{% if params.Y is defined or home_all %}
# Double home. If not backed off, it can cause issues
SENSORLESS_HOME_Y
SENSORLESS_HOME_X
{% if "x" in printer.toolhead.homed_axes %}
G90
G1 x20
G91
{% else %}
SENSORLESS_HOME_X
{% endif %}
SENSORLESS_HOME_Y
{% else %}
{% if params.X is defined or home_all %}
SENSORLESS_HOME_X
{% endif %}
{% endif %}
{% if params.Z is defined or home_all %}
{action_respond_info("Doing G28 Z0")}
# You can do your logic for safe z here
G4 P2000
G4 P2200
G90
G1 x329 y246 F{1000*60}
G1 x329 y246 F{800*60}
G28 Z0
G1 Z{Z}
G91

View file

@ -21,7 +21,7 @@ run_current: 2
sense_resistor: 0.110
stealthchop_threshold: 0
diag_pin: ^PG6 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 20 # 255 is most sensitive value, 0 is least sensitive
driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitive
driver_TBL: 1
driver_TOFF: 3
driver_HSTRT: 1
@ -50,7 +50,7 @@ run_current: 2
sense_resistor: 0.110
stealthchop_threshold: 0
diag_pin: ^PG12 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 25 # 255 is most sensitive value, 0 is least sensitive
driver_SGTHRS: 90 # 255 is most sensitive value, 0 is least sensitive
driver_TBL: 1
driver_TOFF: 3
driver_HSTRT: 1