Electronic – How to RC debounce toggle switch

debounceswitch-debouncing

I'm trying to understand if the following debounce circuit works. I want a logical HIGH when the switch is closed and I want to smooth over bounces by means of a low-pass filter.

When the switch is open, C13 charges up in time R23*C13 (1ms). When switch closes C13 discharges through R3 in same time. I now have proper debouncing, right?

Can I omit R23? Or will that momentarily short Vcc to GND?

enter image description here

Edit: updated schematic

Best Answer

The debouncing is not correct in this circuit. The capacitor is not doing anything.

When the switch is open the capacitor is charged to Vcc. When the switch closes, the capacitor will pull up the signal harder rather than slow down the signal like you would want.

You should move the capacitor to the base of the transistor to make it act as a debounce

Related Topic