Skip to main content

Simple utilities for generically using GPIO/I2C RPI sensors.

Project description

SensorKit

Work in Progress

Simple abstraction for I2C bus devices.

Installation

Some devices do not respond to the scan method used in microcontroller/generic_linux. See Issue 365.

For this library to discover devices microcontroller/generic_linux/i2c.py needs to be patched with either patches/i2c-read-or-write.patch (re-implementation of i2cdetect scan algorithm) or i2c-write.patch (replace read_byte with write_quick for all addresses).

pip install sensorkit --upgrade

Usage

[WIP]

from sensorkit import SensorKit

kit = SensorKit(board.I2C(), config)
kit.run()

for m in kit.tree.meters_iter:
    print m.measure

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sensorkit-0.4.5.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sensorkit-0.4.5-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file sensorkit-0.4.5.tar.gz.

File metadata

  • Download URL: sensorkit-0.4.5.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.2 Linux/6.6.62+rpt-rpi-2712

File hashes

Hashes for sensorkit-0.4.5.tar.gz
Algorithm Hash digest
SHA256 b925cec4f0c25d97a5f7460f1746c71bd999dee006fcbf48074639e20245936f
MD5 65e2cab740b9990d51374244bf1c581a
BLAKE2b-256 cf782c9788e58d4aebe5ec26799ab75d1782f548d3e23fa25d87f9c3dbdde0b1

See more details on using hashes here.

File details

Details for the file sensorkit-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: sensorkit-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.2 Linux/6.6.62+rpt-rpi-2712

File hashes

Hashes for sensorkit-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f054bff99cf48fc29b0272a4840578332f62e53ef3fe07cc111ee870263e2a36
MD5 97c4ab637dd9144e9dc9aa84ffa56fc2
BLAKE2b-256 7c69718bdd9aca1f5e6e2d09eaabfa5328c8e3ae741cedd835f14e4d0cb2cc54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page