Skip to content
Controlling and reading from the MLX90640 IR array thermal imaging sensor
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documents Initial commit Jun 4, 2018
Firmware Adding gate for Teensy 3.2. See PR 10. Removing empty ESP gates. Jan 23, 2019
.gitattributes Initial commit Jun 4, 2018
.gitignore Create .gitignore Sep 20, 2018 Adding license file Jul 23, 2018 Update Sep 20, 2018

SparkFun MLX90640 Arduino Example

Qwiic IR Array (MLX90640-110x75 FOV) Qwiic IR Array (MLX90640-55x35 FOV)
Qwiic IR Array (MLX90640-110x75 FOV) [SEN-14843] Qwiic IR Array (MLX90640-55x35 FOV) [SEN-14844]

This repo contains Arduino sketches that show how to output temperature data from the MLX90640 sensor. We've also included a Processing app in Example 2 to read in the values over the serial port and visualize them.

SparkFun Qwiic IR Array - MLX90640

The MLX90640 contains a 32x28 array of thermopile sensors creating, in essence, a low resolution thermal imaging camera. As the images show you can detect surface temperatures from many feet away with an accuracy of ±1.5°C (best case). We’ve packaged the MLX90640 on an easy to use Qwiic board with mounting holes and a smattering of decoupling caps. We’ve written an example Arduino sketch and Processing app to get started with the sensor quickly!

The MLX90640 occupies a very interesting spot in the thermal imaging space. It is much higher resolution than the Panasonic Grid-EYE and much lower cost than the FLiR Lepton cameras. A very exciting advancement!

Not Uno Compatible: The MLX90640 requires complex calculations by the host platform. A regular Uno doesn't have enough RAM or flash to complete the complex computations required to turn the raw pixel data into temperature data. You will need a microcontroller with 20,000 bytes or more of RAM. We recommend a Teensy 3.1 or above.

SparkFun labored with love to create this code. Feel like supporting open source hardware? Buy the Melexis MLX90640 breakout board (110° and 55° FOV) from SparkFun!

Repository Contents

  • /Documents - Datasheets
  • /Firmware - Contains the sketches that Processing app to implement the visualizer


Products that use this Library

License Information

This product is open source!

Please review the file for license information.

If you have any questions or concerns on licensing, please contact

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release any derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.
You can’t perform that action at this time.