0% found this document useful (0 votes)
115 views20 pages

Report Door Lock

This document summarizes a minor project on a door lock security system submitted for a Bachelor of Technology degree. The project was completed from January to May 2019 by three students under the guidance of a professor. It involves designing and programming a circuit using a NodeMCU microcontroller to control a servo motor that locks and unlocks a door. The system can be controlled remotely using a BLYNK mobile app for added security and convenience.

Uploaded by

dhruva yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views20 pages

Report Door Lock

This document summarizes a minor project on a door lock security system submitted for a Bachelor of Technology degree. The project was completed from January to May 2019 by three students under the guidance of a professor. It involves designing and programming a circuit using a NodeMCU microcontroller to control a servo motor that locks and unlocks a door. The system can be controlled remotely using a BLYNK mobile app for added security and convenience.

Uploaded by

dhruva yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

A MINOR RPOJECT

on

DOOR LOCK SECURITY SYSTEM


SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENT FOR THE AWARD

OF THE DEGREE OF

BACHELOR OF TECHNOLOGY

(Electronics & Communication Engineering)

JAN-MAY 2019

SUBMITTED BY: UNDER THE GUIDANCE OF:


AVINASH KUMAR(1606954) PROF.HARMINDER KAUR

DHRUVA YADAV(1606962)

BHAVISHYA NIDHI(1606956)

DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING

GURU NANAK DEV ENGINEERING COLLEGE LUDHIANA


(An Autonomous College Under UGC ACT)

i
GURU NANAK DEV ENGINEERING COLLEGE, LUDHIANA

CANDIDATE'S DECLARATION

I hereby certify that the work which is being presented in the Project entitled “DOOR LOCK

SECURITY SYSTEM” by “Avinash kumar, Dhruva yadav, Bhavishya nidhi ” in partial fulfilment

of requirements for the award of degree of B.Tech. (Electronics and Communication

Engineering) submitted to the Department of Electronics and Communication Engineering at

GURU NANAK DEV ENGINEERING COLLEGE, LUDHIANA is an Authentic record of my own

work carried out during a period from _________ to __________ . The matter presented in

this project has not been submitted by me or else in any other University/Institute for the award of

B.Tech Degree.

Signature of the Students

This is to certify that the above statement made by the candidate is correct to the best of my own
knowledge.

(Signature of Project Guide)

The Minor Project Viva-Voce Examination of______________ has been held on_____________
and accepted.

Signature of Internal Examiner Signature of External Examiner

i
ABSTRACT
This project, is about programming on arduino IDE and burning it on NodeMCU. We have
worked on datasheet of NodeMCU almost as an engineer to the extent of our technical
capabilities. We have acquired a lot of knowledge about the microcontrollers, Arduino Board
and different components like , softwares (Arduino IDE),servo motor.

This project is the part of one of the most happening and common field of electronics i.e.
Embedded Systems and IOT and by integrating NodeMCU with BLYNK app we have
controlled servo motor to lock and unlock the door.Tasks involved in our project were:

 Circuit designing and Programming.


 Working on the software Arduino IDE.
 Learning basic concepts of electronics .

Finally, fitting our servo in door lock latch has also given us insights about mechanical work
that can be sometimes dealt with while working in embedded system project.

3
ACKNOWLEDGEMENT
“It is not possible to prepare a project report without the assistance & encouragement of
other people. This one is certainly no exception.”

We would like to express our special thanks of gratitude to our project guide Prof. Harminder
Kaur as well as our HOD Ameeta Seehra , Project Head, Dr. Narwant Singh Grewal and
Principal Dr. Sehijpal Singh, who gave us the golden opportunity to do this wonderful project
on the topic” Door lock security system” , which also helped using doing a lot of Research
and we came to know about so many new things we are really thankful to them.

On the very outset of this report, we would like to extend our sincere & heartfelt obligation
towards all the personages who have helped us in this endeavor. Without their active
guidance, help, co-operation & encouragement, we would not have made headway in the
project..

We extend our gratitude to ECE department faculty of Guru Nanak Dev Engineering College
for their support to us.

Lastly we would also like to thank my parents and friends who helped me a lot in finalizing this
project within the limited time frame.

Any omission in this brief acknowledgement does not mean lack of gratitude.

Thanking You

4
LIST OF FIGURES

FIG1 Basic Block Diagram

FIG2 Connection Of NodeMCU with Servo Motor

FIG3 Arduino IDE

FIG4 Flow Of Control

5
LIST OF TABLES

TABLE 1 Specifications of NodeMCU

6
CONTENTS

Topic Page No.

Candidate’s Declaration ii
Abstract iii
Acknowledgement iv
List of Figures v
List of Tables vi

CHAPTER 1 INTRODUCTION & PROJECT FORMULATION 7-9

1.1 Overview 8

1.2 Existing Systems 8

1.3 Applications 8

1.4 Advantages And Disadvantages 9

1.5 Objectives of our project 9

CHAPTER 2 PROJECT DESIGN 10-13

2.1 Project Functions. 10

2.2 Equipment and apparatus required 10

2.3 Methodology 10

CHAPTER 3 DEVELOPMENT AND IMPLEMENTATION 14-18


3.1 Introduction to Arduino IDE 14

3.2 Flow of control 15

3.3 Programming 16

3.4 Testing and Verification 18

CHAPTER 4 CONCLUSION AND FUTURE SCOPE 19


4.1 Conclusion 19

4.2 Future scope 19

References 20

7
CHAPTER 1
INTRODUCTION & PROJECT FORMULATION
1.1 Overview
a) Security is plying a vital role in our personal and professional life and with advent of IOT
everything is getting connected for more convenient way of living.

b) IOT is the new technology revolutinoising the world and this project represent the concept
of IOT. It is possible to transmit the data through the internet. We have wi-fi module to
connect to the internet.

c) We use NODE-MCU for the controlling operation of our door lock and it is controlled by
an app blink app.

d) Project use 5v power supply which is regulated by 7805VR,

1.2 Existing Systems

Manual door lock: They have less compatibility with the comfort of society, as they can

only be unlocked from the very place it has been mounted.keys are additional liability to be

taken care of.

1.3 Applications
deadbolts are typically used for different buildings applications. The application is the type of

work it is designed to do.

1.4 ADVANTAGES AND DISADVANTAGES


Advantages:

 Low Cost

 Helpful for person of short time memory

 Easily programmable

8
 Has mobility

 Can be easily controlled by your mobile phone

Disadvantages

 Requires a app for functioning

 May effect the human jobs

1.5 Objectives of our project

 To be able to perform lock and unlock operations. As controlled by user the motor

will be able to lock and unlock deadbolts.

 To have mobility so that it could get lock and unlocked from around.

 To be able to be controlled by a pc or an android phone via wifi.

9
CHAPTER 2
PROJECT DESIGN
2.1 Project Functions.
. The main purpose of this system is to lock and unlock a door by a mobile phone and

matrix keypad, using a unique code entered through the matrix keypad and mobile phone.

Opening and closing of doors involves human to be physically involved in the task. The

authorized person can message the mobile phone stacked to the system which in turn is

connected to the door motor that can open/close the door. This method is very convenient

as one doesn’t have to get down of his door post to open the door physically. The cell phone

is set to understand the message been sent to it. For example, if I have a visitor waiting for

me at home and I am still in the office, I can open the door of my house from my office for

them by sending the authentic code and the door will be open automatically, I can do the

same if I want to lock it.

2.2 Equipment and apparatus required

 nodemcu

 USB mini

 Jumper wires

 Servo Motor

2.3 Methodology

 The whole system will be controlled using an NODEMCU iot platform.

 Servo motor will be used for mobility .

 Blynk app is used to communicate with nodemcu through mobile phone.

 Programming has been done in Arduino IDE software.

10
2.3.1 Basic Block Diagram:

Battery (4.8V)

SERV NODEMC
O U

BLYNK APP

Fig-1: Basic Block Diagram

2.3.2 Short Description of all blocks:

NODEMCU:

NodeMCU is an open source IOT platform. It includes firmware which runs on

the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12

module. The term "NodeMCU" by default refers to the firmware rather than the development

kits. The firmware uses the Lua scripting language. It is based on the eLua project, and built

on the Espressif Non-OS SDK for ESP8266. It uses many open source projects, such as lua-

cjson and SPIFFS.

Table-1:Specifications of NodeMCU

Developer ESP8266 Opensource Community

Type Single-board microcontroller

Operating system XTOS

CPU ESP8266(LX106)

11
Memory 128kBytes

Storage 4MBytes

Power USB

2.3.3 Circuit Design:

Fig-2:Connection of NodeMCU with Servo Motor

 This Circuit is responsible for the working of the project.

 Pins 3v3 is used for power,8 is used up by the Servo for signal.

 We connect the components as shown in the circuit diagram.

 We are using usb cable to power the nodemcu and it will power servo.

2.3.4 Mobile App

The app we are using is called BLYNK control available on play store for free. And each

button here communicate a distinct character via WIFI module on nodemcu.


12
Information sent by all the buttons:

 0 – ‘V2’……BUTTON

 90-‘V3’….BUTTON

 0-180-‘V1’….SLIDER

13
CHAPTER 3

DEVELOPMENT AND IMPLEMENTATION


3.1 Introduction to Arduino IDE

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.

It’s syntax is based on C language and contains of two main functions namely ‘void setup()’
and ‘void loop()’. The void setup function is used for functions like initialising variables,
setting baud rate etc. Void loop contains instructions which are executed repeatedly.
The main function of the program is witten in this function.

Arduino programs are written in the Arduino Integrated Development Environment (IDE).
Arduino IDE is a special software running on your system that allows you to write sketches
(synonym for program in Arduino language) for different Arduino boards.
The Arduino programming language is based on a very simple hardware programming
language called processing, which is similar to the C language.

After the sketch is written in the Arduino IDE, it should be uploaded on the Arduino board
for executi

Fig 3: Arduino IDE

14
3.2 Flow of control

Information from phone

NodeMCU

SERVO

Fig-4:Flow Of Control

 Initially The signal is sent by the mobile via wifi.


 Signal is received by the microcontroller and it computes accordingly sevo motor is
controlled.

15
3.2.1 Control

 The program will constantly play for a blynk app.


 If ‘V1’ is pressed on the app the system will enter into SLIDER mode. The joystick
when slided left or right will result in rotation of the servo from 0 to 180 position.
 If ‘V2’ is pressed servo will go into 0 position.
 If ‘V3’ is servo will go in its 90 position.

3.3 Programming
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>

#include <BlynkSimpleEsp8266.h>

#include <Servo.h>

Servo servo;

char auth[] = "Blynk Auth Token";

char ssid[] = "your ssid";

char pass[] = "wifi password";

void setup()

Serial.begin(9600);

Blynk.begin(auth, ssid, pass);

servo.attach(15); // NodeMCU D8 pin

16
void loop()

Blynk.run();

BLYNK_WRITE(V1)

servo.write(param.asInt());

BLYNK_WRITE(V2)

servo.write(0);

BLYNK_WRITE(V3)

servo.write(90);

3.3.2 Explanation of the program

 #include< ESP8266WiFi.h > is the ESP8266 community library to operate the nodemcu
module and #include<Servo.h> is used to operate the servo using servo related
functions. And < BlynkSimpleEsp8266.h > is used to communijcate with blynk app.

 Also we have initialized the initial positions of the servo in the variables pos1 ,pos2,
 In void setup() we have set the baudrate to 9600 for serial communication with object
‘Serial’ and also we have set the pwm values for the DC motors to maximum as these
are connected to the PWM pins.
17
 Then in void loop(), we write the initial positions of the servos.
 if(serial.available()>0) is used to reject the garbage values <0.
 Then we test for whether to enter in robotic arm mode or tank chassis mode.
 When we enter the robotic arm mode then we check for input which will be related to
the movement of corresponding servos.
 We have set some constraints for the ‘pos’ variables in the if loop because of some
mechanical limitations of the arm. These values were found by trial and error.
 Then according to the condition we have called the appropriate functions and for the
movements we have incremented or decremented by 10.
 We are using a do-while loop in the robotic arm mode so that it would remain in that
mode unless ‘1’ is pressed again on the app.
 Similarly when we enter the tank chassis mode then we check for the input from app.
 In the app when joystic comes back to initial position after being slided in a direction
then it returns a value ‘D’.
 Accordingly the conditions are executed.
 We have also used do-while loop in this mode as well so that the execution stays in
this mode until we press ‘2’ on the app.

3.4 Testing and Verification

 First we pair the hotspot with nodemcu , after that by opening blynk app send desired
signal.
 Then the LED of the nodemcu will start blinking slowly which represents that the
nodemcu device has been connected successfully.
 Then we can operate the project as discussed in previous sections.

18
CHAPTER 4
CONCLUSION AND FUTURE SCOPE

4.1 CONCLUSION

The project has proposed the idea of smart homes that can support a lot of home
automation systems. A smart home contain a connection between wireless communications,
sensors, monitoring and tracking. Smart homes are a huge system that includes multiple
technologies and applications that can be used to provide security and control of the home
easily.

4.2FUTURE SCOPE

With the addition of object recognition using image processing and ultrasonic sensor, thislock

could be automated so that there won’t be any need of it to be manually controlled, it could

be programmed in such a way that it would be able to scan and recognize a certain object in

front of it and even remember its location and time.

19
REFERENCES

 https://www.youtube.com/watch?v=dKzCZhnLUyc&t=19s

 Arduino Sketch : https://goo.gl/DKQKAg

20

You might also like