8000 GitHub - Ch1pStar/pi-dash · GitHub
[go: up one dir, main page]

Skip to content
Ch1pStarPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

pi-dash

A digital instrument cluster for a VW/Audi 1.8T (Bosch ME7.5 ECU), styled after the VW DigiFiz. TypeScript + PixiJS v8, rendered by Chromium on a Raspberry Pi 5, fed live ECU data over the K-line.

ECU ──K-line 10400──> Pico ──uart0 921600──> RPi 5 ─────────> Chromium
  ME7.5, 1.8T          KWP2000 +              server/:          src/:
                       fast-log handler       COBS decode       PIXI dash
                                              .ecu scaling      60fps
                                              → Float32Array
                                              → WebSocket :8113

An RP2040 (Pico) running the sibling k_line_kwp firmware speaks KWP2000 to the ECU and streams raw sample bytes as a dumb pipe. This repo holds the other two pieces:

  • server/ — the bridge. Decodes the Pico's framing, scales raw bytes into physical values using the car's .ecu definition file, and pushes one Float32Array per sample over a WebSocket. Details in server/README.md.
  • src/ — the dashboard. A 1024×600 PIXI scene: speed, RPM, coolant, voltage, throttle, AFR, EGT, boost, IAT and knock retard, with display-side smoothing so 30 Hz data looks right at 60 fps.

A DOM-based service screen overlays the dash (SERVICE button or S): live data with min/max, fault code read/clear, ECU identification and session control.

Running it

No hardware needed — replay mode is the primary development path.

# frontend (once, or after changing src/)
npm install
npm run build

# bridge
cd server
npm install
npm run gen:sweep      # generate a synthetic capture
npm run dev            # replay it on a loop

Then open http://localhost:8113. The bridge serves the built dashboard and the WebSocket from the same port.

Other bridge modes: npm run serial (Pi GPIO UART), npm run usb (USB-TTL adapter), npm run verify (framing, scaling and decoding checks against real bench captures, no hardware required).

Status

Works end to end on replayed data, verified in a real browser; the variable list and byte-level decoding have been validated against the real ECU on the bench (~64 samples/s at 57600 baud with 20 variables). What has not been exercised is the physical UART between the Pico and the Pi, and no service screen request has yet reached a real ECU.

CLAUDE.md is the full engineering log — the server/frontend data contract, known traps, and what is verified versus not. POWER.md plans the in-car power and ignition sequencing (not built yet).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0