AnsweredAssumed Answered

I2C can n't read the Temperature

Question asked by Bont_17 Gtm on Aug 2, 2017
Latest reply on Aug 2, 2017 by Vangelis Fortounas

 stm32f302 Controller interfacing to Temperature sensor Mlx9061. The temperature sensor does not read the data.

 

Here is my Code , can you help me guys?

I2C Address for Mlx90614 0x054   Memory Address is 0x07

 

 

 

 

unsigned char buffer[5];

 

void mlx90614_sensor(void)
{

 //HAL_I2C_Master_Transmit(&hi2c2,0x54<<1,buffer,3,100);

 HAL_I2C_Mem_Write(&hi2c2, 0x54, 0x07, 8, buffer, 1, 100);
 //HAL_Delay(10);
 HAL_I2C_Mem_Read(&hi2c2, 0x54, 0x07, 8, buffer, 1, 100);
       HAL_Delay(10);
}

Outcomes