Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚪✨ Smart Door with ESP32 and Blynk ✨🚪

ESP32 Badge Blynk Badge C++ Badge


OverviewInstallation and Usage GuideBlynk SetupFinal Product



🚀 Overview

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.


🛠️ Installation and Usage Guide

To set up this project, you need the following software and hardware components:

Software Requirements:

  • VS Code
  • PlatformIO IDE Extension
  • Blynk App (Android/iOS)

Hardware Requirements:

  • ESP32
  • Servo SG90 (Door simulator)
  • 4x4 Keypad Matrix
  • Breadboard, jumper wires or design PCB and solder the circuit

Basic Steps:

  • 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

    Image


⚙️ Blynk Setup

To make the project work, you need to configure your Blynk account and project.

1. Create a new project on Blynk Console

  • 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.

2. Update the information in the source code

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

3. Set up Datastreams on Blynk app

  • 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.

Image

4. Set up Events & Notifications on Blynk

  • 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.

Image

🚩 Final Product

  • PCB

image

image

  • Product Images

Image

Image

Image

  • Product Demo Video

Image




Thank you for visiting! I hope this repository is useful for your learning and research. 😊

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages