Professional Documents
Culture Documents
Connectgeeks
Engineer's World
Home Embedded, IT/CS Projects Paper Presentation Search
MAY 10
18
Recent Posts
3 Comments
This is a simple digital code lock security system which can be effectively used for various security purposes.This is basically made using 8051 microcontroller using AT89s52 IC which is the most common one available in market. The keypad is connected to prot 1 of microcontroller. The LCD is connected to P2 of microcontroller. For indication purpose P0 is connected to LEDs, they will glow when code entered by keypad is correct. Since 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 digital lock for Doors is an access control system that allows only authorized persons to access a restricted area. Click on image to view full detail.
Error No. 1: Do not put a heat sink 400W DC Home Inverter Google as a social network? NE555 home Footrests Touchpad GPS Based Navigator and Logger Firewall in Java Video Steganography
Donate
Your support makes our organisation to grow and help people..
pdfcrowd.com
Sample Timmer
1 6
WEEKS
0 2
DAY S
1 4
HOURS
4 1 5 9 2 SECONDS MINUTES
Comments
vino on Video Steganography angel on Firewall in Java hitesh on Controlling A.C devices Using Clap Switches Ajay Thacker on Controlling A.C devices Using Clap Switches ishika on Video Steganography ritzz on Video Steganography rajeev on Embedded Projects rupesh kumar on Controlling A.C devices Using Clap Switches rupal on Video Steganography arissa on Video Steganography padma on Video Steganography Manisha Tyagi on Video Steganography rahul on Video Steganography anup on Video Steganography UDAY on Digital Code Lock Security System.
If we entered a wrong password for more than three times then the system needs to be reset. You can also connect buzzer if anyone put worng code more than three times.
pdfcrowd.com
{ unsigned char i,key=0; for(i=0;i<4;i++) { P1=~(080>>i);//0111 1111 if(P1_0==0) //col check {key=key+0; while(P1_0!=1); return key; } else if(P1_1==0) {key=key+1; while(P1_1!=1); return key; } else if(P1_2==0) {key=key+2; while(P1_2!=1); return key; } key=key+3; } return x; } void getpassword() { //row scanning
pdfcrowd.com
unsigned char i; lcd_com(0xc2); for(i=0;i<4;i++) { usr[i]=getkey(); while(usr[i]==x') {usr[i]=getkey(); } if(usr[i]==10) { lcd_com(010); lcd_data( ); lcd_com(010); i=i-2; } else { lcd_data(030+usr[i]); } } } char checkpwd() { unsigned char i,c=0; for(i=0;i<4;i++) {
pdfcrowd.com
if(pwd[i]==usr[i]) c++; } if(c==4) return 1; else return 0; } void main() { unsigned char t,tries=3; P1=0xFF; lcd_init(); lcd_com(0x0c); lcd_com(001); lcd_puts(*DIGITAL LOCK*); while((tries)&&(t!=1)) { getpassword(); t=checkpwd(); if(t==1) { lcd_com(080); lcd_puts(Authorised ); } else {
pdfcrowd.com
lcd_com(080); lcd_puts(wrong entry ); delayms(); lcd_com(001); tries; lcd_data(030+tries); lcd_puts( tries-left); } } if(t==1) { lcd_com(001); lcd_puts(Thankyou); P0=000; } else { lcd_com(001); lcd_puts(Intruder Detected); P0=0xFF; } while(1){ } }
pdfcrowd.com
header file:
#define LCDPORT P2 #define RS P2_0 #define RW P2_1 #define E P2_2 bit status=0; #define lcd_delay 40 void delay(unsigned int j) { unsigned int i,k; for(i=0;i<j;i++) { for(k=0;k<50;k++); } } void _lcd_init_write(unsigned char a) { RS = 0; RW = 0; LCDPORT=a; E=1; delay(lcd_delay); E=0; } void lcd_com(unsigned char a){
pdfcrowd.com
unsigned char temp; if(status){ status=0; goto a; } RS=0; a: RW=0; temp=a; temp&=0xF0; LCDPORT&=0x0F; LCDPORT|=temp; E=1; delay(lcd_delay); E=0; temp=a<<4; temp&=0xF0; LCDPORT&=0x0F; LCDPORT|=temp; E=1; delay(lcd_delay); E=0; } void lcd_data(unsigned char a){ status=1;
pdfcrowd.com
RS=1; lcd_com(a); } void lcd_init(void){ delay(lcd_delay); _lcd_init_write(030); delay(lcd_delay); _lcd_init_write(030); delay(lcd_delay); _lcd_init_write(030); delay(lcd_delay); _lcd_init_write(020); delay(lcd_delay); lcd_com(028); delay(lcd_delay); lcd_com(4); delay(lcd_delay); lcd_com(085); delay(lcd_delay); lcd_com(6); delay(lcd_delay); lcd_com(1); delay(lcd_delay); } void lcd_puts(char *aaa){
pdfcrowd.com
Ankush_admin
3 Comments
May 7, 2012 at 12:40 PM the above code is correct or not..???i want 2 do that project sir..so plz send me the source code sir..
manoj says:
March 5, 2013 at 3:44 PM sir, i am doing project on digital code lock i want code for this program in verilog plz send me to my mail my mail id is sudaydreams.s@gmail.com
UDAY says:
pdfcrowd.com
Leave a Comment
Name (required) Email (will not be published) (required) Website URL
Submit Comment
Our Traning Partners Learn Embedded at Aims Interactive P Ltd. Best (Jabalpur) Institute Of Embedded in Central India.
ConnectGeeks Websites Solutions Commercial Websites Solution Providers at cheapest prices of India. Email us : connectgeeks@gmail.com Our Services: --IT Solutions--Embedded Solutions-Website Solutions--Security Solutions Headed by the Experts only at ConnectGeeks.
Copyright Connectgeeks
pdfcrowd.com