Bringup
Open the editor
Behavioural mixed-signal modelINA219AIDRina219

INA219 (current / power monitor, I²C)

High-side current, bus voltage and power monitor up to 26 V: measures the voltage across an external shunt (e.g. 0.1 Ω) and the bus voltage at IN−, averages them like the real ADC and computes current and power from the calibration register (datasheet equations). Address 0x40–0x4F by A0/A1. Read e.g. with Adafruit_INA219.

IN+IN−A0A1SCLSDAVSGNDINA219AIDR
Schematic symbol

Key data

Category
ICs
Simulation model
Behavioural mixed-signal model
Manufacturer part number
INA219AIDR
Reference prefix
U
Pins
8
Land pattern
SOIC-8_3.9x4.9mm_P1.27mm

Notes

The chip measures the voltage across your shunt resistor and the bus voltage at IN− in the running simulation, averaged over the conversion time. Current and power registers follow from the calibration register by the datasheet equations: write the calibration first.

  • Typical: 0.1 Ω shunt in the supply line to the load, calibration 4096 gives 0.1 mA per bit (Adafruit_INA219 setCalibration_32V_2A).

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
ina219
Supply pins
VS / GND

Pins 8

PinNameUse
IN+IN+Analog pinShunt resistor, supply side
IN-IN−Analog pinShunt resistor, load side (also the measured bus voltage)
A0A0Input pinAddress bit: GND, VS, SDA or SCL (16 addresses)
A1A1Input pinAddress bit: GND, VS, SDA or SCL (16 addresses)
SCLSCLInput pinI²C clock: pull-up (about 4.7 kΩ) to the supply
SDASDAI/O pinI²C data: pull-up (about 4.7 kΩ) to the supply
VSVSSupply pinSupply 3–5.5 V: 100 nF to GND
GNDGNDGround pinGround

PCB

Verified land patternSOIC-8_3.9x4.9mm_P1.27mm
PackageLand patternStatusSource
SOIC-8 · INA219AIDRSOIC-8_3.9x4.9mm_P1.27mmVerified land patternSOIC-8 3.9 × 4.9 mm (JEDEC MS-012); INA219 datasheet D package pinout 1 A1, 2 A0, 3 SDA, 4 SCL, 5 VS, 6 GND, 7 IN−, 8 IN+