GithubHelp home page GithubHelp logo

david-feliz / rpisensors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from altosz/rpisensors

0.0 1.0 0.0 27 KB

Raspberry Pi sensors package

License: GNU General Public License v2.0

Python 100.00%

rpisensors's Introduction

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

Copyright

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

See LICENSE for full license text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.