Smart Home Energy Management System: An Exploration of Iot Use Cases
Smart Home Energy Management System: An Exploration of Iot Use Cases
Smart Home Energy Management System: An Exploration of Iot Use Cases
net/publication/325912129
CITATIONS READS
8 285
4 authors, including:
Sohaib Majzoub
University of Sharjah
38 PUBLICATIONS 145 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Sohaib Majzoub on 02 June 2019.
Abstract— The proposed system design tries to solve the Top and new technologies should be used to ensure that
growing problem of unnecessary energy consumption in an new inventions can benefit us the most. With the growing idea
individual’s household using the concept of the IoT (internet of of the IoT or internet of things, it is only logical that we create
things). The design monitors and analyzes the energy consumed systems that serve the society’s needs using this technology.
by the electricity outlets in the household using sensors and
microcontrollers. The proposed design gives the user multiple
With the help of the internet things hundreds of small tasks
manipulation methods to control energy consumption. The can be done automatically which makes things quicker and
proposed design includes a mobile application which will act as more efficient. Hundreds of examples are there, including our
the communication link between the system and the cloud. On system.
the cloud, a server will make the control of the electrical outlets In this paper, we will talk about the related work of
possible from inside and outside the house. The results varied different scholars. We will explain our proposed design in
depending on the used case. In some cases, it saved up to 50% of detail, this will be followed by the results. After that we will
energy consumption. talk about some constraints and limitations of the system.
Finally, we discus future work on the project.
II. RELATED WORKS
Keywords—energy consumption, IoT, outlets,
sensors,microcontrollers, the cloud, server. In this section, we considered other scholar’s research and
made a small comparison between our designs.
I. INTRODUCTION A. GSM based energy management system
Energy management aims to regulate and monitor the An alternative for our design would be using GSM rather than
energy consumption of an organization, company, or an internet. Skhalkar, Barot, Talele, Sinha, and Jeyakumar in
individual. Home energy management is related to individuals their paper “GSM based Energy Management System”
and households. Smart home energy management introduces describe a design that uses a GSM system as the
advanced and smart technologies to the energy management communication method between the controller part and the
process to make it more efficient for every individual to controlled part of the energy management system. Although
manage their energy consumption that could be caused by GSM communication could be efficient and quick, it could be
human errors in his/her house. These human errors are very
a problem cost-wise. For every interaction the user would
common in almost every house.
have to send an SMS which is calculated as an extra cost to
Some of these errors can lead to serious problems such as
the system. Introducing the internet factor to the system
shorts that can potentially start fires and burn down houses.
Examples of such errors would be forgetting to switch of the removes this extra cost from the formula.[1]
stove. Energy mismanagement can affect a person from B. Ethernet based home energy management system.
several aspects. As mentioned above, safety is a big concern
for every person. With the correct tools for monitoring Another alternative is using wired internet as the
electricity in your house, major incidents can be avoided. communication method between the system’s parts. This
Financially, consuming more energy than necessary inflates design is more expensive duo to the many internet wires that
electricity bills. Month after month will add up to a good will need to be installed. Other than that, installing a wired
amount of money that could be used otherwise in a more connection per electrical outlet or device will cause
pleasant way. Environmentally, Excess energy consumption inconveniences compared to wirelessly connected systems.[2].
eventually leads to air pollution through the extra secretes
released by the power plants.
III. PROPSED DESIGN volts, we find the power by
In this section, we will explain in details everything in our
system and how it functions. (1)
Then we multiply the result by the period of time in seconds
The proposed design in this paper is as follows: Current that current has been drawn from this outlet
sensors will be connected to the line wire of every electrical (2)
outlet. The sensor raw data will be sent to the microcontroller Which results in the Energy consumed by the outlet.
which will analyze the data and send them to the web host Conversion between units from W/s to kW/hr are left to the
server. From the web host server, the mobile application can user’s preference. The following figure is a flow chart for the
gather the data and display it for the user. At the same time, microcontroller code:
the mobile application will give the user the ability to send the
control commands to the web host server. The microcontroller
is continuously monitoring the variables responsible for
control. When these variables are changed, the microcontroller
will use the data it acquired to perform an action.
A. The monitor and control unit
The monitor and control unit consists of the following: the
microcontroller, the current sensor and the relay. This part of
the system is responsible for collecting real time values of
current being drawn from electrical sockets, performing the
energy calculations and sending them to the webhost server.
Also, it is responsible for receiving control orders and
implementing them.
The microcontroller of choice was the Arduino YUN. We
chose the Arduino YUN for its networking capabilities. This
Arduino board combines two chips on its board. Like other
microcontrollers it has the ATmega32u4 microchip which acts
as the main controller, but it also includes the Atheros A9331
chip which run on Linux. The two chips are connected by a
bridge that can be accessed by the programmer using the
“bridge.open” command. Using a combination of codewords
for these chips, we could achieve the desired results.
We used the ATmega chip mostly for simple calculations.
Lots of more lengthy calculations were done on the mobile
application. This way we split the processing processes which
results in almost optimal execution time. We used the Linux
chip for the networking part of the project. When we needed
to push and pull data from the webhost server we used the
“curl” command.[3] The curl command is used to transfer data
from or to a server, which serves our purpose perfectly. An
example would be "curl
'https://testtestest.firebaseio.com/Appliance1.json' ". This line
of code visits the firebase server name ‘testtestest’, finds the
entity of Appliance1 and reads the information available there.
For the current sensor we used the Allegro ACS712 sensor. Figure 1: Microcontroller flowchart
This sensor can handle up to 30A which is enough for most
common home appliances if not all of them. The working The final component of the monitor and control unit is the
principle of the sensor is the hall effect principle. The hall relay. The relay we used was LEG5-RAYEX. Its coil voltage
effect principle states that when a current carrying conductor is 5V -DC which means the signals from the Arduino
was introduced perpendicular to a magnetic field a voltage microcontrollers are enough to trigger it. The operating circuit
could be measured at right angles to the current path.[3] is AC with 250 V AC rating. Simply, if the microcontroller
After receiving the current sensor values, we calculate receives and order from the user to switch on or off an
energy using the following equations in this order. Since the electrical outlet, it will send a signal on the pin connected to
voltage from the sockets in the United Arab Emirates is 220 that electric outlet’s relay to do the specified action. In the
figure below, a more visual representation of the system is controller to ensure a backup in case any accidents were to
presented. happen. Of course, it gives the ability to cut the electricity
from that outlet. We assigned a value to the ‘On’ state of the
outlet and a value for the ‘Off” state. These values will be
interpreted by the mobile application and sent as commands to
the microcontroller to perform the desired task.
The user can also add a financial limit for an outlet. As
mentioned above the total energy consumed by the outlet is
stored in multiple places. Using the local electricity authority’s
billing constant, the economical equivalent could be
calculated. Once we have this value, it can be monitored and
manipulated like any other variable used in coding the system.
Finally, the user can set a timer for a certain outlet before
the electrical line stops supplying current to that outlet. Using
time related libraries, we take the exact time when the timer
was set. A variable stores the difference between the current
time and the initial time. When the correct time has passed, the
microcontroller will order the relay to switch off that outlet.
The next figure is a snapshot from our mobile application: