Skip to main content

rpisensors

This Python module is a collection of classes to enable Raspberry PI sensors support. Module also contains core classes to be used for interaction with I2C devices and also 16-bit EEPROM modules.

Supported sensors and measurements:

  1. Bosch BMP180: temperature (Celsius degrees), pressure (Pa)

  2. ST VL6180X: distance (mm), ambient light (lux)

Dependencies

Installation

1. pip install from PyPi

pip install rpisensors

2. pip install from git

pip install git+https://github.com/altosz/rpisensors.git

3. Clone the repository and run setup.py

git clone https://github.com/altosz/rpisensors.git
python setup.py install

Usage

If you have a sensor connected to Raspberry PI 3 (on I2C bus 1), you may run

python -m rpisensors.bmp180
python -m rpisensors.proximity

The output will show the results of measurement. If you have sensors connected to I2C bus 0, you may test the sensor from python console:

>>> from rpisensors import BMP180
>>> sensor = BMP180(0)
>>> print sensor.read_temperature()

Bug Reporting

To submit a bugreport use the GitHub bugtracker for the project:

https://github.com/altosz/rpisensors/issues

Development

You may use I2CDevice class as a base for I2C devices. Or Eeprom16 for devices using 16-bit eeprom.

Authors

Metadata

Release files for rpisensors 0.2.1

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

Source distribution (sdist)

Source distribution for rpisensors 0.2.1
File Size Uploaded Provenance Actions
rpisensors-0.2.1.tar.gz 6.7 kB Without provenance Details for rpisensors-0.2.1.tar.gz

Release files / rpisensors-0.2.1.tar.gz

Download URL rpisensors-0.2.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64986485948ad50f797ec92c9bc76043f248424b4fb42f7050c707a420289bb7
BLAKE2b-256 checksum
How to use checksums
871b479e4456d2add102a5767f548b0226d67aca798662f6b5c4d7f62073c382
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rpisensors 0.2.1

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.

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