cd /news/developer-tools/floppy-led · home topics developer-tools article
[ARTICLE · art-88854] src=bennuttall.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Floppy LED

Ben Nuttall, a developer, built a Raspberry Pi project that uses colored floppy disks to trigger matching LEDs via a USB floppy drive, after initially failing to get udev events working during the first COVID lockdown. The project, detailed on GitHub at github.com/bennuttall/floppy-led, uses a udev monitor in Python and gpiozero to read a text file from the disk and light the corresponding LED, with Claude AI helping to solve the media-change detection issue via udisks2 polling.

read2 min views1 publishedAug 8, 2026
Floppy LED
Image: Bennuttall (auto-discovered)

During the first COVID lockdown, stuck at home, bored, I had a silly idea: could I use the insertion of a floppy disk as a trigger to control something from a Raspberry Pi? I bought a sleek USB floppy drive and a brand new 10-pack of disks.

Although I managed to mount the floppy and read files from it, I struggled to get udev events working and quite quickly gave up. The floppy drive and disks have lived in a drawer ever since, but my intention to one day make this silly dream a reality never wavered.

Some six years later, with a Raspberry Pi and a HAT out on the desk fresh from some gpiozero hacking

(see [last week's post](/blog/2026/07/gpiozero-flow/)), I decided it was time to try something
whacky with floppy disks. And I had no excuse this time, because I had [Claude](https://claude.ai/)

on hand to help if I hit any blockers.

This is what I came up with:

Since I had a HAT with traffic lights on it, I thought it would be fun to have differently coloured floppy disks light up a matching LED - so I wrote a file containing "red", "yellow" or "green" to each of three disks, and labelled them with a coloured sticker to match.

A udev monitor in Python detects the floppy drive event, reads the text file to determine the colour, and (using gpiozero, obviously) lights up the appropriate LED.

Claude figured out the part I'd got stuck on last time:

No native media-change signalling. USB floppy bridges don't tell Linux when a disk is swapped, so detection relies on udisks2's periodic polling of removable drives (it re-probes every couple of seconds and fires a fresh change uevent when the state changes).

See the instructions and code on GitHub: github.com/bennuttall/floppy-led

── more in #developer-tools 4 stories · sorted by recency
── more on @ben nuttall 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/floppy-led] indexed:0 read:2min 2026-08-08 ·