Should I have a load to monitor battery voltage?

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
I didn't know to post this here or in the embedded forum. I figured it is more general so posted it here.

My microcrontroller project has a backup battery to power the RTCC in the event of a power failure. . I want to monitor battery level. I was thinking that I will need a load to get a true reading of battery status. The battery is going to be a 3V coin cell battery.

Should I measure across a load? If so what value resistor should I use?

upload_2017-11-17_18-40-49.png
 

Attachments

AlbertHall

Joined Jun 4, 2014
12,347
Yes a load will change the battery voltage. Just measure the voltage while it is supplying the RTC as that is the load it has in normal operation.
 

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
Yes a load will change the battery voltage. Just measure the voltage while it is supplying the RTC as that is the load it has in normal operation.

But under normal conditions the RTCC won't be powered by the battery. It is on board the Pic. Blocking diode will not be forward biased during normal operation so basically the battery will have no load other than the analog input.
 

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
A pulse test in the range of 400 ohms should work.


Coin cell.
I don't understand. What do you mean by a "pulse test"?

I only have one remaining pin to work with and that is my analog input. It can be made to be a digital out if that works.
 

nsaspook

Joined Aug 27, 2009
13,312
I don't understand. What do you mean by a "pulse test"?

I only have one remaining pin to work with and that is my analog input. It can be made to be a digital out if that works.
I updated my post. You could config it as a output to sink current for a time and then quickly reprogram as an analog input to measure a voltage drop before the cell recovers completely.
 
Last edited:

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
I take that back. I have a couple of extra pins on that side of the chip but it might be a challenge to get to them on my single sided board. I might need to redesign that side of the pic.
 

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
I updated my post. You config it as a output to sink current for a time and then quickly reprogram as an analog input to measure a voltage drop before the cell recovers completely.

That would be ideal if I can do it with one pin but what do I output to? What kind of circuit to provide a temporary load?
 

nsaspook

Joined Aug 27, 2009
13,312
That would be ideal if I can do it with one pin but what do I output to? What kind of circuit to provide a temporary load?
The output pin transistor to ground is the load. You should put a small load resistor in series from the cell to pin to limit current without affecting the ADC level too much in analog mode.
 
Last edited:

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
The output pin transistor to ground is the load. You could put a small load resistor in series from the cell to pin to limit current without affecting the ADC level too much in analog mode.
OK stepped away for a few minutes and I was thinking just that. You mean something like this? I think I will just go ahead and us that other pin. I already have the PCB designed so I have some fixing to do but I'd rather know for sure my load is switched in before measuring the voltage.

upload_2017-11-17_19-47-17.png
 

Attachments

nsaspook

Joined Aug 27, 2009
13,312
OK stepped away for a few minutes and I was thinking just that. You mean something like this? I think I will just go ahead and us that other pin. I already have the PCB designed so I have some fixing to do but I'd rather know for sure my load is switched in before measuring the voltage.

View attachment 139556
Sure you won't see the voltage under actual load but the battery voltage won't recover instantly when the load is off due to the time it takes for the chemistry to work. That should be plenty of time to make a relative voltage measurement of good and bad cell using the same pin as load with serial resistor and measurement ADC.
 

Thread Starter

spinnaker

Joined Oct 29, 2009
7,830
Sure you won't see the voltage under actual load but the battery voltage won't recover instantly when the load is off due to the time it takes for the chemistry to work. That should be plenty of time to make a relative voltage measurement of good and bad cell using the same pin as load with serial resistor and measurement ADC.

But if I use a separate pin to switch in the load I will read the actual voltage?
 

GopherT

Joined Nov 23, 2012
8,009
Sure, if reading the actual voltage during the load is an important requirement then it's worth the effort.
I updated my post. You could config it as a output to sink current for a time and then quickly reprogram as an analog input to measure a voltage drop before the cell recovers completely.
It is not a question of recovery. Current must be flowing to get the voltage under load. Internal resistance follows ohms law just like the resistance of a resistor.

Your voltage measurement method won't work any better than disconnecting one of the resistors of a voltage divider and then measuring quickly. You'll get a voltage very close to one not underload if you disconnect and measure immediately after. The I*R voltage drop inside the battery still needs "I" value to make the voltage drop.
 

nsaspook

Joined Aug 27, 2009
13,312
It is not a question of recovery. Current must be flowing to get the voltage under load. Internal resistance follows ohms law just like the resistance of a resistor.

Your voltage measurement method won't work any better than disconnecting one of the resistors of a voltage divider and then measuring quickly. You'll get a voltage very close to one not underload if you disconnect and measure immediately after. The I*R voltage drop inside the battery still needs "I" value to make the voltage drop.
As you well know batteries are chemical devices and don't recover instantaneously due to the rates of diffusion to recreate the charge separation needed for normal cell voltage after a sizable (for the type of battery) load. It takes under 100 microseconds to switch modes and do a full ADC measurement on a slow controller and much less than that for the switch and sample-hold function.

http://batteryuniversity.com/learn/article/testing_lithium_based_batteries

 
Last edited:
Top