Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

De bouncing is solved in hw with right-sized capacitor. That's it....


You need schmitt trigger input to do it properly and most microcontrollers don't have it.


I really, really hate HW solution for something so easily solved in Software.


In reality you implement both. Basic noise filtering in hardware, plus rate limiting or something in software.

onClick event handlers in most GUI triggers on mouse button releases, for example.


I have almost never seen hardware debouncing. It's just way better done in software. Unless you have extremely specialized switched which require HW debouncing(???), please just do it in software.


Really? A button just coming from GPIO into a 10k to ground? Is CPU not going to randomly lock up?


There is no reason the CPU is going to lock up. Bounce is not random spurious triggers.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: