vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
396 stars 201 forks source link

Add min. time a sensor has to be active to trigger to avoid EMC-trouble #420

Open NilsRo opened 3 years ago

NilsRo commented 3 years ago

Is your feature request related to a problem? Please describe. I do my best to avoid EMC issues with my filament-runout sensor on my Mega S but it triggers still accidentality once in 6 month. So not that bad like my first try to use the Mega S filament-runout sensor which stops every second print. :-)

Describe the solution you'd like I need a min. time that the sensor has to be active to trigger an action. This will avoid EMC triggers.

Describe alternatives you've considered Debounce should not help as it will debounce "after" fire the trigger (as I understood electronics)

Perhaps this can be used to have 2 function on a button in general like short pressed/long pressed to execute different functions.

Additional context Connected the filament runout-sensor of Anycubic Mega S to RPIO of my OctoPI. Still added capacitors, resistors and shielded wires but it still triggers sometimes which will cause an unwanted pause.