Skip to content

Air-Pi is a DIY project to monitor the Air Quality. It uses the Raspberry pi, a cheap air quality sensor, and a small display.

Notifications You must be signed in to change notification settings

alexBotteri/air-pi

Repository files navigation

AIR-PI README

Air-Pi is a DIY project to monitor the Air Quality. It uses the Raspberry pi, a particule matter sensor, a gas/temperature/humidity/pressure sensor and a and small display. The case is 3d printed. The total cost of all components is < $100.

(The picture does not include the Gas sensor BME680, which was added later)

Hardware

Raspberry pi:

Raspberry pi Zero W https://www.raspberrypi.org/products/raspberry-pi-zero-w/

Sensor for Particule Matter:

Sensor for Gas, Temperature, Humidity, Pressure:

Display:

Case - 3d print:

The case was designed using Sketchup. It is divided into 2 parts, the .stl are provided here.

RaspeberryPi IOs

Both the screen and the bme680 are using the i2c bus, one option is to create a 2nd bus so that they do not have to share the same PINs and we do not to have to worry about potiential issues with addresses overlap if using the same bus:

add the line in /boot/config.txt:

dtoverlay=i2c-gpio,bus=4,i2c_gpio_delay_us=1,i2c_gpio_sda=23,i2c_gpio_scl=24

Software

-- tested with Python 3.7 --

Install dependencies

pip3 install -r requirements.txt

Launch

python3.7 air-pi.py

Launch in background :

nohup python air-pi.py &

Launch at Boot (with a Cron job)

crontab -e

add to the file:

@reboot /usr/bin/python3.7 [directory]/air-pi.py

Credits

About

Air-Pi is a DIY project to monitor the Air Quality. It uses the Raspberry pi, a cheap air quality sensor, and a small display.

Topics

Resources

Stars

Watchers

Forks

Languages