Wiki: board schematic re-downloaded; VOUT = H8 solder jumper (3V3 default / 5V), 5 V rail budget, SD pins
Firmware / build (push) Successful in 6s

This commit is contained in:
2026-09-27 16:15:07 +02:00
parent 40a21557f0
commit 23b7027d40
6 changed files with 46 additions and 4 deletions
+1
View File
@@ -37,6 +37,7 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
- [[gear-box-can-revealings]] — **gear fully decoded & VERIFIED** (2026-07-16/17): `0x1D2` byte0 = lever, **byte1 = engaged gear 1–6**, byte4 = Drive/Sport/Manual mode; `0x0BA` = the box's own target gear incl. **reverse**; raw at `raw/gear_box_can_revealings.csv` + `raw/gearbox_engaged_gear.csv`
- [[can-capture-2026-07-17-drive]] — **first capture with the vehicle moving** (2026-07-17): verifies `0x0BA` gears 2nd–6th directly (making it a complete gear source), catches the lockup clutch live, and produces the ×0.125 output-shaft scaling evidence; raw at `raw/log_20260717_145930.txt`
- [[e65-reverse-engineering-repo]] — **E65 per-ID DBC-style docs (ingested 2026-07-17)** — the highest-value source yet: settled the gearbox-temp offset (raw−40) and battery layout (12-bit ×0.015), proved the engine was running in our capture, and revealed turbine speed, output shaft, pedal position and cruise state
- [[esp32-s3-touch-lcd-5-schematic]] — **the board schematic** (re-downloaded 2026-09-26): VOUT = `I2C_VCC` chosen by solder jumper `H8` (3V3 default / 5V), level-shifted I2C, SY8293 2 A 5 V rail, SD pins, CAN/RS485 GPIOs confirmed
- [[esp32-s3-touch-lcd-5-intro-photo]] — Waveshare annotated board photo (moved into `raw/` 2026-09-21): terminal-block signal order (VIN/GND/VOUT · SDA/SCL · CAN · RS485 A/B · DO0/DO1 · DI), shared CAN/RS485 120 Ω switch, IO0/IO3/IO4/IO46 strapping pads
- [[google-ai-dde7m57-pids]] — Google AI Mode clipping on "dde7m57 pids" (ingested 2026-09-21, raw in `Clippings/`): uncited; its `0x612`-as-request claim is **contradicted**, its D1xx identifiers are `(unverified)`; kept for the Ediabas value names and the user's own observation that `0x612` appears with the Launch connected
- [[diag-route-a-2026-09-23]] — **first live Route A probe run (2026-09-23)**: DDE serves generic OBD mode 01 on `0x7E8` (verified: rpm + coolant cross-checked against the broadcast IDs); supported-PID list; MAF/IAT values implausible (explained by Route B session: sensor faults); mode 09 silent (no VIN); **5 stored DTCs, MIL off**; raw at `raw/diag-20260923-1117*.log`
+4
View File
@@ -146,3 +146,7 @@ User asked to refactor the Settings and Gauge Tuning UX, save the Wi-Fi connecti
`include/ui/` deleted (the SquareLine export: ui_init, placeholder screen, helpers, theme manager); its one live line, the dark LVGL theme, moved to `display_init.cpp`. User verified on `dev` (Wi-Fi forget/scan/rejoin, dialogs, keyboard) and installed v0.1.6 from the screen: "all good". SquareLine references left in `.pio/libdeps` are library examples, never compiled. Recorded the agreed display plan in open-questions #13 (baseline -> bounce buffers -> XIP_FROM_PSRAM on a branch), including why bounce buffers alone won't fix flash-write flicker, and why CAN / wire / ESP-NOW need no buffering (dropped-frame counter deferred by the user).
## [2026-09-26] ingest | Schematic re-downloaded; VOUT = H8 solder jumper (3V3 default / 5V)
User asked whether VOUT becomes 5 V by "unsoldering the resistor". Re-fetched `ESP32-S3-Touch-LCD-5-Sch.pdf` into `raw/` (closes the wishlist item) → [[esp32-s3-touch-lcd-5-schematic]]. Answer: VOUT is net `I2C_VCC`, picked by **`H8`, a 3-pad solder jumper** (1 = 3V3, 2 = VOUT, 3 = 5V; "the default paste is 3V3"): open the 1–2 bridge, bridge 2–3, never all three. The terminal-block I2C lines are level-shifted (NDC7002N, 4.7 k pull-ups to `I2C_VCC`) so they follow the choice. 5 V rail is a SY8293 buck rated 2 A ("run the line at 2A"), screen ≈550 mA, so ≈1 A spare for a load such as Controller B `(unverified estimate)`; not on USB power. Also indexed: SD SPI pins (IO11/12/13, CS EXIO4), CAN IO15/16 and RS485 IO43/44 confirmed. Updated [[esp32-s3-touch-lcd-5b]], [[open-questions]] wishlist, index.
+5 -3
View File
@@ -21,6 +21,8 @@ Controller A of the [[dual-controller-architecture]] — the main in-cabin displ
- Alternative inputs: USB Type-C 5 V; optional single-cell 3.7 V LiPo (CS8501 charge/boost, 580 mA)
- Draw: ~450 mA @ 5 V (~2.3 W)
- Remaining caveat: automotive transient/load-dump spikes (ISO 7637) can exceed 36 V `(unverified)` → [[open-questions]]
- **Power path** (source: [[esp32-s3-touch-lcd-5-schematic]]): VIN → 1N5822 reverse diode + SMAJ36CA TVS → SY8293 buck (2 A, "run the line at 2A") → 5 V rail → 3.3 V LDO. Screen alone ≈550 mA @ 5 V.
- **VOUT terminal = `I2C_VCC`, selected by solder jumper `H8`** (pad 1 = 3V3, pad 2 = VOUT, pad 3 = 5V; factory bridge 1–2 = 3.3 V). For 5 V: open 1–2, bridge 2–3, never all three. The external SDA/SCL are level-shifted (NDC7002N + 4.7 kΩ pull-ups to `I2C_VCC`), so the I2C lines follow. Headroom for a load on VOUT@5 V from the 12 V input ≈1 A `(unverified estimate)` — enough to power Controller B. Not on USB-only power.
> [!warning] Operating temperature 0–65 °C (source: waveshare-wiki)
> Tight for a car: sub-zero winters and sun-baked dashboards both fall outside spec. → [[open-questions]]
@@ -39,9 +41,9 @@ Controller A of the [[dual-controller-architecture]] — the main in-cabin displ
|-----------|---------|
| RS485 | SP3485, auto TX/RX direction; terminal block used for UART1 → Controller B, GPIO 43/44, 115200 baud `(repo)` |
| Isolated I/O | Optocoupler digital in 5–36 V (dry/wet contact), open-drain out sinking 450 mA/ch — could read ignition-on or drive a relay later |
| I2C | External header; CH422G expander occupies 0x20–0x27 & 0x30–0x3F, GT911 touch at 0x5D — avoid these addresses |
| I2C | Terminal block SDA/SCL, level-shifted to `I2C_VCC` (= VOUT, 3.3 V or 5 V via `H8`); CH422G expander occupies 0x20–0x27 & 0x30–0x3F, GT911 touch at 0x5D — avoid these addresses |
| RTC | PCF85063 + CR927 coin cell |
| TF card | SD_CS driven via CH422G EXIO4 |
| TF card | SPI: MOSI IO11, SCK IO12, MISO IO13; SD_CS via CH422G EXIO4 (source: schematic) |
| USB Serial | Native USB-CDC (`Serial`, enumerates 303A:1001, ~1 MB/s), console + CANRAW `(repo)`. **Opening the port with default DTR/RTS resets the board** (`rst:0x15`) — set both low before opening (`--dtr 0 --rts 0`) to attach without a reboot `(verified 2026-09-26)` |
Note: the screen occupies most GPIOs; auxiliary functions (backlight, reset, SD_CS) route through the CH422G IO expander — spare native GPIOs are scarce.
@@ -66,4 +68,4 @@ Note: the screen occupies most GPIOs; auxiliary functions (backlight, reset, SD_
## Related
[[dual-controller-architecture]] · [[can-bus-integration]] · [[ota-updates]] · [[esp32-s3-touch-lcd-5b-waveshare-wiki]]
[[dual-controller-architecture]] · [[can-bus-integration]] · [[ota-updates]] · [[esp32-s3-touch-lcd-5b-waveshare-wiki]] · [[esp32-s3-touch-lcd-5-schematic]]
+1 -1
View File
@@ -60,7 +60,7 @@ The research frontier. Answering any of these should trigger updates across the
## Sourcing wishlist
- ~~Waveshare product page~~ ✅ ingested → [[esp32-s3-touch-lcd-5b-waveshare-wiki]]
- Waveshare **schematic PDF** (linked from the product page: `ESP32-S3-Touch-LCD-5-Sch.pdf`) — would confirm CAN GPIO routing and power path
- ~~Waveshare **schematic PDF**~~ ✅ re-downloaded into `raw/` 2026-09-26 → [[esp32-s3-touch-lcd-5-schematic]] (VOUT/H8 selection, 5 V rail budget, SD pins)
- ~~A community DBC / CAN-ID list for the donor platform~~ ✅ ingested → [[e65-reverse-engineering-repo]]
- ~~A real candump log from the engine running~~ ✅ → [[can-capture-2026-07-15]] (engine confirmed running, 2026-07-17)
- **`6HP26.pdf`** — sitting in the E65 repo's `docs/`. The ZF 6HP26 manual, very likely our exact gearbox: gear ratios would let us convert output-shaft rpm → road speed and self-check the D3/D4 scaling. → [[driveline-speed-signals]]
Binary file not shown.
@@ -0,0 +1,35 @@
---
type: source
tags: [hardware, waveshare, schematic, power, i2c, verified-source]
updated: 2026-09-26
---
# Waveshare ESP32-S3-Touch-LCD-5 schematic (`ESP32-S3-Touch-LCD-5-Sch.pdf`)
Raw: `raw/ESP32-S3-Touch-LCD-5-Sch.pdf` (3 sheets, V1.2), re-downloaded 2026-09-26 from `https://files.waveshare.com/wiki/ESP32-S3-Touch-LCD-5/ESP32-S3-Touch-LCD-5-Sch.pdf`. The LCD-5 and LCD-5B share this sheet (the B is the 1024×600 panel variant). Its net list was read once in the 2026-09-21 session and then lost; this copy is the one to keep. Read for the **VOUT question** (2026-09-26); the rest of the sheet is only indexed here.
## VOUT / I2C_VCC selection — answered
- Terminal block `P1` pin 3 (silkscreen **VOUT**) is net **`I2C_VCC`** (sheet 1, the 16-way header: `VIN GND I2C_VCC GND D_SDA D_SCL CANL CANH RS485_TX- RS485_TX+ DOUT0 DOUT1 DI_COM GND DIN0 DIN1`).
- `I2C_VCC` is chosen by **`H8`, a three-pad solder jumper**, not a resistor: pad 1 = `3V3`, pad 2 (centre) = `I2C_VCC`, pad 3 = `5V`. Sheet note: *"The default paste is 3V3"* — the factory solder bridge joins pads 1–2.
- **To get 5 V on VOUT: remove the bridge between pads 1–2 and bridge pads 2–3.** Never leave all three joined (it shorts the 3.3 V regulator output to the 5 V rail).
- The external SDA/SCL are **level-shifted** through `M1` (NDC7002N dual MOSFET) with 4.7 kΩ pull-ups `R101`/`R102` to `I2C_VCC` on the terminal side and `R99`/`R100` to `3V3` on the ESP side — so moving `H8` to 5 V also makes the terminal-block I2C lines 5 V logic, safely. This is what the Waveshare wiki means by "sets the supply voltage and I/O level for I2C devices".
- `I2C_VCC` also appears at header `H8`'s neighbour `H1` (touch-panel FPC) area only as a label; the touch panel itself runs on `3V3`.
## 5 V rail budget (for whatever hangs on VOUT)
- `VIN` (7–36 V terminal) → `D17` 1N5822 reverse-protection Schottky + `D3` SMAJ36CA TVS → `U1` **SY8293** synchronous buck → **`DC_5V`**, `L3` 4.7 µH 8 A, note *"Run the line at current 2A"*. `DC_5V` feeds the 5 V rail (and VBUS via `Q4` AO3401 ideal-diode-style switch).
- Sheet note: *"The screen itself consumes close to 550 mA"*; the wiki's whole-board figure is ~450 mA @ 5 V. Realistic headroom on VOUT@5 V from the 12 V input: **roughly 1 A**, comfortably enough for Controller B (~150–200 mA) `(unverified estimate; the regulator is rated for 2 A total)`.
- On USB-only power the 5 V rail is the host's 500 mA — do not load VOUT then.
- Caveat for the vehicle: the 36 V TVS is the only transient clamp; the ISO 7637 concern in [[open-questions]] #6 stands.
## Other confirmations (index only)
- CAN: `CANTX` = IO15, `CANRX` = IO16 (matches `(repo)`); RS485: `RS485_TXD` = IO44, `RS485_RXD` = IO43 (matches [[esp32-s3-touch-lcd-5-intro-photo]]).
- SD card on `MOSI` IO11 / `SCK` IO12 / `MISO` IO13, `SDCS` on CH422G `EXIO4` — the pin facts needed for the SD "black box" idea in [[obd-diagnostic-polling]].
- Isolated outputs `DO0`/`DO1` via PC817 optocouplers driven from `OD0`/`OD1` (CH422G), inputs `DI0`/`DI1` via PC814.
- Strapping pads `R87–R94` (IO0/IO3/IO45/IO46).
## Related
[[esp32-s3-touch-lcd-5b]] · [[esp32-s3-touch-lcd-5b-waveshare-wiki]] · [[esp32-s3-touch-lcd-5-intro-photo]] · [[dual-controller-architecture]]