Arduino MAX17263 fuel gauge library
GitHub
You can download the software on GitHub.
This library is almost ready but I didn't finish it completely because I switched to another fuel gauge IC with high-side current sensing the LTC2944 (see GitHub here).
MAX17263 accurate fuel gauge
Most cheap fuel gauges that are for sale, only measure the voltage, but that is very inaccurate. It is also necessary to measure the battery current. With the measured voltage and current, complicated software is able to determine exactly the accurate state-of-charge (SOC). Manufactures have many ICs for this application. We use the MAX17263 here because it has one important advantage: it needs no time-consuming battery characterization.
The used algorithm of the MAX17263 is the so-called ModelGauge M5 algorithm, which uses among others self learning routines: as the cell ages, its change in capacity is monitored and updated.
MAX17263 most important features
- No Characterization Required
- No Calibration Required
- Robust Against Battery Variation
- Eliminates Coulomb Counter Drift
- Compensates for Age, Current, and Temperature
- Integrated LEDbar Control with test Push-Button
- Accurate Current Sensing
- Supports Li+ and Variants Including LiFePO4
Circuit MAX17263 controlled by Arduino
Circuit MAX17263 controlled by Arduino
MAX17263 package
You can only solder the chip with the help of a solder mask: