MLX90641 driver for MCP2221 USB I2C hub
MLX90641 is a thermal camera (16x12 pixels) using Far InfraRed radiation from objects to measure the object temperature.
https://www.melexis.com/mlx90641
The python package "mlx90641-driver" driver interfaces the MLX90641 and aims to facilitate rapid prototyping.
This package provide the I2C low level routines.
It uses the I2C hub from MCP2221 chip which is connected via the USB cable to the computer.
https://www.microchip.com/wwwproducts/en/mcp2221
https://www.adafruit.com/product/4471
Getting started
Installation
pip install mlx90641-driver-mcp2221
https://pypi.org/project/mlx90641-driver-mcp2221
https://pypistats.org/packages/mlx90641-driver-mcp2221
Extra installation for linux based OS.
- install udev, libusb and libhidapi:
sudo apt update
sudo apt-get install libudev-dev libusb-1.0-0-dev libhidapi-dev
- Configure such that non-root users have access.
Place a file in /etc/udev/rules.d/20-microchip.rules:
KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", MODE="0666"
You might use this command line to create that file:
echo 'KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", MODE="0666"' | sudo tee /etc/udev/rules.d/20-microchip.rules >/dev/null
Note: Make sure to (re-)plug the MCP2221 after this file is written!
Running the driver demo
- Connect the MLX90641 to the MCP2221 I2C port
- Connect the MCP2221 to your PC with the USB cable.
- Open a terminal and run following command:
mlx90641-mcp2221-dump mcp://mcp:2221/0
This program takes 1 optional argument.
mlx90641-mcp2221-dump <communication-port>
Note: this dump command is not yet available!
Metadata
Release files for mlx90641-driver-mcp2221 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlx90641-driver-mcp2221-1.2.0.tar.gz | 3.8 kB | Without provenance | Details for mlx90641-driver-mcp2221-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlx90641_driver_mcp2221-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for mlx90641_driver_mcp2221-1.2.0-py3-none-any.whl |
Total release size: 302.9 kB
Release files / mlx90641-driver-mcp2221-1.2.0.tar.gz
| Download URL | mlx90641-driver-mcp2221-1.2.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5d13ee1b43dd3b89fac6e01cd13e3537cb8a4c00a8b84fedeadbe338ad1e11d
|
|
BLAKE2b-256 checksum How to use checksums |
586c777cf21d2100b7cf55784094be4d3462947a1b0fd5a7682e0030dc3a3de4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / mlx90641_driver_mcp2221-1.2.0-py3-none-any.whl
| Download URL | mlx90641_driver_mcp2221-1.2.0-py3-none-any.whl |
|---|---|
| Size | 299.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc74ee4b2e91ed11ed9ae6b820bde78d4dc3ffef481c425a8ecaa588e22f9856
|
|
BLAKE2b-256 checksum How to use checksums |
7faa7f06a9a16961cfb06a75a37a9cabcb40716cdbf53ebaa6f9af77c27081e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for mlx90641-driver-mcp2221 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.