Shop by category
Shop all componentsTiming, filters & signals
The slow RC edge should go into a Schmitt-trigger input (a 74HC14, or a pin with hysteresis) so it switches cleanly once. In software, ignoring changes for 20 to 50 ms after the first one does the same job without parts.
t = −R × C × ln(1 − Vth ÷ VCC)For 0.6 × VCC: t ≈ 0.92 × R × C10 kΩ and 1 µF give τ = 10 ms. An Uno pin reads high at 0.6 × VCC, which the capacitor reaches after 9.2 ms, about twice a typical 5 ms bounce.
When a button closes, its metal contacts bounce for a few milliseconds and the input sees a burst of on-off pulses. A microcontroller is fast enough to count every one of them as a separate press.
A resistor and capacitor smooth the burst into one slow edge. The input changes once the capacitor voltage crosses the logic threshold, so R × C sets the delay. Make the delay longer than the bounce, but short enough that the button still feels instant.
Not usually. Software debounce is free and reliable for buttons read by polling. Use RC debounce for interrupt pins, counters and logic chips that cannot ignore bounces.
A ceramic capacitor from 100 nF to 1 µF with a 10 kΩ pull-up suits most push buttons.
The RC edge rises slowly, and an ordinary input can flicker while it passes the threshold. A Schmitt trigger switches once at one level and back at a lower one.
t = −R × C × ln(1 − Vth ÷ VCC); For 0.6 × VCC: t ≈ 0.92 × R × C.
10 kΩ and 1 µF give τ = 10 ms. An Uno pin reads high at 0.6 × VCC, which the capacitor reaches after 9.2 ms, about twice a typical 5 ms bounce.
Geekobot builds that use it include One-button stopwatch, How long can you hold your breath? (timer only), Lightning and thunder timer and Coin toss counter. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators