- Supports multiple MLX90640 i.e. sensors with different FOVs
- Uses ESP32 multicore capability to improve performance
- Writes image files to SD card
- Adafruit_MLX90640
- TFT_eSPI
- Download code and open in Arduino IDE
- Select board as ESP32
- Download libraries Adafruit_MLX90640 and TFT_eSPI using the Arduino IDE library manager.
- Open file User_Setup.h in the TFT_eSPI library folder.
- In User_Setup.h you will need to
- select display driver - i have used ILI9341_DRIVER
- update #define following as needed
- TFT_MISO 12
- TFT_MOSI 13
- TFT_SCLK 14
- TFT_CS 15 // Chip select control pin
- TFT_DC 27 // Data Command control pin
- TFT_RST 26 // Reset pin (could connect to RST pin)
- TOUCH_CS 33 // Chip select pin (T_CS) of touch screen
- LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
- SMOOTH_FONT
- SPI_FREQUENCY 20000000
- SPI_TOUCH_FREQUENCY 2500000
- USE_HSPI_PORT // This is very important, without this writing to SD card witll cause sketch to hang!!!
- MLX uses standard i2c pins as per libabry. To use two sensors, address of one of them will need to be changed. Use script <> .
That should be it, load the code and you should see the thermal image from the MLX. Note : may take a few seconds to stabilise due to the exponetial filter applied.