Skip to content

Project uses servo motor to unlock door lock via Bluetooth/WIFI and if monitoring is active, it will send notification via WIFI if door opens

Notifications You must be signed in to change notification settings

mhamidjamil/Door-Monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(! Valid for door security folder only)

Blynk ESP32/ESP8266 Door Monitoring System

This is a simple door monitoring system using an ESP32/ESP8266 and Blynk app.

Requirements

  • Arduino IDE
  • ESP32 or ESP8266 board support for Arduino IDE
  • Blynk app installed on your smartphone

Hardware

  • ESP32/ESP8266 board
  • Magnetic door switch
  • Servo motor
  • LEDs
  • Resistors
  • Wires
  • Breadboard

Installation

  1. Install the ESP32 board support for Arduino IDE. Follow these instructions.
  2. Install the Blynk library for Arduino IDE. In the Arduino IDE, go to Sketch > Include Library > Manage Libraries, then search for "Blynk" and install it.
  3. Download or clone this repository to your computer.
  4. Open the esp32-door-monitoring-system.ino file in Arduino IDE.
  5. Modify the following lines with your Wi-Fi and Blynk credentials in config.h file (and don't forget to create it too in same folder as config.h). :

your config file will be look like this:

#ifndef CONFIG_H
#define CONFIG_H

#define MY_ID "INSERT_TEMPLATE_ID_HERE"
#define MY_TEMPLATE_NAME "INSERT_TEMPLATE_NAME_HERE"
#define MY_AUTH_TOKEN "INSERT_AUTH_TOKEN_HERE"
#define MY_SSID "INSERT_WIFI_SSID_HERE"
#define MY_PASSWORD "INSERT_WIFI_PASSWORD_HERE"
#endif // CONFIG_H
  1. Connect the hardware as shown in the diagram below.
  2. Upload the code to your ESP32 board.
  3. Open the Blynk app on your smartphone and create a new project.
  4. Add the following widgets to your project:
  • Slider widget on V3
  • Button widget on V7
  1. Set the properties of the widgets as follows:
  • Slider widget on V3:
    • Output: Virtual Pin V3
    • Min value: 0
    • Max value: 180
  • Button widget on V7:
    • Output: Virtual Pin V7
    • Mode: Switch
    • OFF value: 0
    • ON value: 1
  1. Run the project and enjoy monitoring your door!

About

Project uses servo motor to unlock door lock via Bluetooth/WIFI and if monitoring is active, it will send notification via WIFI if door opens

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published