How To Debounce A Switch

How do I debounce a switch?#

This is a recipe for how to debounce an analog (hardware) switch.

Description#

When you flip a switch you change the state of something, either from Vcc (positive voltage, logic one) to ground (zero voltage, logic zero), or from ground (zero voltage, logic zero) to Vcc (positive voltage, logic one).

Sometimes this is used to turn on or off the power (like turn on or off the lights in a room), sometimes the state of the switch is sensed by a circuit and used to alter the state in a software program. A switch might be used on the bumper of a robot to tell if the robot has hit an obstacle.

How to Debounce a Switch#

Tags:  To Do
...


Tags:  Hardware, Recipe