So, Im working on a project to integrate a raspberry pi using either CAN bus or I2C / TWI as a light controller. There are 16 possible lights to control. 17 of you count the 3rd brake light, but Iv omitted that for simplicity. The reasoning is two fold. First is to eliminate the GIANT bundles of wires that are coursing up and down the car, making it easier to hid them and simplifying the installation / troubleshooting. Second is for customization. For instance, maybe I want the headlight to dim or turn off on the side that the indicator is active, or I want to make the fog lights turn off when the highs are activated. Heck, maybe I want them to flash on and off like a strobe or some sort of circus ride when in park. Any ways, Using the raspberry pi also makes it simple to integrate with the engine management system I will be using (MegaSquirt 3), to have a custom dashboard and maybe even some entertainment.
I have not yet decided on the method, either CAN or I2C. So Im looking for someones experience, or input on either or. As well as some insight into my idea or deconstruction of it. Attached is a basic idea of the layout and features. Iv labeled the main components, the rest should be fairly straight forward.
- The Red lines are the Relay 12v + high amperage wire,
- Black is the 12v - high amperage wire,
- Orange is the 5v + for I2C or CAN Ground
- Green and yellow are the SDA/SDL or CAN High / CAN Low
I think bringing it all down to just a 5 wire run will make life and customization SOOO Much easier. Thank you for your input and any creative / constructive criticism.