Giter Club home page Giter Club logo

bme280's Introduction

BME280 on Raspberry Pi

Copyright (c) 2018 Paul van Haastrecht [email protected]

Background

As part of a larger project I am looking at analyzing and understanding the air quality. The aim of this project was to better understand the kind of gas-types that are in the air.

I have ported the library to CPP on a Raspberry PI running Raspbian Jessie release an PI-OS (Buster). It has been adjusted and extended for stable working.

Software installation

Make your self superuser : sudo bash 3.1 BCM2835 library Install latest from BCM2835 from : http://www.airspayce.com/mikem/bcm2835/

  1. wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.56.tar.gz
  2. tar -zxf bcm2835-1.56.tar.gz // 1.56 was version number at the time of writing
  3. cd bcm2835-1.56
  4. ./configure
  5. sudo make check
  6. sudo make install

In order for this software to run you should NOT enable i2C in raspi-config to load the kernel drivers. It works directly on the hardware, but you’ll have to run program as root.

twowire library Obtain the latest version from : https://github.com/paulvha/twowire

  1. download the zip-file (clone or download / download zip-file) in the wanted directory
  2. unzip twowire-master.zip (*1)
  3. cd twowire-master
  4. make install

*1) if you do not have unzip : sudo apt-get install zip unzip

BME280 software Obtain the latest version from : https://github.com/paulvha/bme280

  1. Download the zip-file (clone or download / download zip-file) in the wanted directory
  2. unzip bme280-master.zip (*1)
  3. cd bme280-master
  4. create the executable : make
  5. To run you have to be as sudo ./bme280 -h ….

(detailed description of the many options in bme280.odt in the documents directory)

Versioning

Version 2.0 / September 2018

  • initial release

Version 2.0.1 / September 2020

  • fix compile error on Pi-OS (Buster)

bme280's People

Contributors

paulvha avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.