Hello, I have a technical question regarding INA219.
Here there is some additional information.
Excel table with configuration:
|
Parameter |
Value |
|
VBUS_MAX |
16 |
|
VSHUNT_MAX |
0,04 |
|
RSHUNT |
0,018 |
|
MaxPossible_I |
2,222 |
|
MaxExpected_I |
2,000 |
|
MinimumLSB |
0,000061 |
|
MaximumLSB |
0,000488 |
|
CurrentLSB |
0,00007 |
|
CurrentLSB_PerBit |
70 |
|
CalibrationReg |
32507 |
|
PowerLSB |
0,0014 |
|
PowerLSB_PerBit |
1,4 |
|
Max_Current |
2,294 |
|
Max_Current_No_Overflow |
2,222 |
|
Max_ShuntVoltage |
0,04 |
|
Max_ShuntVoltage_No_Overflow |
0,04 |
|
MaximumPower |
35,556 |
|
BusADCResolution |
INA219_CONFIG_ADCRES_12BIT_AVG_8S_4260US |
|
ShuntADCResolution |
INA219_CONFIG_ADCRES_12BIT_AVG_8S_4260US |
|
ConfigMode |
INA219_CONFIG_MODE_SANDBVOLT_CONTINUOUS |
|
SampleTime |
8,520 |
Schematics of this part:

Register values:

Configuration validated with EVM tool:

Current measured with INA: 10mA (667 register value / 70 uA per bit currentLSB).
Current measured with power profiler and multimeter: 45mA.
When I had some more peripherals enabled and consuming variable loads: 20mA in INA vs 103mA in power profiler.
Please let me know what can be the problem and how to correct the setup or code to get valid current readings.