BDP_TOUCH: one quick continuous press instead of small steps
Stepping down 0.005 mm at a time found no touch even 0.25 mm into the bed (peak 16): the sensor sets a new baseline by itself while the force looks steady, and the slow ramp looked steady. A quick press gave about 25 per 0.1 mm. BDP_TOUCH now lowers the nozzle in one drip-mode move (SPEED, default 0.3 mm/s) while a timer reads the force every few ms and stops the move at STOP; Z per reading comes from stepper_z's past position, the halt position is recovered like homing.py does. The threshold needs 3 readings in a row, and the curve is logged also when no touch was found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b16961dba3
commit
7761e8f803
3 files changed
+120
-51
No files matched your search
@@ -2,7 +2,7 @@
|
||||
# and the bd_pressure load-check firmware). See extras/bdp_touch.py.
|
||||
#
|
||||
# TOUCH_COMPARE [N=10] [X=175] [Y=175] [TEMP=150] [THRESHOLD=15] [STOP=80]
|
||||
# [STEP=0.005] [START=0.1]
|
||||
# [SPEED=0.3] [START=0.1]
|
||||
# Nozzle to TEMP (Beacon contact refuses above 180C), HOME (contact Z),
|
||||
# then N pairs at X/Y: one Beacon contact probe, one BDP_TOUCH starting
|
||||
# START mm above the Beacon result. Reports per method the mean, standard
|
||||
@@ -12,7 +12,7 @@
|
||||
# Nozzle heater off at the end.
|
||||
#
|
||||
# BDP_TOUCH alone: touch at the current X/Y from the current Z (home first,
|
||||
# start 0.1-0.2 mm above the bed).
|
||||
# start 0.1-0.2 mm above the bed). One quick press, see extras/bdp_touch.py.
|
||||
|
||||
[bdp_touch]
|
||||
sensor: bd_pa
|
||||
@@ -33,6 +33,6 @@ gcode:
|
||||
G90
|
||||
G1 X{x} Y{y} Z5 F6000
|
||||
M400
|
||||
_TOUCH_COMPARE N={params.N|default(10)|int} START={params.START|default(0.1)|float} THRESHOLD={params.THRESHOLD|default(15)|float} STOP={params.STOP|default(80)|float} STEP={params.STEP|default(0.005)|float}
|
||||
_TOUCH_COMPARE N={params.N|default(10)|int} START={params.START|default(0.1)|float} THRESHOLD={params.THRESHOLD|default(15)|float} STOP={params.STOP|default(80)|float} SPEED={params.SPEED|default(0.3)|float}
|
||||
M104 S0
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user