Claude and I rewired a 20 year old amp, and made the best AirPlay amp available
I just had a ton of fun building a custom multi-zone, 945 W smart amp… from a 20 year old receiver in my basement that was never designed to connect to anything.
Step 1 Turn my amp into the more expensive model… with a 2 mm wire
I have a Denon AVR-888, a basic receiver from 2007. No serial port, no Wi-Fi, no smart controls. The same year Denon sold the AVR-2308CI, a nearly identical model that added a serial port for fancy home automation, for more money. My cheap 22 year old self went for the discount model, obviously.
Claude dug in, and sure enough, it's on page 198 of the service manual: both models run the same CPU with the same firmware. One resistor tells the CPU which model it is. On the 888, that resistor turns the serial port off.
After some high-stress soldering of a 2 mm wire across a tiny resistor, my amp thinks it's the higher end model. All of the 2308CI features are unlocked.
Step 2 Add the missing data port
The CPU can now talk serial, but there's still no port on the back. The 888 skips the serial chip and the DB-9 connector.
I don't really want a serial port anyway. I want USB. So I had Claude trace where the 2308CI's serial port connects, back to the CPU pins. I had to help out here: my eyes are still better than Claude's, for now. It took several rounds of higher resolution scans of the board drawings, and tracing wire jumpers on the other side of the board.
In the process we found an empty 10-pin JST header wired to the same CPU pins. Jackpot: an easy place to connect, no soldering to CPU pins.
Claude picked a parts list from Amazon: a USB cable with an FT232RL serial-to-USB chip, and a pack of JST connectors. They showed up the next day.
Three wires (ground, TX, RX), I turn the volume knob, and the amp starts talking.
Step 3 Build the software stack, and add more hardware
Would I write 20k lines of code to make my home stereo slightly more usable? No. Will I make Claude do it? Absolutely. And with ridiculous overkill.
- AirPlay 2 via shairport-sync, through a USB DAC. When music starts, the amp turns on and switches to the right input. When I'm done, it goes to standby. I can play from Siri, my Mac or my iPhone.
- Real volume control. The AirPlay volume sets the amp's own volume over serial, to the half dB. The iPhone's volume buttons control the stereo instantly.
- A smart plug that watches the turntable. When the turntable powers on, a smart plug detects the power draw, then the amp turns on and switches to Phono. Turn it off and it goes back to AirPlay.
- Matter volume buttons next to my favourite chairs.
- Coming soon: a way to play Apple Music's lossless and hi-res audio, for better than CD quality.
Claude wrote a mock amp for offline testing, and a test plan that involved me standing at the amp for 15 minutes confirming it did what the logs said. Then it deployed everything to my home server, in its own container on Proxmox.
I got impatient and had Claude build a whole first version on an IR blaster while we waited for the parts. It worked, but slowly (about 1 dB per second). Serial made it instant.
Voila: a 945 W, multi-room, multi-zone, hi-fi AirPlay receiver. Volume changes land in about 40 ms. I can tune and upgrade it any time. Total cost: $25.
It's better than anything on the market
My first instinct was to buy, not build. I demoed some amps. Nothing was great.
Every option means getting your software from a company that isn't known for software quality, and rarely ships updates. A new Denon doesn't make Zone 2 its own AirPlay target. On a Yamaha, the iPhone volume buttons don't work in Zone 2. Three Sonos Amps would have cost over $3,000 and their software quality is slipping.
I trust the open source community to keep AirPlay on Linux working much more than I trust an OTA update from Yamaha, Marantz or Denon.
I used AI, and I learned an insane amount
A common refrain is that AI makes folks dumber. That may be true if you farm out all your thinking and never try anything new. But on this project I learned a ton:
- Reading circuit diagrams, and tracing jumper wires on two-sided boards
- Multimeter usage: I was an amateur before, now I'm an avid amateur
- Reading pinout tables and diagrams
- Serial programming: I hadn't touched it since university
- The risks of working on mains powered hardware, and how to stay safe
- How to solder teeny tiny things
- Passing USB devices into Linux LXC containers
- Some MQTT and Home Assistant lessons
- Tuning an AV receiver's sound settings for music
I simply couldn't have done this without AI, from both a time and a knowledge point of view. With AI, it was an afternoon project (once the wires showed up).
Use AI for something ridiculous. It's fun.