| REUK Shop | REUK Blog | Directory | About Us  | |

# Solar Battery Charger With LM317T

## Find out how to make a current controlled solar battery charger using an LM317T

solar | education | electric circuit

A small solar panel makes an excellent battery charger for AA and AAA rechargeable batteries. Only a few components are required and construction is very simple making this a perfect first renewable energy project.

Rechargeable AA and AAA batteries have a voltage of around 1.2 Volts when fully charged. Therefore 2 in series gives a total of 2.4 Volts, 4 in series 4.8 Volts. Common solar panel output voltages are 3 Volts (for example the 3V 100ma solar panels in the REUK Shop), and 6 volts - perfect for charging 2 or 4 batteries respectively.

## The Limitations of a Basic Solar Charger

Details on making the simplest kind of Solar Battery Charger are available here. Unfortunately this set-up has one serious limitation - the solar panel has to be well matched to the batteries to be charged or the batteries may be overcharged. If you later decide to charge batteries with a different capacity, you would need to change the solar panel.

## Current

Current is the most important factor in any battery charger. As long as the voltage of the solar panel is greater than the total fully charged voltage of the batteries, the batteries will be charged . If the current is too little, the batteries will charge very slowly. If the current is too high the batteries will be charged too fast, are at risk of being overcharged, may overheat, and have their usable lifetime reduced. Therefore the next development step is to make a current limited battery charger.

## Safe Battery Charging Current

Since we are still making a simple solar charger it will not automatically turn off when the batteries are full. Therefore we need to keep the charging current low enough that it will not damage the batteries even when they are fully charged. A current of around 10% of battery capacity gives the right balance of charging speed and safety - for example, 2700mah AA rechargeable batteries should be charged with a current of 10% of 2700 = 270ma. To charge the batteries faster a higher current could be used, but the chance of the batteries being overcharged would increase.

## Limiting Current with an LM317T

The LM317T is a voltage regulator chip. It can also be used with a suitable resistor to regulate current. Full details on how this works are available here in our guide to using the LM317T with LED lighting.

The value of the resistor required is given by Ohm's Law as 1.25V divided by the output current required. (The 1.25V is the regulated output from the LM317T's ADJ output.) The higher the input voltage and current, the more heat will be generated by the LM317T since the output current is fixed and the extra power has to go somewhere. The LM317T will cope with currents of up to 1.5 Amps and so will have no problem at all with small solar panels.

## Choosing the Resistor for the LM317T Current Limiting Circuit

Resistors are only available in certain values - e.g. 5.6 Ohms and 6.8 Ohms, but not 6.2 Ohms. Below is a table of available resistor values together with the output current generated if each resistor is used in an LM317T current limiting circuit (R = resistance, I = current).

 R (Ohms) 3.9 4.7 5.6 6.8 8.2 10 12 15 18 22 27 33 I (mA) 321 266 223 184 152 125 104.2 83.3 69.4 56.8 46.3 37.9

Therefore using the table above we can see that to charge 1000mah AAA rechargeable batteries with a current of 100ma, a 12 Ohm resistor would be perfect. A 15 Ohm resistor would reduce the current and slow down charging, a 10 Ohm resistor would increase the current and speed up charging.

## Example Solar Battery Charger with LM317T

In this example we will make a solar charger using a 6 Volt 250ma Solar Panel to charge four 800mah AAA batteries. The batteries can be put into a couple of 2 x AAA battery holders and wired in series (link the positive output from one battery holder to the negative of the other).

This gives us 4 x 1.2 = 4.8 Volts with a capacity of 800mah - therefore we want a charging current of around 80ma. According to the table above, a 15 Ohm resistor gives a fixed current of 83.3 milliamps which will be perfect.
The power loss in the resistor is again given by Ohm's Law as I * I * R = 0.0833 * 0.0833 * 15 = 0.10 Watts, therefore we can safely use a standard 0.25 Watt 15 Ohm resistor.

For testing the circuit photographed below was built using prototyping breadboard. The circuit is connected between the positive output of the solar panel and the one free positive lead of the battery holders.

A digital multimeter has been used to measure the actual current output by the circuit - in this case 84.1ma is a little higher than the expected 83.3ma since resistor values are not exact, and the ADJ voltage output from the LM317T is not exactly 1.25 Volts.

## Complete Current Limited Solar Battery Charger Circuit

The negative lead from the solar panel should be connected to the free negative input of the battery holders. The positive lead from the solar panel is connected to the positive input of the current limiting circuit, and the output from that circuit connected to the free positive lead of the battery holders.

You now have an improved solar charger which will send a fixed amount of current (sunlight permitting) to the batteries. Charging from flat would take around 10 hours of sunlight in this worked example and you do not need to worry about overcharging your batteries.

A final enhancement would be to incorporate a simple battery status monitor using a Zener diode to light an LED when the battery voltage reaches the desired level.

Article Last Modified: 09:34, 30th Mar 2007

## 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

Basic 4 AA Solar Battery Charger Plans
Make a simple solar charger for 4 AA rechargeable batteries
Article Last Modified: 09:43, 30th Jul 2007
solar | education

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 Charging
Make a solar charger for NiCd and NiMH rechargeable AA, AAA etc batteries
Article Last Modified: 09:43, 30th Jul 2007
solar | education

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

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

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

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: 12:29, 17th Aug 2010
electric circuit | electronics | general | education

Use Solar Panel As Darkness Detector
Make a day / night detector using a solar panel as the detector and battery charger
Article Last Modified: 17:16, 3rd Aug 2012
solar | electric circuit | electronics

Page Last Updated on 19th May 2013 at 08:29:13pm

# RecentBlog Posts

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

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

3.Morocco Starts Vast Solar Energy Project

4.Follow Up to RC Helicopter Lighting Controller

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

6.UK Home Energy Smart Meter Project Delayed

7.EU to Impose High Import Duties on Chinese Made Solar Panels

8.Project of the Day – Swimming Pool Solar Water Heating Controller with Max Temperature

9.Multiple Buttons/Switches on one ADC Input

10.Standalone Arduino on a Breadboard

# LatestArticles

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