Component guide · Intermediate · 3 min read
INA3221 3-Channel Current Monitor

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The INA3221 measures current and voltage on three separate supply rails at once. Each channel has a 0.1 ohm shunt resistor on the module, reads bus voltages up to 26 V and talks over I2C at address 0x40 by default. It is a good fit for checking a solar charger, battery and load together, or watching the 3.3 V, 5 V and 12 V rails of a project.
Key specs at a glance
- Channels
- 3 independent current and bus voltage channels
- Bus voltage
- 0 to 26 V
- Shunt
- 0.1 ohm on each channel (about 1.6 A full scale)
- Resolution
- 13-bit, 40 µV shunt step (0.4 mA with 0.1 ohm)
- Interface
- I2C, address 0x40 to 0x43
- Supply
- 2.7 to 5.5 V
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 INA3221 module is
Each channel measures the small voltage across its shunt resistor to get the current, and the voltage on the load side to get the bus voltage. Multiply them for power.
It is a high-side sensor: the shunt goes in the positive wire between the supply and the load. All three channels share one ground with the INA3221 and the controller. For one channel with more range, the INA219 is simpler.
INA3221 module pinout
The pins on the INA3221 module and what each one does.
| Pin | Function |
|---|---|
| VS / VCC | Logic supply, 2.7 to 5.5 V |
| GND | Ground (shared with every measured rail) |
| SDA / SCL | I2C data and clock |
| CHx IN+ / VIN+ | Supply side of channel x (from the source) |
| CHx IN- / VIN- | Load side of channel x (to the load) |
| PV / CRI / WAR / TC | Power-valid and alert outputs (optional) |
- VS / VCC
- Logic supply, 2.7 to 5.5 V
- GND
- Ground (shared with every measured rail)
- SDA / SCL
- I2C data and clock
- CHx IN+ / VIN+
- Supply side of channel x (from the source)
- CHx IN- / VIN-
- Load side of channel x (to the load)
- PV / CRI / WAR / TC
- Power-valid and alert outputs (optional)
Wiring the INA3221 module
Break the positive wire of each rail and put the channel's IN+ on the supply side and IN- on the load side. The grounds of all rails must be joined to the INA3221 GND.
| INA3221 module pin | Arduino Uno | ESP32 |
|---|---|---|
| VS | 5V | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
| CH1 IN+ / IN- | Battery + in, load + out | Battery + in, load + out |
- VS
- 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
- CH1 IN+ / IN-
- Arduino Uno:
- Battery + in, load + out
- ESP32:
- Battery + in, load + out
Example code
Some cheap modules label the channels 1 to 3 while the library counts 0 to 2. Check which wire moves when you load each rail.
#include <Adafruit_INA3221.h>
Adafruit_INA3221 ina;
void setup() {
Serial.begin(115200);
if (!ina.begin(0x40, &Wire)) { Serial.println("INA3221 not found"); while (1); }
for (int ch = 0; ch < 3; ch++) ina.setShuntResistance(ch, 0.1);
}
void loop() {
for (int ch = 0; ch < 3; ch++) {
float v = ina.getBusVoltage(ch);
float ma = ina.getCurrentAmps(ch) * 1000;
Serial.printf("CH%d: %.2f V %.1f mA %.0f mW\n", ch + 1, v, ma, v * ma);
}
delay(1000);
}Setup and tuning
with 0.1 ohm shunts the full scale is about 1.6 A; swap in smaller shunts for more.
every measured supply must share ground with the module.
turn on averaging in the library to smooth noisy motor or PWM loads.
tie the A0 pin to GND, VS, SDA or SCL for 0x40 to 0x43.
What you need
Shop this list5 of 6 found in our store · ₹1,004
INA3221 Triple-Channel Current and Voltage Monitor Module: the part this guide coversINA3221 Triple-Channel Current and Voltage Monitor Module₹250- 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
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- INA219 current sensor: one channel, simpler, also 26 V.
- ACS712 current sensor: Hall sensor for larger currents, isolated from the circuit.
- SCT-013 current transformer: clips on to AC mains cables without cutting them.
Common mistakes to avoid
- Putting the shunt in the ground wire instead of the positive wire.
- Not joining the grounds of the measured rails to the module.
- Passing more than about 1.6 A through the 0.1 ohm shunts.
- Measuring above 26 V, which damages the chip.
Frequently asked questions
What is the INA3221 maximum current?
About 1.6 A per channel with the 0.1 ohm shunts fitted; smaller shunts raise it.
Can it measure AC current?
No. It is for DC rails up to 26 V. Use an SCT-013 for AC mains.
What is its I2C address?
0x40 by default, up to 0x43 by moving the address pin.
INA3221 or INA219?
INA3221 for three rails on one board; INA219 for one rail with higher resolution.
Does it measure power?
It gives voltage and current; multiply them in code for power.
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
- INA3221 triple-channel shunt and bus voltage monitor datasheet (Texas Instruments)
- Adafruit INA3221 library documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

