First home

This commit is contained in:
Kyle Brown 2023-06-23 08:59:03 +00:00
parent c83d605f97
commit ad83330206
4 changed files with 32 additions and 21 deletions

View file

@ -53,3 +53,11 @@ enable_auto_refresh: True
type: web
repo: meteyou/mainsail
path: ~/mainsail
[update_manager z_calibration]
type: git_repo
path: /home/biqu/klipper_z_calibration
origin: https://github.com/protoloft/klipper_z_calibration.git
managed_services: klipper

View file

@ -29,6 +29,7 @@ square_corner_velocity: 5.0
[include steppers.cfg]
[include fans.cfg]
[include basic_macros.cfg]
[include sensorless.cfg]
[virtual_sdcard]
path: ~/printer_data/gcodes
@ -145,3 +146,12 @@ aliases:
#gcode_id:
# See the "heater_generic" section for the definition of this
# parameter.
#[z_calibration]
#nozzle_xy_position: <X,Y position for clicking the nozzle on the z endstop - not needed if [safe_z_home] is used>
#switch_xy_offsets: <X,Y offsets from the nozzle position for clicking the probe's switch body on the z endstop>
#bed_xy_position: <X,Y position for probing the bed, for instance the center point - not needed if mesh with relative_reference_index is used>
#switch_offset: <offset of the switch trigger (read the Switch Offset section!)>
#start_gcode: <macro name for attaching the probe>
#before_switch_gcode: <macro name for attaching the probe AFTER probing the nozzle>
#end_gcode: <macro name for docking the probe>

View file

@ -1,6 +1,6 @@
[gcode_macro SENSORLESS_HOME_X]
gcode:
{% set HOME_CUR = 0.700 %}
{% set HOME_CUR = 0.300 %}
{% set driver_config = printer.configfile.settings['tmc2209 stepper_x'] %}
{% set RUN_CUR = driver_config.run_current %}
# Set current for sensorless homing
@ -20,7 +20,7 @@ gcode:
[gcode_macro SENSORLESS_HOME_Y]
gcode:
{% set HOME_CUR = 0.700 %}
{% set HOME_CUR = 0.300 %}
{% set driver_config = printer.configfile.settings['tmc2209 stepper_y'] %}
{% set RUN_CUR = driver_config.run_current %}
# Set current for sensorless homing
@ -38,16 +38,6 @@ gcode:
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CUR}
G90
[gcode_macro HOME]
gcode:
G90
# Home Y
SENSORLESS_HOME_Y
# Home X
SENSORLESS_HOME_X
# Home Z
G28 Z0
[homing_override]
axes: xyz
@ -66,8 +56,9 @@ gcode:
{% if home_all or 'Z' in params %}
G90 # Absolute positioning
# park above bed center
G1 X{(printer.toolhead.axis_maximum.x/2)-30} Y{(printer.toolhead.axis_maximum.y/2)+2.4}
G1 X111 Y187
G28 Z
G91
G1 Z10
{% endif %}
G90

View file

@ -13,10 +13,11 @@ rotation_distance: 32
microsteps: 32
full_steps_per_rotation:200
position_min: 0
position_endstop: 180
position_max: 180
homing_positive_dir: true
position_endstop: 0
position_max: 172
homing_positive_dir: false
homing_speed: 50 #Max 100
homing_retract_dist: 0 # Must set 0 for sensorless
[tmc2209 stepper_x]
uart_pin: PD0
@ -25,7 +26,7 @@ run_current: 0.6
stealthchop_threshold: 0
diag_pin: ^PC1
driver_SGTHRS: 100 # 255 is most sensitive value, 0 is least sensitive
driver_SGTHRS: 110 # 255 is most sensitive value, 0 is least sensitive
## A Stepper - Right
## Connected to MOTOR_6
@ -38,10 +39,11 @@ rotation_distance: 32
microsteps: 32
full_steps_per_rotation:200
position_min: 0
position_endstop: 190
position_max: 190
position_endstop: 188
position_max: 188
homing_positive_dir: true
homing_speed: 50 #Max 100
homing_retract_dist: 0 # Must set 0 for sensorless
[tmc2209 stepper_y]
uart_pin: PF8
@ -50,7 +52,7 @@ run_current: 0.6
stealthchop_threshold: 0
diag_pin: ^PC2
driver_SGTHRS: 100 # 255 is most sensitive value, 0 is least sensitive
driver_SGTHRS: 125 # 255 is most sensitive value, 0 is least sensitive
#####################################################################
@ -66,7 +68,7 @@ enable_pin: !PC11
rotation_distance: 32
gear_ratio: 64:16
microsteps: 32
endstop_pin: !PF6
endstop_pin: PC13
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed