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

ESP32C3-Based Thermal Imaging Camera with TFT Display

View and Edit Project In Cirkit DesignerImage of ESP32C3-Based Thermal Imaging Camera with TFT Display

Circuit Documentation

Summary

This circuit integrates a 1.3 inch TFT Module with an ST7789 controller, a GY-MCU90640 thermal camera module, and a XIAO ESP32C3 microcontroller. The purpose of the circuit is to capture thermal images using the GY-MCU90640 module and display them on the TFT screen, with the XIAO ESP32C3 microcontroller managing the data flow and display logic.

Component List

1.3 inch TFT Module 240×240 ST7789

GY-MCU90640

XIAO ESP32C3

Wiring Details

1.3 inch TFT Module 240×240 ST7789

GY-MCU90640

XIAO ESP32C3

Documented Code

The code provided is intended for the XIAO ESP32C3 microcontroller and is written in Arduino C/C++. It includes libraries for the Adafruit MLX90640 thermal camera and the Adafruit ST7789 TFT display, as well as the SPI library for communication.

#include <Adafruit_MLX90640.h>
#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
#include <SPI.h>

// ... (Code omitted for brevity)

void setup() {
  // Initialization code for the MLX90640 thermal camera and ST7789 TFT display
  // ... (Code omitted for brevity)
}

void loop() {
  // Main loop code to capture thermal images and display them on the TFT screen
  // ... (Code omitted for brevity)
}

The code initializes the TFT display and the thermal camera, then enters a loop where it captures thermal images and displays them on the screen. It includes functions for printing formatted text on the TFT display and mapping the temperature readings to a color scale for visualization.

Please note that the full code is not displayed here due to length constraints. The provided snippet gives an overview of the included libraries and the structure of the setup and loop functions.