Introduction: IOT CA2 - Smart Door
Description:
It is a door locking system for a room.
Registered users will be able to use a RFID card to get in, and the lights for the room will turn on. If a wrong RFID card is tapped, the camera will then take a picture, followed by a red led light blinking once. Furthermore, the room has an anti-intrusion feature where an alarm is beeped if motion is detected, when the lights are off. It also has a CCTV function to monitor the room through the web app.
Step 1: Hardware Setup for RPI
1. I2C LCD 16x2 screen
2. Pi camera
3. MFRC522 RFID reader
4. RFID card
5. 2x Red LED, 1x Green LED
6. HC-SR501 PIR Motion Sensor
7. Buzzer
8. 14x M/F Jumper Wires
9. 8x M/M Jumper Wires
10. 3x 220 Ω Resistor
Step 2: Python Files
Files to run the program:
1. RFIDdoor.py
2. room.py
3. server.py
/AssignmentCA2
> RFIDdoor.py
> room.py
> server.py
/Photos
/Camera
/templates
> index.html
> capture.html
> dashboard.html
> dashboard2.html
> history.html
> login.html
> pin.html
/static
/MFRC522
Step 3: Run the Programs
Type python RFIDdoor.py to run the door program
For the room type python room.py and python server.py to start up the web app.