Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    How does a USB keyboard work?

    Ben Eater

    7 HN recommenders · recommended in 11 months, 2021–2025

    YouTube

    34:15 · 3.8M views · Jun 5, 2021

    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.

    Hardware & ElectronicsElectronics & circuit designEmbedded systems & DIY electronicsComputer architecture & CPUs
    1. 33:07
      So how does a PS/2 keyboard interface work?Ben Eater570K views • 5 years ago
    2. 6:53
      8-bit computer updateBen Eater2.8M views • 10 years ago
    3. 11:23
      How a transistor worksBen Eater847K views • 11 years ago
    4. 27:25
      “Hello, world” from scratch on a 6502 — Part 1Ben Eater5.9M views • 7 years ago
    5. 32:47
      The world's worst video card?Ben Eater7.1M views • 7 years ago
    6. 27:52
      8-bit CPU control logic: Part 1Ben Eater1.5M views • 9 years ago
    7. 28:43
      Why build an entire computer on breadboards?Ben Eater3.4M views • 6 years ago
    8. 13:02
      Making logic gates from transistorsBen Eater3.1M views • 11 years ago
    9. 41:04
      Design Your Own Keyboard!Ben Vallack140K views • 4 years ago
    10. 27:55
      E-paper hacking: fastest possible refresh rateApplied Science582K views • 9 years ago
    11. 47:52
      Finding the Missing Memristor - R. Stanley WilliamsThe Qualcomm Institute133K views • 16 years ago
    12. 2:50:28
      (Sponsored) KiCad STM32 + USB + Buck Converter PCB Design and JLCPCB Assembly - Phil's Lab #11Phil’s Lab1.2M views • 6 years ago
    13. 1:40:06
      KiCad 6 STM32 PCB Design Full Tutorial - Phil's Lab #65Phil’s Lab990K views • 4 years ago
    14. 24:23
      World's worst video card? The exciting conclusionBen Eater3.2M views • 7 years ago
    15. 16:25
      Converting devices to USB Type-CDIY Perks8M views • 6 years ago
    16. 35:33
      How does Computer Memory Work? 💻🛠Branch Education5.5M views • 4 years ago
    17. 14:39
      How to power ANYTHING using USB-C Power Delivery and the ZY12PDN PD Trigger BoardKenneth Finnegan322K views • 6 years ago
    18. 17:15
      The Art of the Bodge: How I Made The Emoji KeyboardTom Scott3.5M views • 11 years ago
    19. 44:50
      My personal fight against the modern laptoplinux conf au 2017 - Hobart, Australia121K views • 9 years ago
    20. 2:48
      Series circuit - 3 LEDsHenryk Gasperowicz620K views • 14 years ago

    12 comments from Hacker News

    1. @jordibcMar 2022· 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 recommendsView on HN
    2. @ericbarrettNov 2024· 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 recommendsView on HN
    3. @wmwmwmSep 2021· in “Keyboard Latency (2017)”

      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 have to wait for the keyboard to poll it transmits data at much slower speed than USB (khz vs mhz) which somewhat offsets the advantage it gets from being interrupt driven this video edit: ah, sorry, I see someone's posted a link to this video already!

      RecommendsView on HN
    4. @exporectomySep 2021· in “Keyboard Latency (2017)”

      Apparently [1] PS/2 limited by a slower data rate than USB 2.0 which cancels out almost all the advantage of its lower initial latency to begin the transmission, making them both about equally capable in actual latency - at least in theory. [1] this video Even if this conclusion is wrong, that video is a very pleasant and understandable explanation of the USB protocol.

      RecommendsView on HN
    5. @lozengeSep 2022· 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]

      RecommendsView on HN