INA228 Qwiic (SEN-31438) — Current Reading Approximately 2× Actual Current

Hello SparkFun Support,

I’m an electrical engineering student working on a senior design project. We’re using the SparkFun Qwiic Current Sensor INA228 (SEN-31438), and we’ve encountered a repeatable issue where the sensor reports approximately twice the actual current.

We’ve tested two separate INA228 boards, and both exhibit essentially the same behavior.

1. Test Setup

  • ESP32 communicating with the INA228 over I²C at address 0x40

  • Factory-installed R015 (15 mΩ) shunt resistor

  • SHUNT solder jumper left in its factory configuration

  • VBUS connected to IN+ (solder bridge on the first board, external connection on the second)

  • INA228 configured with ADCRANGE = 0

  • SHUNT_CAL = 0x0EA6 (15 mΩ shunt, 10 A calibration profile)

  • Agilent E3631A bench power supply

  • Rigol DM3068 digital multimeter

  • Common ground shared between the ESP32 and bench power supply

Our test circuit is:

Bench +5 V → INA228 IN+ → INA228 IN− → 324.7 Ω resistor → Bench GND

2. Initial Test Results

At approximately 5 V:

Measurement Result
Actual current (bench supply) ~15 mA
Expected current (Ohm’s law) ~15.4 mA
INA228 reported current ~29 mA
INA228 reported VSHUNT ~0.435 mV
Multimeter directly across R015 ~0.21 mV
Multimeter across IN+ and IN− terminals ~0.47–0.52 mV
Multimeter between IN+ and nearest R015 terminal ~0.275 mV

We also repeated the test with three 330 Ω resistors connected in parallel, increasing the actual current to approximately 45 mA.

The INA228 reported approximately 86 mA, maintaining nearly the same 1.9× discrepancy.

We also varied the bench supply voltage between approximately 2 V and 5 V. The current readings remained proportionally higher than the expected values.

The INA228’s internally calculated CURRENT register and our independently calculated current using its VSHUNT register closely agree.

3. Additional PCB Measurements

We investigated the voltage drop across different portions of the board using the Rigol DM3068 multimeter.

At approximately 15 mA:

  • Directly across the physical R015 resistor, we measured approximately 0.21 mV, close to the theoretically expected 0.23 mV.

  • Across the IN+ and IN− screw terminals, we measured approximately 0.47–0.52 mV.

  • Between the IN+ screw terminal and the nearest metal end of R015, we measured approximately 0.275 mV.

This suggests there may be additional voltage drop in the current path outside the physical R015 resistor.

However, we’re unsure whether that additional resistance is included in the INA228’s differential sensing path.

We repeated our current-measurement test with a second identical SparkFun INA228 board and obtained essentially the same results.

4. Photographs

Photo 1 — SparkFun INA228 breakout board

Close-up of the INA228 board showing the factory-installed R015 (15 mΩ) shunt resistor, screw terminals, and surrounding PCB components.

Photo 2 — Rigol DM3068 measurement across IN+ and IN−

The multimeter displays approximately 0.5173 mV measured between the IN+ and IN− screw terminals while the bench supply outputs approximately 4.987 V at 14–15 mA.

For comparison, measuring directly across the metal ends of R015 produced approximately 0.21 mV.

5. Questions

  1. Could the PCB traces, solder joints, or SHUNT solder jumper be introducing additional resistance that affects the INA228’s differential voltage measurement?

  2. Where exactly do the INA228’s IN+ and IN− sensing traces connect relative to the R015 resistor and SHUNT jumper?

  3. Is this behavior expected at low currents, or is there a recommended hardware configuration or modification to obtain more accurate measurements with the factory-installed shunt?

  4. Is there anything else in our measurement setup or sensor configuration that could explain the approximately 1.9× discrepancy?

We have not modified the SHUNT jumper or the R015 resistor.

We would appreciate any guidance. We’re happy to provide additional photographs, raw I²C register readings, or further measurements if needed.

Thank you for your help!

I have forwarded this to the engineer, hang tight while we await a response :slight_smile:

I have independently observed essentially the same current-measurement discrepancy with the SparkFun Qwiic INA228 breakout. Interestingly, I also encountered a similar problem with the SparkFun INA237 breakout.

I was evaluating these sensors as possible voltage/current measurement accessories for STEM classroom experiments. My testing used an ESP32, a regulated DC bench supply, precision load resistors, and independent voltage/current measurements.

INA228 test configuration

  • Factory-installed nominal 15 mΩ shunt resistor; SHUNT solder jumper left unchanged.

  • SparkFun INA2XX Arduino library, configured using calibrate(0.015, 10.0).

  • VBUS connected directly to the positive supply/IN+ node.

  • INA228 GND connected to the supply negative terminal and ESP32 common ground.

  • 99.52 Ω measured load resistor connected between IN− and supply negative.

  • Supply varied from 0.5 to 3.0 V.

At approximately 3 V, the initial results were:

Measurement Result
Expected current through 99.52 Ω ~30 mA
Independently measured current ~30 mA
INA228 reported current ~54 mA
Expected shunt voltage (15 mΩ) ~0.45 mV
INA228 reported shunt voltage ~0.81 mV
Current overreporting ~80%

The discrepancy was repeatable over approximately 5–30 mA and was predominantly proportional to current.

Independent verification

I added a SparkFun ADS1015 ADC to measure voltage directly across the load resistor and calculated current using Ohm’s law.

Before using the ADS1015 as a reference, I compared its voltage readings with a digital multimeter over 0.5–3.0 V. Agreement was within approximately 3 mV.

Using the ADS1015-derived current and the INA228’s reported shunt voltage, I obtained an effective sensing resistance of approximately 27.1 mΩ, rather than the nominal 15 mΩ.

I then changed the INA228 calibration to calibrate(0.0271, 10.0) and repeated the measurements.

With this empirical calibration:

  • At approximately 30 mA using 99.52 Ω, the two methods agreed almost exactly on average.

  • At approximately 31 mA using a different 47.68 Ω resistor, agreement was within approximately 0.5%.

  • At approximately 62 mA using the 47.68 Ω resistor, the INA228 reported approximately 1.45% higher current.

I also tested a small solar panel under changing illumination, using the 47.68 Ω load. Across 15 readings, the average currents were 15.025 mA (ADS1015-derived) and 15.059 mA (INA228), a difference of approximately 0.23%.

Raw VSHUNT verification

I independently read the INA228’s raw VSHUNT register using getShuntVoltageRaw() and converted the counts using the specified 312.5 nV/LSB factor.

For example:

  • Raw VSHUNT: 5,467 counts

  • Independently converted voltage: 1.70844 mV

  • SparkFun library voltage: 1.71094 mV

Other readings agreed exactly. The small differences are consistent with register updates between reads.

This strongly suggests that the library’s raw-to-millivolt conversion is not responsible for the discrepancy.

INA237 results

I also tested a separate SparkFun INA237 breakout with its nominal 15 mΩ shunt calibration.

At one operating point:

  • Independently measured current: 29.82 mA

  • INA237 reported current: approximately 59.2 mA

  • INA237 reported shunt voltage: approximately 0.885 mV

  • Inferred effective sensing resistance: approximately 29.7 mΩ

Thus, I observed a similar approximately 2× discrepancy with the INA237.

Conclusions and question for SparkFun

These results independently confirm the behavior reported in this thread. Empirically increasing the calibration resistance substantially corrects the current readings, but it does not explain why that correction is necessary.

I have not yet verified the voltage directly across the physical shunt resistor using a sufficiently precise millivolt measurement, so I cannot establish whether the discrepancy originates in PCB resistance, shunt-sense routing, or another hardware/configuration issue.

Given that I observed similar behavior on both INA228 and INA237 breakouts, I would be particularly interested in whether SparkFun has identified a common PCB layout, shunt-sensing, or calibration issue.

I can provide additional test data and details of our diagnostic sketch if useful.

Thank you for investigating this issue.

Does upping the current 10x produce the same results? How about if you put a solder blob across the SHUNT jumper?

The effective sensing resistance you calculated from the ADS1015 reference is the key number to check — if it lands well above 15 mΩ, the reported shunt voltage is the culprit rather than the calibration call. Running the load at a second, roughly 10× higher current would show whether the error stays proportional or the offset changes character. Soldering the SHUNT jumper is worth doing, but note that bridges it in parallel and changes the effective resistance, so recalibrate afterwards and expect a different scale factor. Comparing your effective resistance with the nominal 15 mΩ before and after would isolate an internal path issue.

Incorrect , please check the schematic.

Is the intent to lower any potential series resistance due to the small dimensions of the original solder bridge/trace? I guess I could 4-point probe the resistance of that small trace and see if it’s contributing to the ‘effective’ shunt resistance.

Following up on my earlier report of approximately 1.8× current overreporting with the INA228, I examined SparkFun’s published KiCad PCB layout to investigate the discrepancy between the nominal 15 mΩ shunt and the experimentally determined effective sensing resistance of approximately 27.1 mΩ.

I found a plausible explanation in the PCB current-sensing path.

The layout contains approximately 9.37 mm of 22-mil-wide copper trace between the INA228’s IN+ sense takeoff and the onboard shunt circuit. Assuming 1 oz copper, I estimate this trace contributes approximately 8.3 mΩ of additional resistance. The normally closed SHUNT jumper contributes an estimated 0.8 mΩ, with vias and other connections potentially adding further resistance.

These contributions could explain much of the approximately 12 mΩ discrepancy I observed. Importantly, the SHUNT jumper itself does not appear to be the primary contributor.

I’ve attached a PDF documenting my measurements, PCB analysis, resistance calculations, and proposed verification experiments.

These conclusions are preliminary: the additional resistances have been estimated from the CAD geometry, not independently measured using Kelvin connections. I would welcome SparkFun’s assessment of whether the IN+ sense-routing arrangement could account for the observed current-measurement error.

I hope this analysis helps identify the root cause.

INA228-Effective-Sensing-Resistance-Investigation.pdf (339.6 KB)

Yes, the trace bridging the shunt isnt terribly small but it’s easy to throw a solder blob over it just to take it out as a potential problem. Just make sure to clean off any flux residue, that can be partially conductive and could mess with your readings.

If there were a design issue with the board I would think it would have been brought up earlier by multiple people. I kind of wonder if a batch of boards got made with the wrong thickness of copper traces or something? (Traces too thin?)

Edit: Ah, I see you’re going down this same path! Sorry, didn’t read your other reply. If it is resistance in traces that are too thin, it might be possible to mod the library to account for the increased resistance.

Update: Additional INA228 testing and calibration findings

Hi everyone,

I wanted to share an update on our investigation into the unexpectedly high current readings from the SparkFun Qwiic INA228 breakout boards.

We performed additional testing on two boards, using both a resistor load bank and an actual LiFePO4 battery-charging setup.

Summary of findings:

  • The breakout has a nominal 15 mΩ shunt resistor, but our measurements suggest an effective sensing resistance of approximately 27–30 mΩ, depending on the board.

  • We initially tested currents from approximately 15 mA to 145 mA using 330 Ω resistors and an independent multimeter reference.

  • We subsequently tested at approximately 2 A while charging a 12.8 V LiFePO4 battery through an LTC4015 charger.

  • At the higher current, the LTC4015 reported approximately 2.004 A, and the battery’s Bluetooth BMS reported approximately 1.9–2.1 A.

  • With the INA228 configured for the nominal 15 mΩ shunt (SHUNT_CAL = 0x0EA6), the sensor reported approximately 3.93–3.94 A.

  • After applying an experimental calibration (SHUNT_CAL = 0x1A90), the reported current improved to approximately 2.16 A.

We also observed a raw shunt voltage of approximately 59.1 mV at 2 A, corresponding to an effective sensing resistance of approximately 29.5 mΩ.

The main takeaway is that the discrepancy appears to be approximately proportional to current. We did not observe a dramatic change in behavior between the milliamp range and approximately 2 A.

Our current hypothesis is that additional resistance in the breakout’s sensing path, possibly related to PCB routing or connections, contributes to the discrepancy. However, we have not conclusively identified the physical cause, and we’re not claiming that the actual 15 mΩ resistor itself measures 29 mΩ.

For our university engineering project, we’re implementing per-device empirical calibration to compensate for the discrepancy.

We’d still appreciate any insight from SparkFun’s engineers regarding the breakout’s shunt-sensing layout and whether this additional effective resistance is expected.

Hopefully these findings are useful to anyone experiencing similar current-reading issues with these boards.

Thanks!

Thanks for confirming the high current behavior. I’m waiting for some low resistance 5W resistors to use for exploring the 200ma to 1A range (which is the more than enough to cover my work).

I also want to mention that the INA237 module has the same shunt resistor value issue.

As a follow-up to my earlier INA228 investigation, I completed a higher-current validation test using a 10 Ω, 5 W resistor (measured resistance: 10.065 Ω) and a regulated 3 V supply.

I independently calculated the load current using an ADS1015 to measure the voltage across the resistor. I also recorded the INA228’s raw shunt voltage and elapsed time, beginning before applying power and continuing through power-off.

Results from 125 measurements over approximately 67 seconds:

  • ADS1015-derived current: 295.055 mA average

  • INA228 current: 294.536 mA average, using the empirical 27.1 mΩ calibration

  • Average current difference: −0.18%

  • Effective sensing resistance: 27.053 mΩ average

  • Effective resistance increased slightly from 26.86 to 27.13 mΩ during the measurement period

Conclusion: The approximately 300 mA test confirms that the effective sensing resistance remains close to 27.1 mΩ, consistent with my earlier measurements at much lower currents. The discrepancy between the nominal 15 mΩ shunt and the measured effective resistance persists across approximately a tenfold current range.

These results further support the hypothesis from my KiCad PCB analysis that additional current-carrying copper resistance is included in the INA228’s sensing path. Direct Kelvin measurements would still be needed to establish the individual resistance contributions.

Any progress? It’s going to be painful to have to calibrate each INA228 I want to use.

I’ll ping 'em again…last word I got was passing it up the chain :slight_smile:

It does appear to be a legitimate issue, so far the suggested workaround is to compensate via software until we get a chance to update the FW