Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Help with a circuit for custom car interior lighting with LEDs

Status
Not open for further replies.

Javafox

New Member
I'm working on adding some custom interior lights to my car. I'm trying to achieve certain behavior and since I'm an aerospace engineer, I don't have a lot of circuit knowledge. The first circuit I whipped up ended up burning out my potentiometer. Oops.

Let me describe what I'm trying to accomplish. My LEDs run on 12V. I have two circuits capable of outputting 12V: the parking light circuit and the dome light circuit. I would like the LEDs to be lit if either of these is on.

Here's the kicker: when only the parking lights are on, I want the LEDs to controlled by a potentiometer so I can vary their brightness. This is because the strips I have are too bright for ordinary night driving and need to be dimmed.

Then, when the doors are opened and the dome light circuit is on, I want the LEDs to see 12V. This will have the effect of increasing the brightness when the doors are opened, which would be awesome.

I've done the either-or case without the potentiometer with a pair of diodes. That works fine. But when I try adding in the potentiometer, it smokes.

I should also add that the voltage in either of these circuits is not a known constant. While the voltage in the parking light circuit is pretty close to 12V when they're on, the dome lights fade out and the voltage drops smoothly from around 12V to around 2V.

Can someone with more electrical engineering knowledge help me out a bit?

I attached a wiring diagram of my faulty, pot-smoking circuit for reference.
 

Attachments

  • circuit.jpg
    circuit.jpg
    77.9 KB · Views: 196
I guess at a high level, what I'm really after is a circuit that emulates the MAX function with two inputs. I haven't been successful in finding examples of such a circuit. Do they exist?
 
I think you need two diodes. Other wise you will have power from the parking light going to power the dome light. With two diodes your LED will have the larger of the two voltages.

I don't know why your pot is burning out. 10K or 10 ohms?
 

Attachments

  • Untitled.png
    Untitled.png
    85.9 KB · Views: 152
A pot has a maximum allowed power rating that is very small, usually less than 0.5W. The pot can control an electronic circuit that applies adjusted power to your LEDs.
But we do not know how many LEDs and we do not know the maximum current taken by the LEDs.

If you have 30 strings of 3 LEDs in series and each string takes 20mA then the total current is 30 x 20mA= 600mA and the power is 12V x 600mA= 7.2W.

The electronic circuit can be a hot darlington power transistor emitter-follower or it can be cool pulse-width-modulation circuit.
 
I assume the LED strips have built-in current-limiting resistors.
Here is a circuit using a darlington power transistor. The pot has very low current so it will not get warm.
The darlington transistor will get fairly warm and might need a little heatsink if many LEDs are driven.
 

Attachments

  • Dimmer for LEDs.png
    Dimmer for LEDs.png
    28.7 KB · Views: 152
This only works for a single input, though, right? I'm trying to make it work with two inputs and take the max of the two.

And, yes, the LED strips do have resistors.
 
Last edited:
This only works for a single input, though, right? I'm trying to make it work with two inputs and take the max of the two.
Make an OR gate with two diodes that feed the pot. Then either signal controls the LEDs.

Will something like this work for the dimming?
The PWM motor speed controller can be used to dim the LEDs.
 
Great. I think I'm going to use that. Much easier for me to deal with than doing a home-brew circuit with transistors. Thanks for the help.
 
Last edited:
Last question: This dimmer below has a message: "Will not work properly in vehicle circuits where you are grounding to the frame." I assume they wouldn't be making this up. Why would this be the case and will similar ones have this problem?
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top