EEE226
MINI PROJECT 2022/2023
TITLE:
SECURITY PASSWORD DOORLOCK
NAME:
1. KHALISHAH BINTI KADER MYDIN (159242)
2. NUR NISA ALYA BINTI MOHAMAD AZIDIN (158670)
SUPERVISOR:
DR. AHMAD NAZRI ALI
1.0 AIM
To demonstrate a Password based Door Lock System using 8051 Microcontroller.
2.0 OBJECTIVES
i. To design a system that can ensure the safety of surrounding people by
interfacing the I/O device with microcontroller.
ii. To build a circuit of the door lock system.
iii. To program the microcontroller by using assembly language
3.0 INTRODUCTION
A simple project titled the "Security password door lock system using 8051
Microcontroller" offers a secured password as the door unlocking system. New,
improved locking solutions are substituting older lock systems that use a mechanical
lock and key mechanism. These methods merge mechanical and electronic
components and are extremely intelligent. These novel lock systems' ease of use and
outstanding efficiency are among their outstanding characteristics.
Such an automatic lock system includes an electronic control component that
uses a password to control the output load. A motor, lamp, or any other mechanical
or electrical load will be this output load. The invention of the electronic code lock
system utilizing an 8051 microcontroller enables control of the load triggering the
action. It is a straightforward embedded system that receives input from the
keyboard and operates on the output as needed.
In this system, an 8051 microcontroller is used to display a password-based door
lock system. When the right code or password is input from the user, the door is
unlocked, allowing the user access to the secured area. If more people arrive, they
will once again be requested for the password. The door would remain closed,
preventing access, if the password entered was incorrect.
4.0 METHODOLOGY
Components List
• 8051 Microcontroller (AT89S51)
• 4x4 Keypad
• 12V Relay
• 16x2 LCD Module
• Transistor – BC548
• Diode - 1N4007
• 11.059Mhz - Crystal
• Push Button Switch
• 33pF Capacitor
• 10uF Capacitor
• 0.1uF Capacitor
• 10K ohm Resistor
• 8.2K ohm Resistor
• 4.7K ohm Resistor
• 100 ohm Resistor
• 330 ohm Resistor
• IR Sensor
• 7-segment
• Buzzer
• Breadbords
• Jumper
Block Diagram to Illustrate Password Digital Lock
4x4 Keypad 16x2 LCD Screen
8051 Buzzer
Microcontroller
IR Sensor 7-segment
Schematic Diagram of Port Connection
Port Connection
PORT CONNECTION PORT CONNECTION
P0.0 LCD DB0 P2.0 Relay
P0.1 LCD DB1 P2.1 IR Sensor (Input)
P0.2 LCD DB2 P2.2 IR Sensor (Output
P0.3 LCD DB3 P2.3 Buzzer
P0.4 LCD DB4 P2.4 -
P0.5 LCD DB5 P2.5 LCD E
P0.6 LCD DB6 P2.6 LCD R/W
P0.7 LCD DB7 P2.7 LCD RS
P1.0 7-Segment a P3.0 Keypad R1
P1.1 7-Segment b P3.1 Keypad R2
P1.2 7-Segment c P3.2 Keypad R3
P1.3 7-Segment d P3.3 Keypad R4
P1.4 7-Segment e P3.4 Keypad C1
P1.5 7-Segment f P3.5 Keypad C2
P1.6 7-Segment g P3.6 Keypad C3
P1.7 - P3.7 Keypad C4
Flow Chart
5.0 CONCLUSION
In conclusion, this system can slowly solve daily life problems which involve the
security of people surrounding. We hope that this mini project can be carried out
successfully and completed withing the time given.
6.0 REFERENCES
1. CircuitsToday. (2012, Jun 2012). Interfacing LED and push button switch to 8051. Retrieved
from: [Link]
2. Mechatrofice. (2021 October 18). Keypad Interfacing with Arduino 4x4, 4x3 with LCD
connection and code. Retrieved from : [Link]
arduino
APPENDIX
List of Component Needed
Bil COMPONENT QUANTITY
1. 8051 Microcontroller 1
2. 4x4 Keypad 1
3. 12V Relay 1
4. 16x2 LCD Module 1
5. Transistor - BC548 1
6. Diode-1N4007 1
7. 11.0597Mhz - Crystal 1
8. Push Button Switch 1
9. 33pF Capacitor 2
10. 10uF Capacitor 1
11. 0.1uF Capacitor 1
12. 10K ohm Resistor 1
13. 8.2K ohm Resistor 1
14. 4.7K ohm Resistor 1
15. 100 ohm Resistor 1
16. 330 ohm Resistor 1
17. 7-Segment Display 1
18. Buzzer 220Hz 1
19. IR Sensor 1