The MLX90614 is a sophisticated infrared thermometer sensor designed for non-contact temperature measurements. It integrates a sensor and a custom signal conditioning ASIC in a single package, providing a digital output directly proportional to the object temperature. This sensor is commonly used in a variety of applications, including medical equipment, industrial temperature control, and environmental monitoring.
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 of liquids? A: The MLX90614 is designed for non-contact temperature measurements, so it can measure the surface temperature of liquids if they are within its field of view.
Q: What is the maximum distance for accurate temperature measurement? A: The maximum distance depends on the object size and the sensor's field of view. Consult the datasheet for specific details.
Q: How can I calibrate the MLX90614? A: The MLX90614 comes factory-calibrated. However, for critical applications, refer to the calibration procedures outlined in the datasheet.
Q: Is the MLX90614 affected by ambient temperature? A: The sensor has compensation for ambient temperature variations, but extreme changes can affect readings. Allow the sensor to acclimate to new environments before taking measurements.