Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 566

When a mechanical switch closes it's contacts typically do not close "cleanly" and tend to bounce or chatter. This rapidly switching signal could be misread in certain situations so it is usual to attempt to reduce this bouncing to ensure a clean switch detection. the danger is that if the switch is not de-bounced you can detect multiple events from one opening or closing. Can be accomplished using analog circuits or digital circuits.

12 votes

Debouncing buttons

There are lots (and lots) of different ways to debounce buttons. Whether you do it in software or hardware is going to depend on your project requirements and switch type. … Here are some links to different methods: http://www.ganssle.com/debouncing.htm http://hackaday.com/2010/11/09/debounce-code-one-post-to-rule-them-all/ …
Toby Jaffey's user avatar
  • 28.9k