docs: align active hardware and API guidance
This commit is contained in:
1 parent
ab5424d82e
commit
6b39e7e438
24 files changed
+219
-261
No files matched your search
+17
-26
@@ -24,12 +24,12 @@ Do not directly route fridge, Starlink, inverter, lights, or other major loads t
|
||||
|
||||
Target:
|
||||
|
||||
Waveshare ESP32-S3-Touch-LCD-5
|
||||
Waveshare ESP32-S3 Touch LCD 5B
|
||||
|
||||
Reasons:
|
||||
|
||||
- ESP32-S3 is mature enough for LVGL dashboard
|
||||
- 5 inch 800x480 display gives enough UI space
|
||||
- 5 inch 1024x600 display gives enough UI space
|
||||
- WiFi connects to Cargo ESP32 AP
|
||||
- CAN interface with onboard TJA1051 supports future OBD-II vehicle data
|
||||
- microSD allows future logging
|
||||
@@ -149,15 +149,8 @@ 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
|
||||
Current Cargo ESP32 GPIO plan is defined by the active LILYGO T-Relay-S3
|
||||
profile below. Do not use the retired direct-GPIO relay map.
|
||||
|
||||
## Automotive Load-Switching Layer
|
||||
|
||||
@@ -214,13 +207,12 @@ Current expectation:
|
||||
|
||||
Do not move cargo/fridge temperature sensing to the dashboard controller unless the architecture is explicitly changed later.
|
||||
|
||||
## Ordered Cargo ESP Hardware: LILYGO T-Relay-S3 6-Way
|
||||
## Cargo Controller: LILYGO T-Relay-S3 6-Way
|
||||
|
||||
The LILYGO T-Relay-S3 6-way board has been ordered as a future Cargo ESP candidate.
|
||||
The active Cargo controller is the LILYGO T-Relay-S3 6-way board. Its relay
|
||||
outputs are low-current control outputs; they do not carry major load current.
|
||||
|
||||
Current active testing should continue on the existing 2-channel relay board until the LilyGO board arrives and is bench tested.
|
||||
|
||||
Planned LilyGO role:
|
||||
Current role:
|
||||
|
||||
LILYGO T-Relay-S3 6-way
|
||||
-> low-current control/relay outputs
|
||||
@@ -228,17 +220,18 @@ Planned LilyGO role:
|
||||
-> fused load switching
|
||||
Fridge / Starlink / lights / spare / spare / spare
|
||||
|
||||
Important guardrails:
|
||||
Guardrails:
|
||||
|
||||
- Do not migrate active firmware assumptions until the board is physically available.
|
||||
- Bench test relay boot behavior before connecting to WUPP or vehicle loads.
|
||||
- Confirm relay polarity/state behavior.
|
||||
- Confirm available GPIO for DS18B20 and any optional OLED/status hardware.
|
||||
- Treat the LilyGO board as the controller, not the high-current load path.
|
||||
|
||||
## 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 XIAO ESP32-C6 node provides MAX-M10S GPS and BNO086 IMU telemetry to the
|
||||
dashboard over RS485. The dashboard does not need a second, direct GPS module
|
||||
for the current architecture.
|
||||
|
||||
## XIAO sensor-node RS485 link
|
||||
|
||||
@@ -252,11 +245,8 @@ The dashboard uses the Waveshare ESP32-S3-Touch-LCD-5B onboard RS485 receiver fo
|
||||
The onboard transceiver handles direction automatically. Configure 115200 baud, 8-N-1, connect A-to-A, B-to-B, and share ground. Keep **USB CDC On Boot** enabled so USB diagnostics do not claim the RS485 UART pins.
|
||||
|
||||
|
||||
### LilyGO T-Relay-S3 6-relay cargo controller
|
||||
|
||||
The cargo ESP now targets the LilyGO T-Relay-S3 6-relay board.
|
||||
|
||||
Relay control is handled through the onboard 74HC595 shift register, not direct ESP32 GPIO relay outputs.
|
||||
Relay control is handled through the onboard 74HC595 shift register, not direct
|
||||
ESP32 GPIO relay outputs.
|
||||
|
||||
| Function | GPIO |
|
||||
| --- | --- |
|
||||
@@ -274,6 +264,7 @@ Relay control is handled through the onboard 74HC595 shift register, not direct
|
||||
| relay_5 | CH5 | SR5 |
|
||||
| relay_6 | CH6 | SR6 |
|
||||
|
||||
GPIO4 is reserved for relay output-enable on this board, so the DS18B20 OneWire bus is moved to GPIO14.
|
||||
GPIO4 is reserved for relay output-enable on this board, so the DS18B20 OneWire
|
||||
bus uses GPIO15.
|
||||
|
||||
Avoid GPIO35-GPIO37 on the LilyGO T-Relay-S3 because they are used by Octal SPI flash.
|
||||
Reference in new issue
Block a user