Debouncing
makerDebouncing is a technique used to eliminate the false signals generated by mechanical switches or signals due to the physical bounce of electronic contacts.
expanded
Debouncing applies to both hardware and software contexts wherein mechanical switches, like pushbuttons, may generate multiple undesired transient states when actuated. These transient states are caused by the physical bouncing of the metal contacts within the switch, leading to multiple rapid on/off signals. This is crucial in contexts such as digital electronics to ensure accurate and reliable signal processing, as ignoring debouncing could result in erroneous input readings.
examples
In a microcontroller input circuit, a capacitor of 0.1 µF is used in combination with a 10 kΩ resistor to implement a hardware debouncing circuit.
This is commonly used in microcontroller environments, such as Arduino projects, to ensure reliable button inputs.
Software debouncing implemented with a 20 ms delay period in a digital input reading loop.
Typically employed in embedded systems where button state is checked at regular intervals, such as in digital interface boards.