This page (revision-1) was last changed on 2019-12-25 23:07 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
1 2019-12-25 23:07 1 KB Murray Altheim

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 added 34 lines
!! How do I debounce a switch?
This is a [recipe] for how to debounce an analog ([hardware]) [switch].
* __Author:__ [Murray]
!! Description
When you flip a [switch|Switches] 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
[{Tag ToDo}]
...
!! Links
* '' A Guide to Debouncing, or, How to Debounce a Contact in Two Easy Pages'', by Jack Ganssle
** [Part 1|http://www.ganssle.com/debouncing.htm] describes the problem of debouncing and gives emperical data.
** [Part 2|http://www.ganssle.com/debouncing-pt2.htm] shows, first, hardware solutions and then software debouncing code.
----
[{Tag Hardware Recipe}]