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

How to Use SparkFun IR Array Breakout - 55 Degree FOV, MLX90640 (Qwiic): Examples, Pinouts, and Specs

Image of SparkFun IR Array Breakout - 55 Degree FOV, MLX90640 (Qwiic)Design with SparkFun IR Array Breakout - 55 Degree FOV, MLX90640 (Qwiic) in Cirkit Designer

Introduction

The SparkFun IR Array Breakout with a 55 Degree Field of View (FOV) featuring the MLX90640 is an advanced infrared thermal imaging sensor. This component is capable of detecting and measuring temperature distributions across a wide area, which allows it to serve as the core for thermal cameras or for non-contact temperature measurement systems. Its ease of integration with microcontroller platforms, particularly those with Qwiic connectivity, makes it a popular choice for hobbyists and professionals working on projects in areas such as security systems, environmental monitoring, HVAC control, and health-related devices.

Explore Projects Built with SparkFun IR Array Breakout - 55 Degree FOV, MLX90640 (Qwiic)

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 Arduino Nano-Powered PID Line Following Robot with Reflectance Sensor Array and Dual Motor Driver: A project utilizing SparkFun IR Array Breakout - 55 Degree FOV, MLX90640 (Qwiic) in a practical application
Arduino Nano-Powered PID Line Following Robot with Reflectance Sensor Array and Dual Motor Driver

This circuit is designed for an advanced line-following robot that uses a QTRX-HD-07RC Reflectance Sensor Array for line sensing and a Motor Driver 1A Dual TB6612FNG to control two DC Mini Metal Gear Motors. The Arduino Nano serves as the microcontroller, running a PID control algorithm to adjust the motor speeds for precise tracking. Power is supplied by a 5V battery for the logic and a 12V battery for the motor driver.

Open Project in Cirkit Designer
Image of ESP32-CAM and IR Sensor Interface with USB UART Communication: A project utilizing SparkFun IR Array Breakout - 55 Degree FOV, MLX90640 (Qwiic) in a practical application
ESP32-CAM and IR Sensor Interface with USB UART Communication

This circuit features an ESP32 CAM module interfaced with an IR sensor and a SparkFun USB UART Breakout board. The ESP32 CAM provides power to the IR sensor and receives its output signal, likely for processing or triggering camera actions based on IR detection. The USB UART Breakout board is connected to the ESP32 CAM for serial communication, enabling programming, debugging, or data exchange with a computer.

Open Project in Cirkit Designer
Image of Adafruit MPU6050 and VL6180X Sensor Interface with Servo Control: A project utilizing SparkFun IR Array Breakout - 55 Degree FOV, MLX90640 (Qwiic) in a practical application
Adafruit MPU6050 and VL6180X Sensor Interface with Servo Control

This circuit features an Adafruit QT Py microcontroller interfaced with an Adafruit MPU6050 6-axis accelerometer/gyroscope and an Adafruit VL6180X Time of Flight (ToF) distance sensor, both connected via I2C communication. The QT Py also controls a Servomotor SG90, likely for physical actuation based on sensor inputs. The embedded code initializes the sensors, reads their data, and outputs the readings to a serial monitor, with the potential for motion control based on the sensor feedback.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VDD Power supply (3V to 3.6V)
2 GND Ground
3 SDA I2C Data
4 SCL I2C Clock
5 INT Interrupt (active low, open-drain)
6 3V3 3.3V output from the onboard voltage regulator

Usage Instructions

Integration with a Circuit

To use the MLX90640 IR Array Breakout in a circuit:

  1. Connect the VDD pin to a 3V to 3.6V power supply.
  2. Connect the GND pin to the ground of your power supply.
  3. Connect the SDA and SCL pins to the I2C data and clock lines of your microcontroller, respectively.
  4. If interrupt functionality is required, connect the INT pin to an interrupt-capable GPIO on your microcontroller.
  5. Optionally, use the 3V3 pin if other components in your system require a 3.3V supply from the breakout board.

Best Practices

Troubleshooting and FAQs

Common Issues

Solutions and Tips

FAQs

Q: Can the MLX90640 be used with an Arduino? A: Yes, it can be easily connected to an Arduino using the I2C interface.

Q: Does the sensor require calibration? A: The sensor comes factory-calibrated, but for precise applications, additional calibration may be necessary.

Q: What is the purpose of the INT pin? A: The INT pin can be used to trigger an interrupt in your microcontroller when new data is available to read.

Example Code for Arduino UNO

Below is a simple example code to read data from the MLX90640 sensor using an Arduino UNO. This code assumes the use of the standard Wire library for I2C communication and a compatible MLX90640 library.

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

Adafruit_MLX90640 mlx;

void setup() {
  Serial.begin(9600);
  Serial.println("MLX90640 test");

  // Begin communication with the sensor
  if (!mlx.begin()) {
    Serial.println("Failed to find MLX90640 sensor");
    while (1);
  }
  Serial.println("MLX90640 Found!");
}

void loop() {
  float mlx90640Frame[32 * 24]; // Buffer to store temperature readings

  // Trigger a new measurement
  if (mlx.getFrame(mlx90640Frame) == 0) {
    for (int i = 0; i < 32 * 24; i++) {
      // Print temperature values in a grid format
      Serial.print(mlx90640Frame[i], 2);
      Serial.print(" ");
      if ((i + 1) % 32 == 0) {
        Serial.println();
      }
    }
    Serial.println();
  } else {
    Serial.println("Failed to read frame");
  }

  delay(1000); // Wait for a second before reading again
}

Ensure that you have installed the necessary libraries before uploading this code to your Arduino UNO. The example code provided is for demonstration purposes and may require modifications to work with your specific setup.