Bus 404 Found for ESP32-S3
An ESP32 display project for ESP32-S3 involving OLED display, LED matrix.
Parts and sourceBefore you start
Check the exact OLED display, LED matrix configuration against the upstream wiring or parts list.
Upstream README
Bus-404-Found π
Never miss your bus again! A real-time arrival tracker for your favorite lines and stops, designed to sit on your shelf.

What Is This?
Bus-404-Found is a shelf-friendly, real-time bus arrival display built with an ESP32-S3 and two chained HUB75 RGB LED matrix panels (128Γ32 pixels total). It connects to your Wi-Fi, fetches live arrival data from the CurlBus API, and shows upcoming arrivals with color-coded status at a glance:
| Color | Meaning |
|---|---|
| π’ Green | Real-time GPS tracking (live) |
| π‘ Yellow | Scheduled time (no GPS) |
| π΄ Red | No data |
| β¬ White | Destination name |
| π΅ Cyan | bus |
Each row on the display shows: Line number β Destination β Minutes remaining + bus icon.
Features
- Real-time bus arrivals β fetched every 30 seconds (configurable)
- Color-coded statuses β instantly see if data is live GPS or just a schedule
- Multi-target tracking β monitor multiple bus lines/stops simultaneously
- Extensible architecture β interfaces for display (
IRenderer) and data source (IBusFetcher), ready for OLED/LCD displays or alternative APIs - Memory & connection diagnostics β optional UDP heap reporting for debugging
- Debug modes β screen test mode, dummy data mode for development without Wi-Fi
Hardware Requirements
this is very flexable. I tried my best to make the code as flexible as possible. for example: you may choose yo use different configuration of displays only by changing single macro, chnage wires configuration the same way, or choose completly different hardware without changing core code thanks to interface "Irenderer"
| Component | Details | Qty |
|---|---|---|
| ESP32-S3 DevKitC-1 | Also ESP32 should work | 1 |
| HUB75 LED Matrix Panel | 64Γ32 pixels, 1/16 scan | 1 or 2 supported |
| 5V Power Supply | β₯4A recommended for two panels | 1 |
| Jumper Wires / Ribbon Cable | For ESP32 β HUB75 wiring | β |
| USB-A Cable | For programming & serial monitor | 1 |
Wiring β ESP32-S3 to HUB75
| Signal | ESP32-S3 GPIO |
|---|---|
| R1 | 4 |
| G1 | 5 |
| B1 | 6 |
| R2 | 7 |
| G2 | 15 |
| B2 | 16 |
| A | 18 |
| B | 8 |
| C | 3 |
| D | 42 |
| E | -1 (unused) |
| LAT | 40 |
| OE | 2 |
| CLK | 41 |
Note: The two panels are daisy-chained via the HUB75 outputβinput ribbon cable. Only the first panel connects to the ESP32.
use the next picture from https://github.com/CruiseandCoffee that might help with wiring:

Software Prerequisites
- PlatformIO (VS Code extension recommended)
- Python 3 (used by the build script
get_ip.pyto inject your PC's LAN IP)
Libraries (automatically installed by PlatformIO):
| Library | Version |
|---|---|
| ArduinoJson | ^6.21.3 |
| ESP32 HUB75 LED Matrix Panel DMA Display | ^3.0.0 |
| Adafruit GFX Library | ^1.12.4 |
Getting Started
1. Clone the repository
git clone https://github.com/IdoShalit-design/Bus-404-Found.git
cd Bus-404-Found
2. Configure runtime JSON files
Runtime credentials and bus targets are read from files in data/:
data/wifi_credentials.jsondata/bus_targets.json
data/wifi_credentials.json
{
"version": 1,
"ssid": "YOUR_WIFI_SSID",
"password": "YOUR_WIFI_PASSWORD"
}
data/bus_targets.json
{
"version": 1,
"targets": [
{
"stationId": "1570",
"line": "7",
"destination": "Givat Ram"
},
{
"stationId": "3541",
"line": "19",
"destination": "Ein Karem"
},
{
"stationId": "6134",
"line": "72",
"destination": "Har Hotzvim"
}
]
}
3. Build & upload
# Build
pio run
# Upload to ESP32
pio run --target upload
# Upload runtime JSON files from data/ to LittleFS
pio run --target uploadfs
# First-time setup (firmware + filesystem)
pio run --target upload
pio run --target uploadfs
# Open serial monitor
pio device monitor
Or use the PlatformIO sidebar buttons in VS Code.
Configuration
Source of truth:
data/wifi_credentials.jsonanddata/bus_targets.json: Wi-Fi credentials and bus targetsinclude/Config.h: all other runtime settings
Both runtime JSON files must include "version": 1.
Settings that still come from include/Config.h:
| Option | Default | Description |
|---|---|---|
TIME_ZONE |
"IST-2IDT,M3.4.4/26,M10.5.0" |
POSIX timezone string (default: Israel) |
FETCHER_TYPE |
FETCHER_CURLBUS |
Data source (FETCHER_CURLBUS, future: FETCHER_GOVIL, FETCHER_MOCK) |
SCREEN_DEBUG |
0 |
Set to 1 to run infinite display test patterns |
MEMORY_DEBUG |
0 |
Set to 1 to send heap stats via UDP every 60s |
Display settings are in include/Display/HUB75Display.h:
| Option | Default | Description |
|---|---|---|
PANEL_CHAIN |
2 |
Number of daisy-chained panels |
DISPLAY_BRIGHTNESS |
32 |
LED brightness (0β255) |
Project Structure
Bus-404-Found/
βββ include/
β βββ Config.h # Main non-JSON configuration (intervals, debug flags, fetcher)
β βββ Secrets.h # Legacy file (not used in current runtime flow)
β βββ Secrets.h.example # Legacy template (not used in current runtime flow)
β βββ Structs.h # Shared data structures (BusTarget, WifiCredentialsData)
β βββ TimeManager.h # NTP time sync utilities
β βββ Display/
β β βββ DisplayConfig.h # Panel dimensions, pinout, colors
β β βββ HUB75Display.h # HUB75 LED matrix driver
β β βββ IRenderer.h # Abstract display interface
β βββ Fetchers/
β β βββ CurlBusFetcherByLine.h # CurlBus API line fetcher client
β β βββ IBusFetcher.h # Abstract data-fetcher interface
β βββ NetworkManager.h # Wi-Fi connection manager
β βββ TransitClient.h # (Planned) Generic transit client
βββ src/
β βββ main.cpp # Entry point: setup/loop, Wi-Fi, fetch β render
β βββ TimeManager.cpp # NTP implementation
β βββ Display/
β β βββ HUB75Display.cpp # HUB75 rendering implementation
β βββ Fetchers/
β β βββ CurlBusFetcherByLine.cpp # CurlBus HTTPS fetch + JSON parsing
β βββ NetworkManager.cpp # Wi-Fi connection implementation
βββ get_ip.py # Build script: injects PC LAN IP as build flag
βββ udp_listener.py # Helper: listens for heap debug UDP packets
βββ data/
β βββ wifi_credentials.json # Runtime Wi-Fi credentials (uploaded via uploadfs)
β βββ bus_targets.json # Runtime bus targets (uploaded via uploadfs)
βββ platformio.ini # PlatformIO project config
βββ LICENSE # MIT License
How It Works
βββββββββββ Wi-Fi ββββββββββββββββββ HTTPS βββββββββββββββ
β ESP32 β βββββββββββΊ β curlbus.app β βββββββββββ β Transit β
β S3 β β (JSON API) β β GTFS Data β
ββββββ¬ββββββ ββββββββββββββββββ βββββββββββββββ
β
β DMA
βΌ
ββββββββββββββββββββββββββββββββββββββββ
β 128Γ32 HUB75 LED Matrix (2 panels) β
β β
β 7 Givat Ram Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· 5 min π β
β 19 Ein Kerem Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· 7 min π β
β 72 Romema Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· -- π β
ββββββββββββββββββββββββββββββββββββββββ
- Boot β Initialize display, show "Loading..."
- Connect β Join Wi-Fi, sync clock via NTP
- Fetch β For each target, HTTPS GET to
curlbus.app/{stationId}, parse JSON for matching line - Render β Color-code each row and paint to the LED matrix via DMA
- Repeat β Every 30 seconds, go to step 3
Debug Modes
Screen Debug (SCREEN_DEBUG = 1)
Runs infinite display test patterns (fill colors, pixel walk, text rendering). Useful to verify your wiring without needing Wi-Fi.
Memory Debug (MEMORY_DEBUG = 1)
Sends heap memory stats (free heap, min free heap, Wi-Fi RSSI) via UDP to your PC every 60 seconds. Use udp_listener.py to capture:
python udp_listener.py
Future Plans
- π Additional data sources (Gov.il GTFS-RT, SIRI API)
- π‘ Wireless connection to choose new bus lines
Contributing
Contributions are welcome! Feel free to:
- Fork the repo
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License β see the LICENSE file for details.
Made with β€οΈ and solder smoke
