Problems with a super simple lm317 charger circuit
rwgast_logicdesign
Posts: 1,464
So im trying to charge my 19.2v battery pack and I decided I would just do a simple 220mA for 12 hour type charge since 16 cells is alot im trying to play it safe. Well i bread boarded up this circuit I found
Right now im using a 12v 1.2amp wal wart and a 9.6v NiCad battery for testing. I plan to bump up to a 30v wal wart when I charge the 19.2v battery. Anyways I built this circuit and put my meter in series with the battery and im only reading .86mA and 10.88 volts, the idea of this circuit is to get a constant 12v 220mA output its the second example on this page http://www.talkingelectronics.com/projects/ChargingNiMH/ChargingNiMH.html the only thing i did differently was use a 2n222 transistor. Im kind of in a jam my 19.2v nimh pack is dead and I just need to get something simple to do a .10c charge on it for now
Right now im using a 12v 1.2amp wal wart and a 9.6v NiCad battery for testing. I plan to bump up to a 30v wal wart when I charge the 19.2v battery. Anyways I built this circuit and put my meter in series with the battery and im only reading .86mA and 10.88 volts, the idea of this circuit is to get a constant 12v 220mA output its the second example on this page http://www.talkingelectronics.com/projects/ChargingNiMH/ChargingNiMH.html the only thing i did differently was use a 2n222 transistor. Im kind of in a jam my 19.2v nimh pack is dead and I just need to get something simple to do a .10c charge on it for now
Comments
The LM317 with the 5 ohm resister is bullet proof. It has to work.
Make sure:
1. It has filter capacitors so the voltage is a constant DC, or add capacitors until it's reasonably constant.
2. The LM317 is over heating and cutting back the 1.25V output to save itself.
3. Get another wall wort.
Duane J
Duane J
BTW since ive gotten a scope and checked out my switching regulators ripple voltage ive found something out. The 15 dollar adjustable wal warts at wal mart are horrible, these things put out .5v or ripple under load, thats insanely awfull, my hand built switchers only put out about 20mV of ripple. This was my original problem I wasnt filtering the WalWart, I had to stick a 2200uF cap across its output to get anything with a reasonable and sane amount of ripple/noise. Just a tip for anyone else using these adjustable wal-warts from wal mart as there main little power supply.
I wasn't charging a battery or anything, just had a 4 ohm resistor on the output and a bench type variable power supply.
I had a pretty hefty heatsink on the LM317. Without the heatsink it was easy to drive it into thermal shutdown.
If you have the ADJ pin and the OUT pin mix up as far as the output power it will fry the resistors this has happen to me before just make sure you are doing it on the right pin
The way I check to see if I have it the right way is short the the (+) to the (-) on the output side of the LM317 to my meter to see if I am getting the millamp that I should with the resistor I used
Do this very quickly just long enough to get a reading on your meter
NOTE only do this on a one amp power supply or less for safety reasons
I was using The two 10watt 10ohm sandbars, so thats 5ohms rated for 20watts and they were outputting the correct 240ma but they acually rose to room tempature from a cold touch with in a few minutes, so there is definately something wrong there.. i need to test the current flowing in to the resistors when i get back. Im sure my pins are connected right i got the regulators from ti and there data sheet shows pin 2 as out and 1 as adjust the resistors are connected on pin 2 and read 1.25v across them!
The resistors are dissipating close to 1/4 watt each, I'd expect them to warm up a bit. If the measured current is correct I wouldn't worry about it. If this is going to be some kind of semi-permanent project I'd put an ammeter on the output just to make it easy to keep an eye on what's actually happening. You can find cheap ones on eBay for under $10. I prefer analog meters for current measuring.
.24*1.25=30mW/2=15mW
Ive had my pack charging for about 4 hours with no problems, but i really need to get this on protoboard and in an enclosure. Space is tight theres already 16 batterys, the switching regulators, and i need to fit this circuit with and an atmega168 with ds1620, and a display for amps and volts. So you can see why i want to dith two huge sand bars
heres the space i have to work with, sry cant embed images on my phone
http://db.tt/aT8NpR2X
.24*1.25=300mW/2=150mW
Duane J
@RDL thank you for the offer, like I said I have a bunch of 1% metal films around I just tested 4 20ohms in parallel and its working fine . I have no idea why the first resistors I used blew out like that. Im thinking about implementing a digital pot so I can change the current output.
I woke up this morning after a 12 hour charge or so and my batterys were about 100 degrees to the touch, and the pack read 23v, so I took them off the charger. When I built the pack I used thermal compound and jbweld to hold 16 cells togather. I was looking to get about 19.2v, so I would supply 18v to my motors after the hbridge voltage drop. The cells say there 1.2v so 16 would be 19.2. I know a fully charged battery usually has a bit of a higher capacity than whats its labeled as but is there a way to charge the packs capacity fully but only to 19.2v or so? Fresh out of the package these things made a 19.6v cell which is good but 22v is a bit to much on my motors, 18v is pretty much maxing them out so I dont want to run them at 22v, but I dont want to short change my packs capacity either
Attached is a simpler version of the constant current supply you are using. It needs an input voltage about 5V higher than the voltage of the battery you are charging and Ri should be about 2.2 to 2.7 ohms for the current you want. The power dissipation of the resistors will be around 0.15W so a 1/4 watt resistor should work. I have used the same circuit with a 0.1 ohm resistor and 2N3055 transistor to provide a 6 amp charging current.
Duane J