Smart Door Unlock System
The door is crucial in terms of home security. The owner will keep the door locked at all times to keep the house secure. However, if the owner is in a hurry to leave the house, they may forget to lock the door, or they may be unsure whether they have closed the door or not. For this IoT project, we
2025-06-28 16:29:10 - Adil Khan
Smart Door Unlock System
Project Area of Specialization Internet of ThingsProject SummaryThe door is crucial in terms of home security. The owner will keep the door locked at all times to keep the house secure. However, if the owner is in a hurry to leave the house, they may forget to lock the door, or they may be unsure whether they have closed the door or not. For this IoT project, we created aSmart Wi-Fi door lock using theESP32-CAM and the Blynk App. When someone presses the doorbell in this ESP32CAM Wi-Fi lock project, you will receive an alert on your phone with a photo of that person. After reviewing the photo, you can also quickly unlock the door with your mobile phone. This not only saves the cost of purchasing expensive LEDs, but it also saves the cost of hiring a security guard.
Project ObjectivesTo save the effort and time
-
To save money on the installation of a costly security system
-
To make security access easy to the general public
-
To make cost-effective system
-
To reduce the amount of electricity used
-
To reduce the cost of other equipment and the high cost of implementation.
First we program the ESP32CAM, using FTDI232 USB to Serial interface board. By the help of jumper wire we made a connection
Then i opened Audrino and write source code
Before uploading the code to ESP32CAM,we checked the following setting:
-
Board Settings:
-
Board: “ESP32 Wrover Module”
-
Upload Speed: “921600”
-
Flash Frequency: “80MHz”
-
Flash Mode: “QIO”
-
Partition Scheme: “Hue APP (3MB No OTA/1MB SPIFFS)”
-
Core Debug Level: “None”
-
-
COM Port: COM3
-
GPIO 0 must be connected to GND pin while uploading the sketch
-
After connecting GPIO 0 to the GND pin, press the ESP32 CAM on-board RESET button to put the board in flashing mode.
Then we set the interface of the project on the Blynk App.
Open the project in the Blynk AppClickon the “+” icon on the top.
-
Select the Image Gallery Widget from the Widget Box
(Setting: Pin- V1) (Function: show the image) -
Select the Styled Button from the Widget Box
(Setting: Pin- GP14, Mode- PUSH) (Function: capture photo) -
Select the Styled Button from the Widget Box
(Setting: Pin- GP12, Mode- SWITCH) (Function: Unlock/Lock door) -
Select the Notification from the Widget Box
(Function: get the notification)
After the Blynk app is set up, the next step is to test the circuit.
By Supply 12V DC to this smart WiFi door lock and connect your smartphone with the same WiFi network.
Now if you press the push button you should get a notification on the mobile phone.
After that click on the ‘Take Picture’ button to get the picture and then click on the ‘Unlock Door’ button to control the 12v electronic lock.
Benefits of the Project- This smart door lock system improves the security of the home.
- It costs less than other smart door lock systems.
- It saves electricity by eliminating the need for LEDs that are linked to cameras.
- It is convenient because the user does not have to go to the gate/door to unlock it; instead, the user can unlock the door while still sitting in their rooms.
- This system improves security by allowing the user to see who is at the door and take photographs of them.
IOT platform in form of Blynk App
This Android application is developed to establish connection with the lock through smart phone.
Software
Arduino
Hardware
Esp32 Cam
FTDI232 USB to Serial interface board
Project Board
The source code:
To programme the esp32 camera
Final Deliverable of the Project HW/SW integrated systemCore Industry SecurityOther Industries IT Core Technology Internet of Things (IoT)Other Technologies OthersSustainable Development Goals Decent Work and Economic GrowthRequired Resources| Item Name | Type | No. of Units | Per Unit Cost (in Rs) | Total (in Rs) |
|---|---|---|---|---|
| Total in (Rs) | 29800 | |||
| ESP32-CAM | Equipment | 2 | 2000 | 4000 |
| Electronic door lock 12v | Equipment | 1 | 1000 | 1000 |
| TIP122 NPN Transistor | Equipment | 4 | 50 | 200 |
| 7805 voltage Regulator (5v) | Equipment | 2 | 100 | 200 |
| 10k Resistors | Equipment | 6 | 50 | 300 |
| Capacitor-220uF | Equipment | 2 | 400 | 800 |
| Over heads | Miscellaneous | 1 | 5000 | 5000 |
| 12V DC adaptor | Equipment | 2 | 300 | 600 |
| FTDI232 USB to Serial interface board | Equipment | 6 | 700 | 4200 |
| jumper wires | Equipment | 20 | 300 | 6000 |
| Printing | Miscellaneous | 200 | 20 | 4000 |
| Stationery | Miscellaneous | 5 | 200 | 1000 |
| switch board | Equipment | 1 | 2500 | 2500 |