The MLX90615 is a miniature infrared thermometer for non-contact temperature measurements. Both the IR sensitive thermopile detector chip and the signal conditioning ASIC are integrated in the same miniature TO-46 can.
The infrared thermometer comes factory calibrated with a digital SMBus output giving full access to the measured temperature in the complete temperature range(s) with a resolution of 0.02 °C. The sensor achieves an accuracy of ±0.2°C within the relevant medical temperature range. The user can choose to configure the digital output to be PWM.
Features and benefits
Factory calibrated in wide temperature range: -20 to 85°C for sensor temperature and -40 to 115°C for object temperature
High accuracy of 0.5°C over wide temperature range (0..+50 C for both Ta and To)
Medical accuracy of 0.2°C in a limited temperature range
Measurement resolution of 0.02°C
SMBus compatible digital interface for fast temperature readings and building sensor networks
Customizable PWM output for continuous reading
3V supply voltage with power saving mode
Connection
Code
This particular example comes from the following library which I installed – https://github.com/skiselev/MLX90615
[codesyntax lang=”cpp”]
#include <Wire.h>
#include <mlx90615.h>
MLX90615 mlx = MLX90615();
void setup()
{
Serial.begin(9600);
Serial.println(“Melexis MLX90615 infra-red temperature sensor test”);
mlx.begin();
Serial.print(“Sensor ID number = “);
Serial.println(mlx.get_id(), HEX);
}
void loop()
{
Serial.print(“Ambient = “);
Serial.print(mlx.get_ambient_temp()); //ambient temperature
Serial.print(” *C\tObject = “);
Serial.print(mlx.get_object_temp()); //object temperature
Serial.println(” *C”);
delay(500);
}
[/codesyntax]
Output
Open the serial monitor and you should see something like this.
Ambient = 30.85 *C Object = 25.67 *C
Ambient = 30.85 *C Object = 25.71 *C
Ambient = 30.79 *C Object = 25.81 *C
Ambient = 30.75 *C Object = 25.67 *C
Ambient = 30.71 *C Object = 25.43 *C
Ambient = 30.63 *C Object = 25.57 *C
Ambient = 30.57 *C Object = 25.95 *C
Ambient = 30.53 *C Object = 25.95 *C
Ambient = 30.49 *C Object = 26.15 *C
Ambient = 30.45 *C Object = 26.25 *C
Ambient = 30.45 *C Object = 26.19 *C
Ambient = 30.41 *C Object = 26.01 *C
Video Link
Here is a video where I import the library, compile the example and upload it. I then open the serial monitor, note that one of the I2C connections came loose hence the rubbish readings at first
Links
https://www.melexis.com/-/media/files/documents/datasheets/mlx90615-datasheet-melexis.pdf
1PCS MLX90615 Digital Infrared Temperature Sensor for Arduino