Skip to content

Raspberry Pi Air Quality Station

Jason edited this page Mar 13, 2018 · 28 revisions

Introduction

For this project we will be following a blog post for a Raspberry Pi Air Quality Station from rigacci.org. However we will be taking a slight detour from the original part of the blog, so here is what we will be using.

I will be following the blog post line by line for the majority of the tutorial and will try my best to stick with the blog post to avoid confusion, however i will be writing notes in each section as a filler if there were things that i thought were missing.

For the wiring diagrams, i will be using fritzing and will be adding one sensor module at a time to finally work our way to the completed wiring diagram like so.

Basic Software Setup

To open up the configuration for the raspberry pi, run the following in the command line

sudo raspi-config

I was not able to install the following packages, although i did not find it necessary for what we were trying to accomplish for our air quality station.

TODO: put packages that were not able to install

DS3231 RTC

Software Setup

The documentation in the wiki was sufficient to properly install the RTC, although i skipped the AirPi software portion for now as i wanted to focus on getting the RTC working first.

Hardware Setup

As the blog mentioned, the RTC we purchased did had a recharging circuit and the battery we used was a CR2032 which is non-rechargeable. The surface-mount resistor was removed as shown in the diagram.

Continue on with the hardware test as stated in the blog.

So as to why we needed a RTC, the raspberry pi does not have a built-in RTC like your computer. Reason why is because it is so that the manufacturer can save money. The raspberry pi instead asks a server when it boots up to keep track of time, however this relies on internet connection. Since we were dealing with timestamps we thought it was necessary to use a RTC which will keep track of time for the raspberry pi.

VOC/CO2

Useful Diagrams

Raspberry Pi 2 Model B GPIO Header