What is Button Bouncing?
When you press a button in an electronic circuit, the signal should be either ON or OFF…
But in reality, the button causes rapid electrical noise for a few milliseconds — this is called Bouncing!
The result?
The microcontroller might think the button was pressed multiple times instead of just once!
The solution?
It’s called Debouncing, and there are two main methods:
Hardware: Using a resistor + capacitor
Software: Adding a small delay or using a software filter
Always use debouncing if you want accurate button readings in your projects.