Files
klipper-macros/macros/print/nozzle_guard.cfg
T
mangavalkandClaude Opus 5.5 dae8afac20 Move bdpressure_check.py and bdp_guard.py to the bd_pressure repo
Both now live in the fork https://github.com/MangaValk/bd_pressure
(klipper/, branch main, upstream PR markniu/bd_pressure#13), installed by
its klipper/install.sh and its own Moonraker update_manager entry. The fork's
bdpressure_check.py also reads the v2 firmware diagnostics. bdp_touch.py
stays here. Docs and comments point to the bd_pressure repo.

install.sh only links the files it has, so after this update it no longer
overwrites the bd_pressure links. Run ~/bd_pressure/klipper/install.sh
before updating, or the two links are left dangling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:52:36 +01:00

36 lines
1.3 KiB
INI

# Nozzle collision guard: bd_pressure watches the nozzle force during moves
# that must not touch anything (needs bdp_guard.py from the bd_pressure repo,
# klipper/, and its load-check firmware). See klipper/load_check/README.md there.
#
# mode: stop shuts Klipper down on a touch; log only measures and reports
# each phase (console and klippy.log, "bdp_guard:"). A phase can override it
# with _GUARD_ON MODE=log (the brush does).
# Measured 2026-10-18: peaks 1-8 in all phases except the brush (47); a
# light finger push on the cold nozzle gives 41.
[bdp_guard]
sensor: bd_pa
mode: stop
threshold: 30
samples: 3
interval: 0.02
# M400 first: BDP_GUARD_ARM/DISARM act at once, not in the move queue, so
# without it the guard would watch moves that are still queued (contact
# homing, extrusion) or stop watching before the armed moves ran.
[gcode_macro _GUARD_ON]
description: Arm the nozzle guard for PHASE=<name> [MODE=log|stop] after the queued moves (nothing without [bdp_guard])
gcode:
{% if 'bdp_guard' in printer %}
M400
BDP_GUARD_ARM PHASE={params.PHASE|default('armed')} {('MODE=' ~ params.MODE) if 'MODE' in params else ''}
{% endif %}
[gcode_macro _GUARD_OFF]
description: Disarm the nozzle guard after the queued moves (nothing without [bdp_guard])
gcode:
{% if 'bdp_guard' in printer %}
M400
BDP_GUARD_DISARM
{% endif %}