On May 11, 2015, I gave a presentation on switch debouncing.
DeBounceDemo sketch (rename to .ino)
Some comments not in the slides…
- We had a discussion of switch terminology: SPST, SPDT, DPDT, momentary, …
- Switches (may) change behavior over their lifetime
- Do not develop your software with the least bouncy switches you can find. Rather, use the most bouncy so that you are not surprised later.
- Seeing the scope traces of bouncy switches is eye opening.