Proposal for Microcontroller-Based Digital Lock System
Course: Microprocessor Programming and Interfacing
Group Members:
Neha Sohail (EL-22019)
Ayesha Aijaz (EL-22048)
Abdul Wasay (EL-22086)
Ismail Khan (EL-22075)
Project Title: Digital Lock System with Keypad, EEPROM, LCD,
and Analog Sensor
Objective:
To design and implement a microcontroller-based digital lock system that utilizes:
A keypad for passcode entry (Digital Input)
EEPROM for secure passcode storage (External Memory)
LCD or 7-segment display for user feedback (Digital Output)
An analog sensor for additional security (Analog Input)
This system ensures access control using a user-set passcode, with an added analog
security check (e.g., light or temperature sensor).
System Components:
Microcontroller:
AT89C51 (8051-based MCU) – Manages all system operations and interfacing.
External Memory:
24C16 EEPROM – Stores passcode securely using the I²C interface.
Input Devices:
4x4 Keypad (Digital Input) – Used to enter the passcode.
Analog Sensor (Analog Input) – Security check using LDR (Light Sensor) or LM35
(Temperature Sensor).
Output Devices:
16x2 LCD OR 7-Segment Display – Displays system status and prompts.
LED Indicator – Lights up when the system is active.
Buzzer – Alerts on incorrect passcode entry.
Working Principle:
1. Passcode Entry: User enters a 4-digit passcode using the 4x4 keypad.
2. EEPROM Verification: The microcontroller reads the passcode from EEPROM (24C16) and
compares it.
3. Analog Security Check: If the passcode is correct, the system checks the analog sensor (LDR,
LM35, etc.).
4. Access Granted/Denied:
o If both checks pass, "ACCESS GRANTED" is displayed, and an LED or relay is activated.
o If either check fails, "ACCESS DENIED" is displayed, and the buzzer sounds.
5. Admin Mode: Users can change the stored passcode by entering a special admin code.
Software & Hardware Requirements:
Programming Language: Assembly Language
Simulation Software: Proteus
Implementation: Breadboard/Vero-board/PCB
Expected Learning Outcomes:
1. 8051 Assembly Programming – Working with registers, loops, and logic in assembly.
2. Peripheral Interfacing – Keypad, EEPROM, LCD, and Analog Sensors.
3. I²C Communication – Using I²C protocol for EEPROM operations.
4. Analog-to-Digital Conversion (ADC) – Processing an analog input for security.
5. Hardware-Software Integration – Understanding microcontroller-based system design.
Conclusion:
This project meets the course requirements by integrating external memory, digital
input, analog input, and display output using a microcontroller programmed in
assembly language. The system provides a real-world security application while
enhancing hardware and software interfacing skills.