ESP32 e-ink conference badge
A wearable colour e-paper badge that rotates through pictures and can be updated from a phone. No app or cable needed.
hardware
- Display: Good Display GDEH037E01, a 3.7" E Ink Spectra 6 panel (480×720, six colours: black, white, yellow, red, blue, green)
- Controller: Seeed Studio XIAO ESP32-S3
- Adapter: DESPI-E01 FPC breakout
- Case: custom 3D-printed enclosure designed in OpenSCAD
- Input: one push button


how-it-works
The badge cycles through up to 16 stored images, changing to the next one every minute. A refresh on this six-colour panel takes about 30 seconds. E-paper holds its picture without power, so the image stays visible between refreshes.
One button controls everything:
- Short press: next image
- Double press: hold the current image for an hour
- Triple press: clear to white and sleep until the next press
- Long press (2 s): start a Wi-Fi hotspot with a web uploader
In upload mode the badge serves a small web page. Pick a photo on your phone, and the browser crops and rotates it and dithers it to the panel’s six colours. You see a preview before the badge stores and shows it. The hotspot turns itself off after 10 minutes with no one connected.
software
- Firmware written in C on ESP-IDF, based on Good Display’s sample driver and reworked for the XIAO pinout
- Images kept as raw 4-bit frames in a dedicated flash partition
fun-fact
The panel’s frame format isn’t documented, so I worked it out by reading back the demo image from the vendor’s test board firmware. Here is the format:
- 720×480 pixels, stored landscape. The badge is worn in portrait, so images are rotated 90° counter-clockwise before packing
- 4 bits per pixel, two pixels per byte, leftmost pixel in the high nibble: 172,800 bytes per frame
- Colour codes:
0black,1white,2yellow,3red,5blue,6green. Code4is never used