DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

How to monitor battery capacity

Started by Afinko ●February 14, 2011
On Feb 16, 1:55&#4294967295;pm, Jerry Avins <j...@ieee.org> wrote:
> Batteries lose capacity with time, so even a coulomb counter eventually fails. As long as one can work and there is a known constant drain, a timer works as well. > > Jerry > -- > Engineering is the art of making what you want from things you can get.
Most handheld electronic devices don't meet that definition. For example, a pager will periodically wake up and turn on some local oscillators. A coulomb counter will quietly account for the current spikes with no special action required by the software. It will also account for narrow current spikes that the software doesn't even know exist. John
Guys, 

How the camera works, when you remove the battery from it and place here
some new one? How it knows that that one battery is "full"?
How it knows that the new plugged battery is almost discharged?

Don't tell me that there is just "Battery Gas Gauge" that is simultaneously
computing what energy was getting out from battery from full charging till
now.

How that system could know if I plugged to the camera 1000mAh battery, or
3000mAh battery?

I am pretty sure that in many mobile phones / cameras there is used some
much more simpler method than to use special IC with Battery Gas Gauge /
Coulomb Counter.

Has anybody an idea how it can be done?
On Feb 21, 7:00&#4294967295;am, "Afinko" <afinko@n_o_s_p_a_m.gmail.com> wrote:
> Guys, > > How the camera works, when you remove the battery from it and place here > some new one? How it knows that that one battery is "full"? > How it knows that the new plugged battery is almost discharged? > > Don't tell me that there is just "Battery Gas Gauge" that is simultaneously > computing what energy was getting out from battery from full charging till > now. > > How that system could know if I plugged to the camera 1000mAh battery, or > 3000mAh battery? > > I am pretty sure that in many mobile phones / cameras there is used some > much more simpler method than to use special IC with Battery Gas Gauge / > Coulomb Counter. > > Has anybody an idea how it can be done?
There are standards where the battery itself contains everything and the host queries it over a bus. Check out www.smartbattery.org. John

Afinko wrote:

> Any ideas how to program the software that can show the classical "battery > icon" that can be seen on all mobile phones? Some software flow diagram, or > even ideas would be great...
The internal resistance of a battery is inversely proportional to the amount of the active substance, i.e. the remaining charge. So, the battery status could be checked by measuring I/V while in the operation. The particular numbers, of course, depend on the battery make. However this is the most accurate "generic" method if your gadget uses replaceable batteries. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Not all batteries are "smart". Do smart batteries have more than two terminals?

One of my cameras uses AA cells. It works with alkaline cells (poorly) NiCds (better) and best with NiMH cells. I would not use NiMH in a flashlight despite its higher capacity because it is ruined if run flat. It is safe to use in the camera because the camera shuts down before that happens. The camera also gives a low-battery warning when there is still some capacity left. The only mechanism involved must be a terminal-voltage measurement.

An other camera uses a lithium-ion battery, also with two terminals. I don't know what happens when the battery runs down because I've never gotten there. I have a spare that I change in now and then, despite it seeming to run forever. I have never gotten a low-battery warning, even after a busy week of picture taking.

Jerry
-- 
Engineering is the art of making what you want from things you can get.
On 02/21/2011 09:30 AM, Vladimir Vassilevsky wrote:
> > > Afinko wrote: > >> Any ideas how to program the software that can show the classical >> "battery >> icon" that can be seen on all mobile phones? Some software flow >> diagram, or >> even ideas would be great... > > The internal resistance of a battery is inversely proportional to the > amount of the active substance, i.e. the remaining charge. So, the > battery status could be checked by measuring I/V while in the operation. > The particular numbers, of course, depend on the battery make. However > this is the most accurate "generic" method if your gadget uses > replaceable batteries.
Just measuring I/V can be problematical if the current doesn't change much, or if you're not measuring it. In addition, the batteries that I've played with act like (at least) two sections of R/C filtering between the load and a perfect voltage generator: when you hit it with a step in current, the voltage descends with a rapid exponential, then over several seconds it descends _more_, with a slower exponential (time constant of several seconds with AA-size NiCd cells). But it's probably the best of the bad. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" was written for you. See details at http://www.wescottdesign.com/actfes/actfes.html
On Feb 21, 12:39&#4294967295;pm, Jerry Avins <j...@ieee.org> wrote:
> Not all batteries are "smart". Do smart batteries have more than two terminals? > > One of my cameras uses AA cells. It works with alkaline cells (poorly) NiCds (better) and best with NiMH cells. I would not use NiMH in a flashlight despite its higher capacity because it is ruined if run flat. It is safe to use in the camera because the camera shuts down before that happens. The camera also gives a low-battery warning when there is still some capacity left. The only mechanism involved must be a terminal-voltage measurement. > > An other camera uses a lithium-ion battery, also with two terminals. I don't know what happens when the battery runs down because I've never gotten there. I have a spare that I change in now and then, despite it seeming to run forever. I have never gotten a low-battery warning, even after a busy week of picture taking. > > Jerry > -- > Engineering is the art of making what you want from things you can get.
Yes all of my Nikons use smart batteries and each of their batteries have more than 2 terminals. Occasionally the charger will take the battery through a calibration process. And during this time, the battery gets discharged before being recharged. Part of a battery management system is the measuring of the battery's temperature (battery has built in tempature probe) and having memory to hold charge/discharge info. Since batteries may be swapped, this info is stored in the batteries themselves. Clay
>Yes all of my Nikons use smart batteries and each of their batteries >have more than 2 terminals. Occasionally the charger will take the >battery through a calibration process. And during this time, the >battery gets discharged before being recharged. Part of a battery >management system is the measuring of the battery's temperature >(battery has built in tempature probe) and having memory to hold >charge/discharge info. Since batteries may be swapped, this info is >stored in the batteries themselves.
There are lot of cameras, that are using simple AA rechargeable batteries with no electronic inside batteries. The info about batteries capacity is working well even when you change the batteries, or you do not charge the batteries to 100 percent. How this is working?
On Feb 23, 3:53&#4294967295;am, "Afinko" <afinko@n_o_s_p_a_m.gmail.com> wrote:
> >Yes all of my Nikons use smart batteries and each of their batteries > >have more than 2 terminals. Occasionally the charger will take the > >battery through a calibration process. And during this time, the > >battery gets discharged before being recharged. Part of a battery > >management system is the measuring of the battery's temperature > >(battery has built in tempature probe) and having memory to hold > >charge/discharge info. Since batteries may be swapped, &#4294967295;this info is > >stored in the batteries themselves. > > There are lot of cameras, that are using simple AA rechargeable batteries > with no electronic inside batteries. The info about batteries capacity is > working well even when you change the batteries, or you do not charge the > batteries to 100 percent. How this is working?
What you trade on the simpler battery charging systems is decreased battery life. I.e., how many charge discharge cycles can your batteries undergo before their capacity is reduced to say one half of their initial. I recall with the NiCad designs you were lucky to achieve 100 cycles. Overcharging was a real culprit when it came to destroying NiCads. And of course discharging cells in series all of the way is bad since the weakest cell ends up being destroyed when current is forced through it even it is completely discharged. Nickel Metal Hydride and Lithium Ion technologies are much better and have pushed the charge discharge limit much furthur. But smart battery systems are going for 1000s of charge discharge cycles. For example look at the battery management system in a Chevy Volt. GM offers an 8 year/ 100,000 mile warranty on the car including the battery. So they expect 3000 (one start per day) charge discharge cycles to not be a big problem. But back to your original question, a lot of the cheaper cameras and other devices simply monitor the battery voltage. This is not terribly accurate but is better than nothing. I've seen some that use standard sized cells like AA where you select in software the cell chemistry (alkaline vs carbon zinc vs lithium) so the unit picks the proper voltage-capacity curve. My garmin gps uses this approach and if you pick the wrong type your energy graph is in error and you may have your unit go into power saving mode prematurely because it thinks the batteries have less charge than they really do or your unit dies while its power graph indicates it is still okay. Go find the datasheets for the cells that you are interested in using and they should have some graphs that show terminal voltage vs charge level. They may even show you a curve for the internal resistance where you can see how much your load drops the battery's terminal voltage. Clay
>But back to your original question, a lot of the cheaper cameras and >other devices simply monitor the battery voltage. This is not terribly >accurate but is better than nothing. I've seen some that use standard >sized cells like AA where you select in software the cell chemistry >(alkaline vs carbon zinc vs lithium) so the unit picks the proper >voltage-capacity curve. My garmin gps uses this approach and if you >pick the wrong type your energy graph is in error and you may have >your unit go into power saving mode prematurely because it thinks the >batteries have less charge than they really do or your unit dies while >its power graph indicates it is still okay. Go find the datasheets for >the cells that you are interested in using and they should have some >graphs that show terminal voltage vs charge level. They may even show >you a curve for the internal resistance where you can see how much >your load drops the battery's terminal voltage.
Thanks Clay, I will measure the capacity / voltage curve of my battery. Then I'll try to implement some simple algorithm based on voltage measurement. Simple time averaging should be implemented, in order to "filter" current peaks. I will implement just three stages: Full Power Medium Power Low Power I will let you know the practical results.