Hey everyone. Found this thread about measuring the voltage on lipo battery: devzone.nordicsemi.com/.../how-to-measure-lithium-battery-voltage
Hey everyone. Found this thread about measuring the voltage on lipo battery: devzone.nordicsemi.com/.../how-to-measure-lithium-battery-voltage
Ok, let's says I'll use this combination: VDD 1.8V, prescaling 1/1 then AIN_MAX is 2.1V
V_AIN_MIN = 2200 / (2200+10000) * 3.0 = 0.54V V_AIN_MAX = 2200 / (2200+10000) * 4.2 = 0.76V
And I'll use 8 bits resolution. So I get: (0.76 - 0.54) / 256 = 0.00086
It's quite small number, will I be able to determine at least 10 different battery levels?
Or should I change the divider, so it has bigger "spread"?
Sorry for probably very basic question. I'm quite new to this :)
Ok, let's says I'll use this combination: VDD 1.8V, prescaling 1/1 then AIN_MAX is 2.1V
V_AIN_MIN = 2200 / (2200+10000) * 3.0 = 0.54V V_AIN_MAX = 2200 / (2200+10000) * 4.2 = 0.76V
And I'll use 8 bits resolution. So I get: (0.76 - 0.54) / 256 = 0.00086
It's quite small number, will I be able to determine at least 10 different battery levels?
Or should I change the divider, so it has bigger "spread"?
Sorry for probably very basic question. I'm quite new to this :)