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.

INA3221: INA3221 interfacing with STM32

Part Number: INA3221
Other Parts Discussed in Thread: INA219

Hi,

We are trying to interface INA3221 for power monitoring in our custom PCB using STM32WLE5JC16 processor, but not getting I2C response. We have used the same ground for the microcontroller and INA3221 and only one device is connected to the I2C. We tested with both 100Kbps(standard)  and 400Kbps(fast mode), But it is not working. Also, we tested with STM32WL55JC1 Nucleo board. Still, the I2C connection can't be established. But it works with INA219. and also other I2C devices. When we connect this INA3221 to Arduino I2C is responding properly.Please let me know what is the issue?

 while(HAL_I2C_IsDeviceReady(&hi2c2, 0x41<<1,1, 100));
	  {
	  	  HAL_UART_Transmit(&huart2, i2cok, sizeof(i2cok), 100);
	  	  HAL_Delay(500);
	  }

  • Please show an oscilloscope trace of the failing I²C transaction.

  • Hello Babu,

    As Clemens noted, we will need a scope shot of the failed I2C communication transmission to debug further. Most likely it is a timing or logic level issue between the MCU and the INA. You'll want to check the datasheet for both devices and make sure you meet the timing and logic levels for both. The schematic does look fine to me, but you could try lowering the I2C pullup resistor values if you are having issues.

    Regards,

    Mitch