Welcome to the ESP32_Smart_door repository!
This project provides a complete solution for building a smart door system that allows you to control the opening/closing and monitor the door status from anywhere through the Blynk mobile app. Using the powerful ESP32 microcontroller, this project combines hardware and software to bring convenience and security to your home.
To set up this project, you need the following software and hardware components:
- VS Code
- PlatformIO IDE Extension
- Blynk App (Android/iOS)
- ESP32
- Servo SG90 (Door simulator)
- 4x4 Keypad Matrix
- Breadboard, jumper wires or design PCB and solder the circuit
-
Install VS Code and PlatformIO IDE Extension
-
Clone or download the repository
git clone https://github.com/your-username/ESP32_Smart_door.git
-
Open the project in VS Code with PlatformIO
-
Configure Blynk and WiFi information (see below)
-
Compile and upload the code
-
Set up the Blynk app
-
Connect the hardware
To make the project work, you need to configure your Blynk account and project.
- Go to Blynk Console and create an account (if you don't have one).
- Create a New Template for the "Smart Door" project.
- Write down the Template ID and Template Name.
- When creating a new device from this Template, you will receive an Auth Token.
In the src/main.cpp file, you need to replace the following placeholders with your information:
- Enter your Blynk information in the blank spaces.
- Next, enter your WiFi name and password.
#define BLYNK_TEMPLATE_ID "YOUR_BLYNK_TEMPLATE_ID"
#define BLYNK_DEVICE_NAME "YOUR_BLYNK_TEMPLATE_NAME" // Your device name
#define BLYNK_AUTH_TOKEN "YOUR_BLYNK_AUTH_TOKEN"
char ssid[] = "YOUR_WIFI_SSID"; // Your WiFi network name
char pass[] = "YOUR_WIFI_PASSWORD"; // Your WiFi password- Set up a virtual switch Control Pass to allow or deny password entry.
- Set up a virtual switch Control Door to open/close the door remotely.
- You need to create corresponding Datastreams on the Blynk app to control and monitor the door
Control Door: Used to control door opening/closing.
Control Pass: Used to allow or deny password entry.
- Set up to receive notifications when the door opens and when the wrong password is entered too many times.
door_warning: Receive notification when wrong password is entered too many times.
infor_log: Receive notification when the door opens.
- PCB
- Product Images
- Product Demo Video
Thank you for visiting! I hope this repository is useful for your learning and research. 😊

