Tuesday, July 17, 2012

Why Capacitors Don’t Fix It

Why Capacitors Don’t Fix It:
Switch-Bounce-Black-Panel-Mount
Why Capacitors Don’t Fix It. It’s an debate as old as the desert sands – hardware or software debouncing? We are fans of software debouncing but old-schoolers like hardware. Here are some of the pitfalls of hardware debouncing. Ed writes -
As part of our discussion around those Hall effect switches, I cautioned our Larval Engineer that she can’t use capacitors to “smooth out” mechanical switch bounce, even though all of her cronies and (most likely) her profs will advocate doing exactly that. The subject also came up at the local hackerspace when she showed off her project, so I should explain why capacitors don’t solve the problem.
Check out our handy code with interrupt-based debouncing here!

No comments:

Post a Comment