Skip to content

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)

ComponentQuantity
Arduino Uno R31
4x4 Matrix Keypad1
16x2 LCD Display1
Potentiometer1
Breadboard1
Jumper WiresSeveral

🔌 Circuit Wiring (Based on TinkerCAD Layout)

LCD to Arduino

LCD PinArduino Pin
RS7
EN6
D45
D54
D63
D72
VSSGND
VDD5V
VOMiddle pin of potentiometer (others to 5V and GND)
RWGND
A5V (Backlight Anode)
KGND (Backlight Cathode)

Keypad to Arduino

Keypad PinArduino Pin
Pin 19
Pin 28
Pin 3A3
Pin 4A2
Pin 5A1
Pin 6A0
Pin 713
Pin 812

🧠 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