Skip to content
Get started

Analog Devices MAX17048 battery fuel gauge

The max17048 platform allows you to monitor the remaining capacity of a lithium-ion battery with an Analog Devices MAX17048 or MAX17049 fuel gauge (datasheet) in ESPHome. The ModelGauge algorithm in the chip tracks the state of charge over a wide range of charge and discharge profiles without a sense resistor or relearn cycles. The MAX17048 monitors one cell and the MAX17049 two cells in series; the two chips are otherwise the same. It uses the I²C Bus for communication.

NOTE

The voltage is scaled for the MAX17048. On a MAX17049, whose voltage step is doubled for its two cells, battery_voltage is therefore the average voltage per cell rather than the pack voltage; a multiply: 2 filter gives the pack voltage.

Adafruit MAX17048 LiPoly / LiIon fuel gauge and battery monitor
Adafruit MAX17048 LiPoly / LiIon fuel gauge and battery monitor
# Example configuration entry
sensor:
- platform: max17048
battery_voltage:
name: Battery Voltage
battery_level:
name: Battery Level
  • battery_voltage (Optional): The cell voltage in volts. All options from Sensor.
  • battery_level (Optional): The state of charge in percent. All options from Sensor.
  • rate (Optional): The rate at which the cell is charging or discharging, in percent per hour, positive while charging. All options from Sensor.
  • address (Optional, int): The I²C address of the device. Defaults to 0x36.
  • update_interval (Optional, Time): How often to read the gauge. Defaults to 60s.