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

How to Use GY-MCU90640: Examples, Pinouts, and Specs

Image of GY-MCU90640Design with GY-MCU90640 in Cirkit Designer

Introduction

The GY-MCU90640 is a sophisticated thermal imaging sensor module that incorporates the Melexis MLX90640 Far Infrared (FIR) sensor. This module is capable of detecting and measuring temperature variations, which makes it an invaluable tool for a wide range of applications. It is commonly used in thermal imaging cameras, human presence detection, and non-contact temperature measurement systems.

Explore Projects Built with GY-MCU90640

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 SparkFun Pro Micro Based Motion Tracking System with BMI160 and EEPROM Data Logging: A project utilizing GY-MCU90640 in a practical application
SparkFun Pro Micro Based Motion Tracking System with BMI160 and EEPROM Data Logging

This circuit is designed for motion sensing and data logging applications. It features a SparkFun Pro Micro microcontroller interfaced with a BMI160 6DOF sensor for motion detection and two 24LC512 EEPROM chips for extended data storage. The microcontroller reads gyroscopic and accelerometer data from the BMI160 sensor, processes it, and stores it in the EEPROM, with power supplied by a Polymer Lithium Ion Battery.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VCC Power supply (3.3V - 5V)
2 GND Ground
3 SCL Serial Clock Line for I2C communication
4 SDA Serial Data Line for I2C communication
5 RX UART Receive (unused for I2C mode)
6 TX UART Transmit (unused for I2C mode)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to the ground.
  2. I2C Communication: Connect the SCL and SDA pins to the corresponding I2C clock and data lines on your microcontroller (e.g., Arduino UNO).
  3. Addressing: The default I2C address of the MLX90640 sensor is 0x33. Ensure no address conflicts with other I2C devices on the same bus.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <Wire.h>
#include <Adafruit_MLX90640.h>

Adafruit_MLX90640 mlx;

void setup() {
  Serial.begin(9600);
  Wire.begin();
  mlx.begin(MLX90640_I2CADDR_DEFAULT, &Wire);
  mlx.setMode(MLX90640_INTERLEAVED);
  mlx.setResolution(MLX90640_ADC_16BIT);
  mlx.setRefreshRate(MLX90640_2_HZ);
}

void loop() {
  float temp[32 * 24]; // Array to store temperature for each pixel
  mlx.getFrame(temp);
  
  for (int i = 0; i < 24; i++) {
    for (int j = 0; j < 32; j++) {
      Serial.print(temp[j + i * 32], 1);
      Serial.print(", ");
    }
    Serial.println();
  }
  delay(500);
}

Note: The above code uses the Adafruit MLX90640 library, which simplifies the interaction with the sensor. Make sure to install the library before compiling the code.

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

FAQs:

Q: Can the GY-MCU90640 be used with 5V microcontrollers like Arduino UNO? A: Yes, the module can be interfaced with 5V systems as it is 5V tolerant.

Q: How can I change the I2C address of the sensor? A: The I2C address is fixed and cannot be changed.

Q: What is the maximum frame rate of the GY-MCU90640? A: The maximum frame rate is 64Hz, but it can be configured to lower rates to suit the application.

Q: Is it necessary to calibrate the sensor? A: The sensor comes factory-calibrated, but for precise applications, additional calibration may be required.

For further assistance, consult the manufacturer's datasheet and the community forums dedicated to the GY-MCU90640 module.