Srednja Tehnička Škola Općinja Bugojno Bosnia and Herzegovina

Transcription

Srednja Tehnička Škola Općinja Bugojno Bosnia and Herzegovina
A
OL
A
SRE
DN
TEHNIČK
ŠK
JA
BU
G OJ N O
Srednja Tehnička Škola
Općinja Bugojno
Bosnia and Herzegovina
compatible with your need
Haris Basarić & Almin Dadić
2015 / 2016
Table of Contents
I.
Summary ................................................................ 2
II.
Introduction ........................................................... 3
III.
Method and materials............................................ 5
IV.
Results .................................................................. 21
V.
Discussion and conclusion.................................. 23
VI.
Acknowledgments and references ...................... 24
Summary
The large increase in crime in our
country has caused many problems.
A lot of stolen cars, burgled houses,
banks robbed, etc. Security systems
are too common and simple.
Our idea was to build a system that is
different than others. We need
something that will make our private
things secured. That’s where SmartSec
comes!
Firstly, it uses large broadband of
security methods and devices from
biometric to classic security.
It can be embedded into any device
from your car, home to high level
security.
1|P A G E
Introduction
We will implement our security system on safebox. As we said
earlier it will contain broadband of different security methods and
devices.
With invention of SmartSec we believe that major problems will be
solved. Problems like burglary, robberies, stealing and so on. All
these problems arise from fact that our security systems are weak
and it’s too common and simple for criminals to penetrate them.
With use of modern technology, we believe that all these problems
will gone.
Project objectives:
 Reduce crime rate number
 Make your car, house and your community safer place
 Use of modern technology and IoT for security
 To build portable security system that can be embedded into
any device
2|P A G E
What makes our idea special?
- Ability to remotely with smartphone open security system
- Using computer vision algorithm such as face recognition
prevents non-authorized entries.
- Large broadband of security methods makes it impenetrable.
3|P A G E
Methods and materials
Our system is based on Arduino Uno as microcontroller with
following parts:
-
RFID reader/writer
Bluetooth module
Servo motor
Buzzer
LEDs
Push button
Some resistors
4|P A G E
1. ARDUINO
Arduino is common term for a software company, project, and
user community that designs and manufactures computer opensource hardware, open-source software, and microcontroller-based
kits for building digital devices and interactive objects that can
sense and control physical devices.
The project is based on microcontroller board designs, produced
by several vendors, using various microcontrollers. These systems
provide sets of digital and analog I/O pins that can interface to
various expansion boards (termed shields) and other circuits. The
boards feature serial communication interfaces, including
Universal Serial Bus (USB) on some models, for loading programs
from personal computers. For programming the microcontrollers,
the Arduino project provides an integrated development
environment (IDE) based on a programming language named
Processing, which also supports the languages C and C++.
The first Arduino was introduced in 2005, aiming to provide a low
cost, easy way for novices and professionals to create devices that
interact with their environment using sensors and actuators.
Common examples of such devices intended for beginner
hobbyists include simple robots, thermostats, and motion
detectors.
In our project we used Arduino Uno. The Uno is a
microcontroller board based on the ATmega328P. It has 14 digital
input/output pins (of which 6 can be used as PWM outputs), 6
analog inputs, a 16 MHz quartz crystal, a USB connection, a
power jack, an ICSP header and a reset button.
5|P A G E
2. BLUETOOTH MODULE HC-05
HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol)
module, designed for transparent wire- less serial connection setup.
Serial port Bluetooth module is fully qualified Blue- tooth V2.0+EDR
(Enhanced Data Rate) 3Mbps Modula- tion with complete 2.4GHz
6|P A G E
radio transceiver and base- band. It uses CSR Bluecore 04-External
single chip Blue- tooth system with CMOS technology and with AFH(Adaptive Frequency Hopping Feature). It has the foot- print as small as
12.7mmx27mm. Hope it will simplify your overall design/development
cycle.
3. RFID READER/WRITER MFRC522
Radio-frequency identification (RFID) uses electromagnetic fields to
automatically identify and track tags attached to objects. The tags
contain electronically stored information. Passive tags collect energy
from a nearby RFID reader's interrogating radio waves. Active tags have
7|P A G E
a local power source such as a battery and may operate at hundreds of
meters from the RFID reader. Unlike a barcode, the tag need not be
within the line of sight of the reader, so it may be embedded in the
tracked object. RFID is one method for Automatic Identification and
Data Capture (AIDC).
MFRC522 is one of the RFID devices.
4. 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.
8|P A G E
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 closedloop control system.
Servomotors are used in applications such as robotics, CNC machinery
or automated manufacturing.
5. Buzzer
A buzzer or beeper is an audio signalling device, which may be
mechanical, electromechanical, or piezoelectric. Typical uses of buzzers
and beepers include alarm devices, timers and confirmation of user
input such as a mouse click or keystroke.
We used piezoelectric buzzer.
Piezoelectric buzzers, or piezo buzzers, as they are sometimes called,
were invented by Japanese manufacturers and fitted into a wide array of
products during the 1970s to 1980s. This advancement mainly came
about because of cooperative efforts by Japanese manufacturing
9|P A G E
companies. In 1951, they established the Barium Titanate Application
Research Committee, which allowed the companies to be "competitively
cooperative" and bring about several piezoelectric innovations and
inventions.
6. LED
A light-emitting diode (LED) is a two-lead semiconductor light source.
It is a p–n junction diode, which emits light when activated.[4] When a
suitable voltage is applied to the leads, electrons are able to recombine
with electron holes within the device, releasing energy in the form of
photons. This effect is called electroluminescence, and the color of the
light (corresponding to the energy of the photon) is determined by the
energy band gap of the semiconductor.
10 | P A G E
7. RESISTOR
Everyone knows these
A resistor is a passive two-terminal electrical component that
implements electrical resistance as a circuit element. Resistors act to
reduce current flow, and, at the same time, act to lower voltage levels
within circuits.
11 | P A G E
Testing
After experimenting various variations of project with a lot of
errors and failure we finally made it.
First step was to check and prepare Servo for locking and
unlocking safebox. We found piece of metal that fit perfectly
into our lock.
Second step was to prepare RFID reader and card.
Third step was to check Bluetooth communication first and
then with our SmartSec app on smartphone. The test was
success, and after that I started to code an app for Android
smartphone.
Fourth step was adding components for signaling and
debugging.
12 | P A G E
SmartSec app coding
I coded an app in Android Studio. It’s IDE for Android
development. It’s still new and buggy but you have everything
settled up within IDE for Android.
I had a little help with coding from Android developers
community. I had no prior experience in Android development.
I knew how to program in many languages, but this project was
harder, because we wanted to have face recognition in our app.
Because of that, one of developers helped me about that,
showed me how to fully create an app and use OpenCV library.
13 | P A G E
Our app consists of two things:
- Face recognition
- Code security
Face recognition
This was hardest theoretical part of our project. I knew little
about computer vision, but my knowledge from AI helped me a
lot. Basically, we used OpenCV library.
OpenCV stands for Open Computer Vision. It is multiplatform
library for studying, developing and researching methods in
computer vision.
14 | P A G E
It’s such great library and with OpenCV website and their
documentation you can learn very much in field of computer
vision.
The main idea behind face recognition is best presented on the
next picture:
15 | P A G E
Of course we read a lot of documents, books and research
papers on face recognition and detection algorithms and
succeeded to create efficient algorithm.
Code security
This was easier part. The main idea is to have a certain password
in database and if you correctly match the input with password
the signal will be sent to Arduino Bluetooth module, which will
transfer it to Arduino where we could manipulate with that.
16 | P A G E
The principle
At least you have to pass two security methods to unlock the
safebox:
- RFID
- Face recognition
- Code security
After you pass the security measures buzzer will beep and motor
will unlock the safebox.
After you finish what you wanted to do with safebox, you close the
door and press the push button to lock the safebox again.
Installation
So, after planning and designing the project, safebox and electrical
circuit, it was time to install and assemble all together.
After long installation with numerous errors we finally made it.
Hard work always pays off.
17 | P A G E
18 | P A G E
19 | P A G E
Results
After the project was completed we were proud to have our
system working properly with 100% correctness.
Aside from our point of view, we also wanted to know what others
thing in terms of engineering and real use of our SmartSec system.
In terms of engineering many professors, police officers, students
and other people we talked to about our project gave us positive
feedback, because we are using cutting edge technology and
recently evolving technologies like IoT to make things secured.
In terms of real use of SmartSec and statistics about criminal
activites, we talked to many people, from police officers,
politicians and even citizens of our city.
Everyone has its own perspective, but everyone is sure that there is
no 100% guaranteed security and everyone is scared for example
to buy nice car because there is no way to assure its security.
If we look at statistics of crime activity in Bosnia:
20 | P A G E
We see that most of the criminal activity is based on “Against
property”. It’s about 40% of all criminal activity.
21 | P A G E
Discussion and Conclusion
If we sum all this up we will see that our SmartSec can make
difference in our community. These 40% of “Against
property” show us that SmartSec can make difference,
because its focuses on Property Security.
Our future plans would be to try implement SmartSec into
car and try to find customers and investors to make better.
Also, we plan to take it to Kickstarter.
Since SmartSec is still prototype there is long way to go.
I will ask you a couple questions:
1. What’s your opinion about SmartSec?
2. Is it capable of securing property better?
3. What do you think about crime activities, how criminals do that and
what’s the best method to prevent it?
4. Can SmartSec lower crime rate?
5. What do you suggest to us about SmartSec?
6. Do you think that SmartSec is good idea?
22 | P A G E
Acknowledgments and
references
Acknowledgments
We would like to thank:
-
Professor Said Karaosmanovic (our mentor)
Abdulaziz Husic, for design
Carpenter for making safebox
Android developers community
Google 
Wikipedia 
Our sponsors: CAD CAM Solutions
23 | P A G E
References
http://www.ehu.eus/ccwintco/uploads/e/eb/PFC-IonMarques.pdf
http://docs.opencv.org/2.4/modules/contrib/doc/facerec/facerec_tut
orial.html
http://www.bhas.ba/saopstenja/2015/KRIM_PUN_2014_bos.pdf
http://www.nxp.com/documents/data_sheet/MFRC522.pdf
http://www.linotux.ch/arduino/HC0305_serial_module_AT_commamd_set_201104_revised.pdf
http://szeliski.org/Book/drafts/SzeliskiBook_20100903_draft.pdf
http://www.cise.ufl.edu/~jnw/CVAIIA/handbook-chap1.pdf
https://web.stanford.edu/class/ee368/Project_03/Project/reports/ee3
68group02.pdf
http://www.mathworks.com/help/vision/examples/face-detectionand-tracking-using-the-kltalgorithm.html?requestedDomain=www.mathworks.com
http://developer.android.com/index.html
https://commonsware.com/AndTutorials/AndTutorials-3_1-CC.pdf
24 | P A G E
http://www.xda-developers.com/
https://www.wikipedia.org/
25 | P A G E