Skip to content

thedrmaker/DIY-Smart-Door-Lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIY Smart Door Lock — ESP32 + MG995 (Web Control)

Turn your existing door lock into a smart lock without replacing the original lock. This project uses an ESP32 and an MG995 servo to rotate the indoor key/knob, controlled from your phone through a local web page (Open / Close).

Video

Watch the build on YouTube: https://youtu.be/eEBS4yl3FqA

Features

  • Open/Close from a local web page
  • Two Wi-Fi modes:
    • Access Point (AP): ESP32 creates its own Wi-Fi network
    • Station (STA): ESP32 connects to your home Wi-Fi and is reachable by IP
  • 3D-printed mount/case (STL/STEP files included)
  • Simple DIY build, easy to customize

Components

  • ESP32 DevKit (or ESP8266)
  • MG995 Servo Motor
  • USB 5V power supply
  • Jumper wires + screws
  • 3D-printed parts

Wiring (Example)

  • Servo Red → ESP32 5V
  • Servo Brown/Black → ESP32 GND
  • Servo Orange/Yellow → ESP32 GPIO D1

Usage

Access Point (AP)

  1. Connect your phone to the ESP32 Wi-Fi network (SSID you set)
  2. Open the URL shown in Serial Monitor
  3. Use Open / Close

Station (Home Wi-Fi)

  1. ESP32 connects to your home Wi-Fi
  2. Open the IP address shown in Serial Monitor
  3. Use Open / Close

Safety Notes

This is a DIY project for learning and prototyping.

  • Add mechanical limits / safe angles to avoid stressing the lock
  • Use a stable external power supply for the servo
  • Do not treat this as a certified security product

About

DIY smart door lock using ESP32 + MG995 servo with web control (Open/Close) and 3D printed mount

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages