Basic Level     Skills: Not specified    
Author email
[email protected]


Combination Lock with LCD and Keypad using pic16f628A:

A Brief Description:

This project is written in C language. The basic user lock is of 2 Digits.
The input is taken from a 4x3 Keypad (please see the schematic for more information) and Display the user input on a 2x16 LCD. A pin is assigned as output for activating and deactivating the lock. For demonstration I have connected an LED to that pin.

How combination lock works:

1. Turn switch on (5V DC voltage power supply)
2. A message name “Combination Lock” will display on LCD at first row,
3. Second row display “Enter Pass:” it asked you to enter password for open doors.
4. In this lock design it has three doors. These are the code locks to open doors “door1=05, door2=28, door3=82, door1 & door2 = 33”.
5. If you entered one of the codes in step 4 then press enter key that door will open. For example, you enter 05 for door 1 it’s then open and close door 1 after 5 seconds.
6. If codes you entered are not matched one of the code in step 4 then led door is not turn on.
7. If your first attempt failed the message “invalid code’ display on screen.
8. Then you pressed any key to clear and you can try for second attempt.

After you have reached three attempts but you have not entered correct password. Next Any Keys press alarm will activate for 5 seconds.

Using the Keypad:
Keypad has 12 keys (4x3) starting from 1,2,3,4,5,6,7,8,9,*,0,# (please see the schematic for layout). Numeric keys are used for entering numbers. '*' is used as the Cancel key and '#' is used as the Enter key.

Download File Information:

Diagram bitmap.bmp
Lock_EBES_MODEL.DSN ( Using Proteus to run this file)
Tags PIC digital lockpic microcontroller combination lockcombination lock projectPIC microcontroller digital lockdigital lock using pic micro

70.27 kB





21 Jul 2014: 19:30 PM
what compiler use to write this project codes? How can i edit this code?
(Required; Min length 5)
(Required; will not be displayed)


Mon Mar 19 2018, 07:33 PM
sorry bedo.. maybe next time
Sun Mar 18 2018, 07:48 AM
Mourya Manojkumar
Please send me circuit diagram and PCB diagram
Thu Mar 01 2018, 05:49 AM
May you please help me with a code for programmable load shedding controlling 4 loads
Sun Feb 25 2018, 08:29 PM
i need of it
Sat Feb 24 2018, 03:35 AM
I want help for digital ic tester
Tue Feb 20 2018, 04:01 PM
Join up.. and post your problem
Mon Feb 19 2018, 11:17 AM
i needs help for my project
Mon Feb 19 2018, 11:16 AM
can i join you guys
Sun Feb 04 2018, 09:38 PM
Hi Dave. Good to see you.
Tue Jan 09 2018, 07:55 PM
It's been a few years since I poked around here - Hi all...



Tue Mar 20 2018, 09:51 AM
Mon Mar 19 2018, 07:48 AM
Fri Mar 16 2018, 10:12 AM
Tue Mar 13 2018, 02:21 PM
Sat Mar 10 2018, 12:09 PM
Fri Mar 09 2018, 06:00 AM
Thu Mar 08 2018, 07:56 AM
Thu Mar 08 2018, 02:57 AM


Guests: 84, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37987
Newest member: LAMBO
Forum Activity
bedo123 Avatar
Posted By bedo123
Mon Mar 19 2018, 07:51 AM
guys right now I m in a lab, is there anyone to he...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Mar 17 2018, 09:26 PM
Khadka_Bishal Avatar
Posted By Khadka_Bishal
Fri Mar 16 2018, 11:34 AM
I want to have a delay of 15 microsecond in 8051 u...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Mar 14 2018, 10:46 PM
Thanks a lot for all your help. It's really hard ...
kks Avatar
Posted By kks
Mon Mar 12 2018, 06:54 PM
As i said, it just needed it's own resistor. It's ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Mar 12 2018, 05:07 AM
It isn't faulty, but very dim. I tried it both way...
kks Avatar
Posted By kks
Mon Mar 12 2018, 01:11 AM
It isn't faulty, but very dim. I tried it both way...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Mar 11 2018, 10:47 PM>...
kks Avatar
Posted By kks
Sun Mar 11 2018, 08:10 PM
It's Society car access system, where only the car...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Mar 11 2018, 07:53 PM
>As for the door locking again, you just have to s...