THERMAL is a thermal imager Unit contains a thermopile sensors named MLX90640. It can be used to measure the surface temperature of an object and form a thermographic image by a temperature gradient composed of different surface temperatures. The image resolution is 32 x 24.
The MLX90640 Infrared (IR) sensor array combines high resolution and reliable operation in harsh environments, providing a cost-effective alternative to more expensive high-end thermal imaging cameras. Unlike the case of a microbolometer, the sensor does not require frequent recalibration, ensuring continuous monitoring and reducing system cost.
The field of view (FoV) option includes a standard 55° x 35° version and a wide angle version of 110° x 75° for distances up to 7m. This Unit is 110°×75° FoV, also known as the BAA package.
The Unit communicates with the M5Core through the Grove A interface, IIC address is 0x33
Datasheet - MLX90640
“Burn” to start burning.
3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial
Example:
1. for IDE
The code below is incomplete. To get complete code, please click here
Schematic:
![]()
PinMap:
M5Core (GROVE A) GPIO22 GPIO21 5V GND THERMAL Unit SCL SDA 5V