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
+22
-32
@@ -1,6 +1,6 @@
|
||||
# Roadmap
|
||||
|
||||
## Phase 1: Solid Local Cargo Controller
|
||||
## Phase 1: Solid Local Cargo Controller — established
|
||||
|
||||
- Reliable relay control
|
||||
- Reliable DS18B20 temps
|
||||
@@ -10,14 +10,12 @@
|
||||
- Stable HTTP API
|
||||
- Clear status/config/control model
|
||||
|
||||
## Phase 2: Waveshare ESP32-S3 Dashboard
|
||||
## Phase 2: Waveshare ESP32-S3 Dashboard — in progress
|
||||
|
||||
- LVGL project scaffold
|
||||
- WiFi client to Cargo ESP32 AP
|
||||
- Poll /status
|
||||
- Display battery, relays, temps, and alarms
|
||||
- Send relay commands
|
||||
- Handle offline/stale/failed-command states
|
||||
- LVGL dashboard, WiFi client, HTTP status polling, relay commands, and stale
|
||||
state handling are implemented.
|
||||
- Continue dashboard UX and vehicle-data integration without moving Cargo
|
||||
control authority.
|
||||
|
||||
UI direction:
|
||||
|
||||
@@ -28,13 +26,11 @@ UI direction:
|
||||
- Smooth subtle animations
|
||||
- No stock LVGL demo look
|
||||
|
||||
## Phase 3: Vehicle Data
|
||||
## Phase 3: Vehicle Data — in progress
|
||||
|
||||
- Connect Waveshare CAN to OBD-II CAN-H/CAN-L
|
||||
- Keep CAN termination disabled
|
||||
- Read coolant temp via PID 0105
|
||||
- Read RPM via PID 010C
|
||||
- Read vehicle speed via PID 010D
|
||||
- Passive CAN capture and coolant PID diagnostics are implemented on the
|
||||
dashboard; keep CAN termination disabled.
|
||||
- Validate coolant data before adding RPM, speed, or any active OBD polling.
|
||||
|
||||
## Phase 4: Transmission Temperature
|
||||
|
||||
@@ -136,22 +132,16 @@ 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 active Cargo profile is `lilygo_trelay_s3_6ch`. Relays are driven by the
|
||||
onboard 74HC595; GPIO4 is relay output-enable and DS18B20 OneWire uses GPIO15.
|
||||
See `docs/HARDWARE.md` for the full pin map.
|
||||
|
||||
## Future Wishlist Parking Lot
|
||||
|
||||
These are intentionally not committed v1 architecture until explicitly promoted:
|
||||
|
||||
- BNO085/BNO086 tilt sensor
|
||||
- CAN sniffing beyond standard OBD-II polling
|
||||
- Dedicated off-road visualization for the existing BNO086/MAX-M10S RS485 node
|
||||
- CAN signal identification beyond the current passive capture and coolant work
|
||||
- Fault-code support
|
||||
- Standalone dashboard mode
|
||||
- Additional cargo outputs
|
||||
@@ -183,15 +173,15 @@ Next Dashboard Milestones:
|
||||
|
||||
- Temperature card redesign
|
||||
- Swipe navigation
|
||||
- Battery detail page
|
||||
- Vehicle page
|
||||
- OBD-II integration
|
||||
- CAN integration
|
||||
- BNO085/BNO086 off-road attitude display
|
||||
- Validate coolant data from captured vehicle traffic
|
||||
- BNO086/MAX-M10S off-road attitude display
|
||||
|
||||
## 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 sensor node already provides MAX-M10S GPS and BNO086 IMU
|
||||
telemetry to the dashboard over RS485. Future work is a dedicated vehicle/off-road
|
||||
presentation, not a second dashboard-local GPS design.
|
||||
|
||||
## Planned: WebSocket live dashboard updates
|
||||
|
||||
@@ -220,6 +210,6 @@ Rationale:
|
||||
- [x] Expand cargo relay model from 2 outputs to 6 outputs.
|
||||
- [x] Replace direct GPIO relay writes with LilyGO 74HC595 shift-register writes.
|
||||
- [x] Map relay_1 through relay_6 to CH1 through CH6.
|
||||
- [x] Move DS18B20 OneWire default from GPIO4 to GPIO14 because GPIO4 is relay nOE.
|
||||
- [x] Move DS18B20 OneWire from GPIO4 to GPIO15 because GPIO4 is relay nOE.
|
||||
- [ ] Bench test relay boot behavior with no vehicle loads connected.
|
||||
- [ ] Confirm CH1-CH6 order with a meter or test lamp before wiring vehicle loads.
|
||||
Reference in new issue
Block a user