Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

QuestionAnswer
How do you control the rear lights?

The lights are controlled by the GPIO pins of the MCP23008 I/O expanders. These I/O expanders are accessible over the I2C bus. The two which control the rear lights are address 0x20 and 0x22.

The expander at 0x20 is used to set the diagnostic selection pins for the strobe light (GP1), rear brake lights (GP2), and rear turning lights (GP3)  - active high. 

The expander at 0x22 is used to enable each of the rear lights (GP2-7) - active high.I

I/O Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/MCP23008-MCP23S08-Data-Sheet-20001919F.pdf

Power Switch Datasheet: https://www.infineon.com/dgdl/Infineon-BTS7200-2EPA-DS-v01_00-EN.pdf?fileId=5546d462636cc8fb016421e548a61215

How to control the power of each board?
What are the incoming CAN messages?
What are the outgoing CAN messages?
How do you manage power when the car turns on?
How do you manage power when the car turns off? 
What is still powered when there's been a BMS fault?

...