Coder Social home page Coder Social logo

cmur2 / python-bme280 Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 5.0 47 KB

A python library for accessing the BME280 combined humidity and pressure sensor from Bosch

Home Page: https://mycroba.se/mirror-redirect/python-bme280

License: MIT License

Python 98.61% Makefile 1.39%
python bme280 bosch sensor temperature pressure humidity i2c raspberrypi iot

python-bme280's Introduction

python-bme280

ci

A Python library for accessing the BME280 combined humidity and pressure from Bosch via python-smbus using the I2C interface.

Default settings are suitable for Raspberry Pi 2 and 3 and was successfully tested using a breakout.

I created this Python library in style of e.g. python-veml6070 or python-tsl2591 since I found only python scripts with limited functionality and minor bugs and the official driver from Bosch is only in C(++).

Although, it is heavily based on existing code from Bosch translated to Python and from SWITCHSCIENCE.

Usage

Consult the data sheet and see demo.py for clues how to use this library.

Not all functions of the chip are supported since I focused on the forced mode but data readout and parameter setting should work in normal mode, too. Please send pull requests for improvements and bug fixes!

Develop

Run make help to find out about the available development commands.

License

Python files in this repository are released under the MIT license except those parts from other sources which are indicated where appropriate in the files.

python-bme280's People

Contributors

cmur2 avatar dependabot-preview[bot] avatar pyup-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-bme280's Issues

Humidity returning value of 0

Hello,

I'm using an unbranded bme280 sensor, and everything seems to work fine but the humidity, which is always 0.

Searching for possible solutions online I found a different directory which had the similar issue: rm-hull/bme280#2

Could it be that the same problem is present also here?

Best

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.