Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 849
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post by stefan.erni »

Hi Ben

On many Sparfun boards there is an integrated circuit Max17048 to monitor the charge status of the battery. Also on my logger board. There are also breakout boards from Adafruit for a few dollars or from other manufacturers.

This Ic is much more accurate than using resistors on AD converters and calculating your own curve. Would it be possible to have this IC as a component for Flowcode?

on the Sparfun board
2024-06-05_11-44-36.PNG
2024-06-05_11-44-36.PNG (38.31 KiB) Viewed 2568 times
or as breakout board
2024-06-05_12-02-45.PNG
2024-06-05_12-02-45.PNG (674.1 KiB) Viewed 2568 times
Info about
The MAX17048/MAX17049 ICs are tiny, micropower current fuel gauges for lithium-ion (Li+) batteries in handheld
and portable equipment. The MAX17048 operates with
a single lithium cell and the MAX17049 with two lithium
cells in series.
The ICs use the sophisticated Li+ battery-modeling algorithm ModelGauge™ to track the battery relative state-ofcharge (SOC) continuously over widely varying charge
and discharge conditions. The ModelGauge algorithm
eliminates current-sense resistor and battery-learn cycles
required in traditional fuel gauges. Temperature compensation is implemented using the system microcontroller.

BenR
Matrix Staff
Posts: 1882
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 484 times
Been thanked: 661 times

Re: Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post by BenR »

Hello,

Many thanks for the suggestion, I've ordered one to have a play with.

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post by stefan.erni »

Hi Ben

Thank you Ben.
I saw the component and it's working.
But it looks like reading the accu percentages only works from the main, but not in a macro.

regards

Stefan

jgu1
Posts: 681
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 569 times
Been thanked: 146 times

Re: Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post by jgu1 »

Hello Stefan!

Dare to ask, will you share you project? ;)

Br jorgen

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post by stefan.erni »

Hi Jorgen

It would be very easy and convenient with Flowcode and the component Max17048 to stop the recording before the battery is empty.
It also works to read the state of the battery in the main part but not in the macro rec.
2024-06-17_08-40-57.PNG
2024-06-17_08-40-57.PNG (67.87 KiB) Viewed 2420 times
here is my code, maybe you'll see what's going on
L24_1.fcfx
(178.08 KiB) Downloaded 127 times
regards
Stefan

jgu1
Posts: 681
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 569 times
Been thanked: 146 times

Re: Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post by jgu1 »

Hi Stefan!

Thank you very much. I Will look at your examble.

Thank’s

Jorgen

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: Max17048 3μA 1-Cell/2-Cell Fuel Gauge with ModelGauge as componet

Post by stefan.erni »

Hi Ben, Hi Jorgen

The Max17048 is working nice.
There was only a problem with another I2C device on the same bus
And the battery measurement was not properly integrated in the "sample" part.

I have noticed,
The threshold in percent for switching off should be relatively high with a 110mA battery and 100mA consumption,
but rather low with an 1100mA battery and a low current consumption.
Sometimes protective diodes also distort the percentage values a little
like with my hardware...
2024-06-18_14-18-07.PNG
2024-06-18_14-18-07.PNG (146.59 KiB) Viewed 2389 times
Turn off % with a small accu is high
2024-06-18_14-16-19.PNG
2024-06-18_14-16-19.PNG (14.64 KiB) Viewed 2389 times
protective diodes cause additional problems for the correct % values
2024-06-18_14-27-49.PNG
2024-06-18_14-27-49.PNG (205.31 KiB) Viewed 2389 times

Post Reply