Morning Sloth: Gemma 4 on an Arduino UNO Q triages Gmail overnight and shows one LED face
- Hardware
- An Arduino UNO Q, which has a Qualcomm Linux side and an STM32 microcontroller joined by Arduino's Bridge
- Models & engines
- Gemma 4 E2B in llama.cpp, in a Docker container on the board's own CPU
- Key gotcha
- Gemma 4 E2B thinks by default and spent its whole answer budget reasoning, so every first answer came back empty; turning thinking off with --reasoning-budget 0 and enable_thinking: false fixed it.
What they built
While job hunting in Ireland, he kept email notifications on and lost mornings to the unlock that led to LinkedIn, Instagram and chats. Morning Sloth sits on his desk and makes the one decision that used to need the phone: is there anything in the inbox that needs me?
The board shows a sloth with three moods on its 13 by 8 LED matrix: asleep means nothing needs you, one eye open means someone you've written to replied or a deadline is close, and wide awake means something needs you today. From 9am to 1pm it also counts down to his bus from the live Transport for Ireland feed, and the matrix goes dark from 02:00 to 06:00.
It never changes the mailbox. The only traffic leaving the board is the read-only Gmail connection and, during bus hours, the public bus feed.
Setup
- An Arduino UNO Q, which has a Qualcomm Linux side and an STM32 microcontroller joined by Arduino's Bridge
- Gemma 4 E2B in llama.cpp, in a Docker container on the board's own CPU
- Python on the Linux side reading Gmail over read-only IMAP with a Gmail app password
- A free Transport for Ireland key for the GTFS-Realtime bus feed
- MIT-licensed repo with 40 tests
How it works
- The Linux side reads Gmail with IMAP EXAMINE and BODY.PEEK so it can never mark anything read or move it, and sends each new email's sender, subject and preview to Gemma one at a time.
- Gemma returns one short JSON level: needs_today, soon, fyi or noise.
- Code rules then apply on top: a bill sender reporting a failure, a carrier delivering today, or an event starting in N minutes is always needs_today, and anyone he has written to is at least soon. Rules can raise a level but never lower it, apart from one cap for Google's setup security alerts.
- The highest level among unread emails becomes a face, which the STM32 fetches over the Bridge and draws; reading the email on the phone sends the sloth back to sleep.
Results & numbers
- On 91 hand-labelled emails run on the board, Gemma 3 270M got 13% of wake-versus-quiet calls right, Gemma 3 1B 21%, and Gemma 4 E2B 86% at 34 seconds per email.
- On 46 held-out emails (42 scored), the full system made the right wake-or-sleep call 98% of the time with zero false wakes, and woke for all 3 emails that needed him that day.
- Ten emails overnight take about six minutes. On its first night it woke for exactly two things, a failed electricity top-up and a parcel out for delivery, and both were real.
Gotchas
- Gemma 4 E2B thinks by default and spent its whole answer budget reasoning, so every first answer came back empty; turning thinking off with --reasoning-budget 0 and enable_thinking: false fixed it.
- Gemma called both failed electricity top-ups, a delivering-today notice and a live webinar fyi or noise, which is why the code rules exist.
- GitHub's "Possible valid secrets detected" alert was first called noise; one extra prompt line about security problems with your own accounts fixed it.
- He hasn't seen an improvement in his sleep yet after a few nights, and says so.
“Gemma 4 E2B runs on the board's own CPU, so the mail never leaves the room.”— Muhammad Murtuza Hussain
Do it yourself
- Run a small model such as Gemma 4 E2B in llama.cpp on a low-power Linux board or mini PC, with thinking turned off.
- Read your mailbox over IMAP in read-only mode (EXAMINE and BODY.PEEK) using an app password stored on the device.
- Prompt the model with sender, subject and preview and ask for one level from a fixed list as JSON.
- Add code rules for the cases the model gets wrong in your own inbox, allowing them only to raise the level.
- Label a few dozen of your own emails, measure, then keep a separate held-out set to check the rules didn't just memorize the first batch.
- Show the highest unread level on a simple display such as an LED matrix.
Similar setups
A self-hosted llama.cpp endpoint on three 16 GB GPUs with presets.ini and Docker
Theo Dufort shares the Compose file and 60-line presets.ini behind his private OpenAI-compatible endpoint: a 27B coding model at 132K context and a 26B MoE chat model.
Link Séance: a local Gemma 3 writes grounded epitaphs for the dead links in your bookmarks
Abdul AmberNeel built a command-line tool that checks every link in a bookmarks file, finds the last living Wayback Machine snapshot of dead ones, and has a local Gemma 3 write a two-sentence epitaph only from what the archive kept.
Memoria: local Whisper and Gemma 3 4B turn a family voice memo into a keepsake
Jeffrey Turov built Memoria, an oral-history archivist that transcribes a family voice memo with Whisper and has Gemma 3 4B in llama.cpp pull out people, places, themes, verified quotes and follow-up questions, all on a local CPU.
Hob: an open-source desktop coworker that runs Gemma or gpt-oss locally with llama.cpp and works on your files
Christian at Frigade’s Show HN project Hob is a free MIT desktop app for Mac, Windows and Linux that picks an open-weight model for your hardware, runs it with llama.cpp, and can edit files, run sandboxed Python, search the web, and dictate — all on-device.