2
\$\begingroup\$

I'm trying to measure dry cell charge level. I'm using 6V/4Ah/20Hr dry cell battery.

In my system there are atmega32a and 6 seven segment display; how can I measure the charge level of this battery?

\$\endgroup\$
2
  • \$\begingroup\$ it's not quite sure what you mean with "specify": do you mean measure or estimate, or do you actually need to specify the charge level of a cell that someone else supplies? \$\endgroup\$ Oct 4 '19 at 7:24
  • \$\begingroup\$ @MarcusMüller sorry for my english. i would like to measure percentage of charge. \$\endgroup\$
    – 7navy4
    Oct 4 '19 at 9:02
3
\$\begingroup\$

See the wikipedia article for Alkaline battery for an exemplary discharge vs voltage table:

table from wikipedia link

The data is from TI's SLVA194 (I think that'd be an interesting read for you!); the basic idea is this:

If you roughly know the load current, you can measure the voltage of the battery (using your microcontroller's ADC or an external ADC – the hard part might be getting a battery-independent reference voltage) and infer the charge state from that pretty simply by looking it up in a table as the above; discharge curves (from the same TI document) look like this:

Discharge curve (SLVA194 page 3)

This all starts with you specifying the minimal voltage your battery still needs to supply for your device to work – if you need 1.35V, your battery will be depleted much earlier than if you can still work with 1.10V.

Generally, don't expect multiple significant digits – these curves depend on the battery, on how your current draw distribution over time looks like, and very significantly on temperature. Think of this more in terms of "nearly full", "two thirds", "one third", "nearly empty – replace now". You really can't do much better without testing every battery model you use yourself, and very closely controlling the environment in which the battery works.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.