Skip to main content

Simple utilities for generically using GPIO/I2C RPI sensors.

Project description

SensorZoo

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 sensorzoo --upgrade

Usage

[WIP]

from sensorzoo import SensorZoo

zoo = SensorZoo(board.I2C(), config)
zoo.run()

for m in zoo.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

sensorzoo-0.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

sensorzoo-0.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file sensorzoo-0.1.0.tar.gz.

File metadata

  • Download URL: sensorzoo-0.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.2 Linux/6.12.34+rpt-rpi-2712

File hashes

Hashes for sensorzoo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4a08a6c436052bc75744155f00912c80b4f397513459ac042639c22967a5f959
MD5 0c144275b82cdee57f1843e6e38f16ff
BLAKE2b-256 ab8d8205854b955ca0ae3100176d2547df3186ff77a4b95277b7d9b1df78e17c

See more details on using hashes here.

File details

Details for the file sensorzoo-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sensorzoo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b71d435b387c0fc90bccdaa0b18c0d59e659687482092aed70ed614e0c13be90
MD5 bdaac227a9bbcf7e09f631e24044cb3b
BLAKE2b-256 972fefa47387428d7ba73d1db8b0a1f266bc1f0db5929c3f954161811b5afd55

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