2023-12-09 01:28 PM
hello everyone,
In a battery-powered IoT project, I can never make accurate measurements because my battery voltage is the same as my reference voltage.
I did not use any power ICs to reduce the cost of my project.
I am using a 3.6V li-soci2 battery
Saving power is very important
I think I need to use VREFINT
I am using stm32f302r8t6
How to measure the battery level (battery monitoring) of a battery-saving system that works with a 3.6v battery?
Solved! Go to Solution.
2023-12-15 08:42 AM
> is this true?
Yes
There are ADC examples in the repository that you can follow.
2023-12-09 04:08 PM
Measure the VREFINT channel and use that to infer what VREF+ is. VREFINT has a constant voltage of ~1.21 (check datasheet for specific), so if the VREFINT channel measures as 1500, your VREF+ is 1.21 V * 4095 / 1500 = 3.3 V.
2023-12-15 08:33 AM
I'm very sorry but I couldn't understand
can you give me an example
I connected 3.6v (battery li-soci2) VDD and VREF+.
(4095 / VREFINT value)*1.21 = VDD
is this true?
2023-12-15 08:42 AM
> is this true?
Yes
There are ADC examples in the repository that you can follow.
2023-12-15 08:43 AM
I understand, I'm really grateful.