October 17, 2022
Description
I made a filament runout sensor. Using the genuine bowden retainer, i added a simple endstop switch with a smal barrel on the lever.
Needed:
PTFE-tube 4mm/2mm (cut it like shown in the picture)
Endstop switch
Bowden coupler (4mm inner diameter)
self cutting screws 2mm*10mm
###my code below###
Klipper:
Code: https://www.klipper3d.org/Config_Reference.html
[filament_switch_sensor my_sensor]
#pause_on_runout: True
# When set to True, a PAUSE will execute immediately after a runout
# is detected. Note that if pause_on_runout is False and the
# runout_gcode is omitted then runout detection is disabled. Default
# is True.
#runout_gcode:
# A list of G-Code commands to execute after a filament runout is
# detected. See docs/Command_Templates.md for G-Code format. If
# pause_on_runout is set to True this G-Code will run after the
# PAUSE is complete. The default is not to run any G-Code commands.
#insert_gcode:
# A list of G-Code commands to execute after a filament insert is
# detected. See docs/Command_Templates.md for G-Code format. The
# default is not to run any G-Code commands, which disables insert
# detection.
#event_delay: 3.0
# The minimum amount of time in seconds to delay between events.
# Events triggered during this time period will be silently
# ignored. The default is 3 seconds.
#pause_delay: 0.5
# The amount of time to delay, in seconds, between the pause command
# dispatch and execution of the runout_gcode. It may be useful to
# increase this delay if OctoPrint exhibits strange pause behavior.
# Default is 0.5 seconds.
#switch_pin:
# The pin on which the switch is connected. This parameter must be
# provided.
[filament_switch_sensor runout_sensor]
pause_on_runout: True
event_delay: 3.0
pause_delay: 0.5
switch_pin: !PG11 ###edit this one to your pinning!
License:
Creative Commons — Attribution — Noncommercial
7