Copyright (c) 2018 Paul van Haastrecht paulvha@hotmail.com
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.
Make your self superuser : sudo bash 3.1 BCM2835 library Install latest from BCM2835 from : http://www.airspayce.com/mikem/bcm2835/
- wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.56.tar.gz
- tar -zxf bcm2835-1.56.tar.gz // 1.56 was version number at the time of writing
- cd bcm2835-1.56
- ./configure
- sudo make check
- 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
- download the zip-file (clone or download / download zip-file) in the wanted directory
- unzip twowire-master.zip (*1)
- cd twowire-master
- 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
- Download the zip-file (clone or download / download zip-file) in the wanted directory
- unzip bme280-master.zip (*1)
- cd bme280-master
- create the executable : make
- To run you have to be as sudo ./bme280 -h ….
(detailed description of the many options in bme280.odt in the documents directory)
- initial release
- fix compile error on Pi-OS (Buster)