Skip to content

03Project

Pixel Voice Assistant

A touchscreen desk companion that brings voice interaction, live lab context and a glanceable interface to Afterlab.

The CrowPanel on a desk at dusk, lit by a warm lamp: Pixel stands on the home screen beside the lab conditions.
Pixel on the CrowPanel Advanced 5″, on the desk — real photograph.

Meet Pixel

A physical home for a digital character, built to listen, answer and bring the lab into the room.

Pixel is the AI character that sits on top of Afterlab. Here it has a body: an Elecrow CrowPanel Advanced 5-inch, an ESP32-P4 board with an 800×480 touchscreen, a digital microphone, a speaker and a microSD slot, with Wi-Fi from a companion ESP32-C6.

Say “Pixel”, ask a question in Spanish, and the answer comes back through the speaker while the character listens, thinks and speaks on screen.

The hardware decision

The goal wasn’t to assemble more components. It was to find the right hardware for the experience.

3.5″

First experiment

A maker build: a 3.5-inch screen and separate components, each one sourced, wired and made to work with the rest. The first time Pixel had a body.

5″

Dedicated hardware

The CrowPanel Advanced: an 800×480 touchscreen, microphone, speaker, microSD and wireless on one integrated board.

The screen, what the board could do, and the cost and effort of buying and connecting every part separately all pointed the same way. An integrated panel suited a character that has to listen, talk and show the lab better than a growing pile of parts — a decision about the right hardware for the product, not a step away from making things.

Afterlab could already answer in the browser, on Telegram and on the desktop, but all of those mean sitting down in front of a screen. Pixel needed a physical presence in the room: something to ask in passing, that shows at a glance whether the lab is fine.

At a glance

Pixel expressions
7
Ways to talk: the wake word, or HABLAR by touch
2
Main views: PIXEL, CHAT, ESTADO, AVISOS, METEO, LAB
6
800×480 touchscreen
5″

SYSTEM is a separate page for connection, firmware and diagnostics. Firmware 0.17.5, as of November 2026.

A character with states

The character isn’t decoration. It is the interface between a voice turn and the person in the room.

Pixel’s pixel art, expressions and motion were designed first in a web preview, then carried to the board through a shared specification — the same character lives in the browser and on the device without being redrawn. Its face follows the real state of the turn; blinks, a swinging tail and touch reactions do the rest.

  1. Pixel at rest: round cyan eyes, a small w-shaped smile and yellow cheek marks.

    01At rest

    Calm bob, natural blinks, the odd micro-smile. Where every turn begins, and where it returns.

  2. Pixel listening: eyes opened wide into bright rings.

    02Listening

    The wake word was heard, or HABLAR pressed.

  3. Pixel thinking: one eye squinted, the mouth a small frown.

    03Thinking

    The audio is uploaded; Pixel is answering.

  4. Pixel speaking: an open mouth showing teeth.

    04Speaking

    The mouth follows the speech level of the reply.

Outside the turn

Three more faces, for touch, for quiet hours and for when a turn fails.

  • Pixel happy: eyes closed into upturned arcs.

    Happy

    A tap, pat or heart on the touchscreen.

  • Pixel sleepy: heavy half-closed eyelids.

    Sleepy

    Low-energy moments chosen by the Agent.

  • Pixel in error: crossed-out X eyes and a wavy mouth.

    Error

    A voice turn that could not complete.

Pixel’s seven expressions from the project’s expression sheet, lifted off their backdrop pixel for pixel — nothing redrawn.

The voice pipeline

The device listens. The Agent thinks.

The character makes the process visible.

Two ways to start a turn: say “Pixel” and ask, or press HABLAR on the screen. Either way, the answer comes from the Afterlab Agent on the MiniPC, and the panel turns it back into sound and a face.

  1. 01On the device

    Capture

    The microphone stays warm. Hands-free, the panel streams what it hears; HABLAR records a single turn by touch.

    PDM mic · 20 ms PCM16 frames · 16 kHz

    → Frames go to the Agent over a device-authenticated WebSocket

    Pixel: at rest

  2. 02On the MiniPC

    Wake word & endpoint

    PocketSphinx listens for “Pixel” with a little pre-roll, so the first words survive. An endpointer decides when the sentence has ended.

    PocketSphinx · VAD

    Pixel: listening

  3. 03On the MiniPC

    Transcribe

    A local Whisper model transcribes the Spanish, guarded against empty or noisy turns.

    Local Whisper STT

    Pixel: thinking

  4. 04On the MiniPC

    Answer

    Pixel answers with live context from the lab: monitors, Docker, devices and Meteolab readings.

    Afterlab Agent

    Pixel: thinking

  5. 05On the MiniPC

    Voice

    The reply is turned into speech, cached and served on the local network.

    Text-to-speech · MP3 · cache

    → An MQTT command tells the panel which clip to play

    Pixel: thinking

  6. 06On the device

    Play

    One audio task on the board downloads, decodes and plays the reply.

    MP3 decoder → I2S speaker

    Pixel: speaking

A voice turn, redrawn from the project’s system diagram. Wake word, transcription, the answer and speech run on the MiniPC; the panel captures, plays and shows the face. If any stage fails, Pixel shows its error face.

01 / 01

The original Pixel Voice system diagram: device, Afterlab Agent and the MQTT backbone.

The original Pixel Voice system diagram: device, Afterlab Agent and the MQTT backbone.

More than a voice

The lab, at a glance from the desk.

Around the voice, the panel has become a small control surface for the lab. The Agent publishes compact summaries over MQTT; the panel reads them strictly and never shows old data as if it were live.

PIXEL · home. Indoor and outdoor conditions, Lab Node presence, the door and open alerts beside the character, with HABLAR one tap away.

01 / 01

PIXEL, the home view: Pixel beside a reply, indoor conditions, lab presence and the HABLAR button.

PIXEL, the home view: Pixel beside a reply, indoor conditions, lab presence and the HABLAR button.

ESTADO. Monitors, Docker, the MiniPC and Supabase, summarised without opening Mission Control.

01 / 01

ESTADO: services, Docker, the MiniPC and Supabase, each with a one-line status.

ESTADO: services, Docker, the MiniPC and Supabase, each with a one-line status.

LAB · LUZ. Closed presets and brightness for the lab NeoPixels the Agent already knows — no arbitrary control.

01 / 01

LAB with the LUZ sheet open: light presets for Lab Node and the desk, and a brightness slider.

LAB with the LUZ sheet open: light presets for Lab Node and the desk, and a brightness slider.

CHAT
The latest exchanges with Pixel, with its own volume control.
AVISOS
Open incidents, which can be marked as seen in Afterlab from the panel.
METEO
The weather view, alongside Meteolab readings in Pixel’s answers.
Ambient mode
When nobody is using it, a clock with temperature, dew point and comfort.
Day & night
Two themes whose colours come straight from the Afterlab web tokens.
SYSTEM
A separate page for connection, firmware and diagnostics.

Screens captured from the panel at 800×480, shown at their own proportion.

Engineering the everyday

Reliability on real, imperfect hardware.

A microphone that streams all day, audio on a chip with limited memory and a device that must recover by itself after a bad update are very different problems from a web demo. The firmware is C++ on ESP-IDF 5.5.5 with LVGL 9.

  1. A · Continuous audio

    A microphone that keeps listening.

    1. PDM mic
    2. DMA
    3. buffers
    4. WebSocket
    1 frame = 20 ms · PCM16 · 16 kHz · schematic

    Getting a continuous, clean stream out of the board’s PDM microphone meant fixing DMA timing, buffer handling, WebSocket keepalives and stack sizes, one by one. The microphone has a single owner, so the hands-free stream and a HABLAR capture never fight over it.

    • PDM · DMA
    • 20 ms frames
    • WebSocket keepalive
  2. B · State & synchronization

    One device, consistent information.

    Agent → MQTT → panel

    status-summary
    ESTADO, AVISOS · retained · every 60 s
    lab-summary
    Lab Node, Door Node, lights
    sound
    which reply to play
    state · info · OTA
    health, diagnostics, updates

    The faces follow the real turn lifecycle, not a timer. The rest of the screen is fed by retained MQTT summaries, parsed strictly; a summary that has aged is shown as old. Alerts are acknowledged from the panel, and the LUZ sheet only sends presets the Agent allows.

    • MQTT · retained
    • Strict parsing
    • Closed presets
  3. C · Failure & recovery

    Built to recover.

    slot A · runningslot B · new image
    1. ↓ boot slot B
    2. ↓ 90 s of clean running
    3. ✓ confirm the image
    4. ✕ crash on start-up → roll back to slot A

    Updates arrive over the air into a second slot. Since 0.17.5 a new image is confirmed only after 90 seconds of clean running, so a crash during start-up rolls the panel back without a USB cable. The counters behind the audio fixes are exposed as remote diagnostics, so the device page in Afterlab shows what the panel is doing.

    • OTA · two slots
    • NVS preferences
    • SNTP clock
    • microSD clips

Still marked experimental inside Afterlab: several recent releases are complete in code and waiting for longer physical testing on the board.

Evolution

From pixels to physical interaction.

The 3.5″ maker build came first; its date isn’t recorded here. Versions as of November 2026.

  1. Aug 2026

    Character & screen

    Pixel, its expressions and an 800×480 screen are designed in a web preview, with a portable specification.

  2. Sep 2026

    Firmware & voice

    The spec compiled into ESP-IDF and LVGL, with touch, MQTT and OTA; push-to-talk, then a hands-free wake word.

    v0.1 – v0.4

  3. Sep 2026

    An everyday lab companion

    Preferences, real clock, standby, diagnostics, CHAT, ambient mode, ESTADO, AVISOS, microSD clips, Lab Node and Door Node.

    v0.5 – v0.16

  4. Sep 2026

    Home, control & reliability

    A new home with the tail in motion, Afterlab colours, the LUZ sheet and self-recovering updates.

    v0.17 – v0.17.5

All eight milestones
  1. Aug 2026Pixel ScreenThe character, its expressions and an 800×480 screen are designed in a web preview with a portable spec
  2. Sep 20260.1 · First firmwareThe spec is compiled into ESP-IDF and LVGL; Pixel runs on the CrowPanel with touch, MQTT and OTA updates
  3. Sep 20260.2–0.3 · Voice turnPhysical speaker output and push-to-talk: record, transcribe, answer, play
  4. Sep 20260.4 · Wake wordHands-free listening over a WebSocket stream, hardened through a long series of microphone fixes
  5. Sep 20260.5–0.9 · Everyday deviceSaved preferences, real clock, standby, remote diagnostics and the CHAT view
  6. Sep 20260.11–0.13 · Lab surfaceAmbient mode, day theme, notifications, ESTADO and AVISOS
  7. Sep 20260.14–0.16 · Hardware & labBoot progress, microSD clips, Lab Node and Door Node cards
  8. Sep 20260.17 · Home & lightsNew home layout, tail animation, Afterlab colours, LUZ sheet and self-recovering OTA

Tools & Stack

Hardware
CrowPanel Advanced 5″ · ESP32-P4 + ESP32-C6 · PDM mic · I2S speaker · microSD
Firmware & UI
C++ · ESP-IDF 5.5.5 · LVGL 9
Voice
PocketSphinx · whisper.cpp · Text-to-speech
Communication
WebSocket · MQTT · Mosquitto · HTTP on the LAN · OTA
Afterlab
Agent · FastAPI · Python · Docker · Supabase

More than a screen, a character with a place in the real world.

The first job is physical validation: running the latest releases on the board long enough to trust them, and finishing the remote diagnostics on the device page. After that, the panel should join the Afterlab firmware registry like the rest of the lab, and the voice can improve where it still feels mechanical — interrupting Pixel while it speaks, smoother turn-taking, more of the character moving on its own. None of that is built yet.