An INA219 breakout that reports zero, negative, unstable, or implausible current is often miswired or configured for a different shunt than the one installed. The chip measures the small voltage across a shunt and the bus voltage at its input; software then converts those readings using the shunt value and calibration register. Check the physical current path and raw measurements before changing code or replacing the sensor.

Confirm what the INA219 actually measures
The INA219 is a bidirectional current and power monitor with an I²C-compatible interface. It measures differential shunt voltage at IN+ and IN− and bus voltage at its bus-sense input. Current and power register values depend on calibration programmed by software, including the assumed shunt resistance and selected current resolution. A working I²C address alone does not prove the current calculation is configured correctly.
Read the exact chip datasheet and breakout schematic. Generic INA219 modules may use different shunt values, PCB trace layouts, pull-ups, or power routing. The resistance printed on a resistor may be hard to read and can differ from the library's default. Do not assume a module's advertised current range applies to your board, shunt temperature, or continuous load.
Check the high-side wiring and polarity
In a common high-side measurement, supply positive enters the module's IN+ side and the load connects from IN−; the return path goes back to supply negative. The shunt must be in series with the load current. If the source and load sides are reversed, the measured shunt voltage and reported current sign can reverse. A negative reading can therefore be a wiring-direction clue rather than a bad chip.
Follow the module's silkscreen and schematic because some boards label terminals differently. Do not wire the current path based only on the position of a screw terminal. Keep the load current out of thin signal wires and ensure the shunt and traces are rated for it. A high-side monitor's common-mode range is not permission to exceed the breakout's connector, shunt, or board ratings.

Inspect the shunt and calibration assumptions
1. Read the installed shunt value
Find the breakout schematic or BOM, then identify the exact shunt marking and tolerance. If the module was modified, use the installed value rather than its original specification. Measuring a very low resistance with an ordinary two-wire meter is unreliable because lead and contact resistance can exceed the shunt value.
2. Check software configuration
Confirm that the library is configured for the actual shunt resistance and current range. Many libraries expose a calibration or “begin” setting whose default assumes a particular breakout. If the software assumes one shunt value while another is installed, displayed amperes can be scaled incorrectly even when raw shunt voltage is reasonable.
3. Compare raw registers
Read shunt-voltage and bus-voltage registers using the datasheet's signed format and scaling. If raw shunt voltage is near zero while a known load current flows, investigate wiring, shunt bypass, address, power, or measurement range. If raw voltage is plausible but current is wrong, focus on calibration and conversion constants.
4. Verify the calibration register
The INA219's current and power conversions require a calibration value derived from the selected Current_LSB and shunt resistance. Some libraries program it during initialization; others require explicit setup. Follow the library documentation and datasheet equation for the actual parameters rather than writing an example's constant blindly.
Use voltage measurements to separate hardware and math
With the load operating in a safe low-voltage circuit, compare the INA219 bus-voltage reading with a separate multimeter at the same node. The bus register represents a particular point in the module's input path; it may not be the source-side voltage. Then compare the shunt-voltage register with the voltage across the shunt, using a suitable high-resolution method if the signal is small. Do not expect a basic multimeter to resolve microvolt-level differences accurately.
Keep all sense leads short and follow the board's recommended layout. Extra resistance in high-current connections, solder joints, long traces, or connector contacts can create voltage drops that are not inside the shunt's intended sense points. Kelvin-style sense routing separates the measurement from load-current drops, where the board provides it. If the shunt heats, its resistance may change and the reading can drift.

| Observed result | Possible cause | Next check |
|---|---|---|
| Current reads zero but I²C address responds | Shunt bypassed, no load current, calibration absent, or wrong register conversion | Check shunt voltage and calibration register |
| Current has the wrong sign | IN+/IN− direction reversed or current flows opposite the expected direction | Trace supply-to-load path and compare signed shunt voltage |
| Current scale is consistently high or low | Wrong assumed shunt value, Current_LSB, library range, or shunt tolerance | Compare raw shunt voltage and recalculate calibration |
| Reading drifts with load or temperature | Shunt heating, connector loss, offset, averaging, or unstable load | Inspect shunt rating, contacts, and sampling conditions |
| Bus voltage is plausible but current is not | Bus path is powered; shunt path or current calculation remains suspect | Check IN+/IN− routing and raw shunt register separately |
Check I²C address, voltage, and limits
Confirm SDA, SCL, ground, supply, and address pins against the module drawing. Address selection depends on A0/A1 straps and may differ between breakout layouts. Pull-ups must go to a logic voltage tolerated by the controller. A successful scan means the chip acknowledged, not that its calibration or shunt wiring is correct.
The TI INA219 datasheet specifies a 0–26 V common-mode measurement range at the chip inputs. That is a device limit under stated conditions, not a blanket rating for every breakout, connector, shunt, or safe user test. Stay within the exact module documentation and use a current-limited, isolated low-voltage source for learning. Stop before any circuit near mains or high-energy batteries.
Verify with a known reference carefully
Use a stable, known low-voltage load and a separate meter whose range and connection are appropriate. Compare readings at the same time and points; avoid placing a handheld meter in series with a high current unless its fuse, lead socket, and rating are suitable. A meter inserted in current mode changes the circuit and can introduce a burden voltage. Do not put a current-mode meter directly across the supply.
If you need to calibrate the measurement, use a traceable reference or a known resistor and source within ratings. Record temperature, shunt value, measured shunt voltage, bus voltage, library version, calibration setting, and current direction. A software offset can hide a wiring or hardware fault; correct the physical setup first.
Sanity-check the shunt calculation
The physical current is related to shunt voltage by I = Vshunt / Rshunt, with sign determined by which sense input is higher. For a purely illustrative example, 10 mV across a confirmed 0.1 Ω shunt corresponds to 0.1 A. The example is arithmetic only; it is not a recommended shunt, current, or measurement result. The shunt also dissipates P = I²R, so increasing current raises its heating and can change resistance or damage the module.
The INA219's reported current register is a scaled digital result, not a direct voltmeter reading. Its calibration register and Current_LSB tell the device how to translate the measured shunt voltage into current counts. If a library changes its range or shunt value, it may write different calibration. Keep the raw shunt register, calibration value, shunt marking, and displayed current in the same diagnostic record.
Check measurement location and voltage drop
The device's bus-voltage reading is taken at a defined input node, while the supply voltage you care about may be upstream of the shunt, wiring, connector, or load. Compare at the same physical point before calling a value wrong. The voltage drop across the shunt is expected; the drop across extra wires or a loose connector is not part of the shunt measurement unless those points fall inside its sense connections.
If a board offers separate Kelvin sense traces, use them as designed. If it does not, do not attach sense leads to arbitrary pads and assume the internal layout is equivalent. Keep high-current wiring short, tighten terminals to the maker's guidance, and inspect the shunt and connector temperature after a controlled low-voltage test.
Choose a reference that will not damage the meter
For a comparison, use a separate voltage measurement across the shunt or a known resistive load within the supply and module ratings. Measure voltage first. If current mode is needed, confirm the meter socket, fuse, maximum current, and lead rating, then insert the meter in series with power off. Do not leave a current meter across the source and do not let the load exceed the shunt's thermal design.
Primary references and stopping criteria
Stop if the shunt or connector heats, the board rating is unknown, the supply is not isolated, or the measurement would exceed the module limits. Do not increase current to “see what happens.” Keep a note of board revision and exact shunt part for diagnosis.
- Texas Instruments INA219 datasheet — shunt/bus measurements, configuration, calibration, and limits.
- Texas Instruments INA219 product page — device features, datasheet, and application resources.
- Zephyr INA219 sample — example configuration of shunt and current parameters.
Sources consulted 6 November 2026. Breakout shunt values and library defaults vary; the illustrations are generated and do not show measured values.
Soyez le premier à laisser un commentaire.