Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use thermal camera: Examples, Pinouts, and Specs

Image of thermal camera
Cirkit Designer LogoDesign with thermal camera in Cirkit Designer

Introduction

The Raspberry Thermal Camera is a compact and versatile device designed to detect infrared radiation and convert it into a visual image. This allows users to observe temperature variations in objects and environments, making it an essential tool for applications requiring non-contact temperature measurement. The camera is ideal for use in fields such as industrial diagnostics, building inspections, medical imaging, and robotics.

Explore Projects Built with thermal camera

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32C3-Based Thermal Imaging Camera with TFT Display
Image of MLX90640-XIAO-ESP32-1.3: A project utilizing thermal camera in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Thermal Monitoring and GSM-Controlled Water Pump System
Image of thermal: A project utilizing thermal camera in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 5 and MLX90640 Thermal Camera Imaging System with Battery Backup
Image of AI Thermal : A project utilizing thermal camera in a practical application
This circuit features a Raspberry Pi 5 connected to an Adafruit MLX90640 Thermal Camera via I2C communication lines (GPIO 2 and GPIO 3 for SDA and SCL, respectively) and powered by a 24/12V buck converter. The buck converter steps down voltage from a 3S 10A Li-ion 18650 battery pack, which is managed by a charger protection board and charged through a lipo battery charger module. The Raspberry Pi runs code to capture and process thermal images from the camera.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO R4 WiFi-Controlled Thermal Imaging Camera with TFT Display
Image of MLX90640 Thermography Camera by Arduino UNO R4: A project utilizing thermal camera in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with thermal camera

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 MLX90640-XIAO-ESP32-1.3: A project utilizing thermal camera 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of thermal: A project utilizing thermal camera 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of AI Thermal : A project utilizing thermal camera in a practical application
Raspberry Pi 5 and MLX90640 Thermal Camera Imaging System with Battery Backup
This circuit features a Raspberry Pi 5 connected to an Adafruit MLX90640 Thermal Camera via I2C communication lines (GPIO 2 and GPIO 3 for SDA and SCL, respectively) and powered by a 24/12V buck converter. The buck converter steps down voltage from a 3S 10A Li-ion 18650 battery pack, which is managed by a charger protection board and charged through a lipo battery charger module. The Raspberry Pi runs code to capture and process thermal images from the camera.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MLX90640 Thermography Camera by Arduino UNO R4: A project utilizing thermal camera 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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Industrial Diagnostics: Detecting overheating components or machinery.
  • Building Inspections: Identifying insulation issues, air leaks, or moisture intrusion.
  • Medical Imaging: Monitoring body temperature or detecting inflammation.
  • Robotics: Enabling robots to "see" heat signatures for navigation or object detection.
  • Home Automation: Monitoring room temperature or detecting human presence.

Technical Specifications

The Raspberry Thermal Camera is designed for seamless integration with Raspberry Pi boards and other microcontroller platforms. Below are its key technical details:

General Specifications

Parameter Value
Sensor Type Infrared (IR) thermal sensor
Resolution 32x24 pixels (or higher, depending on model)
Temperature Range -40°C to 300°C
Field of View (FOV) 55° x 35°
Frame Rate 8.7 Hz
Interface I2C or SPI
Operating Voltage 3.3V
Power Consumption < 150 mW

Pin Configuration

The Raspberry Thermal Camera typically uses an I2C interface for communication. Below is the pin configuration:

Pin Name Description
VCC Power supply (3.3V)
GND Ground
SDA I2C data line
SCL I2C clock line
INT Interrupt pin (optional, for alerts)

Usage Instructions

Connecting the Thermal Camera to a Raspberry Pi

  1. Wiring: Connect the thermal camera to the Raspberry Pi as follows:

    • Connect the VCC pin of the camera to the 3.3V pin on the Raspberry Pi.
    • Connect the GND pin of the camera to a ground pin on the Raspberry Pi.
    • Connect the SDA pin of the camera to the SDA pin on the Raspberry Pi (GPIO2).
    • Connect the SCL pin of the camera to the SCL pin on the Raspberry Pi (GPIO3).
  2. Enable I2C on the Raspberry Pi:

    • Open the Raspberry Pi configuration tool by running sudo raspi-config.
    • Navigate to Interfacing Options > I2C and enable it.
    • Reboot the Raspberry Pi to apply the changes.
  3. Install Required Libraries:

    • Install the Python smbus library for I2C communication:
      sudo apt-get install python3-smbus
      sudo apt-get install i2c-tools
      
  4. Test the Connection:

    • Run the following command to detect the camera on the I2C bus:
      i2cdetect -y 1
      
    • The camera's I2C address should appear in the output (e.g., 0x33).

Sample Code for Reading Data

Below is an example Python script to read temperature data from the Raspberry Thermal Camera:

import smbus
import time

Initialize the I2C bus

bus = smbus.SMBus(1) # Use I2C bus 1 on Raspberry Pi

Define the camera's I2C address

CAMERA_I2C_ADDRESS = 0x33

Function to read temperature data

def read_thermal_data(): try: # Read 32x24 pixel data (768 bytes) data = bus.read_i2c_block_data(CAMERA_I2C_ADDRESS, 0x00, 768) # Convert data to temperature values (example conversion) temperatures = [d * 0.25 for d in data] return temperatures except Exception as e: print(f"Error reading data: {e}") return None

Main loop

while True: temperatures = read_thermal_data() if temperatures: print("Temperature data:", temperatures) time.sleep(1) # Delay for 1 second


Important Considerations

  • Ensure the camera is connected securely to avoid communication errors.
  • Avoid exposing the camera to direct sunlight or extreme temperatures, as this may damage the sensor.
  • Use appropriate libraries and drivers for your specific Raspberry Thermal Camera model.
  • If using the camera in a high-noise environment, consider adding pull-up resistors to the I2C lines.

Troubleshooting and FAQs

Common Issues

  1. Camera Not Detected on I2C Bus:

    • Ensure the I2C interface is enabled on the Raspberry Pi.
    • Check the wiring for loose or incorrect connections.
    • Verify the camera's I2C address using i2cdetect.
  2. Incorrect Temperature Readings:

    • Ensure the camera is not exposed to reflective surfaces, which can distort readings.
    • Calibrate the camera if necessary (refer to the manufacturer's instructions).
  3. Script Fails to Run:

    • Ensure all required Python libraries are installed.
    • Check for typos or syntax errors in the code.

FAQs

Q: Can this camera detect human presence?
A: Yes, the camera can detect heat signatures from humans, making it suitable for presence detection.

Q: What is the maximum distance for accurate temperature measurement?
A: The effective range depends on the model, but typically it is accurate up to a few meters.

Q: Can I use this camera with an Arduino?
A: Yes, the camera can be used with an Arduino, but you may need to use an I2C library like Wire.h and ensure the Arduino operates at 3.3V logic levels.

Q: How do I visualize the thermal data?
A: You can use Python libraries like matplotlib to create heatmaps or images from the temperature data.

By following this documentation, you can effectively integrate and use the Raspberry Thermal Camera in your projects.