×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Monitoring Battery Level

Monitoring Battery Level

Monitoring Battery Level

(OP)
I need to have my micro-controller monitor the battery level.  The CPU runs off of a regulated source, but battery is about 1.5 volts above the regulated voltage and can not be fed directly into the ADC.  I do not want to use a simple voltage divider because it would always be drawing power.  I have only one general purpose pin available, but I might be able to open up one more if really needed.  Suggestions?   

RE: Monitoring Battery Level

Use the "simple voltage divider", but add an analog switch in series.  And then close the switch only when you want to measure the battery level with your ADC.  Once in every 10 minutes should do.

There are many battery monitor chips available.  What type of battery are you using?

RE: Monitoring Battery Level

(OP)
RajeevCell,

3 AA.  The uC runs off of a 2.7V regulator.

RE: Monitoring Battery Level

I wonder if (using diodes and a capacitor) you could use just one pin as an output to control the analog switch or FET, and the same pin as an input to read the analog value.

Another approach would be to use very high value resistors in the voltage divider to minimize leakage, but have a little capacitor in parallel with the sample to give you enough voltage for enough time to measure into your lower impedance input.

Another approach would be a simple serial resistor to divide the voltage with the input Z. And then use software to calibrate it back into reasonable accuracy.

 

RE: Monitoring Battery Level

Depending on your processor you can tie one end of your voltage divider to a GPIO pin, the other end to your battery +, and the center node to your ADC input.  Normally set the GPIO to be an input.  Make sure the input voltage range is 5 volt compliant.  This should draw next to no current from your battery.

If it's not 5 volt compliant, you might end up drawing some small current through the divider resistors and the input protection diode.  (It won't cause any damage since the voltage divider resistors will limit the current.)  If that's the case you might want to drive an external N channel MOSFET to enable the divider.

Set the GPIO pin to a LOW output to read the divider down battery voltage.

Some processors have this sort of function, with an internal voltage divider built in.  Check the documentation.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources