Electronic – debounce – capacitor short circuit

capacitordebounce

Often debouncing circuits are done like this :

schematic

simulate this circuit – Schematic created using CircuitLab

In this case, when switch is closed, C1 discharges in its internal series resistance, so discharge is very quick. If there is some rebounds and we suppose C1 internal resistance << R1, capacitor discharge time << capacitor charge time. Consequently, during rebounds when closing switch, response time will be very quick. I assume this configuration is useful when we a quick falling edge detection is required.

But, is this configuration safe for C1 lifetime?

Best Answer

Your switch will wear out before your capacitor. The contact resistance and ESR+ESL in the capacitor will limit the peak current.

Your average plastic or ceramic capacitor can handle high peak current but you are wearing the switch from the arcing with high peak current, which is unessesary.

Would this be ok in your application: enter image description here