INA219 current sensor: 26 V, I2C and what the shunt decides

Measures bus voltage to 26 V and shunt current over I2C. The datasheet limits, the shunt maths and where it goes in a robot.

By Jignesh Panchal · Sources, testing and AI policy

  • TypeSensors
  • LevelIntermediate
  • ReviewedNov 2026

The INA219 measures bus voltage from 0 to 26 V and the voltage across a shunt resistor over I2C, then reports current and power, with a maximum accuracy of 0.5 percent over temperature on the B grade. It runs from a 3 to 5.5 V supply and draws at most 1 mA. On a robot it is the cheapest way to see battery voltage and motor current from software. Figures are from the Texas Instruments datasheet SBOS448G.

Key specifications

Bus voltage0–26 V
Supply3–5.5 V, 1 mA max
Shunt ranges±40, ±80, ±160, ±320 mV
Accuracy0.5% max over temperature (B grade)
InterfaceI2C, 16 addresses
PackagesSOT-23-8, SOIC-8

What the datasheet promises

ItemDatasheet value
Bus voltage sensing0 to 26 V
Chip supply3 to 5.5 V, 1 mA maximum
Shunt voltage full scale (PGA settings)±40 mV, ±80 mV, ±160 mV, ±320 mV
Accuracy0.5 percent maximum over temperature (INA219B grade)
InterfaceI2C or SMBus compatible, 16 programmable addresses
PackagesSOT-23 (8) and SOIC (8)

The 26 V limit is on the bus pins. The datasheet says no more than 26 V should ever be applied, so it is suitable for a 3S lithium pack (12.6 V) but not for a 24 V system with spikes.

What the numbers mean for a robot

The chip measures voltage across a shunt, so the current range depends on the shunt value. With the full-scale ±320 mV setting and a 0.1 Ω shunt, the top current is 3.2 A, because 0.32 V divided by 0.1 Ω is 3.2 A. Many breakout boards ship with a 0.1 Ω shunt, so they top out near 3.2 A; check the marking on yours. The sensor sits in the high side, in line with the positive supply. Wiring it into the ground side or bypassing the shunt gives wrong readings. If readings are zero, see INA219 reads zero current.

Wiring and software

  • Connect VCC and GND to the logic supply, and SDA and SCL to the I2C pins.
  • Put the shunt in series with the load, with Vin+ on the supply side and Vin- on the load side.
  • Join the ground of the measured circuit to the ground of the board.
  • Choose the address with the A0 and A1 pins if you use more than one.
  • Pick the gain and calibration value in code to match your shunt.

For battery voltage alone a resistor divider and ADC is cheaper, as explained in battery voltage monitor reads wrong. The INA219 earns its place when you also want current, for stall detection or a run-time estimate.

Sources and further reading

Last reviewed: November 2026. The 3.2 A example is a calculation from the datasheet’s 320 mV range and a 0.1 Ω shunt, not a measurement; breakout shunt values vary. No price is quoted because it has not been checked.

Where to buy in India

These open a store search. Compare seller, price and reviews before you order.

Free: the final-year project pack

A shortlist with BOMs, a report outline that matches the usual chapter scheme, a costing sheet and 40 viva questions. Built for the February–April submission season.

The Build Note

One short email when something is worth your bench time.

A new build sheet, a part price that moved, or a mistake worth avoiding. No daily drip, no recycled news.

One short email when a build or a price is worth your time. Unsubscribe in one click.