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

How to Use THERMAL IR: Examples, Pinouts, and Specs

Image of THERMAL IRDesign with THERMAL IR in Cirkit Designer

Introduction

The Adafruit Thermal IR Sensor (Manufacturer Part ID: Thermal IR) is a highly sensitive thermal infrared sensor designed to detect infrared radiation emitted by objects. This allows for accurate temperature measurement and thermal imaging without requiring physical contact. The sensor is ideal for applications where non-contact temperature sensing is critical, such as in industrial automation, medical devices, and environmental monitoring.

Explore Projects Built with THERMAL IR

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 ESP32C3-Based Thermal Imaging Camera with TFT Display: A project utilizing THERMAL IR in a practical application
ESP32C3-Based Thermal Imaging Camera with TFT Display

This circuit connects a 1.3 inch TFT Module 240×240 ST7789 display, a GY-MCU90640 thermal camera module, and a XIAO ESP32C3 microcontroller to create a thermal imaging system. The ESP32C3 microcontroller is programmed to read temperature data from the thermal camera, process it, and display a visual representation of the temperature distribution on the TFT screen. The circuit is designed for applications requiring thermal monitoring, such as detecting heat sources or monitoring temperature variations in an environment.

Open Project in Cirkit Designer
Image of Arduino UNO R4 WiFi-Controlled Thermal Imaging Camera with TFT Display: A project utilizing THERMAL IR in a practical application
Arduino UNO R4 WiFi-Controlled Thermal Imaging Camera with TFT Display

This circuit features an Arduino UNO R4 WiFi microcontroller interfaced with a GY-MCU90640 thermal camera and a 1.3 inch TFT display module. The Arduino processes thermal images from the camera and displays the results on the TFT screen. Level shifters are used to match voltage levels between the microcontroller and peripherals, and resistors are likely used for signal conditioning or pull-up/pull-down purposes.

Open Project in Cirkit Designer
Image of ESP32-Based Thermal Monitoring and GSM-Controlled Water Pump System: A project utilizing THERMAL IR in a practical application
ESP32-Based Thermal Monitoring and GSM-Controlled Water Pump System

This circuit features an ESP32 microcontroller that interfaces with an Adafruit AMG8833 infrared thermal camera and two NTC analog temperature sensors for temperature monitoring. The ESP32 also communicates with a SIM900A module for cellular connectivity and controls a two-channel relay, which in turn operates a mini diaphragm water pump. The purpose of the circuit is likely for remote temperature monitoring and control of a water pump, possibly for applications like smart irrigation or climate control.

Open Project in Cirkit Designer
Image of Arduino UNO-Based Smart Robotic System with Thermal Printer and Multiple Sensors: A project utilizing THERMAL IR in a practical application
Arduino UNO-Based Smart Robotic System with Thermal Printer and Multiple Sensors

This circuit is an Arduino-based control system that interfaces with various sensors and actuators, including a thermal printer, multiple micro servos, an inductive sensor, an IR sensor, an RGB LED, and an I2C LCD display. The Arduino UNO reads inputs from the sensors and pushbutton, processes the data, and controls the servos, LED, and printer accordingly, with power supplied by an external power source.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The Adafruit Thermal IR sensor is designed for precision and ease of use. Below are its key technical details:

Key Technical Details

Pin Configuration and Descriptions

The sensor has a simple pinout for easy integration into your projects. Below is the pin configuration:

Pin Name Description
1 VIN Power input (3.3V to 5V DC). Connect to the power supply of your microcontroller.
2 GND Ground. Connect to the ground of your circuit.
3 SDA I2C data line. Connect to the SDA pin of your microcontroller.
4 SCL I2C clock line. Connect to the SCL pin of your microcontroller.

Usage Instructions

The Adafruit Thermal IR sensor is straightforward to use in a variety of applications. Below are the steps and best practices for integrating it into your circuit.

How to Use the Component in a Circuit

  1. Power the Sensor: Connect the VIN pin to a 3.3V or 5V power source and the GND pin to the ground.
  2. Connect I2C Lines: Connect the SDA and SCL pins to the corresponding I2C pins on your microcontroller (e.g., Arduino UNO).
  3. Install Required Libraries: If using an Arduino, install the Adafruit MLX90614 library from the Arduino Library Manager.
  4. Write Code: Use the provided library functions to read temperature data from the sensor.

Important Considerations and Best Practices

Example Code for Arduino UNO

Below is an example Arduino sketch to read temperature data from the Adafruit Thermal IR sensor:

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

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

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  Serial.println("Adafruit Thermal IR Sensor Test");

  if (!mlx.begin()) {
    Serial.println("Error: Could not find a valid MLX90614 sensor. Check wiring!");
    while (1); // Halt execution if the sensor is not detected
  }
}

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

  // Print the 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 taking the next reading
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. Sensor Not Detected:

    • Cause: Incorrect wiring or loose connections.
    • Solution: Double-check the connections, ensuring SDA and SCL are connected to the correct pins on the microcontroller.
  2. Inaccurate Temperature Readings:

    • Cause: Sensor exposed to direct sunlight or heat sources.
    • Solution: Shield the sensor from direct sunlight and ensure it is not near heat-emitting devices.
  3. I2C Communication Errors:

    • Cause: Missing pull-up resistors on SDA and SCL lines.
    • Solution: Add 4.7kΩ pull-up resistors to the SDA and SCL lines if necessary.
  4. No Output on Serial Monitor:

    • Cause: Incorrect baud rate or uninitialized sensor.
    • Solution: Ensure the Serial Monitor is set to 9600 baud and verify that the sensor is properly initialized in the code.

Solutions and Tips for Troubleshooting

By following this documentation, you can effectively integrate and use the Adafruit Thermal IR sensor in your projects.