Community
cancel
Showing results for 
Search instead for 
Did you mean: 
FFahd
Novice
2,729 Views

MLX90614

Jump to solution

I've recently acquired an MLX90614 sensor pre-attached to a breakout board to which i soldered headers for SCL,SCA,VCC and GND. I'm using the Galileo with the Arduino IDE. I'm also using Adafruit's MLX90614 library. I've attached SCL to A5 and SDA to A4. My particular sensor with the breakout board apparently supports both 3.3V and 5V. There is a LED indicator on the sensor so it is getting power fine. I'm using the example Adafruit code for it. It compiles and uploads fine. However I'm getting constant useless values. The serial monitor is reporting:

Ambient = 1037.55*C Object = 1037.55*C

Ambient = 1899.59*F Object = 1899.59*F

/***************************************************

This is a library example for the MLX90614 Temp Sensor

Designed specifically to work with the MLX90614 sensors in the

adafruit shop

----> https://www.adafruit.com/products/1748

----> https://www.adafruit.com/products/1749

These sensors use I2C to communicate, 2 pins are required to

interface

Adafruit invests time and resources providing this open source code,

please support Adafruit and open-source hardware by purchasing

products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.

BSD license, all text above must be included in any redistribution

****************************************************/

# include

# include

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {

Serial.begin(9600);

Serial.println("Adafruit MLX90614 test");

mlx.begin();

}

void loop() {

Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());

Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");

Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());

Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");

Serial.println();

delay(500);

}

Adafruit: https://learn.adafruit.com/using-melexis-mlx90614-non-contact-sensors/wiring-and-test https://learn.adafruit.com/using-melexis-mlx90614-non-contact-sensors/wiring-and-test

0 Kudos
1 Solution
idata
Community Manager
1,352 Views

Hi Fshiwani,

 

 

Some time ago another user reported issues with this sensor when using it with Galileo. As you can see in this thread: https://communities.intel.com/message/222253# 222253 https://communities.intel.com/message/222253# 222253, it's a speed issue with the Galileo's I/Os. The sketch seems to be fine, however the issue is not at software level but at hardware level.

 

 

You can also try to upload the sketch attached below (I2CScanDevices) just to check if your device is at least recognized by the board. If it's recognized, then the issue could be related to the example code or the library used and it might be fixed, but if the device is not recognized, I'm afraid the issue is because of the Galileo's I/O.

 

 

Hope you find this information useful.

 

 

Regards,

 

-Diego

View solution in original post

4 Replies
FTinetti
Honored Contributor I
1,352 Views

Hi FShiwani,

The wire library does not work in Intel Galileo IIRC...

Are you powering the module with 3.3 or 5v? About

There is a LED indicator on the sensor so it is getting power fine.

Take into account that a LED usually indicates "some" power, not necessarilly enough for the module. I've used a HC-05 and it failed with 3.3v even when the LED was on.

Fernando.

FFahd
Novice
1,352 Views

I tried with 5V as well, same issue. Are you sure the wire library doesn't work, I've seen some threads saying it does work

https://social.msdn.microsoft.com/Forums/windowshardware/en-US/ec16ad66-1e67-4de4-92e4-a69a1212c8d9/... Looking for I2C example

Are there any alternatives to the wire library for I2C communication with the Galileo?

idata
Community Manager
1,353 Views

Hi Fshiwani,

 

 

Some time ago another user reported issues with this sensor when using it with Galileo. As you can see in this thread: https://communities.intel.com/message/222253# 222253 https://communities.intel.com/message/222253# 222253, it's a speed issue with the Galileo's I/Os. The sketch seems to be fine, however the issue is not at software level but at hardware level.

 

 

You can also try to upload the sketch attached below (I2CScanDevices) just to check if your device is at least recognized by the board. If it's recognized, then the issue could be related to the example code or the library used and it might be fixed, but if the device is not recognized, I'm afraid the issue is because of the Galileo's I/O.

 

 

Hope you find this information useful.

 

 

Regards,

 

-Diego

View solution in original post

idata
Community Manager
1,352 Views

Hello Fshiwani,

 

 

I'd like to know if you have updates on this.

 

 

Regards,

 

-Diego
Reply