Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use MLX90614 IR Temperature Sensor: Examples, Pinouts, and Specs

Image of MLX90614 IR Temperature SensorDesign with MLX90614 IR Temperature Sensor in Cirkit Designer

Introduction

The Melexis MLX90614 is a non-contact infrared (IR) temperature sensor designed to measure the temperature of objects without requiring physical contact. It utilizes advanced infrared thermopile technology and an integrated signal processing unit to deliver accurate temperature readings. The sensor is factory-calibrated for both ambient and object temperature measurements, making it a reliable and versatile solution for a wide range of applications.

Explore Projects Built with MLX90614 IR Temperature Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP32-Based Infrared Thermometer with I2C LCD Display: A project utilizing MLX90614 IR Temperature Sensor in a practical application
ESP32-Based Infrared Thermometer with I2C LCD Display

This circuit features an ESP32 microcontroller interfaced with an MLX90614 infrared temperature sensor and a 16x2 I2C LCD display for temperature readouts. A tactile button is connected to the ESP32 to trigger temperature measurements, and an LED indicates when a measurement is in progress. The circuit is powered by an 18650 Li-Ion battery, with appropriate resistors for LED current limiting and button debouncing.

Open Project in Cirkit Designer

Common Applications


Technical Specifications

Key Technical Details

Parameter Value
Manufacturer Melexis
Part Number MLX90614
Operating Voltage 3.6V to 5V
Current Consumption 1.5 mA (typical)
Temperature Range -40°C to +125°C (ambient)
Object Temperature Range -70°C to +380°C
Accuracy ±0.5°C (typical, for 0°C to +50°C range)
Communication Protocol SMBus (I²C compatible)
Field of View (FOV) 35°
Resolution 0.02°C

Pin Configuration and Descriptions

The MLX90614 sensor is typically available in a 4-pin TO-39 package. Below is the pin configuration:

Pin Number Pin Name Description
1 VDD Power supply input (3.6V to 5V).
2 VSS Ground (0V reference).
3 SDA Serial Data Line for SMBus/I²C communication.
4 SCL Serial Clock Line for SMBus/I²C communication.

Usage Instructions

How to Use the MLX90614 in a Circuit

  1. Power Supply: Connect the VDD pin to a 3.6V to 5V power source and the VSS pin to ground.
  2. I²C Communication: Use the SDA and SCL pins to interface with a microcontroller or development board (e.g., Arduino UNO) via the I²C protocol.
  3. Pull-Up Resistors: Add 4.7kΩ pull-up resistors to the SDA and SCL lines to ensure proper I²C communication.
  4. Object Placement: Ensure the object to be measured is within the sensor's field of view (35° cone).

Important Considerations

Example: Connecting MLX90614 to Arduino UNO

Below is an example of how to interface the MLX90614 with an Arduino UNO to read temperature data:

Circuit Connections

MLX90614 Pin Arduino UNO Pin
VDD 5V
VSS GND
SDA A4
SCL A5

Arduino Code

#include <Wire.h>
#include <Adafruit_MLX90614.h>

// Create an instance of the MLX90614 library
Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  if (!mlx.begin()) {
    Serial.println("Error: MLX90614 not detected. Check connections.");
    while (1); // Halt execution if sensor initialization fails
  }
  Serial.println("MLX90614 initialized successfully.");
}

void loop() {
  // Read object and ambient temperatures
  double objectTemp = mlx.readObjectTempC();
  double ambientTemp = mlx.readAmbientTempC();

  // Print temperature readings to the Serial Monitor
  Serial.print("Object Temperature: ");
  Serial.print(objectTemp);
  Serial.println(" °C");

  Serial.print("Ambient Temperature: ");
  Serial.print(ambientTemp);
  Serial.println(" °C");

  delay(1000); // Wait 1 second before the next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Sensor Not Detected

    • Cause: Incorrect wiring or missing pull-up resistors on the I²C lines.
    • Solution: Double-check the connections and ensure 4.7kΩ pull-up resistors are present on the SDA and SCL lines.
  2. Inaccurate Temperature Readings

    • Cause: External IR interference or improper sensor placement.
    • Solution: Shield the sensor from direct sunlight or strong IR sources. Ensure the object is within the sensor's field of view.
  3. No Data on Serial Monitor

    • Cause: Incorrect baud rate or sensor initialization failure.
    • Solution: Verify that the Serial Monitor is set to 9600 baud. Check the wiring and ensure the sensor is powered correctly.

FAQs


This concludes the documentation for the Melexis MLX90614 IR Temperature Sensor. For further details, refer to the official datasheet provided by Melexis.