LowPowerLab Forum

Hardware support => Low Power Techniques => Topic started by: FlyingSaucrDude on August 27, 2021, 07:39:30 PM

Title: Battery monitor/sensing ratio calculation
Post by: FlyingSaucrDude on August 27, 2021, 07:39:30 PM
Apologies for raising a long-dormant thread from the dead, but I was hoping to verify my understanding of the discussion that went on this thread.

From reading the thread above, I get the sense that the attached circuit should work if I want to measure the battery voltage only when I set the DIO pin to HIGH, and draw minimal current whenever I set the DIO pin to LOW.

Assuming that's correct, I have a couple questions:

Thanks in advance for the help!
Title: Re: Battery monitor/sensing ratio calculation
Post by: Felix on August 28, 2021, 10:35:20 AM
FlyingSaucrDude,
Thanks for the post but it was not really relevant to the thread you posted in, it's just a general vbat monitor question, so it's now a new thread.

Not sure what "this application" you refer to, the web photo you attached ???? That's an overly complicated way to sample battery voltage.
If you can afford a sub microamp constant drain, then just use a [Vbat]->[1Mohm]<-ADC->[1Mohm+0.1uF]->GND voltage divider. Otherwise you can use a GPIO to toggle a single PFET that feeds into a divider, enable it only when you sample - in this case the 2 resistors can be much lower value for fast response. The ratio of the 2 resistors give you the Vbat divider, so 1:1 yields 50% of Vbat going to the ADC pin, this is when Vbat > VCC of the MCU. Otherwise if Vbat feeds directly into the MCU then you can use bandgap to sample the battery with no external components (not most accurate but with a little calibration its very accurate).
Many many voltage monitor ICs exist, you only need to search.