Welcome to the ESP32_Smart_door repository!
This project provides a complete solution for building a smart door system that allows you to control and monitor your door from anywhere using the Blynk mobile app. Using the powerful ESP32 microcontroller, this project combines hardware and software to bring convenience and security to your home.
To deploy this project, you need the following software and hardware components:
- VS Code
- Arduino
- PlatformIO IDE Extension
- Blynk App (Android/iOS)
- ESP32
- ESP Cam
- Raspberry Pi
- RC522 - RFID
- Servo SG90 (Door simulator)
- 4x4 Keypad Matrix
- Breadboard, jumper wires or PCB design and soldering
- Install VS Code and PlatformIO IDE Extension
- Clone or download the project
git clone https://github.com/your-username/ESP_RaspberryPi4_Door_lock_system.git
- Open the project in VS Code with PlatformIO
- Configure Blynk and WiFi information (see section below)
- Compile and upload the source 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.
- Save the Template ID and Template Name.
- When you create 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.
- Then 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 the virtual Control Pass switch to enable or disable password entry.
- Set up the virtual Control Door switch to open/close the door remotely.
- You need to create the corresponding Datastreams in the Blynk app to control and monitor the door.
Control Door: Used to control door opening/closing.
Control Pass: Used to enable or disable password entry.
- Set up to receive notifications when the door opens and when incorrect password is entered too many times.
door_warning: Receive notification when incorrect password is entered too many times.
infor_log: Receive notification when the door opens and when a stranger stands in front of the door for too long.
Product Images
Thank you for visiting! I hope this repo is useful for your learning and research. 😊





