Skip to content

pushkarsinghh/Digital-Lock-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Digital Lock System with Keypad and LCD

This is a simple Digital Password Lock System built using Arduino, a 4x4 Keypad, and a 16x2 LCD display. The system prompts users to enter a password, masks the input for privacy, and validates it. If the password matches, access is granted; otherwise, access is denied.

βœ… Built and tested using TinkerCAD Circuits – no hardware required!


πŸ”§ Features

  • 4-digit password authentication
  • Input masking using asterisks (*)
  • LCD feedback for every step
  • Button * clears the input
  • Button # submits the password

🧰 Components Used (Virtual via TinkerCAD)

Component Quantity
Arduino Uno R3 1
4x4 Matrix Keypad 1
16x2 LCD Display 1
Potentiometer 1
Breadboard 1
Jumper Wires Several

πŸ”Œ Circuit Wiring (Based on TinkerCAD Layout)

LCD to Arduino

LCD Pin Arduino Pin
RS 7
EN 6
D4 5
D5 4
D6 3
D7 2
VSS GND
VDD 5V
VO Middle pin of potentiometer (others to 5V and GND)
RW GND
A 5V (Backlight Anode)
K GND (Backlight Cathode)

Keypad to Arduino

Keypad Pin Arduino Pin
Pin 1 9
Pin 2 8
Pin 3 A3
Pin 4 A2
Pin 5 A1
Pin 6 A0
Pin 7 13
Pin 8 12

🧠 Logic Flow

  1. LCD displays "Enter Password".
  2. User presses keys on the keypad.
  3. Input is masked as * on LCD.
  4. Press # to submit.
  5. If password is correct β†’ "Access Granted" If incorrect β†’ "Access Denied"
  6. Press * to reset input anytime.

πŸ’» Code

You’ll find the Arduino .ino code in the digital-lock.ino file. It's clean, well-commented, and easy to understand.


πŸ§ͺ Simulate it Now!

πŸ’» Click here to open the project in TinkerCAD


πŸ“ Project Structure

Digital-Lock-System/
β”œβ”€β”€ digital-lock.ino        # Arduino code  
β”œβ”€β”€ README.md               # Project documentation