"filament_switch_sensor" debounced with timeout

Basic Information:

Printer Model: Anycubic Mega S
MCU / Printerboard: Trigorilla 0.0.2

Describe your issue:

I enabled filament_switch_sensor on MCU pin and get some false positiv during printing. Is there a parameter to set a timeout like a debounce? I did not find such parameter in the reference. I am new to klipper, perhaps there can be set something on the PIN?

For testing…

[filament_switch_sensor RunoutSensor]
pause_on_runout: False
runout_gcode:
{action_respond_info(“RUNOUT: Toolhead Filament runout”)}
insert_gcode:
{action_respond_info(“RUNOUT: Toolhead Filament inserted”)}
switch_pin: ^!PD2

Cheers,
Nils

It needs a pull-up or pull-down to clean up the signal when inactive.

It is the OEM connection/sensor from Anycubic, is it necessary there also? Before Klipper I hat it connected to PI GPIO with a pulldown. I hoped Anycubic considered this during development…

1 Like

Event delay or pause_delay:

[filament_switch_sensor RunoutSensor0]
switch_pin: PC3                                      ; !PC3 Ektruder T0, !PB10 Extruder T1
event_delay: 1
pause_delay: 0.5
pause_on_runout: false
runout_gcode: Runout

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.