8 years, 10 months ago.

Why none of samples and libraries work with MLX90614

It is couple of days I am trying to get MLX90614 up and running and I couldn't get there. It fails to read the data.I saw people had problem with i2c and repeated start. I tried the read and write api with repeated start still didn't work. I am wondering if anybody succeed to get valid data. with this library and lpc1768 or lpc 1549.

Question relating to:

Melexis MLX90614 library Melexis, MLX90614

4 Answers

7 years, 7 months ago.

Im traying the same but without success!

7 years, 6 months ago.

the data sheet says this is a 5 V part. It will NOT work by just connecting it to a LPC1768 or LPC1549 which are 3.3 v parts you will need some sort of level shifting.

http://www.nxp.com/documents/application_note/AN10441.pdf or some integrated level shifter like https://www.adafruit.com/products/757

7 years, 7 months ago.

I am trying it with a nucleo and end up with the same problem... the read always retuns false.

The12c library is changed at new mbed stack versions. There is na option to set continuous ack Si this is the working code I wrote :





ch = 0; data[0]=0x00; wait for ack

ch=i2c.write(0x00,data,1,true); device ram address where Tobj value is present



data[0]=0x00 ;


i2c.stop(); stop condition




posted by Sami ahmari 07 Mar 2016

Can you upload the Project with the complited code? I have trayed your changes but without success ;-)

posted by Elvi Fiscali 10 Mar 2016
5 years, 5 months ago.

This is sample and library for MLX90614 working both on Mbed2 and Mbed5

Import programMLX90614_Demo

Demo for MLX90614

Import libraryMLX90614

MLX90614 library. Working on both Mbed2 and Mbed5