Chiro Frigo
Hello, I am a first year student 'Multimedia and Creative Technology' at Howest. Everybody has to make their own project and this is mine.
In this project I am making a smart fridge who keeps track of what everybody drinks, because in the youth movement we can never keep track of who drinks what and has to pay. So the fridge I made keeps track of everybody's consumptions.
Supplies
For my project the 'Chiro Frigo' I used:
- Raspberry Pi
- 3 Motion sensor (HCRS501)
- Servo motor
- LCD Display
- DS18B20 temperature sensor
- Fingerprint module
- A3144 hall effect sensor
- Button
- Breadboard power supply
- Resistors
- A lot of wires
The total cost of this project is approximately €150.
Here is my bill of materials.
The Housing
For my housing I made a wooden cabinet in 80cm x 40cm x 40cm with 3 compartments.
On the inside of the door I placed hinges so the door could close and open, and on the outside I put a door knob so the door will be easy to open.
Fritzing Scheme
Before we can start on connecting everything, we have to make a fritzing scheme so we now what to connect to what.
This is my fritzing sheme and breadboard connections.
Tip: makes sure your ground and voltage are always connected correctly, avoid shortages!
Database
To log and store all the data of everyone and what they drank, I made my own database.
The database contains of two connections between the tables.
The Devices and it actions:
- The devices: All the devices are put in the database with their own id
- History: Every move or detection an actuator/sensor does/detects you can find here.
- Actions the devices can do:
The people and their consumptions:
- The peoples: These are stored with their own fingerprnt in the database to recognise them.
- The consumptions: All the drinks that are taken out of the fridge were seen and put in here, you can also see from wich shelf they were taken.
- The drinks that are stored in the fridge
Writing the Code
Next up, we have to write the code to let everything work. But first you will have to install some packages for python. Type these commands in the terminal:
- pip install flask
- pip install adafruit-io
- pip install requirements.txt
Then we'll also have to enable some interfaces, doing the following:
- write the command 'sudo raspi-config' in the terminal
- Go to the third option, Interfaces
- Enable Serial end I2c
The last part is to write the code. You have to code the backend to have a safe website and so you can get your data out of the database. You also have to code the frontend to show that data and to make the site look pretty.
On my github you can find my code for this project.
https://github.com/howest-mct/2022-2023-projectone-VandenHeedeAmelie