adafruit_mlx90614

CircuitPython module for the MLX90614 IR object temperature sensor.

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_mlx90614.MLX90614(i2c_bus, address=90)

Create an instance of the MLX90614 temperature sensor.

Parameters:
  • i2c_bus (I2C) – The I2C bus the MLX90614 is connected to. Do not use an I2C bus speed of 400kHz. The sensor only works at the default bus speed of 100kHz.
  • address (int) – I2C device address. Defaults to 0x5A.

Quickstart: Importing and using the MLX90614

Here is an example of using the MLX90614 class. First you will need to import the libraries to use the sensor

import board
import adafruit_mlx90614

Once this is done you can define your board.I2C object and define your sensor object

i2c = board.I2C()
mlx = adafruit_mlx90614.MLX90614(i2c)

Now you have access to the ambient_temperature attribute

temperature = mlx.ambient_temperature
ambient_temperature

Ambient Temperature in Celsius.

object_temperature

Object Temperature in Celsius.