So how does a PS/2 keyboard interface work?
Ben Eater1 HN recommender · recommended in 1 month, 2021–2021
tutorial · intermediate · evergreen · 2021–2021 on HN
Ben Eater explains how the PS/2 keyboard interface works, covering its clocked serial protocol and scancodes. He builds up the hardware-level understanding needed to read keypresses.
HN commenters point to it as the clearest explanation of the PS/2 protocol, usually when keyboard interfaces come up.
Up next
15 mo on HNAT&T Archives: Similiarities of Wave Behavior (Bonus Edition)
AT&T Tech Channel
12 HN recommender · 2014–2026
12 mo on HN8-bit computer update
Ben Eater
14 HN recommender · 2017–2023
11 mo on HN“Hello, world” from scratch on a 6502 — Part 1
Ben Eater
11 HN recommender · 2019–2026
10 mo on HNFinding the Missing Memristor - R. Stanley Williams
The Qualcomm Institute
12 HN recommender · 2010–2024
10 mo on HN[LIVE] How to Achieve Proper Grounding - Rick Hartley - Expert Live Training (US)
Altium
9 HN recommender · 2021–2025
8 mo on HNI bought 1000 meters of wire to settle a physics debate
AlphaPhoenix
8 HN recommender · 2021–2026
6 mo on HNWhat your Differential Pairs Wish You Knew with Rick Hartley - AltiumLive Keynote
Altium
5 HN recommender · 2021–2026
7 mo on HNThe world's worst video card?
Ben Eater
8 HN recommender · 2019–2024
6 mo on HNThe Art of Making a Nixie Tube
Dalibor Farný
6 HN recommender · 2017–2026
6 mo on HNHow does a USB keyboard work?
Ben Eater
7 HN recommender · 2021–2025
5 mo on HNWatch electricity hit a fork in the road at half a billion frames per second
AlphaPhoenix
5 HN recommender · 2024–2026
6 mo on HNBlueHat IL 2019 - Andrew "bunnie" Huang - Supply Chain Security: "If I were a Nation State...”
Microsoft Israel R&D Center
6 HN recommender · 2019–2024
4 comments from Hacker News
There's a good video on how PS/2 works here: ▶ this video It's pretty straight-forward. There are also pre-made kits for digitizing typewriters if that interests you.
I'd imagine it would be very difficult, and would require a relatively powerful MCU. Ben Eater's made a few videos discussing how PS/2[0] and USB keyboards[1] work. USB's a vastly more complicated protocol compared to PS/2. [0] ▶ this video [1] link
think might be at end of this one < ▶ this video > though there's a few he's done recently on USB spec
Piggy-backing this comment to add some context for the OP video: This "USB device discovery" video is actually the latest in a series of videos where Ben Eater is building a simple 8-bit computer on breadboards. He hooked up a PS/2 keyboard as an input device, and then got sucked into a tangent of investigating and explaining keyboard protocols. - He investigates the PS/2 keyboard protocol: ▶ this video - Somebody on Patreon asked about USB keyboards having higher latency than PS/2, so he made a video about the basic USB protocol: link - He made the OP video about USB keyboards being limited to holding six keys at once.