5 ms·
It's neither of those terms. I'm not sure if anyone knows this word outside of web dev, but I would call that "debouncing", because all that effect does is igno
by overlisted 4y ago
It's neither of those terms. I'm not sure if anyone knows this word outside of web dev, but I would call that "debouncing", because all that effect does is ignore input states that haven't stuck for long enough. There's no latency, no lag and no "behind". Only a threshold.
- spacemanmatt 4y agoDebouncing is exactly hysteresis. We often implement it with a very poor digital method but the analog inspiration is a capacitor that must fill before current flows through a closed switch, effecting hysteresis.
- Karliss 4y agoDebouncing using capacitor+schmitt trigger(which even has hysteresis response graph drawn on top) is no doubts a hysteresis. But I wouldn't call all debouncing strategies a hysteresis. One (easy to implement in code) debouncing strategy is lockout - after the first input transition perform the output change immediately and then stop reading any new inputs for some time. This has the benefit of having no delay, but downside is that it amplifies random noise caused by other factors when the switch isn't moving.
- elromulous 4y agoFyi debouncing predates web development by many decades E.g. your keyboard almost certainly has debounce logic implemented on the microcontroller in it. And long before digital circuits existed, it was implemented with capacitors.