cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the temperature using the mlx90614 sensor with the stm32f1 microcontroller

JMach.18
Associate II

I'm trying to read the temperature using the MLX90614 sensor, however I can not get into the project. I'm using the I2C communication protocol and the code provided below, and I get the value 0 when I read it in the variable buffer.

0690X000006CIORQA4.png

After many attempts my doubt was to verify if the sensor was actually connected correctly, then I used the following command:

Which returns HAL_ERRO.

 0690X000006CIOWQA4.png

What should I do to read the temperature correctly using this sensor and the stm32f1 ???

2 REPLIES 2
T J
Lead

did you check the data sheet ?

Slave address SA Factory default 5A

Yes I also used the address 0x05A and got the same fault, the address 0x00 is a default address to which the sensor must always respond (there is a possibility that someone has changed the default slave address of my sensor).