I turned a Solum 1.6-inch e-paper price tag into a Bluetooth photo badge with firmware of my own: slides upload from a web page, a coin cell keeps it alive, and the original radio protocol is gone.
Why e-paper, and why price tags
I like cheap, low-energy things; they fit my ecological view of technology. E-ink is wonderful in that sense. Because it is bistable, it needs power only to change the picture, so a display becomes a small glass photograph that you can swap whenever you want. The best platform for that idea is the electronic shelf label. These tags are built to run for as long as possible on a small battery and to waste nothing. So whenever I see new ones at an auction, I buy a few and study them.
This one is a miniature 200x200 pixel tag with a four-colour panel (black, white, yellow, red).
The tag
The tag is a Solum EL016 (variants EL016F5W4C and EL016F6W4A) with a 1.6-inch, 200x200 pixel BWRY panel. A second tag from the same family, the EL022F5C4C with a 2.2-inch panel of 160x296 pixels, uses the same processor and the same pins, and the firmware supports it too. Inside:
- Processor: Silicon Labs EFR32BG22C224F512IM40, an Arm Cortex-M33, 512 KB flash and 32 KB RAM.
- External flash: Fudan Micro, 512 KB (4 Mbit, JEDEC ID A1 28 13), on its own SPI bus. This is where the slides live
- Clock: a single 38.4 MHz crystal
- NFC: a 3ALogics TNB132M chip, an NFC Type 3 tag with an I2C side and a field-detect pin, so the processor knows when a phone touches the tag
- Power: one CR2450 coin cell
- Other: an RGB LED, and two buttons on some variants. The tag exposes an SWD interface, so it can be programmed with a probe
A locked chip and a detour through OpenEPaperLink
Tools
- Silicon Labs Gecko SDK 4.4.1 with the SLC command-line configurator and the Arm GNU toolchain (arm-none-eabi-gcc).
- Simplicity Commander to build the firmware images (S37 files and the GBL files used for over-the-air updates).
- GitHub Actions with a Docker build image. I work only through the GitHub web interface, so every build runs in CI and I read the logs there.
- An SWD probe, pyOCD and gdb-multiarch on a ThinkPad x220 for flashing. After the first install the firmware updates itself over Bluetooth.
- An ESP32-S3 and an ESP32-C6 as the OEPL access point in the first experiment.
- gcc with AddressSanitizer and UndefinedBehaviorSanitizer for host tests of the firmware modules: slot storage, compression, settings, the panel driver, update logic.
The first firmware: a standalone slideshow
My first version was deliberately simple. It was a fork of the OEPL tag firmware, branch slideshow, with the radio and everything not needed removed. The tag worked alone, with no base station:
- The slides were converted on the PC and went into the firmware image, so every new set of pictures meant flashing the tag over SWD.
- The slide changed on a timer (120 minutes in my final settings). A title slide stayed for 15 seconds after power-up.
- The LED blinked a different colour at each change. A tap of the phone on the NFC chip showed the next slide, which matters because some tags have no buttons.
- A low battery...
Siarhei Besarab