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

Using The LM317T With LED Lighting



Using The LM317T With LED Lighting

Use an LM317T to regulate the current in LED lighting projects

lighting | electric circuit
  Printer Friendly Version Print Article     

White LEDs

The lifetime of LED bulbs (now available in the REUK Shop) is strongly influenced by the amount of current passing through them. Though typically rated for 100,000 hours of use, if the current used is double that recommended the LED bulb lifetime can fall to 100 hours or less. It is therefore essential to regulate the current flowing through an LED circuit. This can be achieved using resistors however it is safer to use an LM317T chip as an adjustable current regulator.

Resistors

Typically LED circuit current regulation is achieved by putting a resistor in series with the LED bulbs. (Read our article on making your own LED spotlights to find out more about selecting resistors for LED circuits.) Resistors are very cheaply available in an enormous range of sizes. However using resistors to regulate current in a circuit is not a very safe solution - particularly when the power supply used is not stable.

Problems Using Resistors to Regulate Current

If you wire three LEDs in series - each with a nominal current of 25ma (0.025 Amps) and a voltage drop of 3.6V - there is a total of 10.8 volts being dropped across the LEDs. If the power source is a 12 Volt battery then there is an additional 12-10.8=1.2V to drop to keep the LEDs happy.

Resistance is equal to voltage divided by current and so 1.2/0.025 = 48 Ohms is the size of resistor required. If a suitable resisitor (50 Ohms since that is the next manufactured resistor over 48 Ohms) is put in series with the LEDs then everything will work correctly - 25mA of current will flow through the LEDs in the circuit as desired and 0.03 Watts (1.2 volts * 25ma) will be dissipated by the resistor.

However, in most renewable energy systems the voltage of the battery changes dramatically depending on the charging current. When the battery is not being charged it may give out only 12 Volts, but when it is being charged it can easily reach 14.5 Volts - particularly if a small battery is being charged by a large solar panel or wind turbine.

If the circuit described above has 14.5 Volts going through it rather than the 12 Volts for which it was designed then the extra voltage to be dropped is 14.5-10.8 = 3.7 Volts. This means a current of 3.7 Volts divided by 50 Ohms = 74ma would be passing through the LEDs, enough to burn them out in a few hours.

Current Regulation with an LM317T


LM317T Voltage Regulator Chip used to regulate Current.
Getting a fixed current from power source using the LM317T is actually very easy. All that is required to fix the current is a resistor. The resistor is placed in series between the LM317T and the LED circuit, with the ADJ input of the LM317T connected to the circuit between the resistor and the LED circuit.

Current Regulation with an LM317T

The LM317T always regulates the voltage on the ADJ input to 1.25 Volts - and therefore the current through the resisistor and therefore through the LED circuit will be constant. All we need to do is pick a resistor across which the nominal current of the LEDs will flow at 1.25 Volts using Ohm's Law:

Resistor Required (Ohms) = 1.25 (Volts) / nominal LED current (Amps)

For example, with the white LEDs in the example given above had nominal currents of 0.025 Amps (25ma). Therefore we need a resisitor of 1.25/0.025 = 50 Ohms in our current regulation circuit. (The fact the resisistor needed in this circuit was the same value as the resistor in the example above was a coincidence!)

The power dissipated by the resistor is given by the regulated 1.25 Volts multiplied by the 25ma current = 0.03 Watts, so a standard 1/4 Watt resistor is more than sufficient to cope.

LM317 and LM338 Fixed Current Calculator

NEW Click here to go to our new LM317 Current Calculator (pictured above). Simply enter your desired fixed output current, and the value and power rating of the required resistor will be displayed.

Don't Forget the Volts Dropped in the LM317T

A couple of volts will be dropped in the LM317T and therefore the power supply required for the example above would have to be at least equal to the voltage drop across the LEDs (10.8V) plus 2 Volts = 12.8 Volts. Below this value the LEDs would not light - therefore the circuit would be better if it were modified to have two LEDs linked rather than three if a 12 Volt supply was to be used.

Limitations of the LM317T

The LM317T accepts an input voltage from 3 Volts to 40 Volts, and it will cope with an average current of 1.5 Amps. The higher the voltage and the higher the current, the hotter will get the LM317T - therefore a suitable TO-220 heatsink can become essential or the chip will automatically shut down and/or be damaged.

At least they are cheap and easily available if you make a mistake - and a burnt out LM317T is a lot less expensive than a string of of burnt out LEDs.

If you need more than 1.5 Amps of continuous current, consider the LM338T - a product which works in exactly the same way as the LM317T but with a continuous current rating of 5 Amps.

Current Limited Solar Battery Charger

The current limiting circuit used here to safely light LEDs can be easily modified for use in a Solar Battery Charger. The resistor just needs to be changed so that the output current is around 10% of the capacity of the batteries.



Article Last Modified: 12:47, 12th Mar 2008

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:

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

Solar Battery Charger With LM317T
Find out how to make a current controlled solar battery charger using an LM317T
Article Last Modified: 08:34, 30th Mar 2007
solar | education | electric circuit

LED Dimmer Circuit
Find out how to put together a simple but efficient PWM dimmer circuit for LEDs
Article Last Modified: 09:42, 16th Mar 2011
lighting | electronics | electric circuit

LM317 Voltage Calculator
A handy online output voltage calculator for the LM317, LM338, and other linear voltage regulators
Article Last Modified: 11:29, 17th Aug 2010
electric circuit | electronics | general

LM317T Voltage Regulator Chip
Learn about the LM317T and its uses in renewable energy projects
Article Last Modified: 13:35, 9th Sep 2008
electronics | electric circuit

Using The LM317T To Regulate Voltage
Use an LM317T to regulate voltage in renewable energy projects
Article Last Modified: 15:04, 7th Mar 2008
electric circuit | electronics

LM317 High Current Voltage Regulator
Find out how to build an LM317T based high current voltage regulator
Article Last Modified: 11:29, 17th Aug 2010
electric circuit | electronics | general | education

Make a Simple Battery Status Monitor
Monitor battery status with this easy electric circuit project - no skill required!
Article Last Modified: 12:33, 16th Mar 2007
storage | electric circuit

How To Make MR16 LED Spotlights
Find out how to make your own LED spotlight bulbs
Article Last Modified: 10:43, 10th Feb 2007
lighting | education

LM2940 12V 1A Low Dropout Regulator
Find out how to use an LM2940 to efficiently regulate voltage
Article Last Modified: 09:07, 30th Jan 2010
electric circuit | storage | general | lighting

© 2006-2012 REUK - All Rights Reserved
Page Last Updated on 31st January 2012 at 01:50:15pm

Latest
Articles


Make a Still
Find out how to make your own still for distilling ethanol fuel
biomass
13:49, 31st Jan 2012

UK Feed in Tariff to be Cut by 50 Percent
UK government announces 50% cut in feed in tariff payable on new solar PV installations
solar
13:20, 30th Jan 2012

PICAXE Microcontrollers
Find out about PICAXE microcontrollers and their use in renewable energy projects
electronics
13:12, 30th Jan 2012

Make a PICAXE Repeating Timer
Make your own repeating timer with our automatic PICAXE Basic code generator
education
12:42, 30th Jan 2012

Rainbow Power 300W Hydro Generator
300 Watt 12/24 Volt hydro power generators from Rainbow Power
hydro
12:44, 27th Jan 2012

Solar Tracker
Set up solar panels to track the motion of the sun across the sky to maximise power output
solar
10:46, 27th Jan 2012

Light Dark Dawn Dusk Relay Controller
Find out about the REUK Super LDR light/dark dawn/dusk relay controller
electric circuit
16:48, 24th Jan 2012

Karasouli SCC 20 Wind Turbine Charge Controller
Find out more about the SCC-20 wind turbine charge controller and dump load controller
wind
12:46, 20th Jan 2012



REUK Shop

Popular Items


REUK SUPER LDR DUSK DAWN RELAY CONTROLLER
Multi-function light detector triggered light/dark dawn/dusk relay controller
£18.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



SOLAR PUMP CONTROLLER WITH RELAY
Solar water heating system microprocessor controlled circuit 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 1 Amp output)
£4.99 each.
Complete Circuits



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