I have some confusion with values of INA226 shunt register which I've got on my test schema (can see at e2e.ti.com/.../873715).
I have schema with four loads and INA226 connected by series.
General supply input is about 5 V.
I used four resistors by 22 Ohm connected serially as load and interleaved with shunt inputs of four INA226.
Expected current in chain by Ohm law is about 5V/(22Ohm*4)=0.056A. I used 0.01 Ohm shunt resistor so voltage on the shunt should be about 0.056A*0.01Ohm=560uV, which corresponds to value 224 (0x00e0) in shunt register. But I got cardinally different values, are about 500 (with some deviations for each INA226).
Where is my mistake?
And second question - why voltage values so much differs? I checked with digital multimeter - difference can reach tenth of volt.
My calculations
Rshunt - 0.01 Ohm
Imax - 8.1975 A
LSBc - 0.00025 A/bit (rounded from 0.000250168)
Calibration register value - 0.00512/(0.00025*0.01)=2048 (0x0800)
Excpected shunt register value for 56mA
0.056A×0,01Ohm÷0,0000025V/bit = 224 (0x00e0)
Excpected current register value the same as shunt register value because calibration value.
Expected current calculation in relation to LSBc
224*0.00025A/bit=0.056A
Output of reading of sensors:
RAW shunt reg: 0xf301 499
RAW curr reg: 0xf301 499
RAW volt reg: 0xef03 1007
INA226[0x40] 1579437428: registers: shunt 0x01f3 current 0x01f3 voltage 0x03ef
INA226[0x40] 1579437428: values: current 0.124750 voltage 1.258750 ( delta 1.258750 )
RAW shunt reg: 0xfb01 507
RAW curr reg: 0xfb01 507
RAW volt reg: 0xc907 1993
INA226[0x41] 1579437428: registers: shunt 0x01fb current 0x01fb voltage 0x07c9
INA226[0x41] 1579437428: values: current 0.126750 voltage 2.491250 ( delta 1.232500 )
RAW shunt reg: 0xe501 485
RAW curr reg: 0xe501 485
RAW volt reg: 0x4e0c 3150
INA226[0x44] 1579437428: registers: shunt 0x01e5 current 0x01e5 voltage 0x0c4e
INA226[0x44] 1579437428: values: current 0.121250 voltage 3.937500 ( delta 1.446250 )
RAW shunt reg: 0x7102 625
RAW curr reg: 0x7102 625
RAW volt reg: 0x950f 3989
INA226[0x45] 1579437428: registers: shunt 0x0271 current 0x0271 voltage 0x0f95
INA226[0x45] 1579437428: values: current 0.156250 voltage 4.986250 ( delta 1.048750 )