STM32 Library for Melexis IR Temperature Sensor MLX90614

On my github account you can find this useful library that I made to use with Melexis IR Temperature Sensor MLX90614.
It has beendeveloped with STM32 HAL libraries.

Follow me to get all the future updates!

Follow @dinamitemic

UPDATE: I’ve prepared a demo project running on the STM32F4-DISCOVERY in order to better understand how to get it working.
You can find it in the attachment.


13 thoughts on “STM32 Library for Melexis IR Temperature Sensor MLX90614”

  1. hi thi is mady. i am working on mlx90614. i have a problem with mlx. actually i got a object temperature of mlx. the problem is i did not get accurate temperature like i put the sensor on my body it gave 34 o Celsius only. not 36 o celsius. can you tell me if you know the solution to my problem. i am not changed or write any configuration register and other.

    • Hi @mady!
      If you encounter problem like this you have to setup the emissivity register of your sensor.
      You will find how to do that in the datasheet of the sensor as well as how to find the new value to write in the reg based on the temp readed and the real temp.

  2. i get some error when i am using your library and use it in keil IDE. can you make a tutorial step by step?. thanks

  3. T obj1: -101.849998, T amb: 679.789978
    T obj1: -100.989998, T amb: 679.729980
    T obj1: 20.410000, T amb: 21.370001
    T obj1: 20.430000, T amb: 21.350000
    T obj1: 30.930000, T amb: 21.350000
    T obj1: 29.270000, T amb: 21.350000

    Hi. At the beginning of the operation, i have got strange values as above.
    How can i fix it?

  4. hi @gazzari, thanks for posting this.
    I’m currently working with MLX90614 but with STM32F1C8 series, will I be able to use the library you use for the sensor? If it doesn’t, is there any alternatives such that I can continue to use MLX90614 with STM32F1C8?
    Thanks in advance!

    side note:
    I built the project you shared above and tried to include stm32f4xx lib but still won’t work…

  5. hello, i downloaded your Attachments, but have this wrong. Can you help me? 
    – The support of the “Tool chain / IDE” you have selected will be soon discontinued in further STM32CubeMX version.   If you want to benefit from further STM32CubeMX evolutions for your project,   we advise you to target STM32CubeIDE or other IDE.  

  6. Did you modify the libraries to include the missing repeated start bit, or I suppose removing the stop bit? I am wondering how you got this working using the HAL libraries.


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: