Datasheet
Pi 3V to sensor VCC (red wire)
Pi GND to sensor GND (black
wire)
Pi SCL to sensor SCL (yellow wire)
Pi SDA to sensor SDA (blue wire)
CircuitPython Installation of MLX90640 Library
You'll need to install the Adafruit CircuitPython MLX90640 (https://adafru.it/IBv) library on your CircuitPython board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/ENC). Our CircuitPython starter guide has a great
page on how to install the library bundle (https://adafru.it/ABU).
You'll need to manually install the necessary libraries from the bundle:
adafruit_mlx90640.mpy
adafruit_bus_device
Before continuing, make sure your board's lib folder has the adafruit_mlx90640.mpy, and adafruit_bus_device files
and folders copied over.
Python Installation of MLX90640 Library
You'll need to install the Adafruit_Blinka library that provides the CircuitPython support in Python. This may also
require enabling I2C on your platform and verifying you are running Python 3. Since each platform is a little different,
and Linux changes often, please visit the CircuitPython on Linux guide to get your computer
ready (https://adafru.it/BSN)!
Once that's done, from your command line run the following command:
© Adafruit Industries https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera Page 19 of 30










