This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

INA226: INA226AIDGSR need to solve debug issue

Part Number: INA226


Tool/software:

Dear Expert:

the customer need to solve this problem as below : (1) our calculated result is much larger than the actual result, how can we correct it? A resistance measurement of 2 milliohm is 2.3A, the calculated current should be 1.15A, and the calculated power consumption is 13W. Now the formula is too large.

we design as below:

First, the development environment uses INA226AIDGSR, I2C communication protocol, the peripheral connection is 2 milliohm resistance, and the official connection resistance is consistent, our expected current is 4 A

second :Test

(1) Calculate with the data on the official website:

The configuration register (0x00) uses the default value 0x4127

The check register (0x05) fills the default value 0x0A00

The minimum unit of current uses the calculation of 1mA

current: The value of the 0x04 register * 0.0001

power calculation: The value of register 0x06 is * 0.0001 *25

The calculated results are as follows:

In fact, the voltage at both ends of the resistance is only about 2.5mV

(2) Calculate with the predicted current of 4A:

The configuration register (0x00) uses the default value 0x4127

The calculated current minimum unit is: 0.000122A

The calculated correction register (0x05) has a value of 0x51EB

Current calculation: The value of the 0x04 register * 0.0.000122

power calculation: The value of the 0x06 register * 0.0.000122 *25

The calculated results are as follows:

  • Hello Herbert,

    Your calculations and register settings all look correct. So, the first debug step would be to confirm that the voltage on the IN+ and IN- pins of the device are what is expected (in case the voltage is getting changed before it reaches our device). To do this, run the current and measure the voltage difference between IN+ and IN-. For this measurement, make sure to measure as close to the pins of the device as possible, not across the shunt resistor. You can compare that measured voltage to the voltage you see in the VSHUNT result. If the voltage is different than what you were expecting to see, then there is likely a hardware issue. If the voltage is the expected voltage, then there is likely a problem in code or I2C communication causing the value to be off.

    Regards,

    Mitch