[BDsensor] # Don't use aliases for the board pins sda_pin : PD1 scl_pin : PD0 #scl_pin : MKS_THR:gpio20 # example of connecting to CAN module like MKS THR42 #sda_pin : MKS_THR:gpio11 #scl_pin : host:gpio17 # example of connecting to GPIO on RaspberryPi #sda_pin : host:gpio27 # This speed is only for the z probe speed while doing z_tilt. not for the homing speed speed : 3 # This is the time period (speed)for the communication between mcu and bdsensor, that means lower value the higher communication speed. delay : 20 # you can set it 10 if the BDsensor version is >=1.2 # This value will be ingnored if nozzlecollision is enabled z_offset : 0 # within -0.6 to 0.6mm x_offset : 0 y_offset : 20.0 no_stop_probe: # fast probe that the toolhead will not stop at the probe point,disable it by commenting out. # it will stop the z axis if it measure the distance is <=1.2mm while homing z to avoid crash into the bed. and then set the z value to the actual read distance value. # it will not raise nozzle 1.2mm position_endstop : 1.2 # the triggered position, recommend value is 1~2.8 ## The Sensor is attached to the board where the Z stepper are attached, too. collision_homing : 0 # set it 1 to enable homing with nozzle collision sensing. collision_calibrate : 0 # set it 1 to enable auto calibrate BDsensor with nozzle collision sensing. QGL_Tilt_Probe : 1 # set 1 to enable probe up and down when do quad_gantry_level #2. If I donĀ“t use the Auto Calibration ... Do I need to set an Z offset so that the first layer can be printed without the nozzle touching the bed directly? #Or is it position_endstop? #### the only difference is that it will home z first with nozzle touching to find the 0 position if collision_calibrate:1 #If I set second-homing-speed to high (> 1.5) my stealtburner starts to bend because the head stops to late. #### this depends on the mount height and the material of the bed plate, #https://github.com/markniu/Bed_Distance_sensor/issues/91#issuecomment-1966365247 # https://github.com/markniu/Bed_Distance_sensor/wiki/Z-move-or-not-automatically_Z_Tilt_QGL [gcode_macro QUAD_GANTRY_LEVEL] rename_existing: _QUAD_GANTRY_LEVEL description: gcode: #run z tilt with z move up and down at first BDSENSOR_SET QGL_TILT_PROBE=1 #set this 1 to enable z axis up and down BDSENSOR_SET COLLISION_HOMING=0 _QUAD_GANTRY_LEVEL horizontal_move_z=6 retry_tolerance=1 G28 Z0 #run z tilt with no z move up and down BDSENSOR_SET QGL_TILT_PROBE=0 #set this 0 to disable z axis up and down while probe _QUAD_GANTRY_LEVEL horizontal_move_z=1 retry_tolerance=0.04 #BDSENSOR_SET COLLISION_HOMING=1 #optional G28 Z0 # https://github.com/markniu/Bed_Distance_sensor/wiki/Homing-with-contactless-and-contact-probing-together [gcode_macro G28] rename_existing: G990028 gcode: {% if rawparams|length == 0 %} { action_respond_info("homing all") } G990028 X Y ## Homing with contactless probe with the homing_speed in [stepper_z] BDSENSOR_SET COLLISION_HOMING=0 G990028 Z ## Homing with contact probe with the second_homing_speed in [stepper_z] BDSENSOR_SET COLLISION_HOMING=1 G990028 Z {% else %} {% if 'x' in rawparams or 'X' in rawparams %} { action_respond_info("homing x") } G990028 X {% endif %} {% if 'y' in rawparams or 'Y' in rawparams %} { action_respond_info("homing y") } G990028 Y {% endif %} {% if 'z' in rawparams or 'Z' in rawparams %} { action_respond_info("homing z contactless") } ## Homing with contactless probe with the homing_speed in [stepper_z] BDSENSOR_SET COLLISION_HOMING=0 G990028 Z { action_respond_info("homing z collision") } ## Homing with contact probe with the second_homing_speed in [stepper_z] BDSENSOR_SET COLLISION_HOMING=1 G990028 Z {% endif %} {% endif %}