Well, I understand the case. With the I/O expanders things are different.
A very good debouncer is desribed in the second part of the article you post. Really neat and ultra fast technique with very low MCU load.
https://hackaday.com/2015/12/10/embe...ttons-part-ii/
But amazing things can a capacitor do! In most cases, with relatively good switch, a series resistor from the switch to the input and a small increase in the capacitor, that is in parallel with the input to the ground, is enough. Used that many times and with rotary encoders too with great results.
The secret is to use that resistor R1 in the following design, to "isolate" a bit the switch from the capacitor.
Ioannis


Reply With Quote

Bookmarks