RoomAlert - Tibo Vanbrabandt
by TiboVanbrabandt in Circuits > Raspberry Pi
255 Views, 3 Favorites, 0 Comments
RoomAlert - Tibo Vanbrabandt
Hey folks, my name is Tibo Vanbrabandt and I'm a student at Howest Kortrijk (Belgium). For my finals I've made a project called "RoomAlert" but what does it stand for?
RoomAlert stands for a device that measures the air quality in your office. Since I've been working in my office all day because of Corona, I don't always realize that the air quality is very bad. That's why I made this project so that I'm aware of the CO2 level in the room. Other then that, It also captures the humidity and temperature.
Get Your Materials
First of all, I'll give you a list of all the items I've used in this project. For the electronics, I've mentioned a PDF file with links to each item. This project will cost you around a 100 euro (Raspberry Pi 4 + Power Supply included).
Electronics
- Raspberry Pi 4
- Raspberry Pi Power Supply
- SD card 16 GB
- I2C LCD 16x2
- DHT22
- CCS811 Air Quality Sensor
- RFID RC522
- Neopixel LED WS2812B
Case
- Wooden case (20cm x 14cm x 10,5cm)
- 2 MDF plates (20cm x 14cm)
- 2 Hinges
Materials
- Drill
- Saw
- Wood file
- Double-sided adhesive tape
- Tec7
Downloads
Wiring the Electronics
Here you can find the connections on the breadboard and also the schema I've made in Fritzing.
I use the DHT22 for capturing humidity and temperature and the CCS811 for CO2 level. The Neopixel ledstrip is used for representing the CO2 level. When the air quality is too bad, an alarm goes on and with the RFID you can shutdown that alarm.
Making the Raspberry Pi Ready
Program requirements:
- Win32 Disk Manager
- PuTTY
- VNC viewer
Setup:
- First of all you'll need to install the image from the official Raspberry Pi website and follow the guidelines how to setup your Raspberry Pi at first website link
- For this project you'll need to active I2C and SPI, you can do this on the GUI version with VNC viewer or with raspi-config
- Connect your Raspberry Pi to the WiFi network so you can work with both network cable and WiFi connection
MySQL Database
For the database, I've used MySQL language and is running on my Raspberry Pi 4 with MariaDB.
Code
For this project I've used Python3, HTML, CSS and Javascript. The code editor I used was Visual Studio Code because it has a nice plugin called "Remote SSH", an easy to use program to edit code remote from your Raspberry Pi.
For the backend I've mostly used Flask.
pip3 install Flask
You can find the code on my github: https://github.com/VanbrabandtTibo/RoomAlert
I've also put a requirements.txt file so you can just install that one and everything will be setup really well.
pip3 install -r requirements.txt
Casing
For the case I've reused one from an older project. The case is 20cm x 14cm x 10,5cm big. I sawed 2 MDF plates with the dimension 20cm x 14cm. For the front panel I've used 2 hinges so I can still open up my project if some components are broken.
Last but not least, I finished the case with a white primer paint.