How does a USB keyboard work?
What it is
Ben Eater explains how a USB keyboard communicates, covering the electrical interface, bit and packet encoding, packet contents, and a comparison with PS/2.
Why Hacker News recommends it
HN commenters recommend it as a clear, comprehensive explanation of USB signaling and keyboard polling.
- 7 people recommended it
- 6 different months
- 2 strong recommendations
- first 2021, last 2025
What HN commenters said
“this video, which is awesome at explaining it and much more”
Awesome explanation of USB vs PS/2
jordibc, 2022-03 · Strong recommendation · in “The end of the nice GTK button”
“Fantastic breakdown if you have 30 minutes”
Fantastic breakdown of USB polling
ericbarrett, 2024-11 · Strong recommendation · in “Only buy a magnetic keyboard for gaming”
“There’s a great video here that goes through all this”
Explains USB keyboard polling rates versus PS/2
wmwmwm, 2021-09 · Recommendation · in “Keyboard Latency (2017)”
“that video is a very pleasant and understandable explanation of the USB protocol”
Pleasant, understandable explanation of USB protocol
exporectomy, 2021-09 · Recommendation · in “Keyboard Latency (2017)”
“Suggested as intro to keyboard signalling”
throw0101a, 2021-11 · Recommendation · in “What is AT&T doing at 1111340002?”
“here's a really comprehensive video on how USB keyboards work”
Comprehensive video on how USB keyboards work
jai_, 2022-06 · Recommendation · in “How to Make Rust Leak Memory (Also: How to Make It Stop)”
“Ben Eater has some videos showing the USB protocol on an oscilloscope.”
Shows USB protocol on an oscilloscope
lozenge, 2022-09 · Recommendation · in “Ask HN: How do I write a Linux driver for my 15 year old photo printer?”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: usb, keyboards, ps/2, polling, ben eater, hardware
Also recommended by the same people
explainerHow the Fed's "Money Printer" Really WorksBen Felix · 2 HN recommenders · 2020–2024
explainerStroads are Ugly, Expensive, and Dangerous (and they're everywhere) [ST05]Not Just Bikes · 12 HN recommenders · 2021–2025
explainerWho Is Responsible For Climate Change? – Who Needs To Fix It?Kurzgesagt – In a Nutshell · 3 HN recommenders · 2021–2024
commentaryThis Video Is Sponsored By ███ VPNTom Scott · 9 HN recommenders · 2019–2026
explainerWhat People Get Wrong About Dense Urban LivingOh The Urbanity! · 4 HN recommenders · 2022–2024
lectureDistinguished Lecturer Series: Building Science - Adventures in Building ScienceBerkeley Lab · 2 HN recommenders · 2019–2021
explainerThese Stupid Trucks are Literally Killing UsNot Just Bikes · 11 HN recommenders · 2023–2026
explainerRenting vs. Buying a Home: The 5% RuleBen Felix · 6 HN recommenders · 2020–2026