Author Topic: 19V PSU charging 12V lead acid battery  (Read 4065 times)

0 Members and 1 Guest are viewing this topic.

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
19V PSU charging 12V lead acid battery
« on: September 16, 2019, 04:20:09 pm »
Is it ok to charge lead acid battery by PWM controlled circuit powered by 19V PSU? (no typical step-down circuitry, such as inductor/capacitor, just MOSFET switching voltage on/off).
I plan to measure the voltage on the battery using the ADC + resistor divider, and increase the duty cycle until the voltage does not exceed the allowable for this type of battery.
Of course I will use PSU with soft overcurrent protection, such way i wont exceed allowed charging current.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: 19V PSU charging 12V lead acid battery
« Reply #1 on: September 16, 2019, 05:22:54 pm »
Just one question: why?

A power supply with overcurrent protection, will likely not be designed to operate in constant current mode. The actual current limit could be higher than the rating and it much simply shut down, when it's exceeded, rather than regulating the current.

You need a constant current power supply for this to work properly, but it also needs to safely work open circuit. An LED driver might be more suitable, but why not simply buy a lead acid battery charger in the first place?
 

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #2 on: September 16, 2019, 05:39:08 pm »
You're right, I'd rather make an additional discrete circuit to limit the charging current pulse. I just fear that even in a PWM mode, in a short pulse (the average current will not exceed the maximum) high momentary current will cause some harm to the battery...
Reason of such strange solution - 3rd world country problems, mostly.
I'm not looking for a way to make an efficient charger, but i hoped PWM will be a little better than a heater in the form of a linear adjustable regulator (like it is done in cheap APC UPS).
The end device is customizable DC UPS + load control, it is based on ESP8266, so most of parameters will be adjusted in software.
Since probably underqualified electricians will install it, i am trying to make the device as simple as possible. Unfortunately LEGO from different modules will not work in such case.
A maximum of three connectors, a battery (protection against reverse polarity), a power supply (barrel jack wont allow such mistake), and load (barrel plug, no mistake possible as well).

One of the requirements to the device - inexpensive. Existing devices are excellent electronic waste generators, with lithium batteries that sometimes explode, and often just die very early, additionally there is no supply of good quality lithium batteries in this country.
I want to make a device that will work with an available common power supplies and an affordable, replaceable lead-acid battery (lead-acid batteries are recycled here). Maybe it will be some 9V supply + 6V battery. Or laptop power supply (19V mostly) and 12V battery.
 

Offline AVGresponding

  • Super Contributor
  • ***
  • Posts: 4931
  • Country: england
  • Exploring Rabbit Holes Since The 1970s
Re: 19V PSU charging 12V lead acid battery
« Reply #3 on: September 16, 2019, 06:13:02 pm »
Perhaps a small automotive lamp in series with the PSU output?

More information would be helpful, like the output current of the PSU, the type of lead acid battery (wet, gel etc) and its capacity
nuqDaq yuch Dapol?
Addiction count: Agilent-AVO-BlackStar-Brymen-Chauvin Arnoux-Fluke-GenRad-Hameg-HP-Keithley-IsoTech-Mastech-Megger-Metrix-Micronta-Racal-RFL-Siglent-Solartron-Tektronix-Thurlby-Time Electronics-TTi-UniT
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4108
  • Country: us
Re: 19V PSU charging 12V lead acid battery
« Reply #4 on: September 16, 2019, 06:18:45 pm »
I say why not?
With the battery on there, you have a buck converter, essentially. Car battery is not picky. As long as the PSU handles it, I don't see any problem.
 
The following users thanked this post: nuclearcat

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #5 on: September 16, 2019, 06:26:30 pm »
Perhaps a small automotive lamp in series with the PSU output?

More information would be helpful, like the output current of the PSU, the type of lead acid battery (wet, gel etc) and its capacity

Lamp is worse than adjustable linear regulator :)

Let's assume PSU current is sufficient in any case, i dropped idea relying on PSU current limit.
Most likely not smaller than 12V 2.6Ah gel, this means with max 0.1C it should be 0.26A. As i charge by PWM, probably in pulse i can use 0.2C (if i wont exceed 50% duty cycle). I plan to implement it by using typical 2 NPN transistor circuit.
But thats the question, if battery chemistry is ok with fact, that on 10-20khz PWM pulse current is 0.2C, but average current is 0.1C.
 

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #6 on: September 16, 2019, 06:27:24 pm »
I say why not?
With the battery on there, you have a buck converter, essentially. Car battery is not picky. As long as the PSU handles it, I don't see any problem.
It's not car battery, small UPS gel battery, they look awful if they start gassing :)
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7454
  • Country: pl
Re: 19V PSU charging 12V lead acid battery
« Reply #7 on: September 16, 2019, 07:04:23 pm »
I say why not?
With the battery on there, you have a buck converter, essentially.
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.

If the PSU is crap, it may even overheat if it permits more than its maximum allowable current to be drawn in peaks. 2A at 50% duty cycle is more heat than constant 1A.

Let's assume PSU current is sufficient in any case, i dropped idea relying on PSU current limit.
No such thing :)
The PSU will output the maximum current it can, unless battery ESR limits it (probably not).
Don't like that? Add a choke in series with the battery. And a diode, like in buck converters. If inductance and PWM frequency are high enough, current will be smoothed into almost DC.
 
The following users thanked this post: nuclearcat

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: 19V PSU charging 12V lead acid battery
« Reply #8 on: September 16, 2019, 07:07:37 pm »
I say why not?
With the battery on there, you have a buck converter, essentially. Car battery is not picky. As long as the PSU handles it, I don't see any problem.
But it isn't a buck converter, until you at least add an inductor, which is a very important part of a buck converter.

An inductor limits the current, when the transistor is on and keeps the current flowing, when it's off. Without it, the current will only be limited by the power supply and no current will flow, when the transistor turns off. He wants to use a current limited power supply, presumably one with a constant current mode, which will definitely work, but a generic off the shelf power supply won't be guaranteed to behave in this manner.
https://en.wikipedia.org/wiki/Buck_converter
http://rohmfs.rohm.com/en/products/databook/applinote/ic/power/switching_regulator/inductor_calculation_appli-e.pdf
http://www.ti.com/lit/an/slva477b/slva477b.pdf

An inductor and a diode is all that's required to turn this circuit into a buck converter. There doesn't need to be a capacitor, because the battery will act as one, although a small capacitor would be a good idea.
 
The following users thanked this post: nuclearcat

Offline magic

  • Super Contributor
  • ***
  • Posts: 7454
  • Country: pl
Re: 19V PSU charging 12V lead acid battery
« Reply #9 on: September 16, 2019, 07:19:52 pm »
I have a PFC choke harvested from an ATX power supply which is about 1mH and capable of a few amps. Hopefully that's typical for similar chokes.

19V-12V is 7V across the choke and therefore 7A/ms rise of current during on time, 12A/ms fall during off time. With 100kHz PWM that seems like it ought to be less than 100mA ripple (too lazy to do exact math :P).

edit
Or, dunno, just get a PSU which current-limits at about 0.5A into 12V (to be determined empirically :)) and you will get the kind of pulsed waveform you initially wanted, averaging to 0.25A. I don't know how it affects battery chemistry, though.
« Last Edit: September 16, 2019, 07:33:42 pm by magic »
 
The following users thanked this post: nuclearcat

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #10 on: September 16, 2019, 08:03:03 pm »
I have a PFC choke harvested from an ATX power supply which is about 1mH and capable of a few amps. Hopefully that's typical for similar chokes.

19V-12V is 7V across the choke and therefore 7A/ms rise of current during on time, 12A/ms fall during off time. With 100kHz PWM that seems like it ought to be less than 100mA ripple (too lazy to do exact math :P).

edit
Or, dunno, just get a PSU which current-limits at about 0.5A into 12V (to be determined empirically :)) and you will get the kind of pulsed waveform you initially wanted, averaging to 0.25A. I don't know how it affects battery chemistry, though.
It seems i will buy some small batteries, lock them in explosive-proof container with ventilation, and will do tests in extreme modes. I think its best way to know.
 

Online wraper

  • Supporter
  • ****
  • Posts: 17952
  • Country: lv
Re: 19V PSU charging 12V lead acid battery
« Reply #11 on: September 16, 2019, 08:09:55 pm »
I say why not?
With the battery on there, you have a buck converter, essentially. Car battery is not picky. As long as the PSU handles it, I don't see any problem.
:palm: It's as far as you can get from buck converter. You are shorting charged capacitor into battery with very low internal resistance. If this somehow works and pass element for PWM won't fail due to very high peak current, then output capacitor of PSU will certainly fail after some time due to extreme ripple current.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7454
  • Country: pl
Re: 19V PSU charging 12V lead acid battery
« Reply #12 on: September 16, 2019, 08:46:18 pm »
Another option: just screw PWM altogether.
Low power 12V PSU bricks are common everywhere. Find one with 250mA max current, then it's a matter of changing or adding one resistor to increase its target output voltage to 14V. Then as long as battery voltage is less than the target, the PSU will just keep charging with its maximum current.
 
The following users thanked this post: nuclearcat

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #13 on: September 16, 2019, 08:48:08 pm »
Another option: just screw PWM altogether.
Low power 12V PSU bricks are common everywhere. Find one with 250mA max current, then it's a matter of changing or adding one resistor to increase its target output voltage to 14V. Then as long as battery voltage is less than the target, the PSU will just keep charging with its maximum current.
Good option as well, thanks for idea.
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4108
  • Country: us
Re: 19V PSU charging 12V lead acid battery
« Reply #14 on: September 16, 2019, 08:50:26 pm »
Quote
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.
Ok, geniuses.

You've gone this far. Add the frigging inductor. In this case you don't even need an inductor. Just a power resistor in series. Done.

Battery is your Q. Add resistor. You have a low pass filter and the power resistor drops most all the excess voltage. As I said, as long as the PSU is happy to provide the juice, you're good.

Is there another way to do it? Yeah. Is it better? No. This is a perfectly adequate and perfectly sensible way to charge a lead acid battery, if you desire to have voltage sensing/cutoff and adjustable control over max current and you already have a 19V PSU on your hands. (IMO). If efficiency is important, you could build or buy a proper buck converter with inductor.
« Last Edit: September 16, 2019, 09:10:41 pm by KL27x »
 

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #15 on: September 16, 2019, 08:52:32 pm »
Quote
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.
Ok, geniuses.

You've gone this far. Add the frigging inductor. In this case you don't even need an inductor. Just a power resistor in series. Done.
Probably this circuit will generate less heat:
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3382
  • Country: gb
Re: 19V PSU charging 12V lead acid battery
« Reply #16 on: September 16, 2019, 10:13:43 pm »
Quote
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.
Ok, geniuses.

You've gone this far. Add the frigging inductor. In this case you don't even need an inductor. Just a power resistor in series. Done.

Battery is your Q. Add resistor. You have a low pass filter and the power resistor drops most all the excess voltage. As I said, as long as the PSU is happy to provide the juice, you're good.

The point being made was that a buck converter requires an inductor.  Adding a resistor to limit current defeats the point of using PWM in the first place.

What do you mean by "Battery is your Q"?  Lead acid batteries are not particularly inductive, what am I overlooking?
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7454
  • Country: pl
Re: 19V PSU charging 12V lead acid battery
« Reply #17 on: September 17, 2019, 06:24:53 am »
Probably this circuit will generate less heat:
That's a constant current source? Nope, it's a linear regulator which will generate exactly as much heat as any other linear regulator: 7V times charging current.
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4108
  • Country: us
Re: 19V PSU charging 12V lead acid battery
« Reply #18 on: September 17, 2019, 06:28:09 am »
Quote
The point being made was that a buck converter requires an inductor.  Adding a resistor to limit current defeats the point of using PWM in the first place.

No it doesn't defeat the purpose; the purpose being to safely charge a lead acid battery. It means you can adjust/limit the current, and without needing a full voltage regulator. I somehow doubt he is concerned with efficiency. The resistor is not there to limit the current to the battery. The resistor is there to drop the excess voltage that someone correctly complained is going to wreck the PSU. It's there to limit the current to the max of the PSU, say (19V-10V)/(MAX PSU Amps) =R. The PWM is to adjust the current to the battery.

You got your power source sorted out with a single power resistor, and now you can get on with charging your battery using your ADC/comparator and micro/logic circuitry and output FET. You can tweak the max current settings for any size lead acid battery you want. You can set it to automatically throttle back to keep the voltage of the battery at 13.8V once it reaches that mark.

Quote
What do you mean by "Battery is your Q"?  Lead acid batteries are not particularly inductive, what am I overlooking?
Yeah, you're right. I mean to say "C" not "Q." Brain fart.

If adding a resistor defeats the purpose of PWM, then every LED that is PWM'd is "defeating the purpose," since it also needs current limiting or some sort to avoid shorting the power supply. The PWM gives the ability to turn down the current.
« Last Edit: September 18, 2019, 07:54:05 pm by KL27x »
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7454
  • Country: pl
Re: 19V PSU charging 12V lead acid battery
« Reply #19 on: September 17, 2019, 06:33:38 am »
Quote
The point being made was that a buck converter requires an inductor.  Adding a resistor to limit current defeats the point of using PWM in the first place.
No it doesn't.
It does :)
It's the first time I see anybody call resistive dropper a "buck converter".
Buck converter is that thingy with a coil, a power switch and a rectifier.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: 19V PSU charging 12V lead acid battery
« Reply #20 on: September 17, 2019, 07:59:32 am »
Quote
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.
Ok, geniuses.

You've gone this far. Add the frigging inductor. In this case you don't even need an inductor. Just a power resistor in series. Done.
Probably this circuit will generate less heat:
If you don't mind a linear regulator, then how about the LM317?
 

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #21 on: September 17, 2019, 08:58:25 am »
Quote
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.
Ok, geniuses.

You've gone this far. Add the frigging inductor. In this case you don't even need an inductor. Just a power resistor in series. Done.
Probably this circuit will generate less heat:
If you don't mind a linear regulator, then how about the LM317?

It will work too, but probably i will check if feasible to use regulator to charge in CV mode, a bit different circuit, and i have to check if i can offset Vadj from MCU, as its better to charge a bit faster empty battery (maybe PWM + RC + opamp?).

 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: 19V PSU charging 12V lead acid battery
« Reply #22 on: September 17, 2019, 09:10:10 am »
Quote
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.
Ok, geniuses.

You've gone this far. Add the frigging inductor. In this case you don't even need an inductor. Just a power resistor in series. Done.
Probably this circuit will generate less heat:
If you don't mind a linear regulator, then how about the LM317?

It will work too, but probably i will check if feasible to use regulator to charge in CV mode, a bit different circuit, and i have to check if i can offset Vadj from MCU, as its better to charge a bit faster empty battery (maybe PWM + RC + opamp?).
The idea is to keep the current constant and turn it off, when the battery voltage rises too high.
 

Offline nuclearcatTopic starter

  • Supporter
  • ****
  • Posts: 382
  • Country: lb
Re: 19V PSU charging 12V lead acid battery
« Reply #23 on: September 17, 2019, 11:47:51 am »
Quote
Certainly not a buck. As far as a 19V PSU is concerned, the battery across its output is a dead short. It will dump its maximum output current into it. The output capacitors will rapidly discharge when the switched is turned on, possibly shortening their life after many such cycles.
Ok, geniuses.

You've gone this far. Add the frigging inductor. In this case you don't even need an inductor. Just a power resistor in series. Done.
Probably this circuit will generate less heat:
If you don't mind a linear regulator, then how about the LM317?

It will work too, but probably i will check if feasible to use regulator to charge in CV mode, a bit different circuit, and i have to check if i can offset Vadj from MCU, as its better to charge a bit faster empty battery (maybe PWM + RC + opamp?).
The idea is to keep the current constant and turn it off, when the battery voltage rises too high.
I am planning to measure battery idle voltage and probably apply higher current if state of charge is low. Also it will be nice if i can adjust offset, according to temperature and battery capacity (including approximating capacity loss with age). Its cheap to do, make charging faster (outages too frequency in my country to charge slowest way), and will increase lifespan of battery.
 

Offline AVGresponding

  • Super Contributor
  • ***
  • Posts: 4931
  • Country: england
  • Exploring Rabbit Holes Since The 1970s
Re: 19V PSU charging 12V lead acid battery
« Reply #24 on: September 17, 2019, 05:26:43 pm »
Perhaps a small automotive lamp in series with the PSU output?

More information would be helpful, like the output current of the PSU, the type of lead acid battery (wet, gel etc) and its capacity

Lamp is worse than adjustable linear regulator :)

Let's assume PSU current is sufficient in any case, i dropped idea relying on PSU current limit.
Most likely not smaller than 12V 2.6Ah gel, this means with max 0.1C it should be 0.26A. As i charge by PWM, probably in pulse i can use 0.2C (if i wont exceed 50% duty cycle). I plan to implement it by using typical 2 NPN transistor circuit.
But thats the question, if battery chemistry is ok with fact, that on 10-20khz PWM pulse current is 0.2C, but average current is 0.1C.

Well, I was making a couple of guesses based on your previous posts, ie that you were looking for lowest complexity due to 'third world issues', and that you were using small car or motorbike wet lead acid batteries.
Now that I know you're using very small gel types, that changes things significantly.

Gel aka AGM type lead acid batteries really don't like over-voltage situations, especially very small ones, and doubly especially the likely low quality ones you'll be using, which will have a lot of very impure recycled lead in the plates. Do not use a pwm regulated 19v supply, you will kill the battery in a year or so, depending on a couple of other things (ambient temperature, depth of cycling).
Cyclic charging of these batteries requires a constant current for the bulk charge, and a constant voltage for equalisation. PWM charging from a 19v source is not a good idea, a simple linear regulator and current limiting resistor are the best bet for such small batteries. A laptop charger is massive overkill.
C/2 is more than adequate for the bulk charge in this case, exceed C and you will cook it. Float current shouldn't be more than a few tens of milliamps at most, if it draws more, it's on its way out.

Do not believe the manufacturers datasheets on charge voltages; they want to sell you more batteries.

If you want a good lifespan, a float charge voltage 13.6v really is the highest you should go, cyclic use, 13.8v, but don't let it sit at that voltage for more than a couple of hours.

The quality of these batteries varies considerably. Cheap Chinese ones are not very different from cheap Chinese NiMH in their capacity claims in my experience; adjust your bulk charge rates accordingly.

With reasonable ambient temperatures, and sympathetic charge/discharge profiles, I've had good quality batteries last 20 years.

I've also seen good quality batteries cooked in months, by crappy quality/badly adjusted chargers. Some of the bigger ones can be quite exciting when they fail  :-DD
nuqDaq yuch Dapol?
Addiction count: Agilent-AVO-BlackStar-Brymen-Chauvin Arnoux-Fluke-GenRad-Hameg-HP-Keithley-IsoTech-Mastech-Megger-Metrix-Micronta-Racal-RFL-Siglent-Solartron-Tektronix-Thurlby-Time Electronics-TTi-UniT
 
The following users thanked this post: nuclearcat


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf