You are on page 1of 6

International Review of Automatic Control (I.RE.A.CO.), Vol. 9, N.

6
ISSN 1974-6059 November 2016

Low-Cost Energy-Efficient Smart Monitoring System


Using Open-Source Microcontrollers

Hadi Jameel1, Husam Kareem2

Abstract – Monitoring home/office and many other locations have become highly recommended
and very important in present time. Different types of security and monitoring systems are
available in the markets but they have different pros and cons upon each other. This paper
presents the design and prototype implementation of a highly scalable low-cost energy efficient
smart monitoring system. Unlike the majority of the available monitoring systems in the markets,
this system exploits the concept of parallel processing by combining more than one
microcontroller (based on the design requirement). The Interface of microcontrollers together is
based on the master/slave technique which uses one central (master) microcontroller and one or
more slave microcontrollers. The communications between the central microcontroller and the
secondary microcontroller(s) is done using I2C protocol. This system consists of microcontrollers
and hidden motion detection sensors that trigger the functionalities of other system components
such as buzzers, lights, cameras, and GSM. Moreover, an authentication code is used in the
system in order to allow authorized users to activate and deactivate the system. Copyright © 2016
Praise Worthy Prize S.r.l. - All rights reserved.

Keywords: GSM, I2C Protocol, Monitoring System, Open Source Microcontroller, Parallel
Processing

I. Introduction previously presented systems because they are presented


either as monitoring system only [2] or full home
Generally, in worldwide and particularly in Iraq, automation system but compromising the energy
energy conservation has become an important concern consumption [3],[4] and the scalability.
for the sustained development of many projects. In a The main objective of this study is to introduce a
developing country like Iraq, the case is more grieved smart monitoring system presenting an outperformance
since there is an insufficiency of the electrical power. over other systems achieved by combining energy
Moreover, the developing and scalability cost cannot be efficiency, low-cost and scalability in the same system.
neglected in the design of any project. Therefore, this The operation of the system can be shown in details
system is meant to achieve an affordable cost by being an based on three stages; the first stage is the activating
energy efficient and by using an open source stage which starts when the system is activated by
microcontroller which represents the core of the system. entering the activation code. The second stage begins
Open source microcontroller is a type of hardware whose when an event (movement) is detected; therefore it is
sketches and designs are unrestricted and freely available called the detection stage. In the last stage a key is
for everyone [1]. entered to deactivate the system and stop all its
In addition to the above mentioned advantages, the functionalities, hence it is known as a deactivation stage.
system is designed to be highly scalable when more than
one microcontroller is used in a master/slave scheme.
Thus, the system can be designed to fit with one location II. Related Work
up to many locations of the same building.
Besides the scalability feature, the system has In the recent advances, various communication
flexibility in the design process; the system can be systems have been employed to create a wide variety of
designed to work as single task system up to a fully smart smart systems like healthcare systems [5], smart sentinel
home automation system. For example, the system can system [6], sensing and monitoring systems [7],
be designed to serve only one single task at home such as buildings automation systems [4] and so on. In this
locking/unlocking home's doors or it can be designed to section the related previous work on buildings
handle a number of tasks at the same time such as automation systems will be explored.
lighting control, fire sensing, heating control, movement A smart home can be defined as a residence provided
detecting and monitoring and so on. Therefore, this with advanced technology which anticipates and
system gets significant advantages compared with the responds to the demands of the occupants, functioning to

Copyright © 2016 Praise Worthy Prize S.r.l. - All rights reserved DOI: 10.15866/ireaco.v9i6.10315

423
Hadi Jameel, Husam Kareem

raise their security, convenience, and comfort [8]. used for short range communication. Fig. 1 shows a
The comprehensive concept of smart homes is the top general conceptual model for Bluetooth based smart
domestic technology can conceive. The smart homes home system controlled by a smartphone.
automation systems technology, which was considered as
science-fiction, has been transformed in reality when it
was introduced formally by the American Association of
House Builders [8]. After that, a wide variety of studies
have been introduced in the field of smart homes. This
paper will categorize the previous work on the basis of
the wireless communication technologies utilized in the
system to achieve sensing, remote data transfer and
controlling like Bluetooth, Wi-Fi, and GSM.
Since Bluetooth technology has become a built in
technology in the majority of smartphone devices as well
as it is secure and simple, so that it is considered as a Fig. 1. General conceptual model of Bluetooth based
low-cost solution for wireless connection between home smart home system
automation systems and smartphones. Hence, numerous
home automation system studies have been presented Researchers tried to extend the connection range so
based on the Bluetooth communication technology. The that to employ the WiFi technology to connect to the
system presented in [9] consists of two main hardware internet to remotely access and control home devices and
devices: the Arduino Bluetooth and the smartphone. The appliances. A distributed home automation system has
communications between these two parts are done using been developed using WiFi technology to be the network
a python script. The python script is hosted by the infrastructure connecting its parts [13]. This system
smartphone to enable the user to access and control the mainly comprises two parts; the first one is the web
home appliances. A smart living system based on server which acts as system core responsible for
Bluetooth and android smartphone has been introduced controlling, managing, and monitoring users' home.
in [10]. The system is called home lighting control The second part is represented by hardware interface
system and it consists of a microchip and several that provides proper connection to sensors and actuators
Bluetooth modules making a network of Bluetooth of home automation system. Integration between ZigBee
devices called "Piconet" [10]. The Bluetooth devices and WiFi technologies to establish a smart home
connected are based on the master-slave structure where automation system has been introduced in [14]. The
the Bluetooth smartphone acts as the master one while system includes sensor networks using ZigBee
other Bluetooth devices, linked to the switches and home technology to connect ZigBee and devices hosted by the
lighting system, work as slave devices. The microchip sensor nodes that can monitor temperature and humidity.
constantly checks the status of the lights and of input The sensors send the information to the microcontroller
commands from the smartphone.Some of the Smart which hosts the ZigBee coordinator. The microcontroller
home systems, Bluetooth based, are designed to serve a transmits the sensed data to a WiFi base station so that it
specific task at home such as locking/unlocking home can be remotely accessed and controlled through the
doors [11]-[12]. The security system developed in [11] internet by a PC and/or smartphone.
can control doors locks at home. The system requires to Therefore, the use of WiFi technology in home
be used in short range communication so that it is based automation system can eliminate the limitation of the
upon Bluetooth communication technology [11]. Java connection distance that occurred in Bluetooth
programming language is used to design the GUI of the technology. However, WiFi based projects require a
program hosted by android smartphone. The system can reliable and robust internet connection to assure the
actuate a pin that can lock/unlock a door using an system connectivity. In addition, the design cost and
android smartphone. Another study done in [12], presents complexity issues cannot be neglected in such projects.
a project that can assist people with physical disabilities Fig. 2 shows a general paradigm for WiFi based smart
to lock and unlock home door. The project utilizes a home systems.
Bluetooth module to establish the communication
between the user smartphone and the microcontroller
board then to the door lock.
The authors designed an android application called
Lockit Door, by using Java language, to allow the user
gain control on locking or unlocking the home door. The
project is tested and evaluated using three different
locations: indoor (non-obstacle), outdoor (non-obstacle),
and indoor (obstacle). Although Bluetooth can provide
secure, simple, and low-cost connection among different
smart home systems and mobile devices, it can only be
Fig. 2. General conceptual model of WiFi based smart home system

Copyright © 2016 Praise Worthy Prize S.r.l. - All rights reserved International Review of Automatic Control, Vol. 9, N. 6

424
Hadi Jameel, Husam Kareem

Taking in consideration the limitation in


communication distance in Bluetooth and the restriction
derived by the use of a reliable and robust internet
connection to assure the operation of WiFi based smart
home systems, researchers tend to use more flexible
communication technologies that can be used for remote
access control systems and at the same time do not
require an internet connection as the Global System for
Mobile Communication (GSM) [19].
Authors of [15] proposed a system that uses SMS Fig. 3. General conceptual model of GSM based smart home system
service through GSM network to provide the user a
TABLE I
remote monitor and control their home automation EXTRA DETAILS FOR THE RELATED WORK
system. The main goal of the proposed system is to MENTIONED IN THIS STUDY
design and implement a low cost, flexible, and secure Ref. Microcontroller
Communication Programming Code
home automation system. The system includes two major Technology and Tools
[3] ATmega328 WiFi, Internet C
components: the communication interface between the
[4] ATmega328 WiFi, Internet C, Java
user and home automation system represented by the [9] ATmega168 Bluetooth C, Python
GSM modem and the bridge between the sensors and Microchip
[10] Bluetooth ADT, SDK, JDK
appliance of home automation system and GSM network (Not specified)
[11] Atmel ATmega2560 Bluetooth C, SDK
which is represented by the microcontroller. Moreover
ATmega
the system is capable of functioning within two modes: [12] Bluetooth C, Eclipse (Java)
(Arduino Uno)
monitoring mode and the execution mode [15]. A remote [13] 8-bit Atmel WiFi, Internet C, ASP.NET
monitoring and controlling system based on the [14] Atmel ATmega2560 ZigBee, WiFi C, Java
integration of Bluetooth and GSM technologies is [15] Atmel AT89C55 GSM C
8-bit Java Server Pages
presented in [16]. The system is designed to achieve low [16] microcontroller GSM, Bluetooth JavaBeans
power consumption by using IR sensor to control fans, (not specified) Interactive C
lights, and other appliances via SMS service through
GSM network. In addition, users can control the system It is worthy to mention that some researches have
by using the Bluetooth, in case the user is in an area been done to facilitate the use of GSM system as in [17]
covered by Bluetooth communication range. which can be considered an extra feature for this system.
Therefore, using Bluetooth as an alternative for GSM Moreover, the system is designed to be highly scalable
when the user is within the Bluetooth coverage range has and it can be used for small places up to large buildings.
an advantage of eliminating the SMS usage charges. The novel approach utilized in the system has made it
Hence, the integration of GSM and Bluetooth could highly scalable, not only in term of size but also in terms
compromise the drawbacks of technologies represented of adding more functions and services to the system.
by the short distance communication of Bluetooth and The main contribution of the proposed system, which
the cost of exchanging SMS messages between the user makes it significant among other systems in the markets,
and GSM module. is the implementation of the parallel processing
A general scenario of GSM based home automation approach. The system prototype is built based on the
system is shown in Fig. 3. Table I summarizes concept of the parallel processing that can operate on
microcontroller type, communication technology, more than one processer at a time. Based on a
smartphone operating system, and end user software used master/slave approach, the system consists of one master
for each system mentioned above. microcontroller and one or more slave microcontroller(s).
The communication between the master microcontroller
and the slave(s) is done using I2C protocol. In addition to
III. Problem Definition the scalability advantage that can be gained by
The design of any monitoring and surveillance combining a number of microcontrollers, a processing
systems can possibly face many challenges such as: cost speed has become higher and consequently, the response
of ownership, energy conservation, security, and time of home appliances to the triggering events is
scalability. The proposed system tries to overcome the getting faster than ever.
costs by using a low cost equipment which is mostly
open source and on the shelf hardware. On the other
hand, most of the system components will operate only if IV. System design and methods
an event is detected (movement) so that the energy In this section, a prototype design and implementation
consumption is minimized to the lowest possible level. In for the proposed system is presented. The system design
terms of security, the system uses GSM technology is divided into two main parts: hardware and software.
which is known as high secured communication The hardware comprises the physical components while
technology that does not require an internet connection the software includes the codes and protocols that run
making it high reliable and non-vulnerable. and control the hardware.

Copyright © 2016 Praise Worthy Prize S.r.l. - All rights reserved International Review of Automatic Control, Vol. 9, N. 6

425
Hadi Jameel, Husam Kareem

IV.1. Hardware activation code and waits for an event (movement). The
second stage starts when an event is detected
The main hardware component of the system
(movement), the system will turn on the warning and
prototype is represented by the microcontroller(s). As
monitoring services. The last stage can be defined as the
stated above, the system contains one central
deactivation stage since the system will continue
microcontroller and one or more secondary
activating its services till a deactivation code is entered.
microcontroller(s) connected and operated as
master/slave microcontrollers. The Arduino Mega board
based on ATmega2560 microcontroller is used to V.1. Activation Stage
function as the master one while the Arduino Uno board
based on ATmega328 microcontroller is employed to At the beginning, the system is not active and to
operate as the slave. As mentioned in the IEEE spectrum activate it, it is required to enter the activation code.
"Arduino has become the most influential open-source Once the code is entered, the LCD displays an invalid pin
hardware movement of its time" [18]. Moreover, a PIR in case the entered code is incorrect. Whereas, the LCD
motion detection sensor which detects the Infrared Rays displays a valid pin and after that shows that the system
released by human body motion within the detection area activated to inform the user that the system is in the
of 7 Meters is used. A mini WiFi Camera combined with activation mode. When a movement is detected, this
a servo motor is used to start an immediate recording stage is finished and moves to the second stage. The
upon movement detection. operation procedure is shown in Fig. 5.
The system uses a GSM communication technology to
communicate with the user. Lastly, a keypad is used to
input the system activation key to the master
microcontroller. A block diagram that shows the
input/output devices is presented in Fig. 4.

Fig. 5. Flowchart of the first stage operation

V.2. Detection Stage


The detection stage starts when an event is detected
(movement). Based on the prototype of the proposed
system, there are two entrances in the testing place.
Therefore, the movement is expected from two locations
Fig. 4. Block diagram for hardware devices of the system prototype
which are both equipped with two hidden PIR sensors,
one for each.
IV.2. Software The first response is done by activating a sound alarm
followed by turning the lights on. After that, the camera
Arduino software is a set of instructions used to tell mounted on a servo motor will rotate to the movement
the hardware devices what to do and how to do it. The location and starts recording. The recording of the
Arduino software, which is represented by the Arduino camera can be shared using WiFi network and can be
integrated development environment (IDE), is used to saved on an SD memory chip. Then, a SMS message is
develop and to evaluate the proposed system. Moreover, sent by the GSM modem to warn the user about any
different type libraries, which are compatible with the suspicious movement. Lastly, the LCD displays a
Arduino IDE are used like LCD, keypad, I2C protocol statement that tells system triggered. The flowchart of
libraries. this stage is shown in Fig. 6.

V. System Operation V.3. Deactivation Stage


In order to simplify and to clarify the system As long as the deactivation key is not entered, LCD
operation, it will be divided into three stages: the displays an invalid pin and the system will continue
activation stage which begins when the user enters the checking if there is still a movement inside the place and

Copyright © 2016 Praise Worthy Prize S.r.l. - All rights reserved International Review of Automatic Control, Vol. 9, N. 6

426
Hadi Jameel, Husam Kareem

if so, it would make all the functions mentioned in stage of the most reliable and robust communication
two. In contrast, a valid key is entered, LCD displays technologies. As a part of future works, more functions
valid pin then shows system deactivated statement. A will be added to the system and more slave
flowchart of this stage is shown in Fig. 7. microcontrollers will implement and evaluate the system
in real building not just as a prototype.

References
[1] Russell, Luke, A. L. Steele, and R. Goubran, Low-cost, rapid
prototyping of IMU and pressure monitoring system using an
open source hardware design, In Instrumentation and
Measurement Technology Conference (I2MTC), pp. 2695-2699.
IEEE, May 2012.
[2] K. Anuj, I. P. Singh, and S. K. Sud, Energy efficient and low-cost
indoor environment monitoring system based on the IEEE 1451
standard, IEEE Sensors Journal, Vol. 11(Issue 10): 2598-2610,
October 2011.
[3] A. Andi, and A. W. Dani, Design of small smart home system
based on Arduino, In Electrical Power, Electronics,
Communications, Controls and Informatics Seminar (EECCIS),
2014, pp. 121-125. August 2014.
[4] P. Rajeev, Internet of things: Ubiquitous home control and
monitoring system using Android based smart phone,
Fig. 6. Flowchart of the second stage operation International Journal of Internet of Things, Vol. 2(Issue 1): 5-11,
2013.
[5] Khan, D., Alam, A., Talha, M., Kumar, P., Investigation of a
Compact Ultrawide Band Antenna for Wearable Applications,
(2014) International Journal on Communications Antenna and
Propagation (IRECAP), 4 (4), pp. 124-129.
[6] Bernabéu, J., Berna-Martinez, J., Pérez, F., Smart Sentinel:
Monitoring and Prevention System in the Smart Cities, (2014)
International Review on Computers and Software (IRECOS), 9
(9), pp. 1554-1559.
[7] Adnan, A., Hanapi, Z., Geographic Routing Protocols for
Wireless Sensor Networks: Design and Security Perspectives,
(2015) International Journal on Communications Antenna and
Propagation (IRECAP), 5 (4), pp. 197-211.
[8] F. Aldrich, Smart homes: past, present and future, In Inside the
smart home, pp. 17-39. Springer London, 2003.
[9] P. Rajeev, M. Tazil, Bluetooth based home automation system
using cell phone, In Consumer Electronics (ISCE), 2011 IEEE
15th International Symposium on, pp. 192-195. IEEE, Jun 2011.
[10] Y. Ming, H. Shi, Smart Living Using Bluetooth-Based Android
Smartphone, International Journal of Wireless & Mobile
Networks Vol. 5(Issue 1): 65-72, February 2013.
[11] P. Josh, S. Sukittanon, Exploiting Bluetooth on Android mobile
devices for home security application, In Southeastcon, 2012
Proceedings of IEEE, pp. 1-4, IEEE, March 2012.
[12] N. H. Ismail, Z. Tukiran, N. N. Shamsuddin, EI S. Saadon,
Fig. 7. Flowchart of the third stage operation Android-based home door locks application via Bluetooth for
disabled people, In Control System, Computing and Engineering
(ICCSCE), 2014 IEEE International Conference on, pp. 227-231.
VI. Conclusion IEEE, November 2014.
[13] E. Ahmed, K. A. Hamed, Design and implementation of a WIFI
This study presents a novel low-cost energy efficient based home automation system, World academy of science,
engineering and technology Vol.6 (Issue 8): 2177-2180, August
monitoring system which has the ability to be fully 2012.
automation system using open-source microcontrollers. [14] L. K. Yow, S. J. Hsiao, W. T. Sung, Intelligent multi-sensor
The proposed system implements the concept of parallel control system based on innovative technology integration via
processing by combining more than one microcontroller ZigBee and Wi-Fi networks, Journal of network and computer
application, Vol. 36 (Issue 2): 756-767, March 2013.
to operate together in a master/slave approach. This [15] H. ElKamchouchi, A. ElShafee, Design and prototype
system outperformances most of the available monitoring implementation of SMS based home automation system, In
and automation systems in terms of scalability. The high Electronics Design, Systems and Applications (ICEDSA), 2012
scalability comes from being able to add more slaves IEEE International Conference on, pp. 162-167, IEEE, November
2012.
microcontrollers to the system which means that more
[16] M. Vini, S. Reddy, GSM-Bluetooth based remote monitoring and
locations are monitored and more functions are able to control system with automatic light controller, International
get added to optimize the system work. Journal of Computer Applications. Vol. 46 (Issue 1): 20-28, May
GSM communication technology is used in the system 2012.
[17] Samarah, K., Mobile Positioning Technique Based on Timing
given its wide coverage area and it is considered as one
Advance and Microcell Zone Concept for GSM Systems, (2016)

Copyright © 2016 Praise Worthy Prize S.r.l. - All rights reserved International Review of Automatic Control, Vol. 9, N. 6

427
Hadi Jameel, Husam Kareem

International Journal on Communications Antenna and


Propagation (IRECAP), 6 (4), pp. 211-221.
[18] D. Kushner, The making of arduino, IEEE Spectrum, October
2011.
[19] Zhang, Y., Wang, J., Zhang, Y., A Hybrid Method for Short-
Term Electricity Price Forecasting Based on BPNN and GSM-
SVM, (2013) International Review of Electrical Engineering
(IREE), 8 (5), pp. 1509-1519.

Authors’ information
1
Ministry of Higher Education of Iraq / Al-Mustafa University College.
2
Ministry of Education of Iraq / Directorate of Baghdad Education
(Karkh3).

Hadi Jameel was born in Baghdad, Iraq in


1988. He received BSc degree from electrical
engineering department, Al Mustansiriya
University, Iraq in 2010. Received MSc degree
from Electronic and communication engineering
in Al Mustansiriya University, Iraq in 2013.
His research interests are Antenna, Wireless
Communications, Radar, Control System, and
Wireless sensor networks.

Husam Kareem was born in Baghdad, Iraq in


1986. He received BSc degree from computer
engineering department, University of Baghdad,
Iraq in 2008. Received MSc degree from
computer and communication systems
engineering in universiti Putra Malaysia,
Malaysia in 2014.
His research interests are Embedded systems,
Computer networks, and Wireless sensor networks.

Copyright © 2016 Praise Worthy Prize S.r.l. - All rights reserved International Review of Automatic Control, Vol. 9, N. 6

428

You might also like