Venti - Smart Ventilation

by shannon_goemaere in Circuits > Raspberry Pi

702 Views, 1 Favorites, 0 Comments

Venti - Smart Ventilation

IMG_5385.jpg

This instructable is a step by step guide to make a ventilation system using Raspberry Pi. This was an assignment for school, I study MCT (Media and communication technology) at HOWEST Kortrijk, where we had to use at least 3 different sensors, an actuator and a display.

The ventilation measures the outside and inside temperature, the humidity and the percentage of light.
These data is sent to a database. The values are displayed on a small website I made where you can also add your preferences. The back-end is running on a Raspberry Pi.

Supplies

  • Raspberry Pi 3 B+ with power supply and SD-card
  • 9V battery
  • DHT11 humidity and temperature sensor
  • 2 9V fans
  • OLED display
  • One wire temperature sensor
  • L293D
  • MCP3008
  • Light dependent resistor
  • Jumping wires (male-female and male-male)
  • 4.7k Ohm resistor
  • 10k Ohm resistor
  • Breadboard

    Enclosure
  • Multiplex (18mm and 3mm)
  • Plexiglass (4mm)
  • Screws
  • Paint
  • Wood glue
  • Drills

More information in my Bill of Materials

Circuit

FinalFritzingPic.png

This is the circuit for my project. It contains a lot of wires but it is not that difficult to build.
Make sure to enable the following interfaces on your Raspberry Pi

  • SPI: for MCP
  • I2C: for OLED display

I used the following libraries:

Enclosure

sketch.jpg
IMG_5351.jpg
IMG_5354.jpg

After making the circuit, I started building the enclosure. I wanted to put everything in a miniature kitchen. I used MDF 3mm, 18mm and plexiglass 4mm. I made a lot of holes with a drill to put the cables through.

The sketch was made on a scale of 1:3 cm and 1 box has a length of 0,5cm for a reference.

Database

DB_Venti.PNG

I used this database for the code I link in the next step. It was made with MySQL and hosted on Raspberry Pi with MariaDB.

Downloads

Code

I put all the code in one github repository, you can find the front-end as well as the back-end over there.
Code: My github repository or download and unzipped the files I uploaded here.