Smart Security System

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 7

Smart Security System using sound and motion

detection
Abstract- Since the planet is becoming more exists in the market but these have some
chaotic as everyday advances, feeble security problems. For these reasons we want to build a
frameworks are being penetrated easily. smart security system that will be less expensive
Additionally, if we tend to try and create it and give a quality of security as the middle-
stronger and simpler, sadly we need to wear class people and small shopkeepers can easily
down the insane quantity of the price of the afford it.
quality components. However, in this paper, we
put effort to inaugurate cost-effective and robust In our system, we have solved two issues.
security. Utilizing motor, Arduino Uno, PIR Firstly, we have created a system in an
sensor, sound sensor, LED, vibration sensor, exceedingly approach that’s price economical
LCD display, keypad to develop the proposed and provides good security. Our target market is
framework which can be purchased and utilized middle-class people and also tiny shopkeepers.
by an individual with a medium-salary to secure Using Arduino Uno, PIR sensor, LDR, GSM
his significant things and can be installed in module combined, we have been able to
shops. A prototype of the model has been produce a security system which can be in
created to point out the effectiveness, middle-class people’s range to purchase.
profitability, and cost analysis of the proposed Moreover, it will be so easy to put in and
framework. The outcome shows that the operate so that people don’t need to understand
framework is cost-efficient and cheap to the a lot concerning technology to use it. Secondly,
middle-class people and tiny shopkeepers of the in most cases, if somebody breaks the vault or
community. the system there’s nothing that may stop him
  from stealing. However, we will create a false
Key Words- Optimal security system, cost- door using a motor to create an illusion that the
efficient, false door, easy installation, Arduino vault is empty. It doesn’t only create the illusion
Uno, motor. however additionally hides the precious things.
Whenever somebody tries to interrupt it with
something, the door automatically rises and
I. INTRODUCTION hides the precious assets. This way, assets might
be saved, and also the owner can be informed
right away.
Today’s world is full of chaos and problems.
People are being mischievous day by day and The rest of the paper is organized as follows:
doing a heap of crimes. There are a lot of Section II details the background study behind
robberies that happen in a small town, shops, the realization of this work. Section III
and houses. Sometimes people lost their entire illustrates the overall idea of the proposed
life’s income and also their lives because of this model alongside the circuit details of the
robbery. For that reason, people use different proposed model in Proteus simulation and 3d
types of security systems to protect themselves model. Section IV discusses about the results
and their assets.  and cost efficiency of the system and finally,
Section V concludes the paper and discusses
A lot of security systems already exist in the future work.
market. These security systems are giving high
security but they are also very expensive. As a
result, middle-class people cannot afford them. II. LITERATURE REVIEW
There is also some cheap security system that

1
There are a bunch of data structures for
example ZigBee which are used to store
In the age of recent technology, individuals knowledge derived from different sensors [5].
have devoted their time to build a systematic Yet in many other ways, Arduino mega and
sensible lock system utilizing the instrument the programmable micro-controller interface
available within the current time. The priority is used in goal for storage [6]. Those versions
here is to create a system that is both prices include the GSM module and  Biometric
efficient and supply better security to evade recognition was used in place of laser and
safety problems and secure precious things motion sensors. Another usage fits for
from the culprit. To serve the needs of a smart Arduino UNO along with the PIR motion
security system, some work has already been sensor and Wi-Fi module for setting up
done by others to build that kind of system. Wireless security[7].

In this system, a digital interface is utilized But, all of this protection infrastructure has
rather than a physical key to access the system multiple protections scale and as per customer
[1]. Here the components used are Raspberry requirements, along with high tech
Pi, Electronic Lock, Bluetooth lock, digital configuration comes with a high cost that
password. The system detects a person with would not be feasible for middle-class people
PIR Sensor and prompts a message to put a who want to protect their personal belongings
password which may be through with the from trespassers. Compared to our system the
software too however phone has to connect above versions satisfy the safety criteria and
with the security system and log the info. cost-efficient, too. The systems provide not
Wrong Password input sends an email stating only a modern smart protection system but
“Intruder” to the admin of the system and also lift the fake door if the trespassers are
during a power cut the system needs to open attempting to open the lock using machines
manually and provide no other security including drill and hammer.
measurement. 

In another approach to making such a system III. METHODOLOGY


to prevent an attacker from accessing the safe
is to detect the person using a short-range IR
sensor and take a snapshot of that person to A concept has been developed to have a
send it to the server for the facial recognition primary idea of how the system should look and
system to analyze the image and distinguish work. We design that the back door is not
between the approved and intruder[2]. Some apparent, and contact with the user is fine. In
more work has been done on the system addition to other cheap sensors and components,
development where the proposed system is to the Arduino UNO was used as the processing
use bi-modal bio-metrics which consist of unit for the system to be economic. Fig.1
fingerprint and iris scanner which then run a presents the block diagram of the proposed
check with the saved data from the database model.
and these need a complex calculation to
recognize the authenticate person[3]. In
another work, the approach is based on a
security system combining with RFID tag,
MEMS Technology, GSM System, and
micro-controller and sending passwords on
different levels to verify. This process is time-
consuming [4].

2
 
Fig. 1: Block Diagram of the System

As shown in the above diagram, the whole Fig: Circuit Diagram


system has only two fundamental steps for it to
operate successfully. The first is a successful In this diagram, we see Arduino is giving 5V
login process. The keypad takes A matrix input and GND to all. The sound sensor with 13 and
of data to verify the password. Arduino to LCD the motor with pin 11 and 12. Whereas, PIR at
connection is made by jumper wire. PIR sensor A0, and LED at 11. LCD with 9,8,7,6,5,4 and
has a flash memory capacity of 256 KB and was GSM with 1 and 0. Here a row of the keypad
deemed as an effective processing unit for the connected to 2, 3, A4, and A5 pins, and the
proposed model. The Arduino Uno is a column of the keypad connected to A1, A2, and
microcontroller board based on the ATmega328 A3 pins. Motor driver L293D 2 and 7 is
(datasheet). It has 14 digital input/output pins connected to 12 and 11. Motor driver output 1
(of which 6 can be used as PWM outputs), 6 and 2 is connected to the motor.
analog inputs, a 16 MHz ceramic resonator, a
USB connection, a power jack, an ICSP header,
and a reset button. Arduino processes this
directional value and gives output to the
corresponding GSM to warn the owners about
potential threads. As for the other components,
Sound sensors input the analog data and input in
uno. Thus, for a motor to operate needs a set of
proper threshold levels. It takes a high potential
which uno provides very easily.

Fig: 3D Model

3
There is an Arduino UNO that is connected to a 6. When the sound sensor will be high and start
4x4 keypad, PIR sensor, LED, GSM, and LCD. making sounds.
It was kept in the front of the box so that it can 7. We give the password
view from outside. A 4x4 The keypad is placed 8. If the master key and custom key matched the
below to take a password. There is PIR just password is right
behind the keypad to detect motion and turn on 9. When the sound sensor is on and the
the LED so that it will light up the keypad. password is right the sound sensor turns off else
After verification there is an LCD was placed it will keep making sound
up of the square hole to display the password in 10. If the PIR sensor detects something it will
“*” and whether the vault is open or the automatically turn on led
password is wrong. GSM module is under the 11. If the password is wrong three times it will
vault to send a message if the password is send a warning message to the owner.
wrong consecutively three times.

2. Lock Down Process:


b. Algorithm:

1. 1st we initialized the sound sensor and motor.


2. To take sound sensor input we took a variable
called “Status” and for output “output value”.
3. Output value use constrain(255-map()) to
1. Login Verification: map sensor value to the range of the analog out,
a. Algorithm: decrease a bit and constrain the value
4. when the value of the measurement is 1000
1. password length is selected
or more and the value of output Value is 50 or
2. Master password is given
more the motor will turn into 180 degrees.
3. mapped the keypad in row and column
4. Initialized class of an instance of password
5. LCD initialized

4
IV. RESULTS according to the master key gives the following
results:
To get the desired result from the sound sensor
Output on the LCD screen is:
and displayed in the LCD screen we defined the
LCD pin number that is going to get the input Pressing 1,2,3,4 = Door Open       
value from Arduino and that is LiquidCrystal Pressing random = Invalid Password
LCD (9,8,7,6,5,4). Inside the bracket are the pin
numbers. Followed by that we gave the pin The motor part, the motor is connected to
value 13 to a variable called status where the Arduino 11 and 12 number pins where the
toggled value is passed to the Arduino 13 pin motor’s M1 and M2 are defined. Depending on
number. Finally made the LCD panel on by the pins it gets rotated in one direction and gets
lcd.begin(16,2) here 16,2 means a 2 line display anti-rotation in the other direction. In between
each character capacity to show is 16. While this one direction and another direction, there is
toggling the output on the LCD screen is: a certain delay set to 3000.
Pin high = 1V = Detected! Output: With the help of motor driver L298 it
Pin low = 0V = Not Detected! shows the motor is rotating anti-clockwise
direction.
There is a delay value of 500 so that we can see
the toggle difference. For GSM modules it sends the user a message
Similar to the sound sensor for the PIR sensor using UART protocol. With the help of Arduino
first, results from the PIR sensor are displayed AT commands are used to send and receive
on the LCD screen. We defined the LCD pin SMS. Here Arduino 0 and 1 pins are RX and
number that is going to get the input value from TX pins which are set to gsm module’s transfer
Arduino and that is LiquidCrystal LCD and receive pin for sending and getting
(9,8,7,6,5,4). Followed by that we gave the pin information. However, the gsm library in
value A0 to a variable called status where the arduino is used.
toggled value is passed to the Arduino A0 pin
number. While toggling the output on the LCD Output: 
screen is:
For sending:
Pin high = 1V = Welcome! AT+CMGF=1
Pin low = 0V = No one here! AT+CMGS=\"+91xxxxxxxxxx
I am SMS from GSM Module

For receiving:
On the keypad section, Similar to sound and AT+CNMI=2,2,0,0,0
PIR sensor for Keypad first, the result from the
keypad sensor is displayed in the LCD screen
where we defined the LCD pin number that is
going to get the input value from Arduino and
that is LiquidCrystal LCD (9,8,7,6,5,4). Second, Cost Analysis- One of the main challenges
we defined the number of rows and columns the behind the smart security system was reducing
keypad has which is 4. In this part, an important the overall expense of a reliable security
thing where row pins are connected to Arduino system. For most middle-class families and
3,2,19 and 18 pins were pressing the keypad’s small shop owners, affordability is an essential
row value is sent to the Arduino and column problem.We did a market research and at a very
pins are connected to 17,16,15 and 14 pin cheap expense, we tried to develop the system.
number to Arduino. Finally inside a loop The cost estimate based on the proposed system
matching the given master key or not matched is found in Table 1.

5
No. Components Name Price in be placed in several warehouses where items
(BDT) can be stored and safe.
1. Arduino UNO 349
ACKNOWLEDGMENT
2. PIR Motion Sensor 88
3. GSM Module 399 The authors want to say a big thanks to Dr. Md.
Khalilur Rhaman, Abdulla Hil Kafi, Raihana
4. Sound Sensor Module 120 Shams Islam Antara for providing us a platform
where we might define an issue and attempt to
5. Motor Driver 499
incorporate an idea to fix it.
6. 4*4 Keypad membrane 74
7. 16*2 LCD Display 159 REFERENCES
Total 1688
[1] A.Churi, A.Bhat, R.Mohite, P.P.Churi, “E –
zip: An electronic lock for secured system”,
2016 IEEE International Conference on
Table 1: Cost Analysis of the proposed Advances in Electronics, Communication and
system. Computer Technology (ICAECCT), Rajarshi
Shahu College of Engineering, Pune India. Dec
2-3, 2016
V. CONCLUSION [2] V.J. Saglani, A.V. Gupta, R.Sarma,
S.Pathak, Dr. D Rekha, “IoT based smart Safe
The high cost and lack of affordability of the System”, International Conference on
security system was a big worry. The cost- Computational Techniques, Electronics and
effective smart security device in the presented Mechanical Systems (CTEMS), Vellore
work is an effort to provide the security that Institute of Technology, Chennai, Tamilnadu,
middle-class people and small shop owners India.
deserve.  
[3] k. Okokpujie, O. Modupe, E. Noma-
i. Limitations of the system:
Osaghae, O. Abayomi-Alli, E.Oluwawemimo,
“A Bimodal Biometric Bank Vault Access
One big weakness of our system is when
Control System”. International Journal of
someone knows about a password he or she can
Mechanical Engineering and Technology
activate the device by that.  Consequently, it is
(IJMET),9(9), pp. 596-607.
best to keep the password very secret.
[4] A.S. Kale, A.V. Deshmuk, M.V Benodkar,
ii. Future Work:
P.K. Nage, S.F. Fukate, “Design of Banking
Security System Using Mems And Rfid
We are aiming to implement two-factor
Technology”, The International Journal Of
password authentication in the near future,
Engineering And Science ISSN (e): 2319 –
where only an authentic user can access the
1813 ISSN (p): 2319 – 1805
device. First, he/she will input the password,
and then he/she will obtain another password [5] Zhangxing, Fuyaoxian, & Wangyingguan.
via their phone and then eventually unlock the (2012). Design and implementation of smart
device by entering the specific code. Finally, we home monitoring system based on msp430.
plan to run on a broad scale; we will use the 2012 IEEE Symposium on Electrical &
same principle to create a bigger vault that can Electronics Engineering (EEESYM). 

6
[6] C. Nayyar, B. Valarmathi, K. Santhi, (2017). [7] M. Andriansyah, M. Subali, I. Purwanto,
Home security and energy-efficient home S.A. Irianto, R.A. Pramono, (2017). e-KTP as
automation system using arduino. 2017 the basis of home security system using arduino
International Conference on Communication UNO. 2017 4th International Conference on
and Signal Processing (ICCSP).  Computer Applications and Information
Processing Technology (CAIPT).

You might also like