Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BLTouch support #450

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions config/hardware/probes/bltouch.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This probe type is for an BLTouch probe used directly as a virtual Z endstop rather than
# with an existing physical endstop. This configuration is common if you are running a
# Voron Switchwire or other "bed slinger" that does not have a fixed Z endstop at bed
# height.

[gcode_macro _USER_VARIABLES]
variable_probe_type_enabled: "bltouch"
variable_startprint_actions: "bed_soak", "extruder_preheating", "chamber_soak", "tilt_calib", "extruder_heating", "purge", "clean", "z_offset", "bedmesh", "primeline"
gcode:

# The BLTouch probe definition also includes the probe management and
# overides directly from here
[include ../../../macros/base/probing/generic_probe.cfg]

[bltouch]
sensor_pin: ^PROBE_INPUT
control_pin: SERVO_PIN
x_offset: 0.0
y_offset: 0.0
z_offset: 0
samples: 1
sample_retract_dist: 3.0
samples_result: median
samples_tolerance: 0.004
samples_tolerance_retries: 1

[stepper_z]
endstop_pin: probe:z_virtual_endstop
2 changes: 2 additions & 0 deletions macros/miscs/startup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ gcode:
{% if zcalib_plugin_enabled %}
{% if probe_type_enabled == "vorontap" %}
{ action_raise_error("Voron TAP Probe and Z calibration plugin cannot be used at the same time in Klippain!") }
{% elif probe_type_enabled == "bltouch" %}
{ action_raise_error("BLTouch Probe and Z calibration plugin cannot be used at the same time in Klippain!") }
{% elif probe_type_enabled == "inductive" %}
{ action_raise_error("Inductive probe and Z calibration plugin cannot be used at the same time in Klippain!") }
{% elif probe_type_enabled == "dockable_virtual" or probe_type_enabled == "inductive_virtual" %}
Expand Down
3 changes: 3 additions & 0 deletions user_templates/printer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@

## Beacon probe also used as virtual Z endstop. Do not forget to install the plugin and add the [beacon] section to make it work!
# [include config/hardware/probes/beacon_virtual.cfg]

## BLTouch probe also used as virtual Z endstop.
# [include config/hardware/probes/bltouch.cfg]
# ----------------------------------------------------------------------------------------


Expand Down