• (+358)45 6754806
  • peter@lydman.fi
  • Espoo, Finland
Build Project
M5Stack MLX90640 cheap thermal camera for a heat map.

M5Stack MLX90640 cheap thermal camera for a heat map.


Another project that i have started of by buying a thermal camera sensor which is capable of showing thermal heatmap in 32×24 pixels. You see the center spot temperature as well as MIN and MAX of all pixels. This makes it very useful in many applications such as searching dog poop in night time from the yard or then as eg. in CNC applications to check lasering temperatures or routing bit temperatures.

M5Stack MLX90640 sensor
MLX90640 sensor showing thermal map pointing it to my self.

What makes the M5Stack super cool for CNC applications is that the eg. the M5Stack basic is programmable using arduino IDE over usb. The module has even wifi connectivity and it costs around 30EUR. The module have inputs and outputs so you could program it to sense if temperatures rises above 150 degree when sensor is pointing to a router bit which would trigger the CNC machine to pause and lift the router bit up from the work piece to prevent breaking bits because of too hot friction temperatures.

M5Stack MLX90640 sensor
Heatmap when pointing sensor at my forehead.

There are sample projects for each sensor M5Stack offers and i used a MLX90640 sample project which i modified to be able to show negative temperatures. The original code was not able to show values below 0 degrees. MLX90640 can show temps from -40 to 300 degrees celsius.

Sample code can be found here:

Should you need the code for negative temperatures -> Just contact me from the bottom-right side of this page.


M5Stack Core Basic
M5Stack Unit MLX90640

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

What could we do to provide better content ?

Let us improve this post!

eg. would you rather read the post in finnish language ?