The Smart Door Lock System enhances security and convenience by using modern authentication methods like biometric scanning, RFID/NFC cards, and mobile app control. It incorporates components such as an ESP32 microcontroller, a 4x4 keypad, and a servo motor to allow authorized users to unlock doors remotely and track access logs. The project showcases a practical application of embedded systems in smart security solutions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
15 views10 pages
IoT Assignment2 SmartDoorLockSystem
The Smart Door Lock System enhances security and convenience by using modern authentication methods like biometric scanning, RFID/NFC cards, and mobile app control. It incorporates components such as an ESP32 microcontroller, a 4x4 keypad, and a servo motor to allow authorized users to unlock doors remotely and track access logs. The project showcases a practical application of embedded systems in smart security solutions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10
Smart Door Lock System
Group Members:
1. Darshan Kanzariya -2202031000044
2. Dalwadi Vaibhav - 2302031030012
3. Modh Subham - 2302031030039
4. Raidas Abhishek - 2302031030095
Problem Statement: • Traditional door lock systems often rely on physical keys, which can be lost, stolen, or duplicated, leading to security vulnerabilities. Additionally, conventional locks lack remote access control, making it difficult for homeowners or businesses to monitor and manage entry in real time. • A Smart Door Lock System aims to enhance security, convenience, and accessibility by incorporating modern authentication methods such as biometric scanning, RFID/NFC cards, PIN codes, and mobile app control. The system should allow authorized users to unlock doors remotely, track access logs, and integrate with smart home ecosystems. Components Used: • ESP32 - Microcontroller for processing. • 4x4 Keypad - For entering the passcode. • Servo Motor - To lock and unlock the door. • Buzzer - To trigger an alarm on incorrect attempts. • Breadboard and Jumper Wires - For connections. • Power Supply - To power the ESP32. • Resistors - If required. Circuit Diagram: Working Principle: • 1. User enters a passcode on the 4x4 Keypad. • 2. The ESP32 checks if the passcode is correct. • 3. If correct, the servo motor rotates to unlock the door. • 4. If incorrect, a buzzer sounds an alarm. • 5. After 3 wrong attempts, system locks for security. Code Implementation: #include <ESP32Servo.h> byte rowPins[ROWS] = {23, 19, 18, 5}; #include <LiquidCrystal_I2C.h> byte colPins[COLS] = {17, 16, 4, 2}; #include <Keypad.h> bool isDoorLocked = true; #include <Password.h> Password password = Password("1234"); #define servoPin 15 byte maxPasswordLength = 6; byte currentPasswordLength = 0; Servo servo; Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS); LiquidCrystal_I2C lcd(0x27, 16, void setup() { 2); Serial.begin(115200); servo.attach(servoPin); const byte ROWS = 4; servo.write(10); const byte COLS = 4; lcd.init(); lcd.backlight(); char keys[ROWS][COLS] = { lcd.setCursor(0, 0); {'1', '2', '3', 'A'}, lcd.print("Door LOCK System"); {'4', '5', '6', 'B'}, delay(2000); {'7', '8', '9', 'c'}, lcd.clear(); {'*', '0', '#', 'D'}, } }; void loop() { } lcd.setCursor(3, 0); void doorLocked() { isDoorLocked ? lcd.print("DOOR LOCKED") : if (password.evaluate()) { lcd.print("DOOR OPEN"); servo.write(10); char key = keypad.getKey(); displayMessage("Password Correct", "LOCKED"); Serial.println(key); } else { if (key != NO_KEY) { displayMessage("Wrong Password", "Try Again"); delay(100); } if (key == '#') { resetPassword(); resetPassword(); } } else if (key == '*') { void doorOpen() { isDoorLocked = !isDoorLocked; if (password.evaluate()) { isDoorLocked ? doorLocked() : doorOpen(); servo.write(180); } else { displayMessage("Password Correct", "UNLOCKED"); processNumberKey(key); } else { } displayMessage("Wrong Password", "Try Again"); } } } resetPassword(); void processNumberKey(char key) { } if (currentPasswordLength < maxPasswordLength) { void resetPassword() { lcd.setCursor(currentPasswordLength + 5, 1); password.reset(); lcd.print("*"); currentPasswordLength = 0; password.append(key); lcd.clear(); currentPasswordLength++; lcd.setCursor(0, 0); } } void displayMessage(const char *line1, const char *line2) { lcd.clear(); lcd.setCursor(0, 0); lcd.print(line1); lcd.setCursor(3, 1); lcd.print(line2); delay(3000); lcd.clear(); } Screenshots of the Wokwi simulation: Conclusion: • The Smart Door Lock System provides a secure, efficient, and cost- effective solution for access control. • By integrating an ESP32 microcontroller, a 4x4 keypad, a servo motor, and a buzzer, it ensures reliable authentication and security. • The system can be further enhanced with IoT connectivity, biometric authentication, and remote monitoring to improve safety and convenience. • This project demonstrates a practical implementation of embedded systems in smart security applications.