Skip to content

Instantly share code, notes, and snippets.

@utlandr
Last active October 9, 2024 09:20
Show Gist options
  • Save utlandr/c3dab6bbcca1fc19dfc402d81cfd75e4 to your computer and use it in GitHub Desktop.
Save utlandr/c3dab6bbcca1fc19dfc402d81cfd75e4 to your computer and use it in GitHub Desktop.
Klipper probe config for the BIQU Microprobe (V1/V2)
## --- BIQU Microprobe Klipper configuration ---
# Not much different from a standard probe config. The
# main difference compared to most probes is to disable
# deactivating the probe (PROBE_UP) after each sample
#
# You can either copy pasta this directly or import
# into your config.yml using [include microprobe.cfg]
#
# Note: if you are changing from a bltouch or one of its
# clones, remove/comment out the [bltouch] config!
# That also includes any auto generated config stored
# at the bottom by the PROBE_CALIBRATE command
#
# Note: the current control and sensor pin values are
# configured for the 'BTT SKR E3 mini V2' controller
# board. You may need to update these values depending
# on your controller board model.
#
# Update (2023-10-17): This config is configured for
# the V1 microprobe. V2 users must update the
# polarity of the sensor pin in the config to be
# pull-down (^!) not pull up (^)
[gcode_macro PROBE_DOWN]
gcode:
SET_PIN PIN=probe_enable VALUE=1
[gcode_macro PROBE_UP]
gcode:
SET_PIN PIN=probe_enable VALUE=0
[output_pin probe_enable]
pin: PA1 # Set to the control pin on your board
value: 0
[probe]
pin: ^PC14 # NOTE FOR V2 users: Set this to ^!PC14 to set the low level trigger
deactivate_on_each_sample: False
x_offset: -40
y_offset: -35
z_offset: 0 # Will be overridden when you do a PROBE_CALIBRATE
samples: 2
samples_tolerance: 0.05
samples_tolerance_retries: 3
activate_gcode:
PROBE_DOWN
G4 P500
deactivate_gcode:
PROBE_UP
@SlinkySlonkyOlivia
Copy link

@PaulStep61 You need to tab all the gcodes that you call.

gcode:
SET_PIN PIN=probe_enable VALUE=1

This does not work, it should rather be:

gcode:
    SET_PIN PIN=probe_enable VALUE=1

Otherwise klipper will see it as its own variable inside the config, rather than the gcode belonging to a variable.

@ma3oun
Copy link

ma3oun commented Jun 3, 2024

Important note for V2 users, especially those coming from the world of Marlin. The BTT SK3 Mini E3 V3 + Marlin usually requires the use of the Z_STOP connector on the board to be connected to the probe (thus removing the need for the physical Z endstop). However, this means that the probe pin would need to be set to ^!PC2 (and not ^!PC14) for the probe not to smash on the printbed.
In brief, here are the important parts of the configuration file:

[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_min: -2
#position_endstop: 0
position_max: 250

#...

# required for any probe, bltouch...Adjust the X,Y values to your printer. I use an Ender3-pro
[safe_z_home]
home_xy_position: 135,135
z_hop: 5

[gcode_macro PROBE_DOWN]
gcode:
    SET_PIN PIN=probe_enable VALUE=1

[gcode_macro PROBE_UP]
gcode:
    SET_PIN PIN=probe_enable VALUE=0

[output_pin probe_enable]
pin: PA1  # Set to the control pin on your board
value: 0

[probe]
pin: ^!PC2
deactivate_on_each_sample: False
#adjust offsets to fit your configuration
x_offset: 38
y_offset: -29.5
z_offset: 0
samples: 2
samples_tolerance: 0.05
samples_tolerance_retries: 3
activate_gcode:
    PROBE_DOWN
    G4 P500
deactivate_gcode:
    PROBE_UP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment