Source: https://mokxi.com/parts/ina3221
Updated: 2026-11-18

Part

# Three-channel current monitor, INA3221

Three shunts, three bus voltages, one I2C address: each rail of a project measured at once.

See every part

- 10 pins
- 1 setting
- In 2 projects

Drawn live by the editor's own code, at the size you see it.

At a glance

## The Three-channel current monitor, INA3221 in brief

What it is, and every setting the properties panel gives it.

The INA3221 is a three-channel current monitor from TI. It measures three shunts and three bus voltages at one I2C address. That makes it a good fit for a project with several supply rails. Each channel is a 0.1 ohm shunt in series with its load. The bus voltage is read at the shunt's load end. In Mokxi you can wire its SDA and SCL lines to an Arduino, put a load in series with a channel's shunt pins, and read current and voltage in a sketch. The simulator reports each channel's current through its shunt in amps while the project runs. The editor has one setting, the I2C address, which starts at 64. The model does not include the critical and warning alerts or the power-valid window. Adafruit's library, shipped as Adafruit_INA3221.h, works here with channels 0 to 2.

Family

Sensors

Pins

10

address

64

Pins

## 10 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

What it does

VCC

Supply, 2.7 to 5.5 V.

GND

Ground.

SCL

I2C. The board carries the pull-ups.

SDA

I2C. The board carries the pull-ups.

IN1+

Channel 1's shunt.

IN1-

Channel 1's shunt.

IN2+

Channel 2's shunt.

IN2-

Channel 2's shunt.

IN3+

Channel 3's shunt.

IN3-

Channel 3's shunt.

How to use it

## How to use the INA3221 current monitor with an Arduino

The example project is called "Two rails". It is built in and opens in the editor as drawn. An INA226 watches a 12 V rail and an INA3221 watches a 5 V one. Each rail's voltage and current, and the power, all ride on one I2C bus.

The wiring is short. The INA3221's VCC goes to the Arduino's 5V, GND to GND, SDA to A4 and SCL to A5. IN1+ connects to 5 V and IN1- to pin 1 of a filament lamp, so the lamp's current flows through the channel 1 shunt.

With default settings the serial monitor printed: "12V rail 12.00 V 109 mA 1313 mW 5V rail 4.99 V 57 mA" and then "12V rail 12.00 V 100 mA 1200 mW 5V rail 4.99 V 54 mA". The two lines differ because a filament lamp's resistance rises as its filament warms up, so the current it draws drops a little.

Things to try: swap a lamp for another model and watch its current follow.

Part pin

Goes to

VCC

Arduino Uno R3 pin 5V

GND

Arduino Uno R3 pin GND

SDA

Arduino Uno R3 pin A4

SCL

Arduino Uno R3 pin A5

IN1+

5 V

IN1-

Filament lamp (2) pin 1

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

sketch.ino · Arduino Uno R3

Common errors

## Common Three-channel current monitor, INA3221 errors and fixes

What goes wrong

The fix

The current reads about double what you expect.

The library defaults to a 0.05 ohm shunt but the board has 0.1 ohm. Call setShuntResistance(0, 0.1) for each channel in setup.

The part does not respond on the I2C bus.

Check the address. The editor setting starts at 64, and the sketch must call begin with the same address, like rail5.begin(0x41, &Wire).

You read current from a channel but get nothing useful.

The load must be in series with that channel's shunt. Wire IN1+ to the supply and IN1- to the load, and use channel index 0 in the library.

You look for the alert pins or the power-valid window.

Mokxi does not model those. Read current and bus voltage from the registers or library calls instead.

Questions

## Questions and answers

### How many currents can an INA3221 measure?

Three. Each channel is a 0.1 ohm shunt in series with its load, and it also reads the bus voltage at the shunt's load end.

### What voltage can the INA3221 run on?

From 2.7 to 5.5 V on VCC. In the example it runs from the Arduino's 5V pin.

### What I2C address does the INA3221 use?

The address range is 0x40 to 0x43. In Mokxi the editor setting starts at 64, which is 0x40.

### Which Arduino library works with the INA3221 in Mokxi?

Adafruit's library, shipped as Adafruit_INA3221.h. Use channels 0 to 2 and set each shunt resistance to 0.1 ohm.

How it is modeled

## What is true about the Three-channel current monitor, INA3221, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Not modeled

The critical and warning alerts and their pins, and the power-valid window.

From INA3221 three-channel current monitor, in full.

Projects

## See the Three-channel current monitor, INA3221 in a project

2 built-in projects use it. Each opens in the editor, already wired.

Boards

## The boards it is shown on

This board has a built-in project with the Three-channel current monitor, INA3221 in it.

- Arduino Uno R3

Keep going

## Keep going

- I2C Scanner for Arduino and ESP32, and Fixes
- Current monitor, INA219
- Power monitor, INA226
- Current sensor, ACS712

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the Three-channel current monitor, INA3221

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
