Code Monkey home page Code Monkey logo

thp-keeper's Introduction

THP-Monitor

๐Ÿ“œ Summary

A simple implementation of some core features of the BME280 specification, that periodically measures and stores temperature, humidity and pressure. Tested on Raspberry Pi, but should run on any I2C capable device connected to a BME280.

๐Ÿ“‹ Requirements

  • communication is done via I2C which, on the Raspberry Pi, has to be activated in Configuration under Interface Options
  • correct GPIO connections (on Raspberry Pi):
    • ADDR-> GROUND
    • SCL/SCK -> GPIO4
    • SDA/MOSI -> GPIO2
    • GND -> GROUND
    • VCC -> 3V3

๐Ÿ› ๏ธ Implementation

The implementation is based on the official BME280 data sheet revision 1.23. Utils.py includes tools to interact with the BME280 which is used by selftest.py that runs a quick self check and main.py that periodically stores the measurements. Selftest.py strictly adheres to specification with quite tight parameter windows that can be adjusted, trimming parameter and chip ID validation are not implemented. Measurement intervals and measured parameters can be adjusted in main.py.

โš ๏ธ Troubleshooting

  • IO ERROR: use i2cdetect -y 1 to see if BME280 is properly connected to the device, should be at address 76.
  • self-test failure: depending on error code, adjust default limits or verify proper connections. For further information, see 10.1 in the specification.

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.