You are on page 1of 24

PASSWORD AND BLUETOOTH CONTROLLED DOOR

LOCKING SYSTEM

A mini project report submitted forth partial fulfillment for the requirements of
the Award of the Bachelor of Technology

By

Jawaharlal Nehru Technological University, Kakinada

In the Discipline of

Electrical & Electronics Engineering

Submitted by

S.GANESH (17345A0220)

B.SUKANYA (17345A0217)

T.MADHURI (16341A02A0)

L.LAKSHIMAN RAO (16345A0217)

Under the esteemed guidance of

MR.V.SRIKANTHBABU

Assistant Professor

Department of Electrical & Electronics Engineering

GM R Institute of Technology

An Autonomous Institute, Affiliated to JNTUK, Kakinada, NAAC “A” Graded,


NBA Accredited, ISO 9001:2008 Certified Institution

G. M. R. Nagar, Rajam-532 127, A.P

October -2018
CERTIFICATE

This is to certify that the mini project report entitled “PASSWORD AND
BLUETOOTH CONTROLLED DOOR LOCKING SYSTEM” submitted
by GANESH S, in partial fulfillment for the award of B. Tech. Degree in the
discipline of “Electrical & Electronics Engineering” to the Jawaharlal Nehru
Technological University, Kakinada is a record of bona fide work carried out
under our guidance and supervision.

The results embodied in this report have not been submitted to any other
University or Institute for the award of any degree or diploma.

Signature of the guide Signature of the H.O.D


Mr.V.Srikanth babu Dr. P. Bharani Chandra Kumar
Asst. Professor Professor & H.O.D
Dept. of EEE Dept. of EEE
GMRIT, Rajam GMRIT, Rajam
ACKNOWLEDGEMENT

It gives me an immense pleasure to express deep sense of gratitude to my guide,


Mr.V.Srikanth Babu, Asst. Professor, Department of Electrical and Electronics Engineering
of whole hearted and invaluable guidance throughout the report. Without his sustained and
sincere effort, this report would not have taken this shape. He encouraged and helped me to
overcome various difficulties that I have faced at various stages of my report.
I would like to sincerely thank N.S.S. Rama Krishna, Assistant Professor,
Department of Electrical and Electronics Engineering, for giving his direct and indirect
support throughout this mini project report.
I would like to sincerely thank Dr. P. Bharani Chandra Kumar, Professor& HOD,
Department of Electrical and Electronics Engineering, for providing all the necessary
facilities that led to the successful completion of my report.

I take privilege to thank our Principal Dr. C.L.V.R.S.V. Prasad and Vice Principal
Dr. J. Raja Murugadoss, who have made the atmosphere so easy to work. I shall always be
indebted to them.

I would like to thank all the faculty members of the Department of Electrical and
Electronics Engineering for their direct or indirect support and also all the lab technicians for
their valuable suggestions and providing excellent opportunities in completion of this report.
ABSTRACT

Security has always been a major concern for the households and the office
environment, and for this concern various approaches are in place to address the problem.
Most of the major door lock security systems have several loopholes which could be broken
down to gain access to the desired places, and it creates a concern for a secure lifestyle and
proper working environment. Additionally, terrorism and unauthorized access to places have
become a major issue now-a-days, and there is a need for a secure system to prevent
unauthorized access especially in shared access environment.
With this consideration, we will design “PASSWORD AND BLUETOOTH
CONTROLLED DOOR LOCKING SYSTEM” developed. We know the saying very well-
„Prevention is better than cure‟, rather than to face the loss it is much better to take necessary
actions to eradicate that issue before it happens.
In this project is related to smart door locking system by using based on the password
and mobile app also. When it comes to our house, this concept can be apply incorporated to
make it smarter, safer and automated. There is the need for tighter security means, and one of
the most security technologies that can be employed is password based door lock. The door
will control by two ways. In that one is using code and another one is using the mobile app.
INDEX

Contents page no.

Chapter 1 1-4

1.1: Necessity
1.2: Introduction
1.3: Methodology

Chapter 2 4-8

2.1: Components requirement


2.1.1: Hardware
2.1.2: Software
2.2: Components description
Chapter 3
3.1: Block Diagram
3.2: Circuit Diagram
3.3: Working
3.4: Program (Code)
Chapter 4
4.1: Advantages
4.2: Disadvantages
4.3: Applications
Literature review 8-16
Feature development
Conclusions 29-20
References 20-13
LIST OF FIGURES
Fig 1: Arduino uno
Fig 2: servo motor
Fig 3: keypad
Fig 4: HC-05 Bluetooth module
Fig 5: 9V Battery with connector
Fig 6: Jumper wires
Fig 7: Arduino IDE software
Fig 8: Bluetooth controlled App
Fig 9: Bluetooth module with arduino
Fig 10: Block diagram

LIST OF TABLES:

TB 1: Bluetooth module pin description


CHAPTER 1

1.1 Necessity

The main aim for providing locks for our home, school, office, and building is for
security of our lives and property. It is therefore important to have convenient way of achieving
this goal. Automatic door system has become a standard feature on many different types of
buildings and homes. And they are becoming popular every day to develop an effective
electronic device which provides security. Home security has been a major issue because of the
increase in crime rate and everybody wants to take proper action to prevent unauthorized user.so
by providing this type of door looking systems for better protection.

1.2: Introduction
In traditional lock systems using mechanical lock and key mechanism are being replaced by
new advanced techniques of locking system. These techniques are an integration of mechanical
and electronic devices and are highly intelligent. One of the prominent features of these
innovative lock systems is their simplicity and high efficiency.
With this consideration, we will design “Password and Bluetooth Controlled Door Locking
System” developed. We know the saying very well- „Prevention is better than cure‟, rather than
to face the loss it is much better to take necessary actions to eradicate that issue before it
happens. In this project is related to smart door locking system by using based on the password
and mobile app also. When it comes to our house, this concept can be apply incorporated to
make it smarter, safer and automated. There is the need for tighter security means, and one of the
most security technologies that can be employed is password based door lock.
Such an automatic lock system consists of electronic control assembly, which controls the
output load through a password. This output load can be a motor or a lamp or any other
mechanical/electrical load. Where in once the correct code or password is entered, the door is
opened and the concerned person is allowed access to the secured area. Again, if another person
arrives, it will ask to enter the password. If the password is wrong, then door would remain
closed, denying access to the person.

1
1.3: Methodology

The basic idea behind the working of door lock lies in the interpretation of the data or ASCII
characters sent by the Android phone by means of the developed app. To interpret the data sent
by the phone, firstly a Bluetooth module (HC-05) which is configured by default at a baud rate of
9600 is connected to the Microcontroller which is also configured at the same baud rate. The
data which is been received by the HC-05 is then given to the Microcontroller (ATmega16),
which understands in ASCII format, now depending upon the received set of character
operations are performed whether to unlock the door or to lock it. The app is well protected by
means of a password thus neglecting any fraud access to the door and is been avoided to be
provoked by anonymous user. This is highly useful when we are trying to automate the home.
Although our Application also provides a better amount of security for the user, by means of
accessing via a password.

2
CHAPTER 2

2.1: Components requirement

In this project we used two types of tools:-


1: Hardware
2: Software
2.1.1: Hardware requirement
1) Arduino uno
2) Servo motor
3) 4*4 matrix keypad
4) HC-05 Bluetooth module
5) Battery
6) Jumper Wires [M-M, M-F, F-F]
2.1.2: Software requirement
1) Arduino IDE
2) Bluetooth controller app

2.2: Components Description

1) ARDUINO UNO [ATMEGA328P MICROCONTROLLER]


The Arduino UNO is an open-source microcontroller board based on
the Microchip ATmega328P microcontroller and developed by Arduino.cc. The board is
equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to various
expansion boards (shields) and other circuits. The board has 14 Digital pins, 6 Analog pins, and
programmable with the Arduino IDE (Integrated Development Environment) via a type B USB
cable. It can be powered by a USB cable or by an external 9 volt battery, though it accepts
voltages between 7 and 20 volts. It is also similar to the Arduino Nano and Leonardo. The
hardware reference design is distributed under a Creative Commons Attribution Share-Alike 2.5
license and is available on the Arduino website. Layout and production files for some versions of
the hardware are also available. "Uno" means one in Italian and was chosen to mark the release

3
of Arduino Software (IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were
the reference versions of Arduino, now evolved to newer releases. The Uno board is the first in a
series of USB Arduino boards, and the reference model for the Arduino platform. The
ATmega328 on the Arduino Uno comes preprogrammed with a boot loader that allows
uploading new code to it without the use of an external hardware programmer. It communicates
using the original STK500 protocol. The Uno also differs from all preceding boards in that it
does not use the FTDI USB-to-serial driver chip. Instead, it uses the Atmega16U2 (Atmega8U2
up to version R2) programmed as a USB-to-serial converter.

Fig 1: Arduino uno


2) SERVO MOTOR:
A servomotor is a rotary actuator or linear actuator that allows for precise control of angular
or linear position, velocity and acceleration. It consists of a suitable motor coupled to a sensor for
position feedback. It also requires a relatively sophisticated controller, often a dedicated module
designed specifically for use with servomotors. Servomotors are not a specific class of motor
although the term servomotor is often used to refer to a motor suitable for use in a closed-loop

4
control system. Servomotors are used in applications such as robotics, CNC
machinery or automated manufacturing.

The servo motor is small and efficient, but serious to use in some applications like precise
position control.This motor is controlled by a pulse width modulator signal.
The applications of servo motors mainly involve in computers, robotics, toys, CD/DVD players,
etc.

Fig 2: servo motor

3) KEYPAD:

Keypads are used in all types of devices, including cell phones, fax machines, microwaves,
ovens, door locks, etc. They‟re practically everywhere. Tons of electronic devices use them for
user input. So knowing how to connect a keypad to a microcontroller such as an Arduino is very
valuable for building many different types of commercial products. At the end, when all is
connected properly and programmed, when a key is pressed, it shows up at the Serial Monitor on
your computer. Whenever you press a key, it shows up on the Serial Monitor. But for now, for
simplicity purposes, we start at simply showing the key pressed on the computer.

For this project, the type of keypad we will use is a matrix keypad. This is a keypad that
follows an encoding scheme that allows it to have much less output pins than there are keys. For
example, the matrix keypad we are using has 16 keys (0-9, A-D, *, #), yet only 8 output pins.
With a linear keypad, there would have to be 17 output pins (one for each key and a ground pin)
in order to work. The matrix encoding scheme allows for less output pins and thus much less

5
connections that have to be made for the keypad to work. In this way, they are more efficient
than linear keypads, being that they have less wiring.

With the keypad facing up so that the keys are up and facing you, from left to right, the 1st 4 pins
are the row pins and the last 4 pins are the column pins.

Fig 3: keypad

4) BLUETOOTH DEVICE HC-05 :


HC-05 Bluetooth Module is an easy to use Bluetooth SPP (Serial Port Protocol) module,
designed for transparent wireless serial connection setup. Its communication is via serial
communication which makes an easy way to interface with controller or PC. HC-05 Bluetooth
module provides switching mode between master and slave mode which means it able to use
neither receiving nor transmitting data.
Specification:
 Model: HC-05
 Input Voltage: DC 5V
 Communication Method: Serial Communication
 Master and slave mode can be switched

6
Fig 4: HC-05 Bluetooth module

TB 1: Bluetooth module pin description

5) BATTERY:
The nine-volt battery, or 9-volt battery, is a common size of battery that was introduced for
the early transistor radios. It has a rectangular prism shape with rounded edges and a polarized
snap connector at the top. This type is commonly used in walkie-talkies, clocks and smoke
detectors. The nine-volt battery format is commonly available in primary carbon-zinc and

7
alkaline chemistry, in primary lithium iron disulfide, and in rechargeable form in nickel-
cadmium, nickel-metal hydride and lithium-ion. Mercury-oxide batteries of this format, once
common, have not been manufactured in many years due to their mercury content. Designations
for this format include NEDA 1604 and IEC 6F22 (for zinc-carbon) or MN1604 6LR61 (for
alkaline). The size, regardless of chemistry, is commonly designated PP3-a designation
originally reserved solely for carbon-zinc, or in some countries, E or E-block.

Fig 5: 9V Battery with connector


Most nine-volt alkaline batteries are constructed of six individual 1.5 V LR61 cells enclosed in
a wrapper. These cells are slightly smaller than LR8D425 AAAA cells and can be used in their
place for some devices, even though they are 3.5 mm shorter. Carbon-zinc types are made with
six flat cells in a stack, enclosed in a moisture-resistant wrapper to prevent drying. Primary
lithium types are made with three cells in series.
In 2007, 9-volt batteries accounted for 4% of alkaline primary battery sales in the United States.
In Switzerland in 2008, 9-volt batteries totaled 2% of primary battery sales and 2% of secondary
battery sales.

6) JUMPER WIRES:
A jump wire (also known as jumper wire, or jumper) is an electrical wire, or group of them in
a cable, with a connector or pin at each end (or sometimes without them – simply "tinned"),
which is normally used to interconnect the components of a breadboard or other prototype or test
circuit, internally or with other equipment or components, without soldering.

8
Individual jump wires are fitted by inserting their "end connectors" into the slots provided in a
breadboard, the header connector of a circuit board, or a piece of test equipment.

There are different types of jumper wires. Some have the same type of electrical connector at
both ends, while others have different connectors. Some common connectors are:

Fig 6: Jumper wires

Solid tips – are used to connect on/with a breadboard or female header connector. The
arrangement of the elements and ease of insertion on a breadboard allows increasing the
mounting density of both components and jump wires without fear of short-circuits. The jump
wires vary in size and color to distinguish the different working signals.

Crocodile clips – are used, among other applications, to temporarily bridge sensors, buttons and
other elements of prototypes with components or equipment that have arbitrary connectors,
wires, screw terminals, etc.

Banana connectors – are commonly used on test equipment for DC and low-frequency AC
signals.

Registered jack (RJ) – are commonly used in telephone (RJ11) and computer networking
(RJ45).

RCA connectors – are often used for audio, low-resolution composite video signals, or other
low-frequency applications requiring a shielded cable.

9
RF connectors – are used to carry radio frequency signals between circuits, test equipment, and
antennas.

7) ARDUINO IDE SOFTWARE

For developing an Android app we have used Android SDK in which Android is a mobile
operating system (OS) based on the Linux kernel and recently developed by Google. Android
has user interface based on direct manipulation which is used for touchscreen mobile devices
such as smartphones and tablet computers to make processing fast.

Fig 7: Arduino IDE software

8) BLUETOOTH CONTROLLER APP

Are you an Arduino enthusiast that always wanted to remote control your projects via your
Android phone but didn't have the time, the patience or the knowledge to build an Android
Bluetooth Controller.

10
Fig 8: Bluetooth controlled App

This android application can establish a connection with any Arduino/microcontroller project
that involves a bluetooth module! It allows the user to set a UUID of his own bluetooth module
in order to connect the android application with his projects!!! The default UUID that comes
with this application is for the HC-05 Wireless Serial 4 Pin Bluetooth RF Transceiver Module
RS232. (If you use default UUID in order to pair the BT module with your smartphone for the
first time, you will have to give a 4-digit password. This password is '1234'.)There are three main
parts to this project. An Android smartphone, a Bluetooth transceiver, and an Arduino.

Fig 9: Bluetooth module with arduino

HC 05/06 works on serial communication. The Android app is designed to send serial data to the
Arduino Bluetooth module when a button is pressed on the app. The Arduino Bluetooth module
at the other end receives the data and sends it to the Arduino through the TX pin of the Bluetooth
module (connected to RX pin of Arduino). The code uploaded to the Arduino checks the
received data and compares it. If the received data is 1, the LED turns ON. The LED turns OFF
when the received data is 0. You can open the serial monitor and watch the received data while
connecting.

11
CHAPTER 3

3.1: Block Diagram:

BLUETOOTH
KEYPAD
HC-05

ANDROID SERVO
ARDUINO
SMARTPHONE MOTOR
MICROCONTROLLER

POWER SUPPLY

12V DC

Fig 10: Block diagram


Description in detail:
It mainly consists of following blocks:
1. Microcontroller: This is the CPU (central processing unit) of our project. We are going to use
a microcontroller of 8051 family. The various functions of microcontroller are like:
I. Reading the given analog to digital input from Keypad
II. Sensing the password using keypad and to check whether it is a correct password or a wrong
password and rotate the stepper motor if the password entered is a correct password.
III. Reading the command from mobile through Bluetooth device.
2. Bluetooth: This is the interface between the mobile phone and arduino.
3. Keypad: User will enter the password using the keypad. Various keys of keypad are as
following:
I.0to9 and A-D, *, #.
4. Servo motor: The motor will do the main output function.
Tags: Door access system, Digital code lock, Keyless entry to home.

12
3.2: Circuit Diagram

3.3: Working

3.4: Program (Code)

13
CHAPTER 4

4.1: Advantages

1) This project provides security


2) Power consumption is less
3) Used commonly available components
4) Project is simple and easy
5) This can be used in Banks for safety lock.
6) User doesn‟t have to carry keys along with him.

4.2: Disadvantages

It is a low range circuit, i.e. it is not possible to operate the circuit remotely.

1) If you forget the password it is not possible to open the door.


2) It should work up to the Bluetooth range.

4.3: Applications

1) This simple circuit can be used at residential places to ensure better safety.
2) It can be used at organizations to ensure authorized access to highly secured places.
3) With a slight modification this Project can be used to control the switching of loads
through password.
4) This project can be used in offices, companies also at home. It will provide keyless entry.

LITERATURE SURVEY:
It means carried out to gain information and knowledge. Before we are starting with the
analysis and design of project. Then we are all referred by the reference papers and many
documents related to the concept of this project.
Door automation system by using the Bluetooth based on the Bluetooth app:
We use android door lock system for indoor and outdoor key lock system. It also
provides a security for Android phone users. This project based on Android platform which is

14
Free Open Source. So the implementation rate is inexpensive and it is reasonable by a common
person. With the wireless Bluetooth connection in microcontroller permits the system installation
in more easy way. The system has been designed successfully. And aimed to control the door
condition using an Android phone which is Bluetooth-enabled via Bluetooth HC-05.

Door automation system by using the password:


In day to day life security of any objects or place password based system plays a major role.
This project has considered about this and created a secure access for a door which needs a
password to unlock the door. Using keypad it enters a password to the system and if entered
password is correct then door is open by motor which is used to rotate the handle of the door
lock.

DOOR-AUTOMATION SYSTEM USING BLUETOOTH BASED ANDROID FOR MOBILE


PHONE By, Lia Kamelia, Alfin Noorhassan S.R, Mada Sanjaya and W.S., Edi Mulyana
This paper gives overall idea of how to control home security for smart homes especially for
door key locks. We use android door lock system for indoor and outdoor key lock system. It also
provides a security for Android phone users. This project based on Android platform which is
Free Open Source. So the implementation rate is inexpensive and it is reasonable by a common
person. With the wireless Bluetooth connection in microcontroller permits the system installation
in more easy way. The system has been designed successfully. And aimed to control the door
condition using an Android phone which is Bluetooth-enabled via Bluetooth HC-05.We have
discussed a simple prototype in this paper but in future it can be extended to many other regions.

AUTOMATIC PASSWORD BASED DOOR LOCK SYSTEM By, Shilpi Banerjee


In this paper detail information about system has been given in which we can unlock the door
by using pre-decided password. It increases the security level to prevent an unauthorized
unlocking done by attacker. In case the user forgets the both passwords, this system gives the
flexibility to the user to change or reset the password. This automatic password based lock
system will give user more secure way of locking-unlocking system. First the user combination
will be compared with prerecorded password which are stored in the system memory. User can
go for certain number of wrong combinations before the system will be temporarily disabled.

15
The door will be unlocked if user combination matches with the password. The same password
can be used to lock the door as well. This system will give the user an opportunity to reset his
own password if he wants.

PASSWORD BASED SECURITY LOCK SYSTEM By, Arpita Mishra, Siddharth


Sharma, SachinDubey, S.K.Dubey
In day to day life security of any object or place password based system plays a major role.
This project has considered about this and created a secure access for a door which needs a
password to unlock the door. Using keypad it enters a password to the system and if entered
password is correct then door is open by motor which is used to rotate the handle of the door
lock. When it is entered incorrectly at the first time it will give three attempts to enter the
password. Some extra features like adding new users and changing old password are configured
by the keypad as usual. To display messages to the user LCD module is used. Now a days most
of the systems are automated in order to face new challenges to achieve good results. These
systems have less manual operations, so the flexibility, reliabilities are high and accurate are
there characteristics. Hence every field prefers automated control systems especially in the field
of electronics.

Future Development:
1. We can monitor parameters like fire, overheat

2. We can provide voice feedback system

3. We can interface GSM modem which will send SMS if invalid attempt is made to open the
lock.

CONCLUSIONS

This is a ongoing project. This paper gives basic

idea of how to control home security for smart home,

16
especially for door key locks. We use solenoid door lock

system as a prototype for indoor and outdoor key lock

system. It also provide a security and easy for Android

phone/tab users. This project based on Android and

Arduino platform both of which are Free Open Source

Software. So the implementation rate is inexpensive and it

is reasonable by a common person. Accomplishment of

wireless Bluetooth connection in microcontroller permits

the system installation in more easy way. The system has

been successfully designed and prototyped to control the

door condition using an Android Bluetooth-enabled phone

and Bluetooth modules via Bluetooth HC-05. We have

discussed a simple prototype in this paper but in future it

can be extended to many other regions.

CONCLUSIONS AND FUTURE SCOPE

This system is a fine example of design and implementation

of a low cost smart home security system based Arduino UNO

microcontroller board. The best part of this project is that the

user can change the current password and lock the system again

with a single key press. By using combination of Arduino UNO

17
Microcontroller and password protection one can make possible

smart home automation effectively. Password protected locking/

unlocking prevents unauthorized unlocking. Flexibility to the

user to change or reset the password makes it user friendly. So

this system is cheap, reliable and easily installable.

In future more work can be carried out on this system and more

features can be incorporated, like we can interface GSM modem

so that an automatic call can be done to the security person when

any one enters wrong password.

18

You might also like