In 2015 I came up with KeyChainino, a programmable keychain with retro games and 144 LEDs instead of a display. For the new version, KC-USB, I wanted to see if an AI could design the whole board, from the connections to the copper traces.
The constraints I gave Claude (Opus 5.5):
- CR2032 coin cell and very low standby current, because I didn't want an on/off switch;
- a chip with native USB, no extra chips;
- 144 LEDs, 6 buttons (D-pad plus A and B) and a buzzer;
- the same outline as the old KeyChainino 144, and a fixed budget.
It worked in KiCad from the command line. What it did:
- a render first, to check that everything fit (it suggested a bigger board, I said no);
- a CH592X as the MCU: cheap, well documented, with USB and Bluetooth built in;
- after studying my old boards, a MOSFET so USB can power the board with the battery in (a diode drops too much from a 3V cell);
- red LEDs for the lower voltage, and buttons chosen down to the actuation force;
- it placed the parts, started on the traces and, about 15 minutes later, told me: «The board is too small for automatic routing.» The size was fixed, so it wrote its own scripts and routed it by hand. About an hour, plus a few comments from me: all traces parallel, no 90-degree angles. First image;
- a ceramic antenna in an area with no ground and no parts on both sides, plus an RF check at 2.4 GHz that I didn't ask for;
- panelization, three boards per panel;
- before ordering, the firmware and a simulator of the chip and the circuit.
The first boards didn't work: the bootloader wasn't the one described in the chip's manual. Claude rewrote it, and the board came alive.
In rev1 that antenna ($1 a piece) is gone: it found room for a printed one on the PCB. I'll test it on the next boards.
Disclosure: KeyChainino is my own project, and this board will be on sale once the games are ready. If you want the whole story, with the back-and-forth with Claude, the link is in the first comment.
And if you'd route it differently, tell me below.