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.
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) |
#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.
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.