Professional Documents
Culture Documents
Zarzas An Chez 2014
Zarzas An Chez 2014
Sergio Zarza Sanchez, Rosa M. Fernandez-Cantf, Jose A. Lazaro, Isidre Ortega Gomez, Jose A. Altabas Navarro
Signal Theory and Communications Opt. (TSC), Universitat Politecnica de Catalunya (UPC) • BarcelonaTech
Building 04 Campus Nord, 08034 Barcelona, Spain
{szarza, rfernandez, jose. lazaro, jose.antonio.altabas }@tsc.upc.edu, isidre.orgo@gmail.com
Abstract- In this paper we present a modular system for communication medium as Bluetooth or Z-Wave. A different
remote monitoring and control of energy consumption. In set of commercial solutions focused on the control of gas or
particular, we demonstrate the application of the proposed
water flow applications, incorporates GSM or 3G
system for electric energy monitoring and control in domestic or
communications modules.
medium size office installations. This whole system is integrated
Regarding communication protocols for automation, the
in a single platform and consists of different modules: one or
several smart plugs including a wireless communication interface
most popular, among others, are the KNX (by the Konnex
for connection to a WiFi network, and a centralized application Association) and the Z-Wave, which have presented on the
server. The developed system allows a real time monitoring of the market many years ago and are considered as well tested
energy consumption, and the control and scheduling of remote systems. The key difference of the modular system presented
switches, providing the tools for an optimal energy saving. This in this paper is the exploitation of WiFi (Wireless Fidelity) as a
monitoring and control leads to a significant cost reduction and compact and cost-effective solution. For the implementation of
to a sustainable management of energy resources beneficial for
the communication link the main advantage of the WiFi
the environment. The consumption results are also presented for
standard is that the system cost is reduced compared to the
a typical scenario with five power outlets.
solutions presented above. In addition, WiFi is a highly
Index Terms-remote monitoring, wireless LAN, energy developed communication standard and it is widely accepted
consumption by the technical community. This fact facilitate the extension
of the system to different applications, with the possibility to
I. INTRODUCTION adapt to other sensor types and thus to monitor and control any
The control of electricity, water or gas consumption is an type of energy, such as, the flow in pipelines. The WiFi
essential aspect in business or domestic installations. An protocol also offers the possibility of encrypting the data
adequate monitoring process allows the detection of possible transmitted between the different modules of the system.
leaks, damages, or even of parts of the system that need Compared to current commercial solutions we have
maintenance and/or replacement. The combination of achieved a modular and robust open source application based
monitoring and control helps to maintain the desired energy on low cost hardware, hence providing to the end user a return
consumption, while achieving substantial economic benefits on investment in a short period of time.
[I]. In this work, we present an integrated modular system for Moreover, the monitoring and control software managed by
monitoring and control of consumption, focusing in this the server hardware is fully independent, so that the user has
implementation, on the specific case of the electric energy. the option to use his own personal computer as a server
Besides monitoring, the system provides remote control together with the smart plugs.
functions, such as the disconnection from the electrical
Web application
network of the equipment or device that has exceeded a certain
threshold of consumption defined by the user. Both monitoring
and remote control can be performed from any tenninal having
access to Internet as: computer, mobile, tablet, etc., [2], [3].
Although in this paper we focus on a domestic example, the
solution presented here can also be adapted to other situations
as business scenarios where safety requirements and energy
savings are needed. It is, for instance, the case of industrial or
public facilities (such as universities, sports centers, hospitals,
etc.).
Monltorlns
During last years, several commercial solutions for equipment Router
L N
230V
50Hz
2
measurement. This error will be corrected by the software E. Communication card
control system. The consumption data calculated in the previous section are
Additionally, the smart plug has a photovoltaic cell, sent to a Roving Networks RN-171 model WiFi
allowing us to control the brightness of the room where the communication card in a serial way. This card is responsible
base is located. As such, the smart plug acquires an additional for transmitting the data to the web server on the resident
functionality at a low cost of implementation. Raspberry Pi.
D. Control card
The control card consists of a low-power microcontroller
fabricated by Microchip that incorporates the peripherals
needed for the conversion of the ADC signals. These include
the voltages and currents supplied by the circuits presented in
the previous section. The control system sends to the WiFi
module the obtained and processed data. Since the objective is Fig. 5. Communication card
(2)
'5:: -tfffJ-I'v
Paparenl VRMS JRM,
3.3v �
�I
= •
1'29V 2V
for the apparent power evaluation, where the RMS voltage and
current values are defined, respectively, as:
Fig. 6. Voltage measurements by means of Shunt and differential output
(3) To link the data with the web server the microcontroller
must send the following text frame by the communication port:
http://www.webserver.com/ob.php?obvar=value
JRMS (4)
=
where:
• webserver: name of the web server implemented in the
The reactive power and the power factor (PF) are also Raspberry Pi.
• obvar: device alias.
computed and they are defmed, respectively, as:
• value: energy consumption.
(5)
For instance, in the case of a TV in the dining room which
is consuming 300W, the frame would be:
Pactive
PF =
(6)
Paparenl http://www.smartmeterupc.com/ob.php?TV=300
In domestic set-ups the power company applies the
prevailing rate on the active power consumed monthly. For this III. WIFI COMMUNICAnON SYSTEM
reason in our system the information transmitted to the server
The system smart plugs send and receive signals via WiFi
is the active power.
to/for a small computer that acts as a server, which is within
Using three devices we can measure the electricity
the same VLAN (Virtual Local Area Network) that connects
consumption in three-phase installations where power
the bases.
companies bill on the active power and apply a bonus or
penalty depending on the reactive power consumption. For this A. Communication server
reason we have also included the ability to calculate and In the present project the communication server IS
transmit the reactive power. implemented by a Raspberry Pi module, which is a small
computer sufficient enough to execute the functions required
by the server [6]. The functions performed by this server are:
3
web server, database, network interconnection together with so that the user could track online the consumption of each
internal and external networks. specific area.
The operating system in the server is a derived distribution
of Debian called Raspbian [6]. To enable the server to perform IV. USER INTERFACE
the required functions, the following applications are installed In this section, we describe the user interface and we
(see Fig. 7): Server ssmtp as mail server, isc-dhcp-server as comment the most important functions of it.
DHCP server (Dynamic Host Configuration Protocol), Apache
A. Web page
The programming objective is to create an environment as
friendly as possible so that the end user would not have any
,
, difficulty on interacting with the system.
\1
APPLICATION From the web page, the user is able to monitor the real-time
SERVER
consumption and the history of it. Additionally, entering the
I
, electric operator taxes, the user can see the economic cost in
any time instant.
r.
Moreover, the user is able to turn out the plug base from
any Internet terminal, by only connecting to the URL (Uniform
Smart Meter - ,, --
Archivo Editar Ver Ettadittica Configuraci6n Inicializar Equipo Acerc!!
SMART PLUG MODEM OR
INTERNET
ROUTER
Comedor
Equipos conectados 2
4
C. Data bases • Control of the consumed energy in homes, working
To generate consumption graphs and statistics both online and corporate environments
and historically, the application must access a database. In our • Providing, in a simple and modular way, a detailed
case we have chosen MySQL, where we store all the overview of energy consumption and its evolution over
information supplied by each one of the smart plugs. time, and
The communication between the database and the web • Enabling intelligent management of energy
application is performed using the programming language consumption and saving.
PHP. This ultimate goal, saving energy by households or
Finally, note that for this project an Open Source software corporations involves, on one hand, significant money saving
has been used, which allows the end user (if this is an in these current times of austerity and, on the other hand, a
advanced user) to customize both the environment and the sustainable management of energy resources beneficial to the
management of the database. environment.
Furthermore the proposed system offers a number of
V. SOME RESULTS
additional features such as high systems, distributed control of
Table 1 summarizes the electric consumption of each one temperature and light in a home or a workplace, and the
of the system components. handling of an alarm system with technical failures and/or
intrusion. Also, all these features can be successfully managed
TABLE I. SMART PLUG CONSUMPTION remotely.
Component Description Consumption Finally, it is important to address that the system is
Diode DIODE, STANDARD, lA, lOOOV, 12mW intended to work for different types of energy and several other
SMD applications such as public buildings or water networks. This
DCIDC IC, OFF LINE SWITCHER, 360MA 200mW other applications constitute part of our future work.
converter
IC MAX253 TRANSFORMER DRIVER 25mW ACKNOWLEDGMENT
LDO 3.3V V REG LDO +3.3V, 1117 200mW
ACS712 SENSOR, CURRENT, 20A 65mW The authors would like to thank to Joaquin Fernandez and
MCllOO AMP, ISOLATION, 60KHZ 70mW Josep Pujal, members of the computer services crew of the
18Fl4k50 Microcontroler 8 bits lOOmW Signal Theory and Communications department, for their good
Witt RNl71 Module WiFi 200mW
ideas and approach in this line of work, and also to thank for
Total 870mW
her unconditional support Katerina Koutlia PhD student in the
Department of Signal Theory and Communication. This work
At nominal operating conditions there is a consumption of
has been partially supported by the Spanish M[C[NN project
870MW, which with a guard factor is 1W. The consumption of
TEC2011-25215.
each smart plug must be added to that of the Raspberry Pi
which is 3.5W.
With these data we can estimate our system electricity REFERENCES
consumption in a year for a home with 5 smart plug bases. The
[1] lDAE (2011), Plan de Ahorro y Eficiencia Energetica 2011-
consumption in kWh in a year in a house with 5 smart plugs 2020. 2° Plan Nacional de Eficiencia Energetica de Espana,
will be: Ministerio de Industria.
[2] Flick T., Morehouse J., (2010) Securing the Smart Grid: Next
TABLE [I. SMART PLUG CONSUMPTION Generation Power Grid Security, Syngress Media.
Description Consumption (W) Days Hours Total [3] Yang Xiao, (2012), Communication and Networking in Smart
Smart Plug 1 365 24 8.76KWh Grids, CRC Press.
Raspberrv Pi 3. 5 365 24 30.6KWh
[4] Sirohiwala A., (2013), "New approaches to high efficiency
39.36KWh
current sensing: integrated hall sensor IC save power and
space", Design News, Allegro MicroSystems, LLC.
Assuming a price of 0.138658€ per kWh, according to the
[5] Power Integrations, (2004) LNK304-306, Lowest component
Iberdrola basic rate, the total system cost is 1.7€ per year, with count, energy efficient off-line switcher
a monthly cost of 0, 14€.
[6] http://www.raspberrypi.org
According to a study reference by the OCU (Spanish
[7] Grulich, 1., (2005) "On Semiconductor, AND82261D, Positive
organization of consumers and users), appliances or appliances
output buck AC/DC converter", Semiconductor Components
on standby mode or inactive but connected to the power line Industries, LLC.
represent 231kWh per year per household. This value gives us
[8] Kurose 1. F., Keith W. R., Computer Networking: A Top-Down
an idea of how much one can save by simply programming the Approach, Pearson Publish.
network disconnection of the equipment on stand-by mode.
[9] Sant-Pierre, R., (2002) "On Semiconductor, AND80781D, Low
cost non isolated universal input off-line converter",
VI. CONCLUSION
Semiconductor Components Industries.
The idea of this project is to develop a full system with the
following properties: