Projects

These are the projects I've been working on recently. The source for the open-source ones is on GitHub, where you'll also find how to build, install and use them.

Kitty Keeper

An Android app for keeping track of a shared kitty: the pot of money a group puts in for a trip, a shared house or a night out. It records who put in what and what was spent, splits the costs, and works out who owes whom at the end. Kitties can be shared between everyone’s phones, end-to-end encrypted. It’s coming soon to Google Play.

More about Kitty Keeper

Elite FIP Server

A Windows app for players of the game Elite Dangerous. It reads the game’s data as you play and feeds it to Matric, an app that turns a phone or tablet into a touch screen control panel, so the buttons show the current state of the ship, such as whether the landing gear or lights are on, and details of your current target. It can also show the game data on a dashboard in your browser, for example on a second screen or tablet.

Version 4 is a rewrite as a WinUI 3 app, available from the Microsoft Store.

Elite FIP Server on GitHub

Juggle OS

An operating system image that turns older Raspberry Pis, starting with the Pi 2, into appliances that need as little looking after as a Pico W. It’s a stripped-down Raspberry Pi OS with a read-only system, so pulling the power is harmless, and nothing on it updates or changes by itself. Juggle Flash, an app for Windows and Linux, downloads the latest release and writes it to an SD card with the Pi’s name, Wi-Fi and SSH key, so it comes up on the network ready to use, with no screen or keyboard needed; it asks for administrator rights only to write the card, and ejects it safely when it’s done. It keeps a list of your Pis, to update each one or start a new one from its settings, and there’s a command line, juggle, that does the same. Or write the image with any tool: a Pi with no settings starts its own Wi-Fi hotspot, and a setup page on a phone does the rest. If it later can’t reach its Wi-Fi for a few hours, say after a new router, it starts the hotspot again by itself for a while, and that can be turned off.

Updates go over the network into a second copy of the system. The Pi tries the new version once and keeps it only if it starts properly; if it doesn’t, or hangs, or the power goes on the way, it goes back to the version it had, by itself, and says why.

Each Pi runs one app, the way a Pico runs its firmware: plain Python with a web page, in its own repo, sent over the network with one command. The Pi restarts it if it stops, and an update that would stop it goes back too. An app can ask the Pi for a few things and nothing else: to install a new version of itself, on the same trial; to set the time zone; to restart; to change the Pi’s Wi-Fi, on trial too, so a mistyped password puts the old network back; and to rename the Pi or reset it to new, through setup mode. Since version 1.0, what an app can rely on is fixed: later 1.x versions only add to it, so an app made for 1.0 keeps running on them unchanged. Version 1.1 adds screens: on the official 7” Touch Display an app can draw on the whole screen, and the Pi turns its console, boot splash and touch screen together to match how the display is mounted. Version 1.2 lets screens sleep: after 5 minutes untouched a Pi’s screen goes dark, to save it from burn-in, and a touch, key or mouse wakes it. An app can put an HDMI screen to sleep and wake it, a screen only sleeps if something can wake it, and juggle wake wakes one over SSH. Juggle Hello is the example app, and the starting point for new ones, built on App Base (below).

Juggle OS was called ApplPi OS up to version 0.6.0; a Pi running ApplPi OS is set up again with Juggle OS.

Juggle OS on GitHub · Juggle Hello on GitHub

App Base

The code my devices share, written once: the web page and its settings, the JSON API, MQTT and Home Assistant, and a light model with modes, fades, alerts, groups of lights that follow each other, and a schedule. The same code runs in MicroPython on a Raspberry Pi Pico W, where it also looks after Wi-Fi, a setup hotspot, updates over Wi-Fi that go back by themselves if they fail, the clock and the watchdog, and in ordinary Python as a Juggle OS app on a Raspberry Pi, where it asks Juggle OS for those instead. So a product works the same on either, and a fix is made in one place. Juggle Hello and Pico Hello are the smallest products on it, one for each, and the starting points for new ones.

App Base on GitHub · Juggle Hello on GitHub · Pico Hello on GitHub

PlasmaStick Controller

MicroPython firmware for the Pimoroni Plasma Stick 2040 W, a Raspberry Pi Pico W based board that drives a strip of LED lights. The lights can show a single colour or a shade of white, follow the worldwide CheerLights colour, or play animations such as rainbows, fire and Christmas twinkles. You control them from a built-in web page, the button on the board, or Home Assistant over MQTT, and setting up Wi-Fi doesn’t involve editing any files. Since version 2.0 it’s built on App Base, which brings alerts, groups of lights that follow each other, a schedule, and changing Wi-Fi from the page.

PlasmaStick Controller on GitHub

Pico PIR

MicroPython firmware for a Raspberry Pi Pico W with a PIR motion sensor. It reports motion to Home Assistant over MQTT, and has a built-in web page showing its status, recent detections and settings. Since version 2.0 it’s built on App Base, like PlasmaStick Controller, which brings a schedule for turning sensing on and off and changing Wi-Fi from the page.

Pico PIR on GitHub

AmbiMote

Ambient lighting for PC monitors, in the style of Philips Ambilight, using Pimoroni Mote LED sticks. It reads the colours at the edges of each screen and lights the wall behind the monitors to match. The screen capture work is done on the graphics card, so it stays out of the way while gaming. It also works as a lamp, with white light, a single colour or effects, and can be controlled from a Windows tray app, keyboard shortcuts or the command line. It’s in early development.

AmbiMote on GitHub