A round AMOLED gauge that lives in the driver-side air vent of a Hyundai i30 N, reading the car live over the OBD-II port: oil temperature - the number the car's own dashboard hides behind a menu - plus coolant, boost, tyre pressures, a g-meter, GPS speed and a lap timer. It logs every drive to an SD card, uploads the logs home by itself as the car starts - over the phone's hotspot and a WireGuard VPN - and a phone app pulls them off it and shows each drive on a map.
Everything here was built for one car and is in daily use in it. It is a hobby project, published in case the findings, the code or the approach help someone with the same car or the same board.
From the driver's seat, beside the car's own cluster; and switched off - the 3D-printed housing replaces the left air vent's surround.
The phone app: every drive, named after where it went and grouped by week, with the gauge in the header - its last sync, like a watch in Garmin Connect; a tap on it syncs, then the phone is back on the internet. A drive on the map, coloured by speed, and its speed, boost, temperatures and voltage over time. More in mobile/.
The gauge's screens - oil and coolant, boost, the g-meter, tyres, GPS, and
the lap timer 1.8 s up on the best lap, the arc filling up to the line - then
the oil over its warning on the in-lap, a red rim over whichever screen is
up, and the N badge it wakes up with. Swiped through on the gauge; these are
from the simulator on a made-up track session (sim/screenshots.sh).
.vbo with
every channel, which lap analysers open (HackTheTrack, Circuit Tools).
Logs can be encrypted to a key only the phone holds, so a card taken out of
the gauge gives nothing away. GPS points are kept only while the car talks
or really moves, so a parked car's GPS drift is not a drive.| Part | |
|---|---|
| Waveshare ESP32-S3-Touch-AMOLED-1.75 | 466×466 round AMOLED, touch, IMU, PMU, SD slot |
| SN65HVD230 | CAN transceiver, on OBD pins 6 and 14 |
| u-blox NEO-M9N | GNSS, 25 Hz |
| TPS5430 buck | 12 V → 5 V from OBD pin 16 |
| 3D-printed vent pod | replaces the left air vent; STLs in mechanical/pod |
| carrier PCB | KiCad, in hardware/carrier - replaces the breakout boards |
Most of this took real drives and a lot of wrong turns; the reasoning, and the wrong turns, are in DECISIONS.md.
0xE001 (engine
ECU, 0x7E0): °C = raw × 0.7435 − 49.2, matched against the dashboard up
to 100 °C. Mode 01 PID 0x5C is not supported. Byte 25 of the same reply
looks like oil but is coolant-derived - and correlating bytes against the
coolant curve picks it, which is how it was wrongly used for weeks.0x05.0x7A0,
DID 0xC00B), not the ECU.config.h.0x42: 14.4-15.0 V
running, 9.9-10.6 V cranking, 12.1-12.7 V just after switching off. Then
the ECU answers 0.00 V for a few seconds before going quiet - drop
it, it is not the battery.| Path | |
|---|---|
| firmware/car_gauge_v1 | the gauge firmware (Arduino, ESP32 core 3.x, LVGL 9) |
| mobile | the Android app (Expo / React Native) |
| server | the upload service the gauge sends its logs to (Python, Docker) |
| sim | the gauge firmware on a PC: its screens in a window, fed a recorded drive |
| tests | host tests of the firmware's pure logic |
| hardware, mechanical | carrier PCB, 3D-printed parts |
| DECISIONS.md | why things are the way they are |
| docs/flows.md | how it decides, as diagrams: the logs' way, the upload, the WiFi, updates, screens, sleep |
| PROTOTYPE_GUIDE.md, PRINTING_GUIDE.md | wiring the prototype; printing the pod |
Firmware (details):
./scripts/setup-libs.sh # Arduino core, pinned libraries, lv_conf
./scripts/build.sh gauge flash # compile and flash over USB
./scripts/test.sh # host tests
./scripts/check.sh # before a commit: tests, both firmware builds, the sim, the server
GitHub Actions (.github/workflows/ci.yml) runs the
same checks but the simulator (it needs SDL2 from Ubuntu's mirrors, which
the runners could not reach for days), and the app's, on every push and pull
request. A version tag
(git tag v2026.11.09 && git push --tags) also makes a release: the firmware
as an update, and a full image for a first flash over USB. Releases carry the
public half of an update signing key if the repository variable FW_SIGN_PUB
holds one, and are signed if the secret FW_SIGN_KEY holds its private half
(64 hex digits) - the app then fetches the newest release by itself, checks
its signature against the gauge's key, and offers it in Gauge settings.
The upload server (details), on the home server:
cd server && echo "UPLOAD_TOKEN=$(openssl rand -hex 16)" > .env
docker compose up -d --build
With FW_GITHUB_REPO=owner/name in its .env it also passes that
repository's latest signed release on to the gauge, which then updates itself
(details). The signing key, once:
scripts/release-fw.py --init # then FW_SIGN_KEY and FW_SIGN_PUB on GitHub
The gauge on a PC (details) - needs SDL2 and CMake:
sim/run.sh # the newest drive in data/, in a window
scripts/make_track_gpx.py # a made-up track session to drive it with
sim/screenshots.sh # these screenshots, into docs/gauge/
App (details):
cd mobile && ./scripts/build-apk.sh install # release APK onto a phone over adb
MIT. Third-party assets keep their own licences - see
firmware/assets/README.md. The place names in
the app (mobile/assets/places) are from GeoNames,
CC BY 4.0.
Imported 2026-11-30 · Revision 15ee96f