HackerTube

How does a USB keyboard work?

Ben Eater7 HN recommenders · recommended in 6 months, 2021–2025
YouTube
tutorial · intermediate · evergreen · 2021–2025 on HN

Ben Eater explains how a USB keyboard communicates, covering the electrical interface, bit and packet encoding, packet contents, and a comparison with PS/2.

HN commenters recommend it as a clear, comprehensive explanation of USB signaling and keyboard polling.

12 comments from Hacker News

@ericbarrett2024-11 · in “Only buy a magnetic keyboard for gaming”

Among other things, the USB host polls the keyboard at a fixed rate. Fantastic breakdown if you have 30 minutes: ▶ this video

Strongly recommends View on HN
@jordibc2022-03 · in “The end of the nice GTK button”

About the USB keyboard, that may be true only for the cheapest keyboard you could find, but basically not applicable anymore nowadays. Rather than giving you the details, let me link to this video, which is awesome at explaining it and much more -- the USB vs PS/2 part starts here: ▶ this video

Strongly recommends View on HN
@lozenge2022-09 · in “Ask HN: How do I write a Linux driver for my 15 year old photo printer?”

Ben Eater has some videos showing the USB protocol on an oscilloscope. ▶ this video link And some videos on using chips and breadboards to meet protocols- link And a digital protocol too- link

Recommends View on HN
@jai_2022-06 · in “How to Make Rust Leak Memory (Also: How to Make It Stop)”

If you're interested, here's a really comprehensive video on how USB keyboards work which may answer your question: ▶ this video

Recommends View on HN
@throw0101a2021-11 · in “What is AT&T doing at 1111340002?”

> Embedded programming? Dealing with signals?! God forbid, man. "How does a USB keyboard work? by Ben Eater: * ▶ this video

Recommends View on HN