docs: align active hardware and API guidance

This commit is contained in:
nick committed 2026-11-23 13:47:24 -07:00
1 parent ab5424d82e
commit 6b39e7e438
24 files changed
+219 -261

No files matched your search

+13 -18
View File
@@ -18,7 +18,7 @@ Cargo ESP32 Controller
Waveshare ESP32-S3 Dashboard
- Connects to cargo ESP32 AP
- Polls /status
- Polls `/api/v1/status`
- Renders LVGL dashboard
- Sends relay commands over HTTP
@@ -165,15 +165,9 @@ Active dashboard communication is WiFi/HTTP using `/api/v1`.
The old Pico/dashboard UART path is retired from active hardware use. USB Serial remains available for development, debug, and manual configuration from a computer.
Current Cargo ESP32 GPIO plan:
- GPIO 16: Relay 1 trigger output
- GPIO 17: Relay 2 trigger output
- GPIO 4: DS18B20 OneWire temperature bus
- GPIO 34: Ignition sense input
- GPIO 21: SSD1306 OLED I2C SDA
- GPIO 22: SSD1306 OLED I2C SCL
- GPIO 25: OLED setup/status button
The dashboard does not use the Cargo controller's relay or OneWire GPIO. The
active Cargo profile is `lilygo_trelay_s3_6ch`; see `docs/HARDWARE.md` for its
current pin map.
## Not Dashboard Responsibilities
@@ -195,7 +189,8 @@ DS18B20 sensors are already implemented on the Cargo ESP/WebUI/API side. For v1,
## API Dependency
The ESP32-S3 dashboard depends on the Cargo ESP API contract documented in `docs/cargo-api-contract.md`.
The ESP32-S3 dashboard depends on the Cargo ESP API contract documented in
`docs/API.md`.
For v1, the dashboard should consume:
@@ -243,14 +238,12 @@ Implemented:
- WiFi signal strength display
- Cargo ESP connectivity indicator
Planned next work:
Next work:
- Temperature card redesign
- Swipe/page navigation
- Battery detail page
- Vehicle data page
- CAN/OBD-II integration
- BNO085/BNO086 tilt visualization
- Validate coolant data from passive CAN captures
- BNO086/MAX-M10S off-road visualization
### Temperature Sensor Grouping
@@ -295,9 +288,11 @@ Each temperature sensor supports optional high-temperature alerting:
When enabled and the live sensor temperature exceeds the configured threshold, the Cargo ESP includes `high_alert: true` for that sensor in `/api/v1/status`. The ESP32-S3 dashboard colors the affected grouped temperature tile red if any sensor in that displayed group is in alert.
## M9N GPS Module
## Sensor-node GPS and IMU
The dashboard enclosure will include an M9N GPS module connected to the ESP32-S3 dashboard over UART. It will provide GPS fix status, satellite count, position, speed, and UTC time. Future work will use GPS time/location for automatic timezone and DST handling.
The dashboard already receives MAX-M10S GPS and BNO086 IMU telemetry from the
XIAO ESP32-C6 over RS485. A dedicated vehicle/off-road page is the remaining
product work.
### Hidden Dashboard Diagnostics