I just went through one of the lamps and tested the circuits and made sure everything is how it should be. I have to dial the power supplies into the 5volts they need to be set at.
Because I am running 2 HID ballasts per housing I couldn't use the stock wiring to power them plus the high and low beams turn on and off with toggling of the high beams. HID's take to long to warm up so when the low beams are on they need to be on all the time. So I had to add 2 relays one for each ballast. I wasn't able to get a relay that would be large enough to carry a 30amp load and get triggered using <= 3.3v @ < 60ma. I built voltage dividers that drop a 15 volt input down to 3.3 volts which is the max input voltage that can be fed into one of the inputs on the processor. I have the parking lights, turn signals, high beams, low beams and ignition tied into an array of voltage dividers so the processor can sense what is on and what is off.
The ignition sense is because of the large amount of electronics in each housing and parasitic current draw. The processor has a deep sleep mode with a 10ua (0.00001 amps) draw, the rest of the electronics don't have sleep modes. One of the power supplies is always going to be powered on to feed power to to the processor. There is a relay off that power supply that turns on and off power to the CAN interface, servo controller, servos, MEMS sensor and is the trigger for another relay. The other relay connects the second power supply to the LED's which have processors in each of the pixels that handle the PWM controlling of the pixel.
I just got finished writing a basic function firmware that will control the relays for the headlights, the controls for handling the LEDs and the nputs from the car. The processor has built in WiFi So I had to code in making one of the processors a WiFi access point that can be connected to. That processor also has a DNS server and a DHCP server so the user is not going to have to do anything when connecting to it. It is also a Web Server that hosts a configuration page so a user can alter things like the colors of the LED's and the speed of the turn signals different animation effects for the LEDs setting the trim for up/down and left/right of the high beams and low beams for each housing. It also has a Websocket Server that the other headlamp processor connects to so config information can be displayed to the user from a single configuration webpage.
Data that is viewed on that config webpage is all real time and any changes made to things like thr trim of the lamps to the colors of the LEDs all happen instantly and the system doesn't need to reboot for anything other then network related changes which the user can also do. setting SSID, WiFi channel, auth type, password, IP address, subnet mask and if the SSID is hidden.
Here is a list of what I have right now for configuration changes in the test firmware.
IP address
SSID
WiFi password
WiFi authentication type/mode
Subnet mask
WiFi channel
SSID visibility
turn signal delay - this is the delay between frames of the turn signal animation
turn signal decay - this is the speed that it takes for trailing pixels to decay/turn off
turn signal number of bright pixels - the number of fully lit pixels for the turn signal
parking light delay - delay between frames for parking light animations
turn signal color
parking light color
There are 2 sets of the above settings one for the front turn signal and another for the marker light
The last setting is the color of the DRL's
I will be adding different animations for turning on and off the parking lights and the drls. There will also be different animation choices for the turn signals.
The firmware is also able to be updated through that config web page.
Once I have everything powered up and the basic firmware running bug free I will add in the movement of the projectors afterwards. I have a 13.8 volt 40 amp bench top power supply so I don't have to install it into the car to run tests and bug test everything.
You can see in the last photo the wiring harness for that headlamp lens. I am going to be using the factory clips for the high/low beam, turn signals and parking lamps. I am going to have to tap into the HSCAN high, HSCAN low and ignition wires which are in the wiring harness that crosses the front of the car behind the bumper. I will be running a power wire to the under hood fuse box and I will add a fuse into the box if I am able to. all of the wiring will be put into the stock wiring harnesses. I have a 22 pin weatherpack water resistant inline clip so I can unplug the housing if I need to remove it from the vehicle. The HID ballasts are going to mount on the bumper cover support that the fender liner attaches to just under the headlights. The marker light has a 3 pin water tight connector and that connector is epoxy bonded into the back of the marker light where the old bulb went in. Inside of the marker light are the 21 pixels attached to a custom made PCB.
Here is an image of the back side of the power distribution/voltage divider board
here are a couple of videos of one of the marker lights as I was working on it.
[youtube]PsRjVL1mq7o[/youtube]
[youtube]ob_KyG1Ww8Y[/youtube]
**EDIT
Here are the links to the videos if you are not able to see them. For some reason they were there and then disappeared.
https://youtu.be/PsRjVL1mq7ohttps://youtu.be/ob_KyG1Ww8Y