SmartAir

by RubenDelaet in Circuits > Raspberry Pi

1100 Views, 4 Favorites, 0 Comments

SmartAir

35531087_1013704085448115_206930480644227072_n.jpg

This instructable is a step by step guide,
showing you how you could make your own in-house air quality station. The following data is collected with this setup.

· Temperature (in °C)

· Humidity in (in %)

· CO2 (in ppm)

· TVOC (in ppb).

TVOC, otherwise known as Total Volatile Organic Compounds, is a collection of organic chemicals that have a high vapor pressure at ordinary room temperature.

MATERIALS(more information in BOM)

· DHT11

· CCS811

· Raspberry pi 3

· LCD

· 240-OHM Resistor

· Female - Female wires

· Female - Male wires

· Male - Male wires

Creating a Fritzing Schema

Fritzing schema.png

EXTRA INFORMATION

The DHT11 is not the most accurate sensor, but it will definitely to the job. In case you want a more accurate humidity/temperature sensor, you can use the DHT22

BE AWARE

In order to utilize the CSS811 there are some extra configurations required which I won’t explain further. You can find everything here: Adafruit CSS81

The DHT11 is a onewire component that doesn’t actually work as a onewire component. It’s a mess if you want to program it yourself, so I highly recommend using a library: Adafruit DHT**

Making the Database

unknown.png

Utilizing the image above, you should be able to create your own database.
I hosted this database on my Rasberry pi using MariaDB

Building the Temporary Setup

35477868_1012767912208399_6952633826870820864_n.jpg
35479196_1012767938875063_5356903225565904896_n.jpg

I made this setup to test the sensors before I soldered it all togheter.

Making a Responsive Site

35644633_1013691568782700_3899984618647977984_n.png
35821818_1013691778782679_3810056808152694784_n.png
35654437_1013691925449331_1978203477737734144_n.png
35648096_1013692102115980_5773543335637549056_n.png

In order to manage the collected data, I made a site that neatly displays everything in graphs.

Wrapping Up!

35646011_1013668872118303_2586604531726942208_n.jpg
35628566_1013643212120869_9161876201189408768_n.jpg
35531087_1013704085448115_206930480644227072_n.jpg

Once you have finished all the steps succesfully,
you can start the final process, which is covering up the components in a protective case. In order to do so I highly recommend you to solder your components together so they can’t be disconnected by accident.

In the images above you can see some steps I have taken to make my case.

First I soldered everything together, then I could put every component into place and finally I gave my components some extra cover so that they wouldn’t be affected by the heat of the raspberry pi.

TAKE NOTE

I decided to mount my LCD completely outside of the box simply because it produced too much heat (about 5 °C above the normal temperature level on average).

Box:
Dimensions: 15cmx15cmx3cm
Material:Cardboard
Close mechanism: Magnets

Code:
Link