| REUK Shop | REUK Blog | Directory | About Us  |  | RSS Web Feed for Renewable Energy UK 

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
  Printer Friendly Version Print Article     

In this article we will look at how a simple circuit can be built to act as a dimmer for individual LED bulbs. If you arrived at this page wanting to know how to dim LED spotlights (sealed bulbs containing multiple LED bulbs), you will be better served visiting this article 240V LED Bulbs and Dimmer Switches, Dimmable Energy Saving Lightbulbs, Lamina Sol MR16 LED Spotlight Review (dimmable), or this Review of Megaman Energy Saving Lightbulbs (CFL rather than LED, but currently the better type of low energy bulb for dimming).

Ultrabright white LED bulb

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.

LED strings with series resistors

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.

On/off PWM duty cycle schematic

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.

PWM dimmer circuit using 555 timer chip
This circuit can easily be modified for use as dimmer circuit for LED bulbs powered from a 12V DC supply as shown below:

NE555 controlled PWM LED dimmer circuit
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%.)

PWM with a Microcontroller

There are now quite a few different microcontrollers on the market which are very easy to programme, cheap to buy, and can be built into circuits with only very few external components required.

Picaxe-08M Microcontroller using for PWM of LEDs


The advantage of using a microcontroller rather than building a circuit like the one presented above is that the complexity of the system is in the software (instructions) you put onto the microcontroller. This means that changes can be made without needing to change the circuit design, and prototyping can be very quick. We recommend the PICAXE range of microcontrollers which have excellent PWM capabilities - perfect for controlling LEDs and motors etc.

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: 09:42, 16th Mar 2011

Comment 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 Lighting
Use an LM317T to regulate the current in LED lighting projects
Article Last Modified: 12:47, 12th Mar 2008
lighting | electric circuit

PICAXE Microcontrollers
Find out about PICAXE microcontrollers and their use in renewable energy projects
Article Last Modified: 13:12, 30th Jan 2012
electronics | electric circuit | education

240V LED Bulbs and Dimmer Switches
Find out more about 240V AC LED bulbs and dimmer switches
Article Last Modified: 16:12, 16th Jul 2007
lighting

Germanium Diodes
Learn about the advantages of Germanium Diodes
Article Last Modified: 13:43, 8th Aug 2008
electronics

Dimmable Energy Saving Lightbulbs
Find out more about low energy light bulbs which can be used with standard dimmer switches
Article Last Modified: 14:36, 3rd Jan 2013
lighting | energy efficiency | general | shopping

LM317 Current Calculator
A handy online output current calculator for the LM317, LM338, and other linear voltage regulators
Article Last Modified: 12:47, 12th Mar 2008
electric circuit | electronics | general

Resistor Colour Codes
Learn how to identify different resistors with their colour code
Article Last Modified: 14:19, 22nd Feb 2007
electric circuit | education

12 Volt Battery Monitor Circuit with LM3914
Accurately monitor battery voltage with LM3914 LED bar graph driver
Article Last Modified: 13:09, 4th Aug 2012
storage | electric circuit | education

Make a Mini Wind Turbine Battery Charger
Convert a PC fan into a wind turbine battery charger
Article Last Modified: 20:19, 7th Aug 2012
wind | electronics | education

Fuel Cells
Introduction to Fuel Cell technology and its benefits and disadvantages
Article Last Modified: 20:52, 17th Dec 2012
transport | electronics

© 2006-2013 REUK - All Rights Reserved
Page Last Updated on 25th May 2013 at 12:23:03pm

Recent
Blog Posts


1.Reducing Reflectivity of PV Solar Panels to Increase Efficiency

2.Low Voltage Disconnect with Display and Datalogger

3.Saudi Solar Power Boom About to Begin

4.Compressed Air for Storage of Renewable Energy

5.Offer of the Day – 80W Monocrystalline Solar Panel £71.98

6.Project of the Day – Wind Turbine Dynamic Blade Pitch Controller

7.Morocco Starts Vast Solar Energy Project

8.Follow Up to RC Helicopter Lighting Controller

9.Low Voltage Disconnect – User Programmable Set Points in Binary

10.UK Home Energy Smart Meter Project Delayed


Latest
Articles


New Simple Hen House Door Controller
Details of our new 2013 simple design for an automatic hen house door controller
electric circuit
11:45, 20th Apr 2013

Automatic Hen House Door Closer Opener
Find out how to put together a DIY automatic hen house door opener and closer
electric circuit
11:40, 20th Apr 2013

Butanol vs Ethanol Fuel of the Future
A brief introduction to Butanol/Biobutanol as an alternative to Ethanol
biomass
11:55, 19th Apr 2013

Cheap Pyroelectric Infrared PIR Detector
Details of a very affordable and flexible PIR motion detector
electronics
20:33, 16th Jan 2013

Heat Pump Tumble Dryer
Reduce power consumption with the latest heat pump tumble dryer technology
energy efficiency
20:16, 3rd Jan 2013

LED Spotlights
Find out about Energy Efficient LED spotlights
lighting
15:17, 3rd Jan 2013

Dimmable Energy Saving Lightbulbs
Find out more about low energy light bulbs which can be used with standard dimmer switches
lighting
14:36, 3rd Jan 2013

Review of Megaman Energy Saving Lightbulbs
Find out more about the Megaman range of CFL energy saving lightbulbs
lighting
14:08, 3rd Jan 2013



REUK Shop

Popular Items


REUK SUPER LDR DUSK DAWN RELAY CONTROLLER
Multi-function light detector triggered light/dark dawn/dusk relay controller
£19.95 each.
Complete Circuits



KARASOULI SCC 20 CHARGE CONTROLLER
20A rated wind turbine charge controller and dump load controller with blocking diode and heatsink
£43.95 each.
Renewable Energy System Parts



2013 SOLAR PUMP CONTROLLER WITH RELAY
New solar water heating pump controller with fitted 10A relay
£25.99 each.
Complete Circuits



REUK SUPER POULTRY LIGHTING CONTROLLER
Control up to 8 Watts of LED spotlights to stimulate egg production in birds
£29.99 each.
Complete Circuits



REUK SUPER TIMER 2
User programmable 12VDC powered 16A rated repeating relay timer. 1 second to 99 hours ON and OFF times
£23.99 each.
Complete Circuits



300 WATT POWER INVERTER
Convert 12V DC battery power into 230 AC to power portable televisions, computers, video recorders etc. 300 Watt power rating - peak power 600 Watts
£29.99 each.
Renewable Energy System Parts



CONVERTED PROGRAMMABLE DIGITAL TIMER RELAY
Mains powered programmable timer converted to low voltage with relay board
£21.99 each.
Renewable Energy System Parts



12 VOLT REGULATOR
Supply a fixed 12.0 Volt DC to your devices (up to 0.7 Amp output)
£4.79 each.
Complete Circuits



MR16 CERAMIC BULB HOLDER
Bulb holder for 12 Volt LED spotlight bulbs
£1.39 each.
Energy Efficient Lighting