Re: [POWER] battery calibration parameters from sysfs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aras Vaichas
Date: Monday, December 14, 2009 - 4:43 pm

2009/12/15 Pavel Machek <pavel@ucw.cz>:

I've worked on several battery powered devices and battery monitoring
is very hard to achieve without a deep understanding of the chemistry,
circuitry and the algorithms. Large current loads can cause the
battery voltage to drop and therefore there can be a significant
voltage drop between measuring the quiescent and the loaded battery
voltages.  I once did try to implement an algorithm which took into
account the different battery voltage during heavy current drain but
it's hard to know how to interpret that data.  One of the RFID systems
I worked on could run the user interface for days on a low battery but
a single RFID read would cause the system to die due to the internal
resistance current drop ...

One of the easiest ways to monitor the battery is with a coulomb
counting method (accumulate current going into and out of the battery)
e.g. "LTC4150 - Coulomb Counter/Battery Gas Gauge"
http://www.linear.com/pc/productDetail.jsp?navId=H0,C1,C1003,C1037,C1134,P2354

As long as you aren't draining very large amounts of current from the
battery, the accumulated current measurement should be almost equal to
the amp-hour rating of the battery.

Unfortunately the simple coulomb counting chips have the disadvantage
that the CPU has to be running to accumulate the pulses. Of course,
the pulses could wake the CPU from a suspend mode, but I'd rather not
do that just to add "one" to a counter ...

Finally we decided on a fully integrated "smart" battery monitor
device like the DS2782
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/4779. This chip has
Linux device driver support, I got the driver from Ryan Mallon at
Bluewater Systems. It was fairly complex to set up and calibrate but
we now use it in a commercial product.

I recommend having a look at the datasheet for the DS2782 to see what
methods they use for determining the remaining charge in a battery and
to get an idea of the complexity of the problem.

Good luck!

Aras Vaichas
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[POWER] battery calibration parameters from sysfs, Linus Walleij, (Fri Dec 4, 3:42 am)
Re: [POWER] battery calibration parameters from sysfs, Alexander Clouter, (Fri Dec 4, 4:34 am)
RE: [POWER] battery calibration parameters from sysfs, Linus Walleij, (Sat Dec 5, 6:08 am)
RE: [POWER] battery calibration parameters from sysfs, Linus Walleij, (Mon Dec 7, 7:07 am)
Re: [POWER] battery calibration parameters from sysfs, Brian Swetland, (Mon Dec 7, 10:27 pm)
Re: [POWER] battery calibration parameters from sysfs, Pavel Machek, (Sun Dec 13, 6:19 am)
Re: [POWER] battery calibration parameters from sysfs, Pavel Machek, (Sun Dec 13, 6:24 am)
Re: [POWER] battery calibration parameters from sysfs, Pavel Machek, (Mon Dec 14, 4:58 am)
Re: [POWER] battery calibration parameters from sysfs, Pavel Machek, (Mon Dec 14, 2:22 pm)
Re: [POWER] battery calibration parameters from sysfs, Aras Vaichas, (Mon Dec 14, 4:43 pm)
Re: [POWER] battery calibration parameters from sysfs, Bill Gatliff, (Mon Dec 14, 8:02 pm)
Re: [POWER] battery calibration parameters from sysfs, Aras Vaichas, (Tue Dec 15, 3:58 pm)
Re: [POWER] battery calibration parameters from sysfs, Stanislav Brabec, (Tue Dec 15, 4:32 pm)
Re: [POWER] battery calibration parameters from sysfs, Pavel Machek, (Wed Dec 16, 3:53 pm)
Re: [POWER] battery calibration parameters from sysfs, Pavel Machek, (Fri Dec 18, 1:48 am)