IoT CA2
Project Description:
A research facility that handles biohazard material. Each Pi represents a research and development room equipped with a temperature sensor, RFID scanner, LCD screen, Buzzer and an LED.
- The temperature sensor is used for monitoring the temperature and humidity of the rooms.
- RFID scanner is used for verification of employees.
- LCD screen is to show the employee if his/her employee card has been verified/approved after tapping.
- Buzzer and LED are used to alarm the employees in the case of an emergency.
Amazon Web Services IoT Console is used as the central system for collecting and sending data. Using the MQTT protocol, the cloud is responsible for managing the labs as well as the server.
Importing the Codes for the Server
The codes required in this project is written in Python. The program runs on the Flask framework and all the sensors are controlled by the web GUI. There is only one main file required to run for the program to start up. (iotProject.py)
File Tree for Server
- IOT_CA2
- app
- databases
- static
- templates
- accesslog.html
- base.html
- homepage.htlm
- lab1.html
- lab2.html
- room_status.html
- views
- __init__.py
- ajax.py
- reports.py
- room_status.py
- __init__.py
- models.py
- iotProject.py
- app
File Tree for Laboratory 1
- alarm.py
- greenhouse.py
- MRFC522.py
- modules.py
- Read.py
- Write.py
Setup Your Hardware
The items that are needed in this project are:
- An LED bulb
- A Buzzer
- An RFID scanner
- An RFID card (To scan with)
- An LCD screen
- A temperature sensor
Run the Program
All you have to do is open up command prompt, change directory into the main folder which as iotProject.py as well as the /app folder.
Lastly, type in "python iotProject.py" and it should start up the web GUI.
For the labs, enter your Pi, and type in "python greenhouse.py" and it will start sending data to AWS.