Quickdraw Probe
This commit is contained in:
parent
b9bab2059f
commit
55f7fd8409
6 changed files with 151 additions and 23 deletions
|
@ -6,14 +6,17 @@ gcode:
|
|||
{% set DWELL = params.DWELL|default(300)|int %}
|
||||
{% set X = 200 %}
|
||||
|
||||
G28
|
||||
SET_VELOCITY_LIMIT ACCEL=5000 ACCEL_TO_DECEL=5000
|
||||
M104 S{hotendTemp|float*0.75} # set extruder pre warm temp
|
||||
M140 S{bedTemp} # set bed temp to warm while starting up
|
||||
G28 # home after setting temps
|
||||
M140 S{bedTemp} # set & wait for bed temp
|
||||
M117 Waiting for temperatures...
|
||||
GO_TO_BUCKET
|
||||
M190 S{bedTemp} # Wait for bed to come to temperature
|
||||
M117 Waiting for thermal expansion...
|
||||
HEATSOAK DWELL={DWELL} # Dwelling
|
||||
BED_MESH_CALIBRATE
|
||||
GO_TO_BUCKET
|
||||
M109 S{hotendTemp} # Set extruder to printing temperature
|
||||
CLEAN_NOZZLE
|
||||
G90
|
||||
|
@ -27,6 +30,7 @@ gcode:
|
|||
M106 S0 # Part fan off
|
||||
TURN_OFF_HEATERS
|
||||
GO_TO_BUCKET
|
||||
BED_MESH_CLEAR
|
||||
|
||||
[gcode_macro HEATSOAK]
|
||||
gcode:
|
||||
|
|
68
printer.cfg
68
printer.cfg
|
@ -10,6 +10,7 @@
|
|||
[include calibration_macros.cfg]
|
||||
[include purge_bucket.cfg]
|
||||
[include timelapse.cfg]
|
||||
[include sensorless.cfg]
|
||||
|
||||
[pause_resume]
|
||||
[display_status]
|
||||
|
@ -18,11 +19,11 @@ path: ~/gcode_files
|
|||
|
||||
[printer]
|
||||
kinematics: corexy
|
||||
max_velocity: 1000
|
||||
max_accel: 15000
|
||||
max_accel_to_decel: 15000
|
||||
max_velocity: 100
|
||||
max_accel: 5000
|
||||
max_accel_to_decel: 5000
|
||||
max_z_velocity: 80
|
||||
max_z_accel: 500
|
||||
max_z_accel: 1000
|
||||
square_corner_velocity: 8
|
||||
|
||||
[mcu]
|
||||
|
@ -47,19 +48,60 @@ screw2: 12,300
|
|||
screw3: 312,300
|
||||
screw4: 312,0
|
||||
|
||||
[safe_z_home]
|
||||
home_xy_position: 50, 331
|
||||
speed: 500.0
|
||||
z_hop: 10
|
||||
z_hop_speed: 30
|
||||
[screws_tilt_adjust]
|
||||
screw1: 0, 0
|
||||
screw1_name: front left screw
|
||||
screw2: 294, 0
|
||||
screw2_name: front right screw
|
||||
screw3: 294, 239
|
||||
screw3_name: rear right screw
|
||||
screw4: 0, 239
|
||||
screw4_name: rear left screw
|
||||
horizontal_move_z: 20
|
||||
speed: 500
|
||||
screw_thread: CCW-M3
|
||||
|
||||
[firmware_retraction]
|
||||
retract_length: 0.3
|
||||
retract_speed: 80
|
||||
unretract_speed: 80
|
||||
|
||||
[dockable_probe]
|
||||
pin: PF7 # your probe pin goes here
|
||||
x_offset: 26 # offset for microswitch x direction off nozzle
|
||||
y_offset: 55 # offset for microswitch y direction off nozzle
|
||||
#z_offset: 5.644 # offset for microswitch in z height
|
||||
samples: 1
|
||||
sample_retract_dist: 3 # this is so the machine has time for the switch to reset properly, especially with a higher retract speed
|
||||
samples_result: median
|
||||
samples_tolerance: 0.04
|
||||
samples_tolerance_retries: 3
|
||||
speed: 15 # do not go higher than 10mm/s, you will destroy the switch
|
||||
lift_speed: 20
|
||||
|
||||
dock_position: 322,317, 25 #you need to set these on your own
|
||||
safe_z_position: 165,165 #used the center of the bed for this
|
||||
approach_position: 290,317, 25 #you need to set these on your own
|
||||
detach_position: 322,280 #you need to set these on your own
|
||||
attach_speed: 30
|
||||
detach_speed: 30
|
||||
travel_speed: 500
|
||||
check_open_attach: True #checks to see if the probe is attached before moving the toolhead, if not retries to pick up the probe
|
||||
dock_fixed_z: True # k series printers use a dock fixed in the z axis, this was off a K2
|
||||
dock_retries: 3
|
||||
allow_delayed_detach: False
|
||||
|
||||
[bed_mesh]
|
||||
speed: 500
|
||||
horizontal_move_z: 10
|
||||
mesh_min: 26, 66
|
||||
mesh_max: 320, 305
|
||||
probe_count: 6, 6
|
||||
|
||||
|
||||
[input_shaper]
|
||||
shaper_type_x = mzv
|
||||
shaper_freq_x = 79.6 # accel=18700
|
||||
shaper_type_y = mzv
|
||||
shaper_freq_y = 70.0 # accel=14400
|
||||
shaper_type_x = zv
|
||||
shaper_freq_x = 79.4 # accel=62700
|
||||
shaper_type_y = zv
|
||||
shaper_freq_y = 58.2 # accel=13200
|
||||
|
||||
|
|
83
sensorless.cfg
Normal file
83
sensorless.cfg
Normal file
|
@ -0,0 +1,83 @@
|
|||
[gcode_macro SENSORLESS_HOME_X]
|
||||
gcode:
|
||||
# Do not change -> if so do sensorless tuning again
|
||||
{% set HOME_CUR = 0.700 %}
|
||||
# End
|
||||
|
||||
{% set driver_config = printer.configfile.settings['tmc2209 stepper_x'] %}
|
||||
{% set RUN_CUR = driver_config.run_current %}
|
||||
{action_respond_info("Sensorless home x")}
|
||||
# Set current for sensorless homing
|
||||
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CUR}
|
||||
#SET_TMC_CURRENT STEPPER=stepper_x1 CURRENT={HOME_CUR} # AWD
|
||||
# Pause to ensure driver stall flag is clear
|
||||
G4 P2000
|
||||
# Home
|
||||
G28 x0
|
||||
# Move away
|
||||
G90
|
||||
G1 x20 F1200
|
||||
# Set current during print
|
||||
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CUR}
|
||||
#SET_TMC_CURRENT STEPPER=stepper_x1 CURRENT={RUN_CUR} # AWD
|
||||
|
||||
[gcode_macro SENSORLESS_HOME_Y]
|
||||
gcode:
|
||||
# Do not change -> if so do sensorless tuning again
|
||||
{% set HOME_CUR = 0.700 %}
|
||||
# End
|
||||
|
||||
{% set driver_config = printer.configfile.settings['tmc2209 stepper_y'] %}
|
||||
{% set RUN_CUR = driver_config.run_current %}
|
||||
{action_respond_info("Sensorless home Y")}
|
||||
# Set current for sensorless homing
|
||||
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
|
||||
# Home
|
||||
G28 Y0
|
||||
# Move away
|
||||
G91
|
||||
G1 Y-10 F1200
|
||||
G90
|
||||
# Set current during print
|
||||
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CUR}
|
||||
#SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={RUN_CUR} # AWD
|
||||
|
||||
[homing_override]
|
||||
axes: xyz
|
||||
set_position_y: 316
|
||||
set_position_z: -1.8
|
||||
|
||||
gcode:
|
||||
# Parameters
|
||||
{% set Y = -20 %} # Avoid dock
|
||||
{% set Z = 20 %}
|
||||
|
||||
SET_VELOCITY_LIMIT ACCEL=500 ACCEL_TO_DECEL=500 VELOCITY=100
|
||||
G90
|
||||
G1 Z{Z}
|
||||
G91
|
||||
G1 Y{Y}
|
||||
G90
|
||||
|
||||
{% 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 %}
|
||||
SENSORLESS_HOME_Y
|
||||
{% endif %}
|
||||
|
||||
{% if params.Z is defined or home_all %}
|
||||
{action_respond_info("Doing G28 Z0")}
|
||||
# You can do your logic for safe z here
|
||||
G28 Z0
|
||||
G1 Z{Z}
|
||||
G91
|
||||
{% endif %}
|
||||
|
||||
SET_VELOCITY_LIMIT VELOCITY=1000 ACCEL=15000 ACCEL_TO_DECEL=15000
|
|
@ -1,11 +1,11 @@
|
|||
#LDO 48mm 1.8 42STH48-2004AC - 1.4Ohm 3mH
|
||||
[tmc2209 stepper_x]
|
||||
uart_pin: PC4
|
||||
run_current: 1.8
|
||||
run_current: 2.0
|
||||
sense_resistor: 0.110
|
||||
stealthchop_threshold: 0
|
||||
diag_pin: ^PG6 # Set to MCU pin connected to TMC DIAG pin
|
||||
driver_SGTHRS: 50 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_SGTHRS: 30 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_TBL: 1
|
||||
driver_TOFF: 3
|
||||
driver_HSTRT: 1
|
||||
|
@ -14,11 +14,11 @@ driver_HEND: 3
|
|||
#LDO 48mm 1.8 42STH48-2004AC - 1.4Ohm 3mH
|
||||
[tmc2209 stepper_y]
|
||||
uart_pin: PD11
|
||||
run_current: 1.8
|
||||
run_current: 2.0
|
||||
sense_resistor: 0.110
|
||||
stealthchop_threshold: 0
|
||||
diag_pin: ^PG9 # Set to MCU pin connected to TMC DIAG pin
|
||||
driver_SGTHRS: 50 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_SGTHRS: 30 # 255 is most sensitive value, 0 is least sensitive
|
||||
driver_TBL: 1
|
||||
driver_TOFF: 3
|
||||
driver_HSTRT: 1
|
||||
|
|
|
@ -37,8 +37,8 @@ enable_pin: !PG5
|
|||
microsteps: 16
|
||||
rotation_distance: 4
|
||||
endstop_pin: PG10
|
||||
position_endstop: -1.1
|
||||
position_min: -1.1
|
||||
position_endstop: -2.460
|
||||
position_min: -2.5
|
||||
position_max: 400
|
||||
full_steps_per_rotation: 200
|
||||
homing_retract_dist: 5.0
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
[tmc2209 stepper_z]
|
||||
interpolate: false
|
||||
uart_pin: PC6
|
||||
run_current: 0.8
|
||||
hold_current: 0.8
|
||||
run_current: 1.0
|
||||
sense_resistor: 0.110
|
||||
stealthchop_threshold: 0
|
||||
driver_TBL: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue