Go Down

Topic: When to use switch debounce? All switches? Or just PB switches? (Read 1 time) previous topic - next topic

Jiggy-Ninja

Generally speaking, debouncing is only necessary when you are interested in detecting the transition (the moment when a button gets pressed). If you are only interested in the level of the switch (whether it's on or off), you do not need to worry about debouncing it.
If you want a short resonse time, then don't use debounce.

Detection of the button press should start with the first actual contact.
If it bounces 100 times after that should be ignored by the code.
Leo..
That is literally a form a debouncing.
Hackaday: https://hackaday.io/MarkRD
Advanced C++ Techniques: https://forum.arduino.cc/index.php?topic=493075.0

ReverseEMF

Generally speaking, debouncing is only necessary when you are interested in detecting the transition (the moment when a button gets pressed). If you are only interested in the level of the switch (whether it's on or off), you do not need to worry about debouncing it.

That is literally a form a debouncing.
Yes, it's called Software Debounce.
"It's a big galaxy, Mr. Scott"

Please DON'T Private Message to me, what should be part of the Public Conversation -- especially if it's to correct a mistake, or contradict a statement!  Let it ALL hang out!!

Go Up