This Arduino library provides support for the 7Semi MAX17048 Fuel Gauge Sensor, allowing you to easily monitor Li-ion battery voltage and state-of-charge (SOC) over I2C. It is based on Maxim Integrated’s MAX17048 ultra-low-power fuel gauge.
- 7Semi MAX17048 Fuel Gauge Module
- Arduino-compatible board
- I2C connection (SDA, SCL)
- Open the Arduino IDE
- Go to:
Sketch > Include Library > Manage Libraries…(IDE 1.x)- Or click 📚 (Library icon) in the sidebar (IDE 2.x)
- Search for: -7Semi MAX17048
- Click Install
Then include in your sketch:
#include <7semi_max17048.h>
| MAX17048 Pin | Arduino Pin |
|---|---|
| SDA | A4 (Uno) |
| SCL | A5 (Uno) |
| VCC | 3.3V |
| GND | GND |