HackerTube

THE VIDEO SHELF · usb protocol

How does a USB keyboard work?

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 HN readers recommended it

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

This is a summary from the source dataset, not an endorsement by Hacker News or the video creator.

Video & recommendation details

Creator / channel
Ben Eater
Topic
usb protocol
Format
tutorial
Level
intermediate
HN recommenders in dataset
7
HN mentions in dataset
12
Recommendation years in dataset
2021–2025

These counts and years describe the included Hacker News records; they are not YouTube views or the video’s publication date.

From the original HN conversations

Excerpts from the recorded comments. Follow each source for the full comment and surrounding discussion.

  • 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 …

    jordibc on Hacker News · 2022-03
    In The end of the nice GTK button
  • Among other things, the USB host polls the keyboard at a fixed rate. Fantastic breakdown if you have 30 minutes: [VIDEO]

    ericbarrett on Hacker News · 2024-11
    In Only buy a magnetic keyboard for gaming
  • There’s a great video here that goes through all this - the gist is that USB keyboards specify what polling rate to use, 1000hz for the best ones, maybe 125hz for the cheaper ones. An interesting thing about ps/2 is that even though it doesn’t …

    wmwmwm on Hacker News · 2021-09
    In Keyboard Latency (2017)

Summaries, classifications and recommendation records are from the HackerTube source dataset. Read about this library and its limitations.