A desk dashboard built around a 256×50 GP1287BI VFD panel driven by a Raspberry Pi Pico W. It cycles through eleven pages of live info — clock, weather, now-playing with visualizers, OctoPrint print progress, Claude API usage, cat-scale telemetry, and a Portal/Aperture easter egg — pulled from MQTT and a handful of REST endpoints.
Full writeup with photos: Building a VFD Desk HUD.
- 11 pages (see gallery below), each navigable by rotary knob, MQTT, or serial
- ~20 fps render loop with independent network/MQTT refresh
- OTA firmware updates with a terminal-style
> FLASHINGsplash rendered directly from the OTA callbacks - Wireless screenshot endpoint at
http://vfd-dashboard.local/screenshot.bmp— every image in this README was grabbed that way - Home Assistant integration —
display on/offfrom a presence sensor andlux Nfrom an ambient-light sensor (mapped through a built-in brightness curve) - Two-way MQTT state: device publishes its current state (page, brightness, display on/off, Claude data, uptime, IP, …) as retained JSON on
vfd/state, plus anonline/offlineavailability topic via MQTT LWT - LittleFS-cached state for cats, Claude usage, and last-print timestamp so reboots show known values instantly — no "waiting for…" beat
- Configurable fonts, clock animations, music visualizers, and a "dash glitch" toggle for fun
Screenshots are pulled live from the device over the HTTP endpoint and recoloured for the web. Pixels and layout are 1:1 with the real 256×50 panel (upscaled 4×).
EEI EPC-INBN0BV1287UD carrier (GP1287BI 256×50 VFD) driven from a Raspberry Pi Pico W via software SPI.
| Carrier (CN7) | Pico W | Notes |
|---|---|---|
| FILMENT_EN | GP2 | Active-HIGH (10kΩ internal pull-down) |
| CLOCK | GP9 | Not a hardware SCK pin — software SPI only |
| CHIPSELECT | GP8 | Active-LOW |
| DATA | GP7 | |
| RESET | GP6 | Active-LOW |
| GND | GND | Must be bonded for signals to work |
Power the carrier separately via USB-C or DC005 at 4.5–20 V, ≥ 2 A — the VFD can draw ~1.5 A at full brightness. Optionally feed the Pico's VBUS from the carrier's +5V OUT (CN6 pin 8) so one supply powers both.
Warning: the carrier's on-board boost converter generates VHG = 60 V and VHP = 90 V to drive the VFD anode. Don't poke exposed pins while powered.
PlatformIO + arduino-pico (Earle Philhower core), u8g2 for rendering, ArduinoJson for parsing, PubSubClient for MQTT.
Three gotchas combined:
- GP1287BI is not in upstream u8g2. The vendor fork in
lib/U8g2/adds a GP1287AI driver; AI and BI share a command set, so the AI driver works for the BI. - LSB-first 8-bit SPI. u8g2's stock software SPI byte drivers are hardcoded MSB-first — only the hardware SPI path respects LSB-first. A ~15-line custom byte callback handles it.
- GP9 is not a valid RP2040 SCK pin, so hardware SPI is off the table without rewiring.
USB (first time, or recovery):
pio run -e pico_w -t uploadOver the air, once the device is on the network and running firmware with ArduinoOTA:
pio run -e pico_w_ota -t uploadThe OTA password lives in src/net.cpp (OTA_PASSWORD) and platformio.ini (--auth=...); change both to suit.
The firmware serves a 1-bit BMP of the current framebuffer at http://vfd-dashboard.local/screenshot.bmp. Save it directly in a browser, or grab a series from the CLI:
curl -o page.bmp http://vfd-dashboard.local/screenshot.bmp
sips -s format png page.bmp --out page.png # macOS built-in
# or: magick page.bmp -filter point -resize 400% page@4x.pngThe device subscribes to vfd/input for plain-text commands. A few highlights:
| Command | Effect |
|---|---|
next / prev |
Cycle page |
page N |
Jump directly to page N (0..10) |
bright N |
Brightness 0..255 (persisted to flash) |
lux N |
Raw lux from an ambient-light sensor (auto-brightness) |
display on / off / blank |
Power the screen (presence sensor integration) |
12h / 24h |
Clock format |
fnext / cnext / vnext |
Cycle font / clock face / music visualizer |
cat <name> |
Trigger an action on the tamagotchi page |
glitch on/off/toggle |
Dash-glitch overlay |
Publishes:
vfd/state— retained JSON snapshot of current state. Republished on any state change and at most every 30 s. Fields includedisplay,brightness,page+page_name,font,viz,clock_face,use_12h,ip,uptime_s, andreason(what triggered the publish).vfd/availability—onlineon connect,offlinevia MQTT LWT when the broker loses contact.
Other topics the device listens on: straybot/playing (now-playing JSON), claude/usage (Claude API budget JSON), keyboard/knob (rotary knob events — up / down / press / held).
up / down cycle pages everywhere. press and held are page-specific:
| Page | press (short) |
held (long) |
|---|---|---|
| 0 Overview | Cycle right panel (viz ↔ Claude) | Toggle 12h / 24h |
| 1 Time | Next clock face | — |
| 3 Now Playing | Next music visualizer | — |
| 4 Matrix | Enter brightness mode (up/down adjusts brightness for 15s) | — |
- Custom u8g2 fork from the carrier vendor (EEI).
- Full project writeup, more photos, and the Mac menu-bar app that pushes Claude usage to MQTT: https://dmello.io/building-a-vfd-desk-hud-with-a-pi-pico-w/












