Component guide · Intermediate · 3 min read
Grove LTC2941 Coulomb Counter Module

I2C Battery Gauge Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The LTC2941 counts charge flowing in and out of a battery through a small sense resistor and keeps a running total in an I2C register. That gives a much better state of charge than voltage alone. The Seeed Grove module adds the sense resistor and a Grove connector, so you can track milliamp-hours used in an ESP32 or Arduino project.
Key specs at a glance
- Interface
- I2C (address 0x64)
- Supply
- 3.3 to 5 V module
- Battery
- 2.7 to 5.5 V (one Li-ion cell)
- Accumulator
- 16-bit charge register
- Prescaler
- Programmable
- Alerts
- Charge high/low thresholds
A shorted, over-charged or damaged lithium cell can get very hot and catch fire. Use a protection board or BMS, never short the terminals, charge on a non-flammable surface and do not leave a charging pack alone. Throw away cells that are swollen or dented.
What the LTC2941 coulomb counter is
The Analog Devices LTC2941 is a battery gas gauge (coulomb counter) that measures charge in and out of a battery through a sense resistor and reports it over I2C.
Set the register to a known full value when the battery is fully charged, then the counter decreases as you use charge. The resolution depends on the sense resistor and prescaler; use the Seeed library to convert counts to mAh.
LTC2941 coulomb counter pinout
The pins on the LTC2941 coulomb counter and what each one does.
| Pin | Function |
|---|---|
| VCC / GND | Module supply |
| SDA / SCL | I2C |
| BAT+ / LOAD+ | Sense resistor in the battery line |
- VCC / GND
- Module supply
- SDA / SCL
- I2C
- BAT+ / LOAD+
- Sense resistor in the battery line
Wiring the LTC2941 coulomb counter
Connect the LTC2941 coulomb counter like this.
| LTC2941 coulomb counter pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- A4
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- A5
- ESP32:
- GPIO 22
Example code
Convert counts to mAh with the Seeed library and your sense resistor value.
#include <Wire.h>
const uint8_t ADDR = 0x64;
uint16_t readCharge() {
Wire.beginTransmission(ADDR); Wire.write(0x02); Wire.endTransmission(false);
Wire.requestFrom(ADDR, (uint8_t)2);
return (Wire.read() << 8) | Wire.read();
}
void setup() { Wire.begin(); Serial.begin(9600); }
void loop() { Serial.println(readCharge()); delay(2000); }Setup and tuning
place a small resistor (such as 50 mΩ) in the battery current path; its value sets the range.
SDA and SCL at 3.3 V, plus SENSE+ and SENSE- across the resistor.
set the prescaler for your battery capacity, as the datasheet explains.
set the charge register when the battery is full.
use the AL/CC pin for a low-charge alarm.
What you need
Shop this list3 of 4 found in our store · ₹11,95,609
Seeed Studio Studio Grove LTC2941 Coulomb Counter Module 3.3-5V – I2C Interface: the part this guide coversSeeed Studio Grove LTC2941 Coulomb Counter Module 3.3-5V – I2C Interface₹1,339- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
18650 Li-ion rechargeable cell: the cell to charge or protect18650 Li-ion Rechargeable Cell₹119Closest match, check the specs
Alternatives and when to choose them
Common mistakes to avoid
- Using a large sense resistor that wastes power.
- Not resetting the counter at full charge.
- Wrong prescaler.
- Swapping SENSE+ and SENSE-.
Frequently asked questions
What does a coulomb counter measure?
The charge flowing in and out of the battery, to estimate remaining capacity.
How do I choose the sense resistor?
Pick a value so full current gives about 50 mV across it, as in the datasheet.
Why is the charge reading wrong?
The prescaler or starting charge is not set correctly.
Can it measure voltage too?
The LTC2941 only counts charge; the LTC2942 adds voltage and temperature.
Does it work with Li-ion cells?
Yes, it works with any chemistry from 2.7 to 5.5 V.
Parts for this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

