All posts

Building the Wren Device

There is a small screen on my desk with a cat in a wizard hat on it. It shows the time, the weather, and how much of my Claude usage is left. I built it with Claude from a Raspberry Pi 3B+, the 5-inch Raspberry Pi Touch Display 2, and a 3D-printed case. I called it Otto while building it. Now it’s the Wren device, named like my assistant. Wren isn’t really an acronym, but I like “Writes, Remembers, Explains, Notes.” It suits my new job in Knowledge Management, too.

Pixel art of a fluffy black and white cat in a wizard hat in a tower room with a fireplace. Across the top are the time, a usage meter at 72 percent, and the temperature.
Fern in the wizard’s tower. The screen pictures here come from the app’s own drawing code, with sample numbers.

The case

Claude designed the case in OpenSCAD, where you write a 3D model as code. The sizes started with the official drawings of the screen and the Pi, then came calipers on the real screen. There are four printed pieces: a front frame, a back shell, and two feet that tilt it back 15 degrees. There is no soldering. The larger screws go into hex nuts that slide into slots, and only the power cable leaves the box. I printed it in dark gray.

A 3D rendering of the case pulled apart: two feet, the back shell with vent slots, the Raspberry Pi, and the front frame holding the screen.
The model, pulled apart. It’s green here and dark gray on my desk.

The mistake that broke a screen

First came a thin test slice of the front frame, and the glass fit. The full frame was another story. The design had a screw post in each corner that hung over the glass by up to 2.8 mm. The test slice was too thin to include the posts. The screen broke when its glass was forced past them.

The fix cut the shape of the glass out of the posts. It also added one more print, a flat plastic copy of the glass. It goes into every new frame before a real screen does. If the copy catches on anything, the frame gets fixed.

Bugs that looked like something else

Early on, the screen stayed dark gray while the app reported a steady 20 frames a second and no errors. It started working after Claude installed a diagnostic tool, so it looked like a passing glitch. Removing the tool broke it again. The tool had brought two missing graphics libraries with it, and those were the real fix.

My power cable didn’t reach the outlet, so I added a USB extension. The Pi then reported low voltage and slowed from 1.4 GHz to 600 MHz. Without the extension, the problem went away. Moving the extra length to the wall side, with a regular extension cord, solved it.

Another time the Pi dropped off Wi-Fi because its network settings files were empty, most likely from losing power during a write. Now it checks those files at every start and restores them if needed. The screen also got a power button, so I can shut it down before I unplug it.

From knight to cats

The character started as a simple drawing made in code. Next was a pixel knight whose armor showed my usage. Now it’s our three cats as wizards: Fern, Finn, and Frank. I made the art with Krea 2 Turbo, an image model that runs on my Framework desktop. Every 20 to 40 minutes, the cat on screen turns into another one in a puff of smoke. They wander, hop when you tap them, and nap a lot.

The sky follows the real sun, weather, and moon phase. Rain was the hard part. The weather service missed light rain that was falling outside, so the app now checks radar too. There’s also a jack-o’-lantern for Halloween.

Pixel art of a tabby cat in a wizard hat on a grassy hill, with a bench, a fence, and a castle in the distance.
Finn on the hill, another of the scenes.

More than a clock

Swiping up or down opens pages for my Framework, my Folding@home progress, and a Minecraft server. I can hold a button there to pause folding or restart the server. Tapping the clock opens a brightness slider.

The Pi runs one small Python app that draws straight to the screen, with no desktop or browser. My Framework gets the usage numbers and sends only those to the Pi, so my Claude login never goes on the device. I can also see and tap the screen from a dashboard on my Tailnet, which is handy when I’m working on it from my phone.

What it took

The parts list comes to about $100 before tax and shipping, not counting the Pi or a second screen. It was running on my desk about ten days after I ordered parts.

tl;dr Summarized by AI

Zach built the Wren device with Claude: a desk display made from a Raspberry Pi 3B+, a 5-inch touch screen, and a 3D-printed case. It shows the time, the weather, and his remaining Claude usage, with his three cats as pixel-art wizards. A flaw in the first case design led to a broken screen, and a plastic copy of the glass now tests each new frame. Other fixes covered two missing graphics libraries, a USB extension that starved the Pi of power, and empty Wi-Fi settings files. The parts list is about $100, not counting the Pi or a second screen.