Department of Engineering Project Report Title:-8051 Based Digital Code Lock
Department of Engineering Project Report Title:-8051 Based Digital Code Lock
Department of Engineering Project Report Title:-8051 Based Digital Code Lock
Submitted To:
Er. MIRDULA MALHOTRA MAM Department of ECE (LPU)
Submitted By :
MANISH KUMAR PRAKASH KUMAR MANISH KHAKHA
RAJEHWAR YADAV
Acknowledgement
I sincerely feel that the credit of this Project could not be narrowed to only one individual as the whole work is outcome of integrated efforts of all those concerned with it through whose cooperation and effective guidance I could achieve its completion. I wish to place my profound indebtness and deep sense of obligation to Er.,MIRDULA MALHOTRA MAM Senior lecturer Lovely Professional University for providing me with the opportunity to work onsuch an interesting Project. I also want to pay my gratitude and sincere thanks to my esteemed Miss.for being supportive and lenient during the entire tenure of this Project.When emotions are involved words fail to mean. My heart full sincere gratitude to my parents,who have supported, encouraged and helped me throughout my life and academic career. 1. MANISH KUMAR(A52) 2.PRAKASH(A48)
3.MANISH KR. KHAKHA(A49) 4.RAJESHWAR(A50)
TABLE OF CONTENS: ABSTRACT EXPLATION BLOCK DIAGRAM FLOW CHART INTRODUCTION OF SOFTWARE
KEIL PROTEOUS
ABSTRACT
Security is a prime concern in our day-today life. Everyone wants to be as much secure as possible. An access control for doors forms a vital link in a security chain. The microcontroller based Door locker is an access control system that allows only authorized persons to access a restricted area. The system is fully controlled by the 8 bit microcontroller AT89C2051 which has a 2Kbytes of ROM for the program memory. The password is stored in the EPROM so that we can change it at any time. The system has a Keypad by which the password can be entered through it. When the entered password equals with the password stored in the memory then the relay gets on and so that the door is opened. If we entered a wrong password for more than three times then the Alarm is switched on. When we go inside and come back then the microcontroller will sense the person using the Laser light, the microcontroller will automatically open the door for you.
EXPLATION OF PROJECT
Password Based Door Security System using Microcontroller is used in the places where we need more security. It can also used to secure lockers and other protective doors. The system comprises a number keypad and the keypads are connected to the 8 bit microcontroller AT89C2051. This is one of the popular Microcontroller. It has only 20 pins and there are 15 input/output lines. The microcontroller has a program memory of 2 Kilobytes. The microcontroller continuously monitor the keypad and if somebody enters the password it will check the entered password with the password which was stored in the memory and if it they are same then the microcontroller will switch on the corresponding device. The system will allow the person who knows the password and it will not allow who dont know the password and the system will also show the persons who try to break the protection barrier.
BLOCK DIAGRAM
FLOW CHART
forward", "step ove" etc. Select output tag and check "create hex file" box This file you can directly load in 8051 target board and run the application on actual environment.
Pin No.
Name Description
Pin no. 1 Pin no. 2 Pin no. 3 Pin no. 4 Pin no. 5 Pin no. 6 Pin no. 7 in no. 8 Pin no. 9 Pin no. 10 Pin no. 11 Pin no. 12 Pin no. 13 Pin no. 14
VSS Power supply (GND) VCC Power supply (+5V) VEE Contrast adjust RS0 = Instruction input 1 = Data input R/W 0 = Write to LCD module 1 = Read from LCD module EN Enable signal D0 Data bus line 0 (LSB) P D1 Data bus line 1 D2Data bus line 2 D3Data bus line 3 D4Data bus line 4 D5 Data bus line 5 D6 Data bus line 6 D7 Data bus line 7 (MSB)
SCHEMATICS OF PROJECT
PROGRAM:
COMMAND: CLR P3.5 ;FOR RS SRTB P3.6 ;FOR ENABLE MOV P2 ,A RET DATA: SETB P3.0 ;FOR RS SRTB P3.6 ;FOR ENABLE MOV P2 ,A RET
MAIN: MOV A,#01 ACALL COMMAND MOV A,#0C0H ACALL COMMAND MOV A,#LOCK_I ACALL LCD_DAT MOV A,#':' ACALL DATA MOV R1,#05H HERE: MOV A,#5
LCD_START: CLR A MOVC A,@A+DPTR JZ LCD_START_END INC DPTR ACALL DATA SJMP LCD_STRART
LCD_START_END: RET
GET_KEY: MOV KEYVAL,#1H MOV A,#80H MOV TEMP,#04 READ: MOV A,#00H CPL A ANL P2,A
JB COLUMN1,NEXT JNB COL1,$ SETB P3.0 RET NEXT: JB COL2,NEXT1 INC KEYVAL JNB COL2,$ SETB ISKEY RET
NO_KEY: MOV A,,#00H ORL KEYPORT,A INC KEYVAL INC KEYVAL INC KEYVAL RR A MOV DELAY,#10 ACALL DELAYMS DJNZ TEMP,READ
MOV COUNT,#0H INC MAX CHK_KEY: INC COUNT DJNZ MAX, GET_INPUT_NXT MOV DPTR,#GET_INPUT_ERR
CHK: MOV R0,#INPUT CHEK: CLR A MOVC A,@A+DPTR MOV @R0,A CJNE A,B,CHEK INC DPTR INC R0 DJNZ COUNT,CHEK SETB P2.0 RET
CH3EK_12345:
DB
"12345",0H
CHK_MASTER: DB "1234567890",0H
CHK_UPASS: DB "54321",0H
COPY_CODE: MOV R0,#INPUT MOV R1,#UPASS MOV COUNT,#5 COPY_CODE_L1: MOV A,@R0 MOV @R1,A INC R0 INC R1 DJNZ COUNT, COPY_CODE_L1 RET
DELAY_1SEC: MOV R3,#254H BACK: MOV TOMD,#10H MOV TH1,#0B2H MOV TL1,#09H SETB TR1 AGAIN: JNB TF1 AGAIN CLR TR1 CLR TF1 DJNZ R3,BACK RET
ICONS: DB 0XE, 0XA, 0X1F, 0X1F, 0X1B, 0X1B, 0XE, 0X0, 0XE, 0X2, 0X1F, 0X1F, 0X1B, 0X1B, 0XE, 0X0, 0X1F, 0X1B, 0X1B, 0X1B, 0X1B, 0X1F, 0X1B, 0X1F, 0X0, 0X1, 0X3, 0X16, 0X1C, 0X8, 0X0, 0X0
END
CONCLUSION
Our electronic door lock performed as expected. We were able to implement all of the functions specified in our proposal. The biggest hurdle we had to overcome with this project was interfacing the micro controller with the hardware components. We feel that this electronic door lock is very marketable because it is easy to use, comparatively inexpensive due to low power consumption, and highly reliable. This door lock is therefore particularly useful in applications such as hotel room door locks, residential housing, and even office buildings
APPLICATIONS
Electrical devices such us Lights, Computer etc can be controlled by using separate passwords. The system can be easily connected to the personal computer for further control.
REFERENCES:http://microcontroller51.blogspot.in/2011/06/introduction-to-89c51-microcontroller.html http://www.faadooengineers.com/threads/5305-Digital-code-lock-project-report-pdfppt-download
www.8051projects.info/projects.asp http://seminarprojects.com/Thread-microcontroller-based-digital-code-lock--21479 BOOKS: