You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firmware for the sensor ESP32 on the Carputer PCB. Designed for OBD1 vehicles (pre-1996, all makes) — reads engine ECU sensor voltages, switch signals, and diagnostic pulses directly. No CAN bus required. CAN/OBD2 is an easy add — just a firmware update and an external CAN module (e.g. MCP2515 via SPI).
Currently configured for a Toyota 5S-FE as reference, but the voltage divider values and input pins work with any OBD1 ECU. Streams data over UDP to the carputer head unit.
Role
Connects to ECU as WiFi STA at 192.168.4.20, broadcasts JSON sensor data to 192.168.4.255:5001 (subnet broadcast so both carputer app and cluster display receive data). Also handles DTC (diagnostic trouble code) reading via the check-engine light blink pattern.
ECU Signal Wiring (5.6K + 10K Voltage Divider)
All ECU signals go through a voltage divider: R1 = 5.6KΩ (series from ECU), R2 = 10KΩ (to GND). Ratio = 0.641x. Max output: 5V × 0.641 = 3.21V (safe under 3.3V).
ECU Signal ──[5.6KΩ]──┬── ESP32 GPIO
│
[10KΩ]
│
GND
Analog Signals
GPIO
ECU Signal
ECU Pin Name
ADC Channel
Unit
Notes
GPIO 32
PIM
MAP (Manifold Absolute Pressure)
ADC1_CH4
kPa
0-5V → 0-3.21V
GPIO 33
THW
ECT (Engine Coolant Temp)
ADC1_CH5
°F
NTC via ECU 2.2K pullup to 5V, reversed through divider