Eliminate mechanical contact bounce with deterministic RC time constants
Tactile pushbuttons and limit switches mechanically chatter for 2–10 ms after closure, triggering dozens of false external interrupts on fast microcontrollers. Choosing τ = R × C ≈ 10 ms (such as 10 kΩ + 1 µF) smooths contact chatter into a clean monotonic ramp.
Always feed a slow RC debounce edge into a Schmitt-trigger input (built into most STM32/AVR/RP2040 GPIOs, or an external 74HC14) to prevent multiple logic threshold crossings.
Formulas
τ = 10 kΩ × 1 µF = 10.0 ms1τ reaches 63.2% of V_DD (crosses CMOS V_IH)3τ = 30 ms (95.0%); 5τ = 50 ms (99.3%)
Worked example
A 10 kΩ + 1 µF debounce network has τ = 10 ms (f_c = 15.92 Hz), attenuating 200 Hz contact bounce pulses by −22.0 dB while still responding cleanly to human presses at up to 10 taps/sec.