wiki: Ingest Waveshare LCD-5B product page; resolve CAN transceiver and power questions

This commit is contained in:
2026-07-15 12:22:25 +02:00
parent 37f98a241f
commit 90862a573b
5 changed files with 95 additions and 26 deletions
+35 -20
View File
@@ -6,36 +6,51 @@ updated: 2026-07-15
# Waveshare ESP32-S3-Touch-LCD-5B
Controller A of the [[dual-controller-architecture]] — the main in-cabin display.
Controller A of the [[dual-controller-architecture]] — the main in-cabin display. SKU 28151, the 1024×600 capacitive-touch variant of the LCD-5 family. Primary reference: [[esp32-s3-touch-lcd-5b-waveshare-wiki]].
> [!note]
> The raw source `raw/ESP32-S3-Touch-LCD-5B.md` (presumably a clip of the Waveshare product page) is currently **empty** — re-clip it and ingest to flesh this page out with official specs.
## Specs (source: waveshare-wiki)
## Specs (repo)
- ESP32-S3-WROOM-1-N16R8 module: dual-core LX7 @ 240 MHz, 16 MB flash, 8 MB OPI PSRAM
- 5" IPS 1024×600, 65K colors (16-bit), 550 cd/m², GT911 5-point capacitive touch, tempered glass
- 2.4 GHz Wi-Fi + BLE 5, onboard antenna (keep metal away from antenna area)
- Runs LVGL 8.4.0 at ~50 FPS via ESP32_Display_Panel v1.0.4 `(repo)`
- ESP32-S3 dual-core @ 240 MHz, 16 MB flash, 8 MB **OPI** PSRAM
- 5-inch 1024×600 RGB LCD (RGB888 parallel interface), capacitive touch
- Runs LVGL 8.4.0 at ~50 FPS via ESP32_Display_Panel v1.0.4
## Power (source: waveshare-wiki)
## Pin usage in this project (repo)
- **7–36 V DC wide-input terminal** — vehicle 12 V feeds it directly, no external regulator needed. ✅ resolves most of the power question
- 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]]
| Function | Pins | Notes |
|----------|------|-------|
| CAN (TWAI) | GPIO 15 TX / GPIO 16 RX | 500 kbps, LISTEN_ONLY; external transceiver required — which one? → [[open-questions]] |
| UART1 → Controller B | GPIO 43 TX / GPIO 44 RX | 115200 baud, exposed on the board's RS485 terminal block |
| USB Serial | UART0 | debug @ 115200 |
> [!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]]
## Hard-won hardware lessons (repo)
## CAN interface (source: waveshare-wiki)
- **Onboard TJA1051T/3/1J transceiver**, CAN 2.0, on a 3.5 mm terminal block — wire CAN-H/L straight in. ✅ resolves the transceiver question
- **120 Ω termination switch, OFF by default — leave it off** when tapping an existing vehicle bus (the bus is already terminated at both ends).
- Firmware drives it via TWAI on GPIO 15 TX / 16 RX, 500 kbps, LISTEN_ONLY `(repo)`.
## Other interfaces
| Interface | Details |
|-----------|---------|
| 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 |
| RTC | PCF85063 + CR927 coin cell |
| TF card | SD_CS driven via CH422G EXIO4 |
| USB Serial | UART0, debug @ 115200 `(repo)` |
Note: the screen occupies most GPIOs; auxiliary functions (backlight, reset, SD_CS) route through the CH422G IO expander — spare native GPIOs are scarce.
## Hard-won firmware lessons (repo)
- 8MB OPI PSRAM demands `qio_opi` memory type + custom board JSON — wrong setting causes screen flicker/drift.
- LCD wants a 16 MHz pixel clock with correct PCLK polarity.
- Backlight must be manually sequenced at boot to avoid a white flash.
## Open hardware questions
- Automotive power: the board wants 5 V; a vehicle supplies 9–16 V with load-dump transients. What regulator/protection is planned? → [[open-questions]]
- CAN transceiver part and wiring (the TWAI peripheral is only the controller — GPIO 15/16 are logic-level).
- Flashing: use the Type-C port labeled UART; hold BOOT while connecting if the port isn't recognized (source: waveshare-wiki).
## Related
[[dual-controller-architecture]] · [[can-bus-integration]]
[[dual-controller-architecture]] · [[can-bus-integration]] · [[esp32-s3-touch-lcd-5b-waveshare-wiki]]
+9 -3
View File
@@ -21,12 +21,18 @@ The research frontier. Answering any of these should trigger updates across the
## Hardware
6. **CAN transceiver**: which part (SN65HVD230? TJA1050?) and how is it wired to GPIO 15/16? → [[esp32-s3-touch-lcd-5b]]
7. **Automotive power supply**: 12 V vehicle → 5 V board conversion, transient/load-dump protection, ignition-switched vs constant power.
6. **Operating temperature 0–65 °C** (source: waveshare-wiki) — outside automotive norms at both ends (sub-zero winter cabins, sun-baked dashboards). Is the mounting location temperature-controlled enough? Any mitigation (mounting away from vents/sun, accepting reduced lifespan)?
7. **Transient protection on the 7–36 V input**: the board takes vehicle 12 V directly, but ISO 7637 load-dump spikes can exceed 36 V `(unverified)`. Consider an upstream TVS diode / automotive-rated buck. Also: ignition-switched vs constant power (the isolated digital input could sense ignition).
8. **Fault codes**: the UART packet reserves a field for fault codes — DDE fault codes are read via diagnostic protocols (KWP2000/UDS over K-line or CAN), not passively broadcast. Is passive reading even possible? `(unverified)`
## Answered
- ~~CAN transceiver?~~ → **Onboard TJA1051T/3/1J** on a terminal block; leave the 120 Ω termination switch OFF when tapping the vehicle bus. (source: waveshare-wiki, 2026-07-15) → [[esp32-s3-touch-lcd-5b]]
- ~~12 V → 5 V power conversion?~~ → **Not needed**: board has a 7–36 V DC wide input. Residual transient concern moved to #7. (source: waveshare-wiki, 2026-07-15)
## Sourcing wishlist
- Waveshare ESP32-S3-Touch-LCD-5B product page + schematic (the current raw clip is empty — re-clip it)
- ~~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
- A community DBC / CAN-ID list for the donor platform
- A real candump log from the engine running