Designing a Battery Monitoring Circuit: Questions & Challenges

Click For Summary
SUMMARY

The discussion centers on designing a battery monitoring circuit using the MAX4081 bidirectional current sensor and the ATmega48 microcontroller for a 24 V lead-acid battery. The primary concerns include the effectiveness of current measurement for determining battery status and the challenges of integrating current over time to derive amp-hours. Key insights include the importance of sampling frequency relative to current changes and the potential for noise in measurements, suggesting the use of statistical smoothing techniques like running averages or Kalman filters to enhance accuracy.

PREREQUISITES
  • Understanding of MAX4081 current sensor functionality
  • Familiarity with ATmega48 microcontroller and its ADC capabilities
  • Knowledge of battery characteristics, specifically lead-acid battery behavior
  • Basic principles of signal processing, including integration and noise reduction techniques
NEXT STEPS
  • Research methods for extracting charging/discharging curves from current measurements
  • Explore statistical smoothing techniques, such as Kalman filters, for current data
  • Investigate Nyquist sampling theorem in relation to battery monitoring applications
  • Learn about integrating current measurements to calculate amp-hours accurately
USEFUL FOR

Electronics engineers, hobbyists designing battery management systems, and developers working on battery monitoring solutions will benefit from this discussion.

roeb
Messages
98
Reaction score
1
I am currently in the process of designing a battery monitoring circuit. At the moment we are planning to base the circuit around the MAX4081 (bidirectional current sensor) and a microcontroller (atmega48). I am a bit concerned as to whether or not we will actually be able to get anything out of the MAX4081 that will indicate to us the actual status of the battery.

- 24 V lead acid battery
- at times it will be supplying ~10 A

The original plan was to take the current sensor and get the current, we can then integrate with respect to time to get Amp hours. However, I am not convinced that this will actually work.

Say the battery is supplying 10 A and we measure 10 A at an interval of 10 usecs. So yeah we can integrate that and get the amp seconds but does it mean anything? What if the battery is supplying 5 amps at an interval of 10 usecs? We can keep on adding up the small areas but I still fail to see how that would yield anything useful especially if the current is jumping around...

I found a nice article that goes over the basics of this, but unfortunately it still doesn't answer all of my questions... http://focus.ti.com/lit/ml/slyp086/slyp086.pdf


My questions are:

1) Can a current sensor be used for battery monitoring? I'm not going for a terribly high accuracy, but something that is functional would be nice.

2) How do I extract a charging/discharging curve from the current?

I can use the microcontroller just fine for ADC from the current sensor but I am still concerned that we won't be able to get anything useful out of the measured currents...
 
Engineering news on Phys.org
That sounds like an ideal way to measure a battery charge state.
You aren't making any assumptions about the battery (it's volt/amp/capacity curves) you are simply doing current in - current out book-keeping.
How often you sample the current is up to you and depends on how frequently the output current changes in your application, there is a limit to how often it can change based on the resistance and capcitance of the circuit, there is no point sampling faster than this - a sort of Nyquist limit if you like.
Main problem will be noise in the current sensor andthe limits of the cheap ADC in the uC.
You probably want to look at some statistical smoothing technique, either somethign simple like a running average or more complex like a Kalman filter.
Another good feature might be a reset to the integrator when you know the battery is full - perhaps from an external voltage sensor or from measuring a predicted top up current value.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
3K
  • · Replies 26 ·
Replies
26
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K