LED Dimmer Circuit
LED Dimmer Circuit
Find out how to put together a simple but efficient PWM dimmer circuit for LEDs
lighting | electronics | electric circuit
LEDs (light emitting diodes) are very sensitive components - exceed their rated current or voltage and their lifespan can be slashed from 50,000+ hours to a microsecond. LEDs are
current-driven * which means that the intensity of the light they generate depends on the amount of electric current flowing them.
*
The voltage drop across an LED depends entirely on the current flowing through it and ranges from 2-4 Volts for most LEDs.
Typically current is controlled using a
resistor in series with the LED, or a
current regulator circuit. Supplying more current to an LED increases its intensity, and reducing the current decreases its intensity. One way of
dimming an LED is to use a
variable resistor (potentiometer) to dynamically adjust the current getting to the LED and therefore increasing or decreasing its intensity. This works very well when just one LED bulb is involved.
Unfortunately, all
LEDs are not made equal - even those of nominally identical specifications from the same batch from the same manufacturer. Although this will not be apparent when strings of LEDs are being driven with the recommended
forward current (e.g. 25mA for ultrabright LEDs), as the current is reduced some LEDs will turn off before others, and some will be dim when others are still quite bright etc.
Pulse Width Modulation
A far superior method of
dimming LEDs is to use
Pulse Width Modulation (PWM). With PWM strings of LED bulbs can all be driven with the recommended forward current, with the
dimming achieved by turning the LEDs on and off at high frequency - so fast the human eye cannot see the strobing effect. The longer the
on periods are relative to the
off periods, the brighter the LEDs will appear to the observer.
Duty Cycle is a percentage measure of the time that the LED is physically on. If, for example, the LED cycles ON for 9/1000 of a second, and then OFF for 1/1000 of a second, the duty cycle is 90%: 90% of the time it is ON, and 10% of the time it is OFF. Therefore, the intensity of the light will be approximately 90% of its undimmed level.
The easiest way to achieve this high frequency switching is to use a
555 timer integrated circuit (IC) - one of the commonest and most versatile ICs ever created. The circuit shown below (from the following article:
Pulse Width Modulator with NE555 Timer Oscillator) is designed to be used as a
dimmer for 12V DC light bulbs or a
speed controller for a 12V DC motor.
This circuit can easily be modified for use as
dimmer circuit for LED bulbs powered from a 12V DC supply as shown below:
The
NPN transistor selected must have an
Ic rating in excess of the sum of the peak currents flowing through the strings of LEDs.
In our test circuit, the resistors in the LED strings were chosen to provide a forward current of 25mA to the LEDs. With three equal strings, the total current was 75mA and so we chose a transistor (BC547) with an Ic rating of 200mA - better safe than sorry.
This
dimmer circuit cannot be used to turn the LEDs all the way off or to full brightness. In fact it operates within a duty cycle range of
5%-95% as the
potentiometer (labelled
P1) is turned from minimum to maximum. (By using
germanium diodes in place of the two
IN4148 signal diodes this dimming range can be extended to go from
1%-99%.)
Using the Dimmer with MR16 LED Spotlights
The circuit described above
cannot be used with
12V MR16 LED spotlights of the type we sell in the
REUK Shop. While individual LED bulbs are completely unharmed by being turned on and off rapidly, the internal circuitry of the spotlight unit does not appear to like it at all.
We connected one of our 12V LED spotlights to the dimmer circuit and found that some of the 20 LEDs in the unit flashed on and off, others turned off altogether, and others alternated between being very bright and very dim.
Article Last Modified: 16:03, 21st Nov 2007Comment on this Article
If you have any comments on this article, please email them to
neil@reuk.co.uk.
Recommended Related Articles
People who read this article also enjoyed the following articles:
Using The LM317T With LED LightingUse an LM317T to regulate the current in LED lighting projects
Article Last Modified: 12:47, 12th Mar 2008lighting | electric circuitExample Transistor Circuit with LEDsPut together a very simple circuit which uses LEDs to show how transistors work
Article Last Modified: 11:12, 23rd Apr 2007electronics | educationLM317 Current CalculatorA handy online output current calculator for the LM317, LM338, and other linear voltage regulators
Article Last Modified: 12:47, 12th Mar 2008electric circuit | electronics | generalHow To Make MR16 LED SpotlightsFind out how to make your own LED spotlight bulbs
Article Last Modified: 10:43, 10th Feb 2007lighting | educationWhat is a TransistorA basic introduction to bipolar junction transistors
Article Last Modified: 11:15, 23rd Apr 2007electronics | educationSolar Battery Charger With LM317TFind out how to make a current controlled solar battery charger using an LM317T
Article Last Modified: 09:34, 30th Mar 2007solar | education | electric circuitGermanium DiodesLearn about the advantages of Germanium Diodes
Article Last Modified: 13:43, 8th Aug 2008electronicsTimer Circuits With 4060BBuild a reliable timer to switch devices on and off - from 30 seconds to 24 hours
Article Last Modified: 09:58, 15th Aug 2009electronics | electric circuit240V LED Bulbs and Dimmer SwitchesFind out more about 240V AC LED bulbs and dimmer switches
Article Last Modified: 16:12, 16th Jul 2007lightingSolar Charge ControllerFind out more about Solar Charge Controllers
Article Last Modified: 11:12, 29th Oct 2009solar | electronics | electric circuit