The Device and the Problem

Long ago, my brother-in-law and I built pwnagotchi's. These are little network sniffing devices that use a raspberry pi, a battery and an e-ink display. We had fun with them, bonded over building them, competed for who could sniff the most packets, then threw them in a drawer never to be seen.

I, like many these days, have a bad habit of scrolling. This is not only bad for my mental health, but also filled with misinformation that is made to accommodate my views and keep my dopamine flowing. I also love to read but have become exhausted reading on my phones screen.

So my problems are dopamine addiction, device sitting in a drawer, and screens that make my eyes tired. I can solve all three of those by repurposing this device, resetting my dopamine receptors, and giving my eyes a break from the blue light emitting displays that I already stare at all day.

The Hardware

The hardware is WEAK, but will be good enough for something that's gathering dust. We have a raspberry pi 0 w (you read that right, not even the 0 2w) rocking a single 1GHz arm v6 core and 512mb or memory, a 32GB sd card, 2.13in e-ink display, and a piSugar 2 hat and battery. A fresh 3d printed case that will be revised in the future and a couple of screws.

Software

The first requirement is obviously to read common ebook formats. Epub and PDF primarily for my use case. Next I love having everything synchronized. I use many different devices so cross platform compatibility is a hard requirement for nearly everything I use. This has led me to use things like Nextcloud, Obsidian notes, and my reading app Koodo reader. Luckily, Koodo is compatible with the KoReader set of services and will be used for a progress synchronization server, that I self host locally on my homelab. All of this is wrapped up in a nice little python wrapper to bring it all together and display everything on our eink screen. A convenient WebUI has been built into the device for uploading and deleting books, setting up your KoSync credentials and URL, and setting up a cloud webdav connection to pull books from remote cloud storage. It has patches to associate hashed file names with the koodo database so when downloaded, I can view the name of the book instead of a random set of strings.

Honesty Corner

I've worked on this device for some time and am wanting to clear out projects (my wife will appreciate this too) so much of the progress that led to the device functioning was vibe coded, thank you Claude.

What I did do and struggle with

Getting anything to display on the screen. At the time and if I'm remembering correctly, the driver for this display is quite outdated. I scoured the internet, downloaded various packages, wrote some code, tested some code, looked for a new package. Most of this via SSH because I need to be on the device to test the display. This took a TON of time because of the limited hardware. Despite having a working driver, I think claude took the wheel after I handed it over. I had basic display working, folder population working in a limited use case and basic button capture from the pisugar to the raspberry pi for interaction.

How Does it Work?

Great! It is an awesome little companion for walking the dog and then inevitably reading at my desk when I get sucked into a book. The device itself has a cloud section to download books from the webdav source and links downloaded books to the homescreen for quick access and a settings corner for fonts, refresh rate, and shutdown.

20261021_083947

There are some downsides. The button interaction from the pisugar can be slow. This is likely from the performance of the pi. The SD card may be bad or the pi is just slow as it regularly takes up to 5 minutes to boot the device. If I'm going on a walk, this is something I have to think about before hand. Then the raspberry pi, any of them for that matter, doesn't support suspend to ram. So this thing never sleeps. The battery life ends up being around 6 hours when constantly running. An auto shutdown has been built in to prevent you from killing the device in one run but there isn't a long term sleep solution for the raspberry pi.

Conclusion

I enjoy using the device and plan to continue to do so until I commit to an e-reader or building an e-reader with a microcontroller instead of a Linux computer. Once I'm caught up on aged projects, less will be handed off to AI, but it's been an excellent tool to make up for lost time on dusty parts.