afinko
Newbie level 3
Hi,
I have own hardware with Analog Devices DSP and STM32 CORTEX-M3.
It is powered from battery and it has graphical OLED display.
I am wondering how to add "battery icon" on display.
I can measure the battery voltage by ADC. It is 4.1V LI-On battery
2000mAh.
As you can see here:
**broken link removed**
the voltage of battery is not linear with the actual battery capacity (what
capacity still left). Moreover, the battery voltage is very depending on actual
battery current load.
Any ideas how to program the software that can show the classical "battery
icon" that can be seen on all mobile phones / cameras? Some software flow diagram, or even ideas would be great...
I know that there are some special IC with Battery Gas Gauge / Coulomb Counter. But I am looking for some simpler software way.
Just 3 states FULL/MEDIUM/LOW icons would be great.
It do not have to be very precise ...
I asked for that question on DSPRelated, but I didn't received satisfied answer.
Thanks in advance.
Afi
I have own hardware with Analog Devices DSP and STM32 CORTEX-M3.
It is powered from battery and it has graphical OLED display.
I am wondering how to add "battery icon" on display.
I can measure the battery voltage by ADC. It is 4.1V LI-On battery
2000mAh.
As you can see here:
**broken link removed**
the voltage of battery is not linear with the actual battery capacity (what
capacity still left). Moreover, the battery voltage is very depending on actual
battery current load.
Any ideas how to program the software that can show the classical "battery
icon" that can be seen on all mobile phones / cameras? Some software flow diagram, or even ideas would be great...
I know that there are some special IC with Battery Gas Gauge / Coulomb Counter. But I am looking for some simpler software way.
Just 3 states FULL/MEDIUM/LOW icons would be great.
It do not have to be very precise ...
I asked for that question on DSPRelated, but I didn't received satisfied answer.
Thanks in advance.
Afi