Skip to main content
JMach.18
Associate
Question

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

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 ???

    This topic has been closed for replies.

    2 replies

    T J
    Senior III

    did you check the data sheet ?

    Slave address SA Factory default 5A

    JMach.18
    JMach.18Author
    Associate

    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).