Skip to main content

PyMLX90614

Python library for MLX90614 infrared temperature sensors, using smbus2. Compatible with Python 2 and 3.

You might need to enter this command on your Raspberry Pi:

sudo su -c 'echo "Y" > /sys/module/i2c_bcm2708/parameters/combined'

Consider putting it in /etc/rc.local so it's executed each bootup

Usage

First, ensure the device is available on the i2c bus:

$ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- 5a -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Within Python, the device can be used like this:

from smbus2 import SMBus
from mlx90614 import MLX90614

bus = SMBus(1)
sensor = MLX90614(bus, address=0x5A)
print sensor.get_amb_temp()
print sensor.get_obj_temp()
bus.close()

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for PyMLX90614 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMLX90614 0.0.4
File Size Uploaded
PyMLX90614-0.0.4.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyMLX90614 0.0.4
File Interpreter ABI Platform
PyMLX90614-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / PyMLX90614-0.0.4.tar.gz

Download URL PyMLX90614-0.0.4.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1416f8c6daf72c9aa725900d4b7fb8cdcd0ec125e87cd258489f16a224570d19
BLAKE2b-256 checksum
How to use checksums
3869567b638368878c415623eb0a95048ae0319192fb974bb97c9d08dcee8d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

Release files / PyMLX90614-0.0.4-py3-none-any.whl

Download URL PyMLX90614-0.0.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db5d77c771777942846eccf44fd2733144cf41f395c12e66eee447c1dac349a1
BLAKE2b-256 checksum
How to use checksums
8480313ee7169dcc58cdbdaec2b35da4ecd5991d397a414510837337084433c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page