Add wiki second brain and root CLAUDE.md; retire .docs
- New wiki/ (Obsidian vault) following the LLM Wiki pattern: schema, index, log, entity page for the board, concept pages for the A->B link, wired+wireless redundancy, and Patrol gauge outputs, open questions, two sources - New CLAUDE.md distilled from the surviving .docs content: verified pins, brightness/receiver/debug APIs, SquareLine rules, CH343 serial notes, gear-enum drift warning, Waveshare demo and schematic URLs - Delete .docs/ (14 files): stale pin-hunting and troubleshooting guides, wrong header table, finished phase roadmap, duplicate UART spec (now in the 5B repo at docs/UART_PROTOCOL.md) - README.md repointed to CLAUDE.md and wiki/ Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
---
|
||||
type: entity
|
||||
tags: [hardware, waveshare, display, gpio]
|
||||
updated: 2026-09-21
|
||||
---
|
||||
|
||||
# Waveshare ESP32-S3-LCD-1.3
|
||||
|
||||
Controller B of the [[controller-link]] — the compact secondary unit. Receives the sensor stream from Controller A, shows it on a 1.3" round-masked display, and is the board chosen to drive the Patrol cluster gauges ([[patrol-gauge-outputs]]) because it is the only one of the two with free hardware-PWM pins on a header.
|
||||
|
||||
## Specs (source: waveshare-wiki-esp32-s3-lcd-1-3)
|
||||
|
||||
- ESP32-S3R8: Xtensa LX7 dual-core @ 240 MHz, 512 KB SRAM, 384 KB ROM
|
||||
- 16 MB external flash, 8 MB PSRAM (firmware builds with `qio_opi` memory type `(repo)`)
|
||||
- 1.3" IPS LCD, 240×240, 262K colour, ST7789VW over SPI; the "round" look is a software circular mask `(repo)`
|
||||
- QMI8658 six-axis IMU (accelerometer + gyro) on I2C — pins not stated by the wiki; unused by firmware `(repo)`
|
||||
- TF card slot — pins not stated by the wiki; unused by firmware `(repo)`
|
||||
- 2.4 GHz Wi-Fi 802.11 b/g/n + **Bluetooth 5 (BLE)**, onboard ceramic patch antenna — the basis of the BLE half of [[link-redundancy]]
|
||||
- USB Type-C with a **CH343 USB-serial bridge** (WCH-CH343DS1), not native USB-CDC. Debug `Serial` therefore rides UART0 `(repo)`
|
||||
- Power: 5 V over USB-C; MX1.25 single-cell LiPo connector with PL4054 charger and charge LED; ME6217C33M5G 3.3 V LDO rated 800 mA max
|
||||
- "16PIN GPIO lead-out" = the two 8-pin headers below
|
||||
- Operating temperature, power draw, dimensions and weight: **not stated** on the product wiki `(source: waveshare-wiki-esp32-s3-lcd-1-3)` → [[open-questions]]
|
||||
|
||||
## Header pinout (verified from the Waveshare pinout photo, [[pinout-photo-details-7]])
|
||||
|
||||
Two 8-pin 2.54 mm headers, one per side, viewed with the USB-C at the top:
|
||||
|
||||
| Left header (top→bottom) | Right header (top→bottom) |
|
||||
|---|---|
|
||||
| 5V | IO14 |
|
||||
| GND | IO13 |
|
||||
| 3V3 (OUT) | IO12 |
|
||||
| IO1 | IO11 |
|
||||
| IO2 | IO10 |
|
||||
| IO3 | IO9 |
|
||||
| IO4 | IO8 |
|
||||
| IO5 | IO7 |
|
||||
|
||||
Waveshare marks every one of the 13 GPIOs as UART / PWM / I2S / ADC / I2C / SPI capable — i.e. plain ESP32-S3 pins routed through the GPIO matrix, no fixed function.
|
||||
|
||||
> [!warning] The former `.docs/UART_WIRING_GUIDE.md` (deleted 2026-09-21) listed a 13-pin header carrying IO35–IO42 `(repo)`. That is wrong: IO38–IO42 are the display's SPI lines and never reach a header, and IO35–37 are the OPI PSRAM bus. The photo is the authoritative pinout.
|
||||
|
||||
## GPIO budget
|
||||
|
||||
Internally committed `(repo)`:
|
||||
|
||||
| GPIO | Function |
|
||||
|---|---|
|
||||
| 40 / 41 | LCD SCLK / MOSI |
|
||||
| 38 / 39 / 42 | LCD DC / CS / RST |
|
||||
| 20 | LCD backlight, LEDC PWM 0–255 (default 128) |
|
||||
| 43 / 44 | UART0 to the CH343 USB bridge = debug console `(unverified — inferred from the CH343 being on UART0)` |
|
||||
| 35–37 | OPI PSRAM `(unverified — standard for R8 modules)` |
|
||||
|
||||
Header GPIOs and their current use `(repo)`:
|
||||
|
||||
| GPIO | Use today | Note |
|
||||
|---|---|---|
|
||||
| IO1 | UART1 RX from Controller A | keep |
|
||||
| IO2 | UART1 TX (link is receive-only, so idle) | effectively free |
|
||||
| IO3 | free | S3 strapping pin (JTAG select) — avoid |
|
||||
| IO4, IO5 | free | |
|
||||
| IO7–IO14 | free | proposed home of the gauge outputs → [[patrol-gauge-outputs]] |
|
||||
|
||||
Net: **10 clean, unconstrained GPIOs** (IO4, IO5, IO7–IO14) plus IO2 and IO3 with caveats.
|
||||
|
||||
## Firmware-side facts worth knowing (repo)
|
||||
|
||||
- Display driven by LovyanGFX 1.1 + LVGL 8.4.0, 80 MHz SPI write; LVGL task on Core 1, UART receiver on Core 0
|
||||
- Warning thresholds baked in: coolant 110 °C, engine oil 130 °C, gearbox oil 130 °C, battery below 11.0 V
|
||||
- Link considered lost after 1000 ms without a valid packet → [[controller-link]]
|
||||
- Original implementation guide proposed the link on GPIO 43/44, which would have collided with the CH343 console; the shipped firmware moved it to IO1 `(repo)`
|
||||
|
||||
## Related
|
||||
|
||||
[[controller-link]] · [[link-redundancy]] · [[patrol-gauge-outputs]] · [[waveshare-wiki-esp32-s3-lcd-1-3]] · [[pinout-photo-details-7]] · [[open-questions]]
|
||||
Reference in New Issue
Block a user