Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
guepe
on Sept 18, 2023
|
parent
|
context
|
favorite
| on:
How Jeff Geerling almost broke MrBeast's 1-100 vid...
De bouncing is solved in hw with right-sized capacitor. That's it....
ilyt
on Sept 18, 2023
|
next
[–]
You need schmitt trigger input to do it properly and most microcontrollers don't have it.
rowanG077
on Sept 18, 2023
|
prev
[–]
I really, really hate HW solution for something so easily solved in Software.
numpad0
on Sept 18, 2023
|
parent
[–]
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.
rowanG077
on Sept 18, 2023
|
root
|
parent
[–]
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.
numpad0
on Sept 18, 2023
|
root
|
parent
[–]
Really? A button just coming from GPIO into a 10k to ground? Is CPU not going to randomly lock up?
rowanG077
on Sept 19, 2023
|
root
|
parent
[–]
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: