and 10mf capacitor
Have you considered adding a software debounce ?
I drew what I call 'standard', sorry if not very clean drawing, and yes, I made a mistake, 10uF for sure!
QuoteHave you considered adding a software debounce ?It is a lot more tricky on an interrupt pin, because the delay is in the ISR which is never a good thing.
I was wondering whether a simple state machine could be embedded inside the isr to provide a form of software debounce nonetheless...
I drew what I call 'standard',
The existing 10uF is being shorted into the switch each time it closes creating a tiny spark, which may eventually erode the contacts if the switch is small.