The MLX90614 is a contactless infrared (IR) temperature sensor that provides a digital output corresponding to the temperature of the object it is pointed at. This sensor is manufactured by Melexis and is designed for non-contact temperature measurements in various applications, including industrial controls, automotive systems, medical equipment, and home appliances.
Pin Number | Name | Description |
---|---|---|
1 | Vdd | Power supply (3.3V to 5V) |
2 | SDA | I2C Data Line |
3 | SCL | I2C Clock Line |
4 | GND | Ground |
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
Serial.begin(9600);
mlx.begin();
}
void loop() {
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
delay(500);
}
#include <Wire.h>
: Includes the I2C library for communication.#include <Adafruit_MLX90614.h>
: Includes the library for the MLX90614 sensor.Adafruit_MLX90614 mlx
: Creates an instance of the MLX90614 class.Serial.begin(9600)
: Initializes serial communication at 9600 baud rate.mlx.begin()
: Initializes the sensor.mlx.readAmbientTempC()
: Reads the ambient temperature in Celsius.mlx.readObjectTempC()
: Reads the object temperature in Celsius.delay(500)
: Pauses the loop for 500 milliseconds.Q: Can the MLX90614 measure the temperature through glass? A: No, the sensor cannot measure through glass as it blocks IR radiation.
Q: Is the MLX90614 waterproof? A: The sensor itself is not waterproof. It requires additional protection if used in a moist environment.
Q: How can I calibrate the MLX90614? A: Calibration should be done against a known temperature reference in the same environmental conditions as the intended application.
Q: What is the I2C address of the MLX90614? A: The default I2C address is 0x5A. However, it can vary with different versions of the sensor.
This documentation provides a comprehensive guide to the MLX90614 IR temperature sensor, ensuring users can effectively integrate and utilize this component in their projects.