/VRE_VCU

Handles car's data logging, RTDS, APPS check, and more

Primary LanguageC++

VRE_VCU

Board

The VCU handles the following tasks :

  1. Listening to throttle pedal, brake pressure, wheel speed, start button, other dash buttons
  2. Generating appropriate throttle signal, RTDS, dispaly data, APPS plausibility check, work on shutdown circuit
  3. Data logging, wireless live logging, Remote Emergency Shutdown, etc.

Libraries used :

Refer to AdityaNG/VRE_CAN for CAN Data logger implementation.

Banner

TODO

  1. Data logging with dates
  2. Wireless live data logging
  3. Brake Pressure, Wheel Speed, Start button
  4. RTDS, APPS check, Shutdown line
  5. MPU Connection hang bug (system waits forever to connect to MPU)
  6. SD card consistency issue
  7. PCB - level shifter shape and pinout
  8. PCB - Power connector is to be reversed
  9. PCB - SD Card Mount Orientation
  10. PCB - Add shutdown relays
  11. PCB - Add BSPD daughter board
  12. PCB - ESP32 [Look at Strapping Pins] Error message - :A fatal error occurred: MD5 of file does not match data in flash!" - Disconnecting pin 12 from the level shifter fixed this
  13. PCB - RTC and MPU are too close to each other
  14. PCB - Add termination resistor of either 60 Ohm or 120 Ohm to CAN (60 seems to work)

Strapping Pins

The ESP32 chip has the following strapping pins:

  • GPIO 0
  • GPIO 2
  • GPIO 4
  • GPIO 5 (must be HIGH during boot)
  • GPIO 12 (must be LOW during boot)
  • GPIO 15 (must be HIGH during boot)