View on GitHub

MAX1704X Arduino Library

Arduino library for MAX17043/MAX17044 lithium ion battery fuel gauge.

Home - Getting Started - Constructor - Initialization - Functions - Examples

deviceFound() - findFirstDevice() - address() - adc() - voltage() - percent() - version() - compensation() - sleep() - isSleeping() - wake() - reset() - quickstart() - alertIsActive() - clearAlert() - threshold()

compensation()

Description

Gets/sets the battery compensation value which adjusts IC performance based on application conditions.

Parameters

Get: None

Set: compensation :uint8_t

Returns

Get: compensation :uint8_t

Set: None

Example

This snippet of code shows how to get the compensation.

uint8_t address = FuelGauge. compensation();

This snippet of code shows how to set the compensation.

FuelGauge. compensation(0x097);

Notes

Compensation can be adjusted to optimize IC performance for different lithium chemistries or different operating temperatures. Contact Maxim for instructions for optimization. The power-up default value for CONFIG is 97h.