We have a pcb with an Atmega (MCU) on it, that most of the time is in sleep mode, consuming 50-100 uA
.
When it wakes up, and only then , we need to take a sample of the battery voltage to send to the server .
I was considering few options and wonder which is the "right" if we dont want to loose current .
Voltage will be 3.6-4.2V
when its full via 3.6V regulator .
- connecting the battery with serial resistor(>
50k
?? ) directly to the ADC. - take 2 large resistors(100k?) and create voltage divider of the battery voltage , and connect the point between them to the ADC .
- connecting the battery directly to the ADC ?
--- should we measure after or before the regulator ??
A 100k resistor will leak about 50uA
of current which is no that good ,because the Atmega itself should be the only and main consumer on sleep with 50-100uA
.