Manuscript Qam
Manuscript Qam
1)
Faculty of electrical engineering, University of Bihać, Associate professor, Bihać 77000, BiH
2)
Faculty of electrical engineering, University of Bihać, Postgraduate student, Bihać 77000, BiH
3)
Faculty of electrical engineering, University of Bihać, Teaching assistant, Bihać 77000, BiH
ABSTRACT Nowadays, we can say with certainty that we live in a dangerous world. Every day we hear reports of burglaries
in homes, apartments, theft of cars, etc. Regardless of the existence of classic alarm systems, security burglary continues to occur.
Theft of cars is particularly pronounced. According to official reports, 774 cars were stolen in Bosnia and Herzegovina in 2017.
To solve this problem, we propose the smart alarm system based on microcontroller, GPS and GSM. In this system, detection of
burglary in the car is performed using a passive infrared sensor. In case of security breach, PIR sensor reacts and sends
information about it to ATMega328 microcontroller. The microcontroller processes the received information and acts on the
SIM900A GSM GPRS module. This module sends the SMS message to the car owner about security breach in the car. If the car
owner does not reset the alarm within 10 minutes, the projected system will send a new SMS message but now with the current
GPS coordinates of the car location. This process of sending SMS message with GPS coordinates will be repeated every 10
minutes, until the car owner resets the alarm. In that way the car owner owns the information of current locations of his car, and
can forward them to police. Reducing of energy consumption is achieved using a "sleep mode" for microcontroller ATmega328.
KEY WORDS : Car alarm system, Microcontroller, Infrared sensor, GPS, GSM
10 minutes. These messages are sent as long as the car is similar to average factory alarm system, except with
owner does not reset the alarm. more control options. 2-Way paging car alarm system
means two way communications to alarm. The Viper
2. OVERVIEW OF CAR ALARM SYSTEMS Responder 350 is an example of this. If the car is locked,
the remote will inform car owner that the car was
successfully locked. If the car is broken, the alarm will
Electronic device installed in a car to discourge theft of notify the owner that the car is in danger. 2-Way paging
the vehicle or car contents is car alarm. Year 1913 systems have range limitations about a mile between car
unknown prisoner from Denver had invented an early and its transmitter. Starting car from a mile away sounds
version of car alarm for use. Three years later was like a good thing. Car alarm remote start systems are
published alarm inspired by an early version of a remote made of car alarms with the ability to start car from a
starter. This version is based on idea that the car owner distance. The AutoPage C3 RS-665 is a great example
carries a receiver, which would buzz if the car ignition of this type of car alarm systems. If it’s cold outside, we
system was tampered with(Car alarm, 2018). can turn our car on to heat it up or even cool it down.
Security features are built in and active while car is
In todays world exists a lot different versions of car running without its driver. 2-way car alarm remote start
alarm systems and most of them is based on one or systems give all the features in one package.
more sensors connected on some siren. In someone tries The AutoPage C3-RS730 LCD is an all-in-one system.
to get into the car, the siren would start. In the extended
form, modern car alarm systems consist of (How car Table1. Best all-in-one car alarms by CarAudioNow.
alarms work, 2018): CAR REMOTE PAGING
SMART-
No. PHONE $
ALARM START TYPE
APP
- An array of sensors that can include switches, 1
Compustar
yes 2 way no $$
CS6900-AS
pressure sensor and motion detectors
- A siren, often able to create a variety of 2
Crimestopper
yes 2 way no $$
SP-502
sounds so that you can pick a distinct sound
for your car 3
Viper
yes 2 way yes $$$
VSS5000
- A radio receiver to allow wireless control
from a key fob 4
Python
yes 2 way yes $$
PS5000
- An auxiliary battery so that the alarm can
operate even if the main battery gets 5 Avital 5303L yes 2 way yes $$
disconnected
- A computer control unit that monitors 6
Compustar
yes 1 way no $
CS700-AS
everything and sounds the alarm
7 Viper 5906V yes 2 way no $$$
Considering the installation time, car alarms can be
divided into two categories (Car alarm, 2018):
OEM (built into the car at the factory) and Today's car alarms have sensors placed all around the
Aftermarket (installed at any time after the car has been car to monitor several things. From a door opening to
built, such as by the new car dealer, an auto accessories big damage and tire jacking, great alarm systems will
store, or the car owner). alert us in real time what is happening to car. A list of
Based on their activation method, car alarm systems can 2018's top rated and reviewed car alarms, according to
be divided into two main categories (Types of car alarm the source CarAudioNow (Best car alarm systems, 2018) is
systems, 2018): passive (once engine is turned off and car shown in Table 1.
is locked, the alarm system automatically arms) and
active (need to manually activate and deactivate an 3. DESIGN OF CAR ALARM USING
active car alarm system by pressing a transmitter button). MICROCONTROLLER, GSM AND GPS
As mentioned in the introduction, product specialist,
Kyle D. has sorted car alarms in several groups and they The aim of the project is designing the car alarm with
are described in the following way (Different Types of the following features:
Car Alarms and Remote Start Systems, News on the Car 1. activating the alarm by movement
Audio Industry, 2010). 2. in case of alarm activation, the projected system
A shock sensor, siren and a remote control are parts of a
sends SMS messages
standard car alarm system. The Viper 350 Plus is good
example of this type of car alarm. A standard car alarm
Edin Mujčić
3. after a while (10 minutes), the projected system interface, and output), inexpensive and can
sends a new SMS message with the GPS communicate with software running on your computer
coordinates of the current location of the car (Purkayastha at al, 2014). The Arduino Uno Boards
4. security system repeats sending SMS message (Figure. 2) are uploaded with specific programs that
with the GPS coordinates until the alarm is reset enables them to perform their required operations
by the car owner (Felić and Mujčić, 2018).
5. the car owner can influence on the individual The Arduino Uno is a microcontroller board based on
parts of the car and disable further movement of the ATMega328. It has 28 pins, 14 digital input/output
the car by sending the SMS message. pins (6 of 14 can be used as PWM outputs), 6 analog
inputs, power supply pins, a 16 MHz crystal oscillator, a
USB connection, a power jack, an ICSP header, and a
reset button.
sensor, 2018). The PIR sensor has two slots. Each slot is
made of a special material that is sensitive to infrared
radiation. When the sensor is idle, both slots detect the
same amount of infrared radiation. When a body passes
by, it intercepts one half of the PIR sensor, which causes
a positive differential change between the two halves.
When the body leaves the sensing area, the reverse
happens. These changes of pulses are what is detected
(Figure 5b) (Mujčić, Škrgić and Drakulić, 2018).
3.3. GSM technology, SMS technology and Figure 5. a) PIR sensor b) Work principle of PIR sensor.
SIM900A module
3.5. Relay module
Global System of Mobile (GSM) and Short Message
A relay is an electrically operated switch. Many relays
Service (SMS) technologies are a common feature all
use an electromagnet to mechanically operate a switch,
mobile network service providers (Fan at al, 2006;
but other operating principles are also used, such as
Hsiao and Chang, 2006). Using of SMS technology has
solid-state relays. Relays are used where it is necessary
become popular because it is an inexpensive, convenient
to control a circuit by a separate low-power signal, or
and accessible way of transferring and receiving data
where several circuits must be controlled by one signal.
with high reliability (SIM_900A GSM GPRS module,
In this project it is used 2-Channel 5 V Relay Module. It
2018). The SIM900A (Figure 4) is a complete Dual-
is shown in Figure 6.
band GSM/GPRS solution in a SMT module which can
be embedded in the customer applications.
Figure 4. SIM900A GSM GPRS module. This module consists of two relays with optocouplers at
the input, in order to isolate the microcontroller from the
Featuring an industry-standard interface, the SIM900A relay.
delivers GSM/GPRS 900/1800MHz performance for
voice, SMS, Data, and Fax in a small form factor and 3.6. Development of security system for car based
with low power consumption (Mujčić at al, 2017). on microcontroller, GPS and GSM technology
3.4. Infrared motion sensor detector In this section of the paper is described a development
of car alarm system based on microcontroller, GSM and
PIR (Passive InfraRed Sensor) sensor (Figure 5a) is GPS technology. For the realization of the car alarm
motion detector. It detects movement of people, animals system, we need a microcontroller that processes all the
or other objects (PIR passive infrared proximity motion information and connects the system to a one functional
Edin Mujčić
whole. Because easier communication and Table 2. Connecting Arduino Uno with other electrical
programming, we used the Arduino board with the parts.
ATMega328 microcontroller. In order for the car owner
ARDUINO UNO
to communicate with the microcontroller using SMS ELECTRICAL PARTS
messages, a GSM GPRS module is required. In this PIR SENSOR DP2
project, the SIM900A GPS GPRS module was used. To
determine the current geographic location of the car, the RX TX DP5
GPS MODULE
RoyalTek REB-5216 GPS module was used. Finally,
for motion detection we used the HC-SR501 PIR sensor TX RX DP6
and relay module is used for the car lights and siren RX TX DP7
sound when the alarm is activated. The block diagram GSM GPRS MODULE
of the described system is shown in Figure 7. TX RX DP8
Relay 1 DP9
RELAY MODULE
Relay 2 DP 10
moment when the car owner leaves the car). After the security system, i.e. near the Faculty of Technical
start, the projected alarm system is not active for some Engineering Bihac, B&H.
time (60 seconds). This time is left due to accidental
activation of the alarm when leaving the car. After 60
seconds, the projected car alarm system becomes active.
Due to reduced energy consumption, the ATMega328
microcontroller goes into sleep mode. In case of
unauthorized entry into the car, the motion sensor is
activated and the ATMega328microcontroller returns to
normal operating mode. After that, the projected car
alarm system sends SMS message “Somebody is in your
car!” to the car owner. The received message from the
projected car alarm system is shown in Figure 10.a.
In the first case, the burglar does not have information
that the car owner is informed about unauthorized entry
into the car. In the second case, siren and car lights will
be activated in order to scare the burglar. If the alarm is
not deactivated by the car owner, a new SMS message
will be sent to car owner after 10 minutes. That message
contains information about current geographic location
of the car, i.e. GPS coordinates.
Sending SMS messages with GPS coordinates will be
repeated every 10 minutes as long as the car owner does
not reset the projected security system. The car owner Figure 11. Current car location and Google Map view of
has enough time to notify the police about the alienation the car location.
of the car and forward to them the GPS coordinates, i.e.
received SMS message. Received message with current It is possible to get Arduino Uno to sleep mode. Sleep
geographic location of the car is shown in Figure 10.b. mode in this project is used to reduce energy
consumption on Arduino boards. If security system is
sending SMS message, energy consumption is 1260
mWs. If security system does not send message and just
works in normal operating mode, energy consumption is
738 mWs. If security system works in sleep mode,
energy consumption is 558 mWs. Reducing the energy
consumption of 180 mWs was achieved by using sleep
mode.
5. CONCLUSION
knowledge of the current geographic location (e.g. child and Applications. Lecture Notes in Networks and
safety and information about child's current location). Systems, vol 3. Springer, Cham