Introduction: IoT CA2
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.
Step 1: 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
File Tree for Laboratory 1
Step 2: 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
Step 3: 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.
We have a be nice policy.
Please be positive and constructive.