Smart Door Lock

by rawanabdelaziz42 in Circuits > Arduino

110 Views, 0 Favorites, 0 Comments

Smart Door Lock

Gemini_Generated_Image_whj0d4whj0d4whj0 (1).png
LOCK

Project Overview

This project introduces a Smart Rhythm-Based Access System that replaces traditional keyholes with a movement-sensitive interface. Using an ultrasonic sensor for presence detection, the lock grants entry only when a specific, pre-programmed rhythmic pattern is entered via two tactile buttons.


Supplies

Gemini_Generated_Image_5z7pqg5z7pqg5z7p.png

Components

  1. Arduino UNO
  2. Breadboard
  3. Ultrasonic
  4. LCD
  5. I2C
  6. Servo motor
  7. Buzzer
  8. 2 buttons
  9. 2 leds
  10. 2 resistors (220ohm)
  11. Jumbers (M/M - M/F)

First

Circuit-Diagram-for-Interfacing-16X2-LCD-with-ESP32-using-I2C_0.png

connect the LCD with I2C and connect the M/F jumpers with I2C and Ultrasonic and M/M jumpers with servo

Second

WhatsApp Image 2026-07-01 at 09.44.54.jpeg

connect the - of the led with 220ohm resistor to ground and the + with pin 4 of the arduino, redo with another led and connect it to pin 5, connect a button led to ground and the other leg to pin 2

Third

WhatsApp Image 2026-07-01 at 09.44.56.jpeg

redo the button circuit and connect it to pin 3, add a buzzer connect the - leg to the ground and the + to pin 12

Fourth

WhatsApp Image 2026-07-01 at 09.44.57.jpeg

connect the I2C to A4 and A5 pins, connect servo to pin 11 and ultrasonic to pin 9 and 10, connect the 5v and Ground of the Arduino to the common ground and VCC of the breadboard

Code section

Arduino code link

https://drive.google.com/file/d/1Mn06NZa7iMc006wv9SVvvRRAG6CDKFkP/view?usp=sharing