I'm looking to hook up a bi-color LED lightbar to my headlights. Desired function is High beam turns on yellow LED, Low beam is white LED. The light bar has 3 wires. Red for power, then white wire turns on yellow LED when grounded. Black wire turns on White LED when grounded. I want a plug-n-play solution, so don't want to add another power wire to the system... so I want the relay board powered by whichever light is on (hi or lo). The low beam and high beam are never on at the same time.
I'm trying to figure out the best way to do this. For packaging in a small box, I'm Currently thinking using a "DC 12V 2 Channel Relay Module with Isolated Optocoupler" off ebay.
The relay will complete the ground circuit when activated.
Just trying to figure out the best way to do the power for the relay module, which will also power the light bar. Do I just run a diode from IN1 and IN2 to the DC+ on the module to supply it with power? Do I need a capacitor from DC+ to DC- to power the board as I switch from high to low beam?
Is there a better way to do this that I am not thinking of.
I'm trying to figure out the best way to do this. For packaging in a small box, I'm Currently thinking using a "DC 12V 2 Channel Relay Module with Isolated Optocoupler" off ebay.
The relay will complete the ground circuit when activated.
Just trying to figure out the best way to do the power for the relay module, which will also power the light bar. Do I just run a diode from IN1 and IN2 to the DC+ on the module to supply it with power? Do I need a capacitor from DC+ to DC- to power the board as I switch from high to low beam?
Is there a better way to do this that I am not thinking of.
Attachments
-
650.7 KB Views: 11