Klipper Configuration
ALPS Sample Configuration Files
- Reference configuration using the mainboard UART port (PA9, PA10)
- Using BL-Touch port
- Using Limit Switch port
- Use the mainboard
UART(PA9, PA10)
port - Reference configuration
[output_pin _probe_ready]
pin: PA9 #En #Enable pin
shutdown_value: 0
value:0
[probe]
pin: ^PA10 #out #Probe pin
x_offset: 0 # X-axis - Sensor offset relative to nozzle
y_offset: 0 # Y-axis - Sensor offset relative to nozzle
z_offset:0 # Z-axis - Sensor offset relative to nozzle
speed: 8 # Leveling speed
samples: 2 # Number of samples
samples_result: median # Sampling method (default: median)
sample_retract_dist: 2 # Leveling retraction distance
samples_tolerance: 0.05 # Sampling tolerance (note: a very small value may cause an increase in samples taken)
samples_tolerance_retries: 3 # Tolerance exceeded retry attempts
activate_gcode:
G4 P500
SET_PIN PIN=_probe_ready VALUE=1
deactivate_gcode:
SET_PIN PIN=_probe_ready VALUE=0
- Reference configuration for using
BL-Touch
port - The same applies for other mainboards
[output_pin _probe_ready]
pin: SHT36:gpio24
shutdown_value: 0
value:0
[probe]
pin: ^SHT36:gpio22
x_offset: 0 # X-axis - Sensor offset relative to nozzle
y_offset: 0 # Y-axis - Sensor offset relative to nozzle
z_offset:0 # Z-axis - Sensor offset relative to nozzle
speed: 8 # Leveling speed
samples: 2 # Number of samples
samples_result: median # Sampling method (default: median)
sample_retract_dist: 2 # Leveling retraction distance
samples_tolerance: 0.05 # Sampling tolerance (note: a very small value may cause an increase in samples taken)
samples_tolerance_retries: 3 # Tolerance exceeded retry attempts
activate_gcode:
G4 P500
SET_PIN PIN=_probe_ready VALUE=1
deactivate_gcode:
SET_PIN PIN=_probe_ready VALUE=0
- Reference configuration for using limit switch port
- The same applies for other mainboards
[output_pin _probe_ready]
pin: SHT36:gpio20
shutdown_value: 0
value:0
[probe]
pin: ^SHT36:gpio16
x_offset: 0 # X-axis - Sensor offset relative to nozzle
y_offset: 0 # Y-axis - Sensor offset relative to nozzle
z_offset:0 # Z-axis - Sensor offset relative to nozzle
speed: 8 # Leveling speed
samples: 2 # Number of samples
samples_result: median # Sampling method (default: median)
sample_retract_dist: 2 # Leveling retraction distance
samples_tolerance: 0.05 # Sampling tolerance (note: a very small value may cause an increase in samples taken)
samples_tolerance_retries: 3 # Tolerance exceeded retry attempts
activate_gcode:
G4 P500
SET_PIN PIN=_probe_ready VALUE=1
deactivate_gcode:
SET_PIN PIN=_probe_ready VALUE=0
Homing Reference Configuration
Below is the recommended configuration file content; please adjust according to your actual requirements:
tip
- If you need to use the ALPS pressure module as a Z-axis limit switch, please 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 fan
M109 S150 # Ensure Z homing at 150 degrees
{% endif %}
M106 S0 # Turn off fan
G91
G1 Z5 F2000 # Prevent nozzle from being too close to the heatbed, pull away in advance
G90
# Uncomment the line below if using eddy and pressure sensor together
#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...