0% found this document useful (0 votes)
42 views24 pages

Mini Project Report

Uploaded by

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

Mini Project Report

Uploaded by

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

A

PROJECT REPORT ON

“PASSWORD BASED SECURITY SYSTEM”


Submitted for Partial fulfillment of award of the degree of
Bachelor of Technology
Degree In
Electronics & Communication Engineering

Submitted By
Anjali Kumari (1900650310002)

Under the supervision of


Mr. Farhan Aziz
(Assistant Professor, ECE Department)

Department of Electronics & Communication Engineering


B. S. A. College of Engineering and Technology, Mathura - 281004 (U.P.)
Affiliated to
Dr. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY, LUCKNOW (U.P.)
Session 2020 – 2021
ACKNOWLEGEMENT

We are pleased to acknowledge Mr. Farhan Aziz Assistant Professor of ECE department, for
their invaluable guidance during the course of the project work. We extend our sincere thanks to
Mr. Vishal Lal Goswami, head of ECE department, who continuously helped us throughout the
project
And without his guidance, this project would have been an uphill task. We are also grateful to
other members of the ECE department, who co-operated with us regarding some issues. Last but
not the least, Mr. Satyendra Pal, lab assistant co-operated with us nicely for the smooth
development of this project.
Anjali Kumari

(1900650310002)
CERTIFICATE

This is certified that Anjali Kumari have carried out the project work presented in this report
entitled “PASSWORD BASED SECURITY SYSTEM” for the award of BACHELOR OF
TECHNOLOGY (ELECTRONICS & COMMUNICATION ENGINEERING) from Dr. A.P.J.
Abdul Kalam Technical University, Lucknow under my supervision. The report embodies result
of original work and studies carried out by students themselves.

Date:-

PROJECT GUIDE HOD (EC)

Mr. Farhan Aziz Mr. Vishal Lal Goswami


(Asst. Prof., ECE Deptt.)
TABLE OF CONTENT

ACKNOWLEGMENT……………………………………………………………………………i.

CERTIFICATE…………………………………………………………………………………...ii.

CHAPTER 1………………………………………………………………………………………1

INTRODUCTION………………………………………………………………………………..1

CHAPTER 2………………………………………………………………………………...…….2

COMPONENTS USED…………………………………………………………………………...2

CHAPTER 3……………………………………………………………………………………....3

DESCRIPTION OF COMPONENTS……………………………………………………………3

3.1. ARDUINO BOARD………………………………………………………………………3

3.2. KEYPAD……………………………………………………………………………….....3

3.3. LCD DISPLAY…………………………………………………………………………....4

3.4. POTENTIOMETER………………………………………………………………………4

3.5. SERVO MOTOR…………………………………………………….……………………5

3.6. CONNECTING WIRES…………………………………………………………………..5

3.7. BREAD BOARD……………………………………………………………………….....5

3.8. POWER SUPPLY…………………………………………………………………………6

CHAPTER 4………………………………………………………………………………………8

CIRCUIT DIAGRAM………………………………………………………………………….....8

CHAPTER 5………………………………………………………………………………………9

WORKING & APPLICATIONS………………………………………………………………….9


5.1. WORKING……………………………………………………………………………..…9

5.2. CONNECTIONS…………………………………………………………………...……..9

5.3. PROGRAM CODE……………………………………………………………………....11

5.4. APPLICATIONS………………………………………………………………………...15

CHAPTER 6……………………………………………………………………………………..16

ADVANTAGES & DISADVANTAGES ………………………………………………………16

6.1. ADVANTAGES…………………………………………………………………………16

6.2. DISADVANTAGES…….………………………………………………………………16

CHAPTER 7……………………………………………………………………………………..17

REFERENCES…………………………………………………………………………………..17
TABLE OF FIGURES

 FIG. 3.1. ARDUINO UNO BOARD


 FIG. 3.2. ARDUINO KEYPAD 4x4
 FIG. 3.3. 16x2 LCD DISPLAY
 FIG. 3.4. POTENTIOMETER
 FIG. 3.5. SERVO MOTOR
 FIG. 3.6. JUMPER WIRES
 FIG. 3.7. BREADBOARD
 FIG. 3.8. POWER SUPPY USING USB CABLE
 FIG. 3.9. POWER SUPPLY USING AC/DC ADAPTER
 FIG. 3.10. POWER SUPPLY USING 5V INPUT
 FIG. 3.11. POWER SUPPLY USING BATTERIES GREATER THAN 5V
 FIG. 3.12. CIRCUIT DIAGRAM OF THE PROJECT
CHAPTER 1
INTRODUCTION
PASSWORD BASED SECURITY SYSTEM

Password Based Door Lock System using Arduino is a project where a secure password will act
as a door unlocking system. 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.

The project system demonstrates a Password based Door Lock System Arduino, wherein 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.

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.

Circuit of this project contains Arduino, keypad module, Servo Motor, and LCD. Arduino
controls the complete processes like taking a password form the keypad module, comparing
passwords, rotating servo motor, and sending status to the LCD display. The keypad is used for
taking the password. Servo motor is used for opening the gate while rotating and LCD is used for
displaying status or messages on it.
CHAPTER 2
COMPONENTS USED

S.N. COMPONENTS NAME DESCRIPTION

1 Arduino Board Arduino UNO

2 Keypad 4X4 Keypad

3 LCD Display 16x2 LCD Display

4 Potentiometer 1K

5 Servo Motor SG90 Servo Motor

6 Connecting Wires Jumper Wires

7 Breadboard -

8 Power Supply Lithium ion battery


CHAPTER 3
DESCRIPTION OF COMPONENTS

1. ARDUINO UNO BOARD

The Arduino Uno is an open-source microcontroller board based on


the Microchip ATmega328P microcontroller. 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 breadboards. The board has 14 digital I/O pins (six capable
of PWM output), 6 analog I/O pins, and is programmable with the Arduino
IDE (Integrated Development Environment), via a type B USB cable.[4] It can be
powered by the USB cable or by an external 9-volt battery, though it accepts voltages
between 7 and 20 volts.
The ATmega328 on the board comes preprogrammed with a bootloader that allows
uploading new code to it without the use of an external hardware programmer.

FIG. 3.1. ARDUINO UNO BOARD

2. ARDUINO KEYPAD(4x4)

The Keypad is a set of buttons arranged


in rows and columns (called matrix).
Each button is called key.
Keypad 4x4 has 8 pins:
4 row-pins (R1, R2, R3, R4)
and 4 column-pin (C1, C2, C3, C4).

FIG. 3.2. ARDUINO KEYPAD 4x4


3. LCD DISPLAY (16x2)

It has 16 pins and the first one from left to right is the Ground pin. The second pin is the
VCC which we connect the 5 volts pin on the Arduino Board.
Next is the Vo pin on which we can attach a potentiometer for controlling the contrast of
the display.
Next, The RS pin or register select pin is used for selecting whether we will send
commands or data to the LCD. Next comes the R / W pin which selects the mode
whether we will read or write to the LCD.
Next is the E pin which enables the writing to the registers, or the next 8 data pins from
D0 to D7. So through this pins we are sending the 8 bits data when we are writing to the
registers.
And the last two pins A and K, or anode and cathode are for the LED back light.

FIG. 3.3. 16x2 LCD DISPLAY

4. POTENTIOMETER

A Potentiometer is a simple knob that


provides a variable resistance, which
we can read into the Arduino board as an analog
value.
We connect three wires to the Arduino board.
The first goes to ground from one of the outer
pins of the potentiometer. The second goes
from 5 volts to the other outer pin of the
potentiometer. The third goes from analog
input 2 to the middle pin of the potentiometer. FIG.3.4. POTENTIOMETER
By turning the shaft of the potentiometer,
we change the amount of resistance.
5. SERVO MOTOR

A Servo Motor is a small device that has an output shaft. This shaft can be positioned
to specific angular positions by sending the servo a coded signal. As long as the coded
signal exists on the input line, the servo will maintain the angular position of the shaft. If
the coded signal changes, the angular position of the shaft changes.

FIG. 3.5. SERVO MOTOR

6. CONNNECTING WIRES

A Jumper wire is an electrical wire, or group of them in a cable, with a connector or


pin at each end, 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.

FIG. 3.6. JUMPER WIRES

7. BREAD BOARD

Breadboard is a way of constructing electronics without having to use a


soldering iron. Components are pushed into the sockets on the breadboard and then
extra 'jumper' wires are used to make connections.
The middle section of the board has two columns, each with 30 strips of
connector. On either edge of the board are much longer sections of clip that join
together the columns of holes marked by the blue and red lines on the front of the
breadboard. These are generally used for GND (blue) and 5V (red).
FIG. 3.7. BREADBOARD

8. POWER SUPPLY

We can power up the Arduino using power supplied from the computer via a USB cable
and/or by using external power sources.
1. Using USB cable
The USB port of the Arduino Uno can be connected to a desktop/laptop.

FIG. 3.8. POWER SUPPLY USING USB CABLE

2. Using an AC to DC Adapter plugged into the Barrel connector


The barrel connector can be supplied with an input of 7-12V. This is regulated to 5V
by the onboard voltage regulator, and the board is powered on.

FIG. 3.9. POWER SUPPLY USING AC/DC ADAPTER


3. Using 5V input
It is possible to power up the Arduino using the 5V and GND pins, provided that the
input given is steady and regulated 5V.

FIG. 3.10. POWER SUPPLY USING 5V INPUT

4. Using batteries greater than 5V


Connect a 9V battery with the positive terminal connected to the Vin pin and the
negative terminal connected to the GND pin.

FIG. 3.11. POWER SUPPLY USING BATTERIES GREATER THAN 5V


CHAPTER 4
CIRCUIT DIAGRAM

The Complete circuit diagram for our Arduino based Digital Keypad Door Lock project is shown
below:

FIG. 3.12. CIRCUIT DIAGRAM OF PROJECT


CHAPTER 5
WORKING & APPLICATIONS

WORKING:
The main component in the circuit is Arduino. In this project, a 4×4 Matrix Keypad is used to
enter the password. The password which is entered is compared with the predefined password.

If the entered password is correct, then the system opens the door by rotating door motor and
displays the status of door on LCD. If the password is wrong, then the door is remains closed and
displays “PWD is wrong” on LCD.

CONNECTIONS:

Starting from the brain of the project the Arduino UNO board, is connected to a LCD and a
servo motor. The servo motor is used to push (lock) or pull (unlock) the latch on the door. A
16 x 2 LCD is required to display the message by Arduino, 16 x 2 means it has 16 number of
columns and 2 number of rows.

Here, a 5v SG90 servo motor is used for making for customized door locker. It is a basic level
servo motor and works fine with Arduino

The servo motor is connected with Arduino Digital pin D9 and with a 5volt power supply.
This servo motor has a total of 3 input lines (GND, +5V & SIGNAL LINE).

In this project, a 4 x 4 matrix keypad is used. We need a keypad for password input and
manually lock our customized door locker. It consists of 16 keys (soft switch) 4 keys in Rows
(R1, R2, R3, R4) and 4 keys in Columns (C1, C2, C3, C4) when a key pressed, it establishes a
connection in between the corresponding rows and columns.

Connections of 4x4 keypad to Arduino are as follows:-

KEYPAD ARDUINO

PIN 1 (ROW 1) Digital Pin1

PIN 2 (ROW 2) Digital Pin 2

PIN 3 (ROW 3) Digital pin 3

PIN 4 (ROW 4) Digital pin 4


PIN 5 (COLUMNS 5) Digital pin 5

PIN 6 (COLUMNS 6) Digital pin 6

PIN 7 (COLUMNS 7) Digital pin 7

To connect the servo motor with the Arduino, use digital pin D9 of Arduino to output the PWM
pin of the servo motor.

Now we will connect the 16×2 LCD to the Arduino.


1. Connect pin 1, 3, 5, 16 of LCD to the GND.
2. Connect pin 2, 15 of LCD to the VCC (5V).
3. Connect pin 4 of LCD to pin A0 of Arduino.
4. Connect pin 6 of LCD to pin A1 of Arduino.
5. Connect pin 11 of LCD to pin A2 of Arduino.
6. Connect pin 12 of LCD to pin A3 of Arduino.
7. Connect pin 13 of LCD to pin A4 of Arduino.
8. Connect pin 14 of LCD to pin A5 of Arduino.
PROGRAM CODE:

The code for Password Based Door Lock Security System Using Arduino & Keypad can be done
using Arduino IDE.

#include <Keypad.h>

#include <LiquidCrystal.h>

#include <Servo.h>

Servo myservo;

LiquidCrystal lcd(A0, A1, A2, A3, A4, A5);

#define Password_Lenght 7 // Give enough room for six chars + NULL char

int pos = 0; // variable to store the servo position

char Data[Password_Lenght]; // 6 is the number of chars it can hold + the null char = 7

char Master[Password_Lenght] = "167540";

byte data_count = 0, master_count = 0;

bool Pass_is_good;

char customKey;

const byte ROWS = 4;

const byte COLS = 4;

char keys[ROWS][COLS] = {

{'1','2','3','A'},

{'4','5','6','B'},

{'7','8','9','C'},
{'*','0','#','D'},

};

bool door = true;

byte colPins[COLS] ={5,4,3,2}; //connect to the row pinouts of the keypad

byte rowPins[ROWS] = {9,8,7,6}; //connect to the column pinouts of the keypad

Keypad customKeypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS); //initialize an


instance of class NewKeypad

void setup()

myservo.attach(11);

ServoClose();

lcd.begin(16, 2);

lcd.print(" Arduino Door");

lcd.setCursor(0, 1);

lcd.print("--Look project--");

delay(3000);

lcd.clear();

void loop()

if (door == 0)
{

customKey = customKeypad.getKey();

if (customKey == '#')

lcd.clear();

ServoClose();

lcd.print(" Door is close");

delay(3000);

door = 1;

else Open();

void clearData()

while (data_count != 0)

{ // This can be used for any array size,

Data[data_count--] = 0; //clear array for new data

return;

}
void ServoOpen()

for (pos = 180; pos >= 0; pos -= 5) { // goes from 0 degrees to 180 degrees

// in steps of 1 degree

myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(15); // waits 15ms for the servo to reach the position

void ServoClose()

for (pos = 0; pos <= 180; pos += 5) { // goes from 180 degrees to 0 degrees

myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(15); // waits 15ms for the servo to reach the position

void Open()

lcd.setCursor(0, 0);

lcd.print(" Enter Password");

customKey = customKeypad.getKey();

if (customKey) // makes sure a key is actually pressed, equal to (customKey != NO_KEY)


{

Data[data_count] = customKey; // store char into data array

lcd.setCursor(data_count, 1); // move cursor to show each new char

lcd.print(Data[data_count]); // print char at said cursor

data_count++; // increment data array by 1 to store new char, also keep track of the number of
chars entered

if (data_count == Password_Lenght - 1) // if the array index is equal to the number of expected


chars, compare data to master

if (!strcmp(Data, Master)) // equal to (strcmp(Data, Master) == 0)

lcd.clear();

ServoOpen();

lcd.print(" Door is Open");

door = 0;

else

lcd.clear();

lcd.print(" Wrong Password");

delay(1000);
door = 1;

clearData();

APPLICATIONS:

 This simple circuit can be used at residential places to ensure better safety.
 It can be used at organizations to ensure authorized access to highly secured places.
 With a slight modification this Project can be used to control the switching of loads
through password.

CHAPTER 6
ADVANTAGES & DISADVANTAGES

ADVANTAGES:

 This project provides security


 Power consumption is less
 Used commonly available components
 Project is simple and easy
DISADVANTAGES:
 Code Hacking: Unfortunately, without a physical key, it is possible that someone could
guess the password.
 Forgetting Your Password: Choosing a random password is suggested to maximize your
security as it is easier to guess repetitive numbers or important dates.
 Electric Problems: Due to the system’s reliance on electricity, electrical issues can cause
problems. In the event of an electrical failure, the door can be left unlocked, or the lock
could function improperly.

CHAPTER 7
REFERENCES

 www.how2electronics.com
 www.electronicshub.org
 www.create.arduino.cc
 www.circuitdigest.com
 www.technobyte.org
 www.store.arduino.cc
 www.learn.adafruit.com
 www.en.wikipedia.org

You might also like