Skip to main content
JMach.18
Associate
October 31, 2018
Question

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

  • October 31, 2018
  • 1 reply
  • 1414 views

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.

    1 reply

    T J
    Senior III
    October 31, 2018

    did you check the data sheet ?

    Slave address SA Factory default 5A

    JMach.18
    JMach.18Author
    Associate
    November 1, 2018

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