Klipper Configuration
ALPS Example Configuration Files
- Reference Configuration Using Mainboard UART Port (PA9, PA10)
- Using BL-Touch Port
- Using Limit Switch Port
- Using the mainboard's
UART (PA9, PA10)port - Reference configuration
[output_pin _probe_ready]pin: PA9 #En # Enable pinshutdown_value: 0value:0[probe]pin: ^PA10 #out # Probe pinx_offset: 0 # X-axis - Sensor offset relative to the nozzley_offset: 0 # Y-axis - Sensor offset relative to the nozzlez_offset:0 # Z-axis - Sensor offset relative to the nozzlespeed: 8 # Leveling speedsamples: 2 # Number of samplessamples_result: median # Sampling method (default: median)sample_retract_dist: 2 # Leveling retraction distancesamples_tolerance: 0.05 # Sampling tolerance (Note: too small a value may increase the number of samples)samples_tolerance_retries: 3 # Number of retries for exceeding toleranceactivate_gcode:G4 P500SET_PIN PIN=_probe_ready VALUE=1deactivate_gcode:SET_PIN PIN=_probe_ready VALUE=0
- Reference configuration using the
BL-Touchport - Other mainboards are configured similarly
[output_pin _probe_ready]pin: SHT36:gpio24shutdown_value: 0value:0[probe]pin: ^SHT36:gpio22x_offset: 0 # X-axis - Sensor offset relative to the nozzley_offset: 0 # Y-axis - Sensor offset relative to the nozzlez_offset:0 # Z-axis - Sensor offset relative to the nozzlespeed: 8 # Leveling speedsamples: 2 # Number of samplessamples_result: median # Sampling method (default: median)sample_retract_dist: 2 # Leveling retraction distancesamples_tolerance: 0.05 # Sampling tolerance (Note: too small a value may increase the number of samples)samples_tolerance_retries: 3 # Number of retries for exceeding toleranceactivate_gcode:G4 P500SET_PIN PIN=_probe_ready VALUE=1deactivate_gcode:SET_PIN PIN=_probe_ready VALUE=0
- Reference configuration using the limit switch port
- Other mainboards are configured similarly
[output_pin _probe_ready]pin: SHT36:gpio20shutdown_value: 0value:0[probe]pin: ^SHT36:gpio16x_offset: 0 # X-axis - Sensor offset relative to the nozzley_offset: 0 # Y-axis - Sensor offset relative to the nozzlez_offset:0 # Z-axis - Sensor offset relative to the nozzlespeed: 8 # Leveling speedsamples: 2 # Number of samplessamples_result: median # Sampling method (default: median)sample_retract_dist: 2 # Leveling retraction distancesamples_tolerance: 0.05 # Sampling tolerance (Note: too small a value may increase the number of samples)samples_tolerance_retries: 3 # Number of retries for exceeding toleranceactivate_gcode:G4 P500SET_PIN PIN=_probe_ready VALUE=1deactivate_gcode:SET_PIN PIN=_probe_ready VALUE=0
Homing Reference Configuration
The following is the recommended configuration file content. Please adjust it according to your actual needs:
Tip
- If you need to use the ALPS pressure module as the Z limit switch, refer to the configuration below.
[stepper_z]
endstop_pin: probe:z_virtual_endstop
# position_endstop: -0.5
Tip
- ALPS Pressure Module Reference Configuration
[homing_override]
axes: xyz
set_position_z: 10
gcode:
{% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}
{% set e_target = printer.extruder.target %} # Save current temperature
{% set fan_speed = printer.fan.speed %} # Save current fan speed
{% if home_all or 'X' in params %}
G28 X
{% endif %}
{% if home_all or 'Y' in params %}
G28 Y
{% endif %}
{% if home_all or 'Z' in params %}
G0 X{printer.toolhead.axis_maximum.x / 2} Y{printer.toolhead.axis_maximum.y / 2} F6000
{% if e_target >= 150 or printer.extruder.temperature >= 150 %}
M106 S255 # Turn on the fan
M109 S150 # Ensure homing Z at 150°C
{% endif %}
M106 S0 # Turn off the fan
G91
G1 Z5 F2000 # Prevent the nozzle from being too close to the bed; lift it in advance
G90
# If using eddy current plus pressure sensor simultaneously, uncomment the following lines
#SET_PIN PIN=_probe_ready VALUE=1
G28 Z
#SET_PIN PIN=_probe_ready VALUE=0
G1 Z10 F2000
M109 S{e_target} # Restore temperature
M106 S{fan_speed} # Restore fan speed
{% endif %}
Loading...