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.4.tar.gz (14.3 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.4-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sensorkit-0.4.4.tar.gz
Algorithm Hash digest
SHA256 5714feefdb5159bddc1d7033b6f5b356586a24b78732bc4743a7bfa2dc6de527
MD5 791da3ee1247a3387e8c8d6736fb85c4
BLAKE2b-256 525baaf6f988c7b6704cf9ac8e17dbcfa1fa3a5a8b331296b15056daf994620a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sensorkit-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cd35a297c26d44ca9ec9724dea24e56e60c9625dbeb572c98158bdf8a333275b
MD5 23996302554d28345090289491ba1cb1
BLAKE2b-256 fa739c84ed74c7ef163cb8ff61e2f45620d936fb0f85070ca15a438e840663b9

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