Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how do i get an led to have 2 levels of brightness

Status
Not open for further replies.

ronnieroo

Newbie level 4
Joined
Dec 29, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,325
I want to be able to have a set of led's with 2 voltage inputs for a brakelight on a car but i want it to show the nightlight aswell is this possible guys
 

Hi,
You need to PWM the LED, ie have the LED running at 2 duty cycles. What PWM means is that, you have a fixed frequency, thus fixed period. Let's for example take period to be 10 mili seconds. Then to have 100% brightness, the LED must stay on for 10 mili seconds. For 20% brightness, on for 2 mili seconds and off for 8 mili seconds, ie, have a duty cycle of 20%.

You can use a 555 for PWM. There are many ways you can achieve PWM for LED.

Hope this helps.
Tahmid.
 

sorry for being a complete novice but how do i acheive that are there any wiring diagrams i can use.
 

so for instance if i have 30 7000mcd red led,s coming on when lights are turned on with this in line it will allow the same led's to glow brighter when the brake pedal is pushed
 

Hi,
When you set the new duty cycle, the LEDs all grow at the same brightness, if brighter than all glow brighter, else, all glow dimmer.
It depends on what happens when you press the brake pedal. You could wire it up with a fixed resistor that changes the duty cycle in a 555 astable circuit.

Hope this helps.
Tahmid.

---------- Post added at 21:31 ---------- Previous post was at 21:30 ----------

Take a look here for how-to on 555: Practical Electronics/Astables/555 - Wikibooks, open books for an open world
 

Hi,
Yes betwixt, that can be done by controlling current flow. But if he wants to expand, he cant' do that.
 

Hi
I totally agree with betwixt - 2 resistors will do the same job instead of being involved with PWM. In addition there was no request for expanding the solution, so the simplest solution (betwixt - resistors) should be considered as the right one solution (Occam's razor principle).
 

so the 2 resistor route does that involve 2 power sources aswell then could someone diagram it for me please
 

In theory, two resistors can be used. In practice, to achieve acceptable efficiency, car LED lights would use series connected LEDs and constant current driver, preferably switched mode. If it's too complicated, you better go for traditional incandescent lamps.

In Western Europe, DIY car lights won't get an official allowance, by the way.
 

If more LEDs are to be connected, then i think PWM will be more efficient ...is it?
 

I would imagine in an automotive system there would be two switched sources of power, one from the dashboard switch and one from the brake pedal switch. It wouldn't seem efficient to connect them to a PWM generator when resistors would suffice. In a real system there would be a cluster of LEDs but they could be wired in two groups, one for the rear light and one for the brake light, each group consisting of several series LEDs and resistors to make up the required brightness. If all the LED chains were wired with a resistor then paralleled so there were only two external connections, it would still work at two brightness levels, brake with power applied directly to the LED cluster and rear light powered through a single fixed resistor. Depending on other factors in the vehicle, it might be necessary to fit blocking diodes to isolate the power feeds.

Consider the difference in cost between a few resistors and the components needed for a PWM generator and the need for additional wiring to power the PWM circuits.

If the LED brightness had to be variable, I would agree PWM is the method to use but for just two levels it would be overkill.

Brian.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top