23 points surprisetalk 2 days ago 7 comments
dead_hn_theory 1 hour ago | parent
unsnap_biceps 41 minutes ago | parent
gotfork 5 minutes ago | parent
pmg 18 minutes ago | parent
The content is pretty good but I think they missed the target audience pretty badly with that title and cover. Something like “Applied Circuits: A Practical Guide to How Circuits Really Work” with a cover in the style of the circuit diagrams[1] would make me more interested.
[1] https://nostarch.com/download/samples/secret-life-of-circuit...
tejtm 47 minutes ago | parent
seventytwo 19 minutes ago | parent
cantrevealname 6 minutes ago | parent
If you pry open a typical switch, you’ll probably find that its internals are quite complex. Inside, there might be a small spring-loaded roller that travels over a tiny hump or an intricately shaped metal leaf that “pops” when pressed firmly enough. The purpose of these mechanisms is to keep the switch firmly in place until sufficient force is applied, at which point it snaps immediately into the new position. This nonlinear behavior provides satisfying tactile feedback, reduces sensitivity to vibration and other accidental inputs, and prevents the switch from resting in any state other than “fully off” or “fully on.” The flip side of this approach is that once the mechanism gives in, things happen quickly: The contacts are pulled apart or slammed together at a considerable speed. Because metal is elastic, this motion produces some vibration that manifests as electrical glitches lasting from tens of microseconds to a few milliseconds. The effect is known as switch bounce.
I know about switch bounce but I've never seen it explained so clearly. Usually electronics books will say "mechanical switches will bounce before settling" and will then describe a circuit or algorithm to deal with it. What's always missing is a plain English discussion of the why and how.