Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 24

Project report on ‘Door lock system‘

SUBMITTED BY
AMBARDEKAR RUKHSAR FIROJKHAN (ROLL No.: 3801)

DEOGAONKAR ANAGHA SHRIKANT (ROLL No.: 3812)

DONGARE NIDHI KSHITIJ (ROLL No.: 3816)

UNDER THE GUIDANCE OF

PROF. SUPRIYA MANGALE

DEPARTMENT OF
ELECTRONICS AND TELECOMMUNICATION ENGINEERING
MKSSS’s
Cummins College of Engineering for Women, Pune
(An Autonomous Institute Affiliated to SavitribaiPhule Pune University)

(2018-2019)

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 1
Project report on ‘Door lock system‘

ACKNOWLEDGEMENT
We would like to express our sincere gratitude towards our mini-project guide Prof.
SUPRIYA MANGALE for her constant encouragement and valuable guidance during the
completion of this mini-project work.

We would also like to thank Dr. Prachi Mukherji (H.O.D., E&Tc) for her continuous
valuable guidance, support, valuable suggestions and her precious time in every possible
way inspite of her busy schedule throughout our project activity.

We take this opportunity to express our sincere thanks to all the staff members of
E&Tc. Department for their constant help whenever required. Finally; we express our
sincere thanks to all those who helped us directly or indirectly in many ways in completion
of this mini-project work.

Student Names
1) Name: Rukhsar Ambardekar, Roll No: 3801
2) Name: Anagha Deogaonkar, Roll No: 3812
3) Name: Nidhi Dongare, Roll No: 3816

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 2
Project report on ‘Door lock system‘

TABLE OF CONTENTS

Sr. no. Title of contents Pg. no.


1. INTRODUCTION 6
1.1 Android based Door Lock System 6
1.2 Problem Statement 6
1.3 Objectives 7
2. LITERATURE REVIEW 8
2.1 Abstract 8
2.2 Block Diagram 8
3. HARDWARE DESCRIPTION 9
3.1 3D printed mechanical assembly 9
3.2 Arduino Uno 9
3.3 Bluetooth Module 10
3.4 SG90 Servo Motor 11
3.5 Android Application 11
4. METHODOLOGY 13
4.1 Project Flow 13
4.2 Project Overview 14
4.3 Software Used 14
4.4 Datasheets 14
4.4.1 HC-05 14
4.4.2 SG90 20
5. RESULT AND DISCUSSION 23
5.1 Results 23
5.2 Advantages of this project 23

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 3
Project report on ‘Door lock system‘

6. CONCLUSION 24
6.1 Cost Expenditure 24
6.2 Conclusion 24
6.3 Further Development 24
8. BIBLIOGRAPHY / REFERENCE 25

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 4
Project report on ‘Door lock system‘

ANDROID BASED DOOR LOCK SYSTEM

AMBARDEKAR RUKHSAR FIROJKHAN (ROLL No.: 3801)

DEOGAONKAR ANAGHA SHRIKANT (ROLL No.: 3812)

DONGARE NIDHI KSHITIJ (ROLL No.: 3816)

Under the guidance of

PROF. SUPRIYA MANGALE

DEPARTMENT OF ELECTRONICS AND TELECOMMUNICATION ENGINEERING

MAHARSHI KARVE STREE SHIKSHAN SAMSTHA’S


CUMMINS COLLEGE OF ENGINEERING FOR WOMEN

KARVE-NAGAR, PUNE-411 052. (INDIA)

(An Autonomous Institute Affiliated to SavitribaiPhule Pune University)


2018-2019

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 5
Project report on ‘Door lock system‘

Chapter 1
Introduction

Maslow’s hierarchy theory suggests that safety and security are the primary needs of a
human being. Every person finds the need to have a secure security system for protecting their
money, important documents, precious metals/stones and one’s life itself. This project now
comes into picture.
We see many issues over the society with conventional locks getting theft with
duplications of keys and nameless tools .To triumph over this shape of problems this Android
based totally completely safety locks with Microcontroller , offer a higher answer with multilevel
of securities and greater reachable GUI to purchaser to address in all path of elements. This kind
of locks may be used for automobile Ignition starters, schools, hospitals, domestic, banks and
other main sectors. As this locks are incorporated to android programs its easy and greater
secured to us.
The systems reduces the crime and an unauthorizers getting access to our premises .As
using PAN devices like Bluetooth there is no alternative using of conventional keys .Hardware
circuits relating our safety locks may be placed inside the walls of premises ,So the
un_authorizers can’t assume the location place of Wi-Fi protection lock. As the password may be
with maximum duration with special characters it is going to be tough to expect with the aid of
unknown women and men entering to skip the security. Even the legal person phone is accessed
however converting password are blanketed with login templates.

1.1 Android based Password Protected Door Lock System

This smart lock is the secure, simple, and easy to manage your home’s lock. This lock
needs no keys and the lock is attached inside the door and you can control it from outside the
door using Bluetooth. As the lock is inside the door there is no way to break the door by a thief.
An android application is required to open and close the lock. A password is sent to the lock
using Android app and if the password is matched to your preset-lock password then the lock
will be open and sent a feedback to your phone like the lock is open.

1.2 Problem Statement

To design hardware for Door lock system, construct a software for android and Bluetooth
communication and then implement the software in the hardware of Arduino based Door lock
system.

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 6
Project report on ‘Door lock system‘

1.3 Objectives

1. Understand and implement the Bluetooth communication and interfacing of Arduino with

servo motor.

2. Design and build Arduino based hardware.

3. Design and build mechanical Door lock assembly.

4. To construct a robust and secure Door lock system.

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 7
Project report on ‘Door lock system‘

Chapter 2
Literature Review

Referring to researches positioned assisting in making ready the device It’s a superb idea of
door open and close to motion constructed for handicap people. This allows the handicaps to
manipulate the door moves wirelessly integrating to android smart cellular telephone . It creates
a comfy living zone to otherwise in a position people.

2.1 Abstract

Our essential motive of designing this tool is to provide a greater secured multilevel
protections and password reconfigure Options Using PAN (Personal Area Network) protocol
gadgets like Bluetooth and Microcontroller.
Security locks play a crucial role in the protection of materials valuable to a person or a
group of people. These locks vary from being simple in design to complex. Locks that are simple
in design and easy to use often are easy to breach into and locks that are complex in design are
tough to breach but tedious to use. High end lock systems are expensive and difficult to install.
This project aims to add simplicity to the present complex lock system by incorporating an
android phone’s Bluetooth connection, which nowadays are commonly available. Without the
keypad available or lock visible makes this lock system even more secure than traditional locks.

2.2 Block Diagram

Chapter 3
Cummins College of Engineering for Women, Karvenagar, Pune-52
(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 8
Project report on ‘Door lock system‘

Hardware Description

3.1 3D printed mechanical assembly

All the parts of the lock are 3D printed. The material used is ABS material. ABS is
Acrylonitrile butadiene styrene. It is thermoplastic polymer. ABS is a amorphous and therefore
has no true melting point. This assembly is based on rack and pinion mechanism.

3.2 Arduino

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 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

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 9
Project report on ‘Door lock system‘

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.

3.3 Bluetooth Module (HC-05)

It is a PAN (Personal Area Network device) used for short distance of conversation.
Bluetooth Module Features Support Master & Slave Mode Serial communications and it works
with Frequency: 2.4~2.524 GHz. Over the designing of the Wi-Fi security lock device, we are
ideally using the HC-05 module. HC-05 is smooth to integrate with Arduino and provide safety
parameters earlier than connecting device. But there may be an issue with Bluetooth HC-05 Like
the default password and baud price needs to be changed otherwise it might be easy to
unauthorizers having access to Our safety tool ,So with the help of AT commanding can be
configured with desired password and person names.

Features:

 Operating Voltage: 3.3V DC

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 10
Project report on ‘Door lock system‘

 Operating Current: 50mA

 Sensitivity: 30dBm

 Ranging Distance: 100m

3.4 SG90 Servo Motor


Tiny and lightweight with high output power. Servo can rotate approximately 180
degrees (90 in each direction), and works just like the standard kinds but smaller.

 Features:

 Operating Voltage: 5V

 Torque: 1.8 kg-f-cm

 Speed: 0.1 sec/60deg

3.5 Android Application

The android application for Bluetooth pairing has a UUID for user identification purpose.
The Bluetooth connection will be established when the password entered is correct. Multiple
phones can be used as a key to the lock if the password is known.
The Android smart phone can be of any type with any version of the software. The version
of the software won’t affect the working of the application that unlocks the security lock. The
software used in the android phone is called Bluetooth SPP. SPP means serial port profile, so the
data is sent serially.
This software establishes a wireless link between the an-droid phone and serial Bluetooth
module/modem. Paring takes place and the lock requests a password that one has to type in order
to unlock the security lock.

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 11
Project report on ‘Door lock system‘

Chapter 4
Methodology

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 12
Project report on ‘Door lock system‘

4.1 Project Flow

4.2 Project Overview

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 13
Project report on ‘Door lock system‘

The hardware chosen to complete this project is 3D assembly of rack and pinion mechanism.
Bluetooth module is used for communication purpose and drive to the assembly is given by
servo motor.

4.3 Software used

The Arduino integrated development environment (IDE) is a cross-platform application


(for Windows, macOS, Linux) that is written in the programming language Java. It is used to
write and upload programs to Arduino compatible boards, but also, with the help of 3rd party
cores, other vendor development boards.
The source code for the IDE is released under the GNU General Public License,
version 2. The Arduino IDE supports the languages C and C++ using special rules of code
structuring. The Arduino IDE supplies a software library from the Wiring project, which
provides many common input and output procedures. User-written code only requires two basic
functions, for starting the sketch and the main program loop, that are compiled and linked with a
program stub main() into an executable cyclic executive program with the GNU tool chain, also
included with the IDE distribution. The Arduino IDE employs the program avrdude to convert
the executable code into a text file in hexadecimal encoding that is loaded into the Arduino board
by a loader program in the board's firmware.

4.4 Datasheets
4.4.1 HC-05
HC-05 -Bluetooth to Serial Port Module

Overview

HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for
transparent wireless serial connection setup.
Serial port Bluetooth module is fully qualified Bluetooth V2.0+EDR (Enhanced Data Rate)
3Mbps Modulation with complete 2.4GHz radio transceiver and baseband. It uses CSR
Bluecore 04-External single chip Bluetooth system with CMOS technology and with
AFH(Adaptive Frequency Hopping Feature). It has the footprint as small as 12.7mmx27mm.
Hope it will simplify your overall design/development cycle.

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 14
Project report on ‘Door lock system‘

Specifications
Hardware features
 Typical -80dBm sensitivity
 Up to +4dBm RF transmit power
 Low Power 1.8V Operation ,1.8 to 3.6V I/O
 PIO control
 UART interface with programmable baud rate
 With integrated antenna
 With edge connector

Software features
 Default Baud rate: 38400, Data bits:8, Stop bit:1,Parity:No parity, Data control: has. Su
pported baud rate: 9600,19200,38400,57600,115200,230400,460800.
 Given a rising pulse in PIO0, device will be disconnected.
 Status instruction port PIO1: low-disconnected, high-connected
 Auto-connect to the last device on power as default.
 Permit pairing device to connect as default.
 Auto-pairing PINCODE:”0000” as default
 Auto-reconnect in 30 min when disconnected as a result of beyond the range of connectio
n.

Hardware

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 15
Project report on ‘Door lock system‘

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 16
Project report on ‘Door lock system‘

AT command Default:

How to set the mode to server (master):

1. Connect PIO11 to high level.


2. Power on, module into command state.
3. Using baud rate 38400, sent the “AT+ROLE=1\r\n” to module, with “OK\r\n” means
setting successes.

4. Connect the PIO11 to low level, repower the module, the module work as server (maste
r).

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 17
Project report on ‘Door lock system‘

AT commands: (all end with \r\n)

1. Test command:
Command Respond Parameter
AT OK -
2. Reset
Command Respond Parameter
AT+RESET OK -

3. Get firmware version


Command Respond Parameter
AT+VERSION? +VERSION:<Param> Param : firmware version
OK
1. Restore default
Command Respond Parameter
AT+ORGL OK -
Default state:

Slave mode, pin code :1234, device name: H-C-2010-06-01 ,Baud 38400bits/s.

2. Get module address


Command Respond Parameter
AT+ADDR? +ADDR:<Param> Param: address of Bluetoot
OK h
Module
Bluetooth address: NAP: UAP : LAP
Example:
AT+ADDR?\r\n

+ADDR:1234:56:abcdef OK

3. Set/Check module name:


Command Respond Parameter
AT+NAME=<Param> OK Param: Bluetooth module
AT+NAME? +NAME:<Param> name
OK (/FAIL) (Default :HC-05)
Example:

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 18
Project report on ‘Door lock system‘

AT+NAME=HC-05\r\n set the module name to “HC-05”


OK
AT+NAME=ITeadStudio\r\n
OK
AT+NAME?\r\n

+NAME: ITeadStudio OK
4. Get the Bluetooth device name:
Command Respond Parameter
AT+RNAME?<Param1> 1. +NAME:<Param2 Param1,Param 2 : the addres
> OK s of Bluetooth device
2. FAIL
Example: (Device address 00:02:72:od:22:24,name:ITead)
AT+RNAME? 0002,72,od2224\r\n
+RNAME:ITead OK

5. Set/Check module mode:


Command Respond Parameter
AT+ROLE=<Param> OK Param:
AT+ ROLE? +ROLE:<Param> 0- Slave
1. Set/Check module name:
Command Respond Parameter
AT+NAME=<Param> OK Param: Bluetooth module
AT+NAME? +NAME:<Param> name
OK (/FAIL) (Default :HC-05)
Example:

AT+NAME=HC-05\r\n set the module name to “HC-05”


OK
AT+NAME=ITeadStudio\r\n
OK
AT+NAME?\r\n

+NAME: ITeadStudio OK

4.4.2 SG90

SG90 9 g Micro Servo

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 19
Project report on ‘Door lock system‘

Tiny and lightweight with high output power. Servo can rotate approximately 180 degrees (90
in each direction), and works just like the standard kinds but smaller. You can use any servo
code, hardware or library to control these servos. Good for beginners who want to make stuff
move without building a motor controller with feedback & gear box, especially since it will fit
in small places. It comes with a 3 horns (arms) and hardware.
Specifications
 Weight: 9 g
 Dimension: 22.2 x 11.8 x 31 mm approx.
 Stall torque: 1.8 kgf·cm
 Operating speed: 0.1 s/60 degree
 Operating voltage: 4.8 V (~5V)
 Dead band width: 10 µs
 Temperature range: 0 ºC – 55 ºC

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 20
Project report on ‘Door lock system‘

Position "0" (1.5 ms pulse) is middle, "90" (~2 ms pulse) is all the way to the right, "-90" (~1
ms pulse) is all the way to the left.

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 21
Project report on ‘Door lock system‘

Chapter 5
Result & Discussion

5.1 Results

5.2 Advantages of this project

[1] Easy to install and use since there are no interconnecting parts.
[2] Friction less operation since the lock used is Electromagnetic in nature.
[3] Since the lock is present behind the door it more secure and less susceptible to tampering.
[4] Economical.
[5] Low maintenance compared to traditional locks.
[6] Customizable since keys can be changed easily.
[7]Locks permits long distance buzz in

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 22
Project report on ‘Door lock system‘

Chapter 6

Conclusion
6.1 Cost Expenditure

3D printed mechanical assembly Rs. 3000


Hardware components Rs. 1569
Wooden piece & screws Rs. 150
Total Rs. 4719

6.2 Conclusion

This report gives primary idea of the way to manage domestic protection for smart domestic,
mainly for door key locks. We use solenoid door lock device as a prototype for indoor and
outside key lock machine. It additionally provides a safety and smooth for Android mobile
phone/tab customers. This venture based on Android and Arduino platform each of which can be
Free Open Source Software. So the implementation rate is inexpensive and it is low-priced
through a common person. Accomplishment of Wi-Fi Bluetooth connection in microcontroller
permits the device set up in extra easy manner. The device has been efficaciously designed and
prototyped to manipulate the door state of affairs the usage of an Android Bluetooth-enabled
Smartphone and Bluetooth modules through Bluetooth HC-05. We have noted a simple
prototype in this paper however in destiny it can be prolonged to many different regions

6.2 Further Development

This project can be modified from Bluetooth to Wi-Fi thus in-creasing the range for long
distance buzz in. A compete history of entry and exist can logged thus making the system more
secure. Alarm systems can also be integrated into the design and alert messages can be sent to
the owner if any break in takes place or tampering with the lock.

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 23
Project report on ‘Door lock system‘

Chapter 7

Bibliography/ References

[1] International Journal of Research in Engineering, Science and Management Volume 2, Issue-
1, January-2019, A. V. Thejas Embedded Product Developer, R & D, TJ Idea for Innovation,
Mysore, India
[2] International Journal of Scientific & Engineering Research, Volume 5, Issue 10, October-
2014 448 ISSN 2229-5518, Dereyk D’Souza, Arun Varia, Hiren Shah, Sanket Shah, Rohit Kant.
[3] International Journal of Scientific & Technology Research Volume 6, issue 08, august 2017
ISSN 2277-8616 198 IJSTR©2017 www.ijstr.org, Design and Implementation of a Door
Locking System Using Android App. Agbo David O., Madukwe Chinaza, Odinya Jotham O.

Cummins College of Engineering for Women, Karvenagar, Pune-52


(An Autonomous Institute Affiliated to SavitribaiPhule Pune University) Page 24

You might also like