Mini Departure Monitor for ESP32-S3
An ESP32 display project for ESP32-S3 involving E-paper display.
Parts and sourceBefore you start
Check the exact E-paper display configuration against the upstream wiring or parts list.
Parts, Cost & Where to Buy
Build total pending. Confirm the exact parts and prices first.
Parts to verify. These entries come from the project’s catalog information and may include alternatives or components already built into the board. Check the upstream schematic or parts list before ordering.
| Part | Qty | Unit (USD) | Line total | Supplier |
|---|---|---|---|---|
| ESP32-S3Example SKU: ESP32-S3 Feather, 4 MB flash and 2 MB PSRAM | To confirm | From example: $17.502026-12-06 | — | Adafruit |
| E-paper display | To confirm | Unpriced | — | DigiKey search |
Reference prices are in US dollars and exclude shipping and tax. Availability and checkout prices may change.
Upstream README
Train/Bus Mini Departure Monitor
This project turns a small ESP32-based ePaper device into a dedicated public transit departure board for your home or desk. Instead of unlocking a phone, searching Google, or opening a transit app every time you want to check the next tram, bus, or train, the display shows the next departures at a glance with very low power consumption.


The firmware runs on an ESP32S3 embedded on the Seeed XIAO ePaper Display EE04 Board and fetches live departure information for up to four configured stops in the service area of the VRS (Verkehrsverbund Rhein-Sieg).

Disclaimer
This is an independent hobby project. It is not affiliated with, endorsed by, sponsored by, or maintained by VRS (Verkehrsverbund Rhein-Sieg) or any transport operator. All trademarks, names, and data sources belong to their respective owners.
What Problem This Solves
Public transit information is usually easy to get, but inconvenient to check repeatedly throughout the day. In many households the actual need is simple:
- "When is the next departure from my stop?"
- "Do I need to leave now?"
- "Has the departure slipped by a few minutes?"
For that, a phone is often unnecessary friction. You have to pick it up, unlock it, search for the stop, or open the operator's app and wait for it to load. This project removes that friction by putting the next departures on a dedicated always-readable ePaper screen.
Typical use cases:
- In the hallway before leaving home
- On a desk while working
- In the kitchen during the morning routine
- Near the front door as a quick decision aid
What It Does
- Creates a local setup Wi-Fi access point on first boot or when entering setup mode
- Lets you configure home Wi-Fi and up to 4 transit stops in the browser
- Shows the stop name, current time/date, signal quality, and the next departures
- Supports multiple power modes for always-on or battery-friendly usage
- Stores configuration in NVS and reuses Wi-Fi channel/BSSID hints for faster reconnects
- Uses the three hardware keys for station switching and mode changes
Hardware
| Item | Qty | Price (March 26) | Notes |
|---|---|---|---|
| Seeed Studio XIAO ePaper Display Board EE04 | 1 | ca. 12€ | Main board used by this project; includes the XIAO ESP32S3 and the ePaper driver hardware |
| Waveshare 2.9" Monochrome ePaper Display, 296 x 128 | 1 | ca. 9€ | The raw display panel only, used as the actual E-Ink screen rather than a complete controller module |
| 3.7 V LiPo battery, 3700 mAh | 1 | ca. 5€ | Example battery used in the build; other 1-cell LiPo capacities are possible if connector, size, and fit work for your enclosure |
| Battery extension cable | 1 | ca. 0,5€ | Used to connect the battery in the base to the board |
| 3D Printed Parts | 1 | ca. 2€ | 3D Printed Enclosure |
- Display
BUSY:GPIO4RST:GPIO38DC:GPIO10CS:GPIO44SCK:GPIO7MOSI:GPIO9
- Keys
KEY1station button:GPIO2KEY2setup key:GPIO3KEY3sleep key:GPIO5
- Battery sensing
BAT_ADC:GPIO1ADC_EN:GPIO6
Assembly And 3D Printing
The printable enclosure and ready-made print profiles are published on MakerWorld:
https://makerworld.com/en/models/2571782-mini-train-bus-departure-monitor
Print guidance from that page:
- Main enclosure profile:
0.16 mmlayer height,2walls,10%infill,3plates - Separate button print profiles are provided for both
0.4 mmand0.2 mmnozzles
Assembly sequence from the MakerWorld model page:
- Print all parts and connect the Wi-Fi antenna to the EE04 board.
- Feed the battery extension cable through the enclosure tube/opening and route it through the battery compartment before continuing.
- Insert the 2.9" ePaper panel with its cable extension attached.
- Press in the printed display holder so the panel sits flush at the front.
- Place the board on the printed backplate and connect the battery extension to the board. Check the battery extension polarity first; the MakerWorld listing notes that you may need to swap it.
- Put tape over the button slots and stick the printed buttons to the tape from the inside to hold them in position temporarily.
- Carefully slide the backplate and board assembly into the enclosure so the board buttons line up with the printed buttons and remain pressable.
- Connect the battery and close the battery lid.
- Flash the firmware to the board.
The button-alignment step is the fiddliest part of the assembly.
Where The Departure Data Comes From
The live departure data shown on the display is derived from publicly reachable VRS departure monitor pages and endpoints.
The firmware accepts either of these URL patterns:
https://www.vrs.de/am/s/<hash>https://www.vrs.de/index.php?eID=tx_vrsinfo_departuremonitor&i=<hash>
Internally, the firmware extracts the 32-character stop hash and normalizes it to the JSON-producing VRS departure monitor endpoint:
https://www.vrs.de/index.php?eID=tx_vrsinfo_departuremonitor&i=<hash>
In practice, that means:
- You can paste a normal VRS stop/departure-monitor link into the setup UI.
- The firmware extracts the stop identifier.
- The device requests the corresponding departure monitor data over HTTPS.
- The JSON response is parsed and the next departures are rendered on the ePaper display.
This project does not use an official SDK. It relies on the publicly accessible departure monitor endpoint currently used by the VRS website. If VRS changes that endpoint, response format, or access policy, this project may need updates.
Features
- Browser-based setup UI served directly by the device
- Setup access point
- mDNS in setup mode via
http://mini.local - Wi-Fi network scan and credential storage
- Up to 4 configured stations/stops
- Live departure fetch over HTTPS
- Time display with regular NTP re-synchronization
- Signal strength indicator
- Battery percentage indicator
- Battery protection warning below 20%
- Power mode icon in the footer
- Deep sleep support with multiple wake strategies
- Wi-Fi failure screen with hourly deep-sleep retry and direct setup entry
Device Controls
The firmware uses two top-level device modes:
Setup mode- Shows the configuration/setup screen and serves the local setup UI
Sleep mode- Runs the normal departure display and applies the selected power mode (
Continuous,SleepAlarm, orSleepManual)
- Runs the normal departure display and applies the selected power mode (
The EE04 hardware keys are used like this:
KEY1: Bus icon 🚍- Sleep mode, while awake: cycle through configured stations
- Deep-sleep wake: wake the device; if multiple stations are configured, the wake also advances to the next station
- Wi-Fi failure sleep: wake and retry Wi-Fi immediately
- Setup mode, while awake: no dedicated action
KEY2: Settings icon ⚙️- While awake: toggle between setup mode and sleep mode
- Deep-sleep wake: wake the device and toggle the mode on resume
KEY3: Moon icon ☾- Setup mode, while awake: switch to sleep mode
- Sleep mode, while awake: enter indefinite deep sleep until a hardware key wakes the device
- Deep-sleep wake: wake the device
- Wi-Fi failure sleep: wake and retry Wi-Fi immediately
Wi-Fi failure handling:
- If saved Wi-Fi credentials cannot connect, the device shows a failure screen and enters deep sleep for one hour.
KEY1/Bus andKEY3/Sleep wake the device and retry Wi-Fi immediately.KEY2/Setup wakes the device into setup mode so the Wi-Fi settings can be changed.- Timer wake retries Wi-Fi automatically every hour until the connection succeeds or setup is opened.
Power Modes
Continuous- Device stays active and refreshes periodically
SleepAlarm- Device wakes at the configured interval
- During the configured night window it can switch to a longer sleep period
SleepManual- Device prefers long sleep
- Manual interaction triggers a burst of shorter active refresh intervals
Battery protection:
- Enabled by default through
battery_protection_enabled - When the measured battery level is below
20%, the device shows a battery warning screen and enters deep sleep - Pressing any hardware key wakes the device
- If the battery is still below
20%, the warning is shown again and the device returns to deep sleep - If the battery is at or above
20%, the normal wake behavior continues
Current refresh interval range:
- Minimum:
20s - Maximum:
60s - Default:
40s
Default night window:
- Start:
18:00 - End:
09:00
Software Stack
- PlatformIO
- Arduino framework for ESP32
GxEPD2ArduinoJsonU8g2U8g2_for_Adafruit_GFXQRCode
PlatformIO environment:
seeed_xiao_esp32s3
The setup UI is embedded into the firmware image and runtime configuration is stored in ESP32 NVS.
Build And Flash
From the project root:
pio run
pio run -t upload
pio device monitor -b 115200
platformio.ini is currently configured for:
board = seeed_xiao_esp32s3board_build.partitions = partitions_ota_8mb.csv- native USB CDC enabled on boot
Because the partition table changed from the previous single-app layout, existing devices need one USB flash of this OTA-capable release before browser-based firmware updates will work.
Local PlatformIO Overrides
The committed platformio.ini stays machine-neutral. If you want to pin a local serial port, copy platformio.local.ini.example to platformio.local.ini and edit it there.
Example:
[env:seeed_xiao_esp32s3]
upload_port = /dev/cu.usbmodem*
monitor_port = /dev/cu.usbmodem*
platformio.local.ini is loaded automatically and ignored by git.
First-Time Setup
- Flash the firmware.
- Boot the device and enter setup mode if needed.
- Connect your phone or laptop to the device AP:
- SSID:
mini-config - Password:
mini1234
- SSID:
- Open one of these URLs:
http://mini.localhttp://192.168.4.1
- In the setup UI:
- select your home Wi-Fi
- enter the Wi-Fi password
- add one or more VRS station URLs
- choose the power mode
- choose the refresh interval
- configure the optional night sleep window
- Save the configuration.
- Return the device to sleep mode for normal operation.
Local API
The setup UI talks to a small local HTTP API on the device:
GET /api/configread current configurationPOST /api/configsave Wi-Fi, stations, and power settingsPOST /api/firmwareupload a newfirmware.binand rebootGET /api/firmware/releasecheck the latest GitHub release and OTA eligibilityPOST /api/firmware/release/installdownload, verify, and install the latest GitHub releasePOST /api/stationssave station list onlyGET /api/scanrun or read Wi-Fi scan resultsGET /api/statusread connection and signal statePOST /api/rebootreboot the devicePOST /api/factory_resetclear configuration and reboot
Web Firmware Update
Once a device is running this OTA-capable partition layout, the setup UI can update firmware in two ways:
- Upload a local
firmware.bin - Let the device install the latest published GitHub release
Manual upload workflow:
- Update
VERSIONif needed. - Build the project with
pio run. - Use
.pio/build/seeed_xiao_esp32s3/firmware.bin. - Put the device into setup mode and open the setup UI.
- Open the Settings card and upload that
firmware.bin. - Wait for the automatic reboot and page reload.
Automatic GitHub release workflow:
- Publish a GitHub release that contains a
.binfirmware asset. - Put the device into setup mode and open the setup UI.
- Make sure the device is connected to a Wi-Fi network with internet access.
- Open the Settings card and click
Check for Update. - If a newer release is available, click
Install Latest Release. - The device downloads the asset from GitHub, verifies the SHA-256 digest from the release metadata, installs the update, and reboots.
Current limitations:
- Only the application image is updated. Upload
firmware.bin, notbootloader.binorpartitions.bin. - Firmware updates are only available while the device is in setup mode.
- Automatic installation only checks the latest published GitHub release.
- Automatic installation requires a
.binrelease asset with GitHub-provideddigestmetadata. - Automatic installation is blocked when the installed firmware is already current or newer than the latest published release.
- The OTA slot size is currently
0x300000bytes (3.0 MB). Larger images are rejected by the device.
Stored Configuration
The firmware persists the following values in NVS:
- Wi-Fi SSID and password
- Configured stations
- Selected station index
- Power mode
- Update interval
- Night sleep start and end time
- Boot failure counter
- Wi-Fi retry sleep state
- Last NTP synchronization timestamp
- Wi-Fi channel/BSSID fast-connect hints
Notes
- Captive portal DNS support exists in the firmware but is currently disabled by default.
web/is the source tree for the setup UI.tools/build_web_assets.pygeneratesinclude/generated_web_assets.hbefore each build.pio runandpio run -t uploadrebuild the embedded web assets automatically.
License And Trademarks
The project code in this repository is licensed under the MIT License. See LICENSE.
The VRS name, logos, and any third-party brands or transit data remain the property of their respective owners. This repository does not grant trademark rights or claim ownership over those assets.