The Keypad Gets a Case
Nov 25, 2026
The first session my keypad showed from inside its case doesn't exist. It's tab 4, "车库灯 garage-light", reporting that the garage light now comes on when the door opens. The story is borrowed, almost: three days earlier, a real session taught that light to come on when the door from the house opens, and flashed it over Wi-Fi. The keypad isn't connected to my real sessions yet, so it plays back made-up ones. But there it was, behind a white printed plate, next to a brushed metal knob.
Only the screen is wired so far. The white key with the microphone is printed.
Two days ago it was a breadboard and a render. The render was flawless; renders always are. Getting from it to this meant crossing the gap between a picture and a thing, and nearly every surprise this week lived in that gap. What closed it each time wasn't a better picture. It was something real to hold the picture against: a ruler, a sheet of paper, a test print, the actual screen.
On paper
The layout got settled before any plastic, on 1:1 paper templates. The knob moved more than anything else. It started in the top right corner, took the place of a key inside the grid, and settled to the right of the session keys. There it sat too close to the keys below, so it went up, and then right to balance that, and then it looked like it was drifting away. I tried 2 mm, then 4, 5 and 6, and each looked wrong in its own way. So I asked Claude to stop guessing and find the visual centre of weight of the whole key grid. The answer was 3.75 mm: an odd number to get back from a question about taste, but it looks right.
The knob picked up a job along the way. Turning it picks a session, pressing it jumps to the next one waiting for me, and holding it interrupts, which freed the Interrupt key. The bottom row is now Talk, Approve, Deny and a spare.
The screen was the first place the picture was wrong. On the drawing, the picture sits in the middle of the glass. With a ruler, it doesn't: there's 3 mm of border on one side and 8 on the other. So the whole screen shifts 2.5 mm to put the picture in the middle of the case. To check, I laid the paper template over the screen and asked for it to light up pure red. The red lined up with the window exactly.

The layers: the tray with the Pico, the LED tray, the switches, the top plate, the keycaps. The labels are placeholders.
In plastic
Paper is flat, and it can't tell you which way a part faces. The first printed top plate looked perfect until I turned it over: the screw bosses were on the wrong side. The export had flipped the part with a mirror instead of a rotation. On screen the two look the same. In your hand, one of them has its screw holes facing the ceiling.
Paper can't show you anything that moves, either. Under the double-width Talk key is a stabilizer, with a steel wire that swings as the key goes down, and the 3 mm plate left it nowhere to go. I photographed the plate from underneath and circled where the wire needed room. Not a thinner plate, just a channel for the wire, 1.8 mm deep and reaching 1.5 mm past the switch hole. That version is next in the printer's queue.
Once, the gap ran the other way and the render caught the model lying. A faint diagonal line showed up across the bottom tray where there was no edge: a sliver of zero thickness, left where two faces of the model met exactly. The tray was already printing, so Claude asked the printing session to read the print file for a skin across the opening. There wasn't one, and the print carried on.
The test piece wins
Nothing I could buy fits a double-width key here, so the Talk key is printed: white, with a black microphone inlaid flush. The first one was a little rough on top, so we tried harder, with thinner layers and an ironed top. It came out worse. The top wasn't smoother, and the cross-shaped socket underneath, the part that grips the switch, was rough.
The answer was already on my desk: a test piece from the day before, five sockets in five sizes, printed open side up, every one of them clean. So the key became two parts. A shell is printed upright, like the first try, and a small plate with three sockets is printed exactly like the test piece and snaps into the shell on four 0.75 mm bumps. The sockets are size three, the one that fit best. The best print of the week was the throwaway.
On the real screen
The screen's software had its own version of the gap. On the breadboard it showed sessions as eight tiles. In the case it's one session per page, with tabs along the top and a swipe between them, like a phone: up to twelve sessions, the ones waiting for me first, keys 1 to 6 always the first six. Commands are in a monospace font, so I can read exactly what I'm approving.
Some of my sessions have Chinese names, and the first Chinese font was, in the word I used at the time, ugly. Claude rendered the candidates as pictures and I chose from those, which brought the same lesson at a smaller scale: Noto Sans for the English text looked fine as a picture on my Mac and wrong on the panel, so English went back to what it was. Chinese is now Source Han Sans, 7,454 characters at two sizes, flattened to 1-bit because the Pico draws the screen from an 8-bit frame. Smoother letters will need a Pico 2, with twice the memory. I had to ask which Pico I have. It's the first one.
The one with no picture at all
One problem never showed up in any picture, because it only exists on the running chip. On the breadboard, the keypad froze twice: once after 77 minutes, once after less than two. The screen stuck, the keys went dead, and it ignored the Mac's command to restart. Free memory had sat flat at 90 KB the whole time, so it wasn't a leak. That night I gave up and unplugged it.
If a problem can only be caught on the real thing, the real thing has to keep notes. So the keypad now runs the chip's own watchdog. If the main loop goes four seconds without checking in, the chip restarts itself and reconnects to the Mac. Just before it does, it writes down which step was running and what I last pressed, in registers that survive the restart. The freeze hasn't happened since, which is either good news or a very patient bug.
Wire by wire
Inside, it's wires, with no circuit board of my own. Each of the ten switches gets its own wire to its own Pico pin, so it needs no diodes and no key matrix. The knob takes three more. The ten LEDs share a single data wire: each keeps its own colour and passes the rest down the line. Two parts come along from the breadboard:
- a 74AHCT125 chip on a scrap of perfboard, lifting the Pico's 3.3 V signal to what LEDs on 5 V want;
- a 100 µF capacitor beside the first LED, on a spot the LED tray marks with an engraved capacitor symbol.
The screen went in first. After flashing, it came up the right way round, in the right colours, and tapping a tab switched sessions. The keys, the knob and the lights are still dead. They come next, one at a time, the way the breadboard went.
Then the hooks, and the last gap closes: the one between made-up sessions and real ones. The garage light that isn't there can retire, and the keypad can start showing me the sessions I've actually been ignoring.
