Skip to content
All work

[ N-03 / 07 ]Hardware·2026·M5Stack Core2 · ESP32 · Android

Zdzichu

A talking desk gadget with the personality of a grumpy IT guy. You speak to it and it answers out loud.

Hardware
M5Stack Core2, 320×240
Audio
16 kHz in · 24 kHz out
API keys on device
none
Role
firmware, app, backend
Zdzichu on the M5Stack Core2 and the same face in the Android app
Zdzichu on the M5Stack Core2 and the same face in the Android app

AWhy it exists

To talk, Zdzichu uses the Gemini language model. Access comes from an API key, a kind of paid password. If the key were stored on the device, anyone who opened the case could pull it out and run up charges on my account.

BWhat came out of it

There are no API keys on the device, so even a stolen one gives no access to paid services. The same Zdzichu also runs as an Android app.

CFor technical readers: how it is built

The device is a thin client: it knows only the backend URL and one shared secret sent in a header. Tap-to-talk on the touch face, 16 kHz / 16-bit mono recording, one conversation turn is one POST with raw PCM. A Node.js (Express) backend in Docker on my VPS wraps the PCM in WAV, Gemini transcribes and replies, then synthesises speech; 24 kHz PCM comes back for instant playback. The face is a five-state machine drawn with primitives on a 320×240 screen. The Android app is a 1:1 port using the same protocol.

→How it works, briefly

  1. 01
    M5Stack
  2. 02
    Nginx Proxy Manager
  3. 03
    Node.js (Docker)
  4. 04
    Gemini

↳What it does

Technologies

  • C++
  • ESP32
  • M5Unified
  • PlatformIO
  • Kotlin
  • Node.js
  • Gemini API
  • Docker

01

Keys only on the server

Only my server knows the API keys. The device never stores them.

02

No background listening

The microphone turns on only after you tap the screen.

03

A simple exchange

One question is one request to the server. The device does not have to remember anything.

04

Five faces

Five expressions: calm, listening, thinking, speaking and visible irritation.

▢Screens

Five face states: calm, listening, thinking, speaking, escalation
Five face states: calm, listening, thinking, speaking, escalation
One conversation turn: the device, a Node.js backend in Docker, two Gemini calls
One conversation turn: the device, a Node.js backend in Docker, two Gemini calls

↗Contact

Got an app worth testing? Get in touch.

Next project · N-04

Iron Doctrine