You are on page 1of 6

Digital aLogic aDesign aLab aSemester aProject aResearch aReport a2020

. Department of Computer Science


(CEL-120):DIGITAL LOGIC DESIGN LAB
2nd aSemester (Spring a2020)
Section: a2-A

Electronic Password Based Door Lock System


Software with Security Alert

Abstract - Presented here is an electronic locking system in which GUI( Graphical User Interface) plays the role of the processing
unit. Access control for the door is achieved using GUI JFrame Forms. This project exhibits a system for locking and unlocking
purposes using a pre-defined password. These locking systems are used to control the movement of door and are functional without
requiring a key to lock or unlock the door. These locking systems are controlled by an onscreen keyboard.The main objective of this
project is to give safety at every common place like home or any public place. In this user would give a known password. The
information will be stored in database. When the correct password will be entered, the back end coding will give instructions to the
linked JFrame Form. That form will perform the action on door unlocking. Thus, what we want is digital technology to construct an
integrated and well customized safety system software at a price which is reasonable.

1. INTRODUCTION 2. a a aMETHODOLOGY

An electronic lock allows activation of an electric appliance only


Science and technology have advanced our life in many on entering the correct password. Such electronic locking systems in
ways. It facilitates the process of industrialization as well as which a microcontroller plays the role of the processing
modernization of the world.Password based locking system unit,interfaced with a 4×4 matrix keypad and a 16×2 LCD to the
is one of the modern electronic lock system. This project user interface. Using this circuit, one can make any electrical
“GUI based password protected locking system software” appliance password protected. It can be used as an electronic door
can be used to provide enough security in various places lock by interfacing the output of the circuit with an electrically
like bank lockers, security doors, On successful password actuated door lock. The system turns on the appliance on entering a
entry, the door unlocks for a specified amount of time three digit’s password. But here we have presented this system
enabling the user to store or restore their valuable through Graphical User Interface which is commonly known as
information.If the password is wrong, then door would GUI. It is a system of interactive visual components for computer
remain locked,denying access to the person. Main idea software. A GUI displays objects that convey information, and
behind this project is of adoor-latch opening using a represent actions that can be taken by the user. The objects change
password entered through onscreen keyboard. As well as color, size, or visibility when the user interacts with them. We have
following the progress bar till 100% when password is introduced JFrame forms that link each other resulting in the
entered wrong for multiple times.User can modify this validation of correct password. The software we have used to
password anytime they want. The main component in the execute this system is NetBeans IDE version 8.2 which supports
system is Graphical User Interface performed on tool Java's Object Oriented Programming Language. The four pillars of
Netbeans version 8.2. Bulk SMS is also used to send a text OOP are abstraction, encapsulation, inheritance, and polymorphism.
message to owner of the house about the breach of asecurity An additional feature has also been coded through Java that
.Onscreen keyboard is used to enter the password.The immediately notifies the user in the form of a text message in order
entered password is compared with the known password. If to secure the system functionally. The owner of the system will
it is acorrect password, the system opens the door and receive a message on his mobile phone if incorrect password is
displays the status of door on message pop up. If the entered or an unkown access has been verified.
password is wrong then door remains closed and displays
a“WRONG PASSWORD” on and an alert is sent to through
SMS. This lock can be used in many fields.
3. a aCOMPONENTS aUSED aIN aDESIGNING aaa 3.3 SHOWMESSAGEDIALOGUE( )

We will be providing the detailed description of every


componenta used in designing this password based door
Most Dialogs present an error message or warning to a user, but
locking system: Dialogs can present images, directory trees, or just about
anything compatible with the main Swing Application that
3.1 GRAPHICAL USER INTERFACE manages them.For convenience, several Swing component
classes can directly instantiate and display dialogs..An alert
A GUI includes a range of user interface elements message will pop up on the screen as a JOptionPane Message
which just means all the elements that display when Dialogue when alerts are observed. This is a review of
you are working in an application. These can include the showMessageDialog() method of JOptionPane Class. This
Input controls such as buttons, dropdown lists, method is a quick and easy way to tell the user about something
checkboxes, and text fields. Informational elements that has happened.
such as labels, banners, icons, or notification dialogs.

Figure 1. GUI Hierarchy Figure a3. Example Alert Messagea a a a a a a a a a a a a

a a a.

3.2 MESSAGE DIALOGUE BOX 3.4 COMFORT ON-SCREEN KEYBOARD PRO

The JOptionPane class is used to provide standard The on-screen keyboard displays the characters that are actually
dialog boxes such as message dialog box, confirm typed in any language, which allows you to type text without a
dialog box and input dialog box. These dialog boxes localized keyboard. You can quickly switch between languages
are used to display information or get input from the with just one click or touch.
user. The JOptionPane class inherits JComponent You can customize the on-screen keyboard's look and behavior
class. the position, size and number of keys.

Figure 3. Onscreen keyboard example


Figure 2. JOptionPane Example

aaaaaaaaaaaa
4. a aWORKING aOF aTHE SYSTEM 6. AIMPLEMENTATION OF CLASSES

Front page display form is shown below. By clicking the next


button select your country page form will be shown.
Select a country and enter your mobile number so that if you
enter wrong password or someone else tries to login then you
would be immediately notified. Contact number details of the
user will be saved automatically in the system after entering it.
Security alert message will be sent to the provided number if
incorrect password is entered or multiple incorrect entries are
noted. Login page form has been displayed asking for the
credentials of the user. Enter correct and accurate information.
Login page form has been displayed asking for the credentials of
the user. Enter correct and accurate information. By entering the
correct password a message dialogue will pop-up verifying that
the password has been entered correctly. As soon as the user
clicks the”OK” button from the message dialogue the door will
be opened in the form of a GIF image.A progress bar as also been
inserted in order to check the movement of the door. Now the
door movement will vary according to percentage of the progress
bar. For example a random time delay at 76% is been shown in
which the door is partially closing. As soon as the progress bar
reaches upto 100% the door will automatically close. It can
opened again by entering the correct password. By entering a
wrong password a message dialogue will be displayed that will
quote” Incorrect Password entered and security alert message has
been sent to the number”.

5. a aFLOW aCHART a Figure a5. Implementation shown above

7. aALGORITHM

The auser acan ause atheir apassword acode ato aenter athe ssystem awith
ajust aa afew asimple apushes aof asome akeys. aThe onscreen

keyboard afunctions aby aentering aa asecret acode, awhich ais auser


aprogrammable. aInitially athe adoor awill abe alocked aWhen athe

auser aenters athe aright apassword door agets aunlocked until

progress bar reaches 100% . aIf athe apassword ais aincorrect alert
will be sent immediately to the number provided that aa awrong
apassword ahas abeen aentered.

aaaaaaaa

aaaaaaaaa Figure a4. aFlow achart aof athe aworking aforms

The above flowchart gives a brief idea as to how the project works.
Initially the password is known. When login form is displayed the
user is prompted to enter the password. The user enters the
password through a keypad which is read by the system coded..
Now the entered password is checked with the known password. If
the password matches, then the door unlocks until the progress bar
reaches hundred. Else the alert messages indicating invalidity of
the password.

Figure a6. Flowchart ofathe aSystem


8. Results and Conclusions Step 4:

Step 1:

Figure 7. Front Page Form Figure 10. Login Page Form

Step 2: Step 5:

Figure 8. Select a Country Page Form Figure 11. Entering correct Password Form

Step 3:
Step 6:

Figure 9. Message pop up Dialogue Figure 12. Password Matched Form


Step 10:
Step 7:

Figure 13. Door Opened Form Figure 16. Incorrect Password Form

Step 8: Step 11:

Figure 14.Door Partially Closed Form Figure 17. Security Alert Form
Step 9: Step 12:

Figure 15. Door Closed at 100% Form


Figure 18. Mobile Screen Form
9. ADVANTAGES
12. FUTURE SCOPE

The security level can be increased by adding a biometric


• This project can be used in offices, companies also at
home. It will provide keyless entry. fingerprint scanner. We can interface sensors like Fire,LPG,
• This can be used in Banks for safety lock. PIR motion detector to microcontroller in case of any
• User don’t have to carry keys along with him. accident so that door will open automatically. We can
• We can monitor parameters like fire, overheat interface camera to the micro controller so that it could
• We can provide voice feedback system capture the picture of the thief who is trying to breach the
• We can interface GSM modem which will send sms if security. This simple circuit can be used at places like home
invalid attempt is made to open the lock. to ensure better safety. With a slight modification, this
project can also be used to control the switching of loads
10. BLOCK DIAGRAM through password. It can also be used at organizations to
ensure authorized access to highly secured places.

13. CONCLUSION

This project is effective in providing enough security as long


as the password is not shared. In future this “Arduino based
password security locking System” can be provided
maximum security by the above enhancements in order to
completely satisfy user’s needs. Hence, a common man can
afford to purchase such locking system in minimal cost to
keep his valuables safely without any worries. Designing this
project through different programming languages e.g. Object
oriented programming can have a more economical and
budget friendly effect on the users. It can also be used as an
individual application security lock for different applications
like Whatsapp, Photo Gallery and other built-in social media
apps. For instance if someone unlocks your phone they still
cannot have access to personal data and information on these
11. VIDEO OF PRACTICAL apps since it is secured with password.
IMPLEMENTATION:
14. ACKNOWLEDGEMENT
Click on the hyperlink below on the image to watch a short
video clip of our GUI based door lock system. Various novelty and modification can be performed in our
project. We can make the locking system more secured by
https://drive.google.com/file/d/1J3HeR5L5Mmx4aRpaC3R6 adding more stage. We can use card authorization system in
A4VHQyZqauzZ/view?usp=sharing which card will be scanned first then password will be
checked later.We can use another technique called
biometrics. Biometrics may be more prominent and a
recognized means of positive identification. Their use may
enhance security. Some new technologies such as fingerprint
scanning, retinal scanning and iris scanning, and voiceprint
identification also can be inserted.

15. REFERENCES

[1] Gyanendra K Verma and Pawan Tripathi, “A digital


security system with door lock system using RFID
technology”, International Journal of Computer
Application,Volume 5–No.11, pp. 6-8, August 2010.
[2] M. K. Shafin, K. L. Kabir, N. Hasan, “Development of aan
RFID based access control system in the context of
Bangladesh”, IEEE Sponsored 2nd International
Conference on Innovations in Information Embedded and
Communication Systems, pp. 1-5 2015.
[3] H. Hassan, R. A. Bakar, A. T. F. Mokhtar, “Face
recognition based on auto switching magnetic door lock
system using micro-controller”, International Conference
on System Engineering and Technology, pp. 1- 6, 2012

You might also like