Debouncing
A common problem when dealing with switches and electronics is how to handle the contact bouncing. When you press the switch, there will be due to the mechanical design of the switch, a short bouncing of the switch before it stabilizes. It depends on how you read of the switch but normally this will lead Läs mer…