You are on page 1of 4

Raspberry Pi-based smart platform for data

acquisition, supervision and management of a


hybrid PV/WT/Batteries system
*Note: Sub-titles are not captured in Xplore and should not be used

Skander Lazgheb Bacem Bayar Malek Belouda


University of Carthage, The Higher University of Carthage, The Higher University of Carthage, The Higher
Institute of Information Technologies Institute of Information Technologies Institute of Information Technologies
and Communication ISTIC and Communication ISTIC and Communication ISTIC
Ben Arous, Tunisia Ben Arous, Tunisia Ben Arous, Tunisia
Energetic Efficiency and Renewable
lazghabskander@gmail.com bacembayar9@gmail.com Energies Application Laboratory
(LAPER), Faculty of Sciences of Tunis,
Hatem Oueslati Salah Ben Mabrouk University of Tunis El Manar Farhat
line 2: Thermal Processes Laboratory Thermal Processes Laboratory Hached University Campus, 1068
Research and Technology Center of Research and Technology Center of Tunis, Tunisia
Energy (CRTEn) Po. Box 95, 2050 Energy (CRTEn) Po. Box 95, 2050 malek.belouda@gmail.com
Hammam-Lif, Tunisia Hammam-Lif, Tunisia
Ben Arous, Tunisia Ben Arous, Tunisia
houeslati@gmail.com salah.benmabrouk@crten.rnrt.tn

Abstract— Renewable energy production is not continuous these systems, conversion of the form of energy and
and reliant on climatic conditions as well as geographical management [3-5]. In the literature, several works have dealt
location. Deal with the problem of intermittency of renewable with the problem of management, acquisition and
energy sources have emerged as the biggest interests of the last supervision of electrical energy produced by renewable
decade. To overcome the issues inserting batteries to these energy systems particularly for supplying remote sites.
renewable energy sources is seen as an attractive option. Such
energy systems may simultaneously tackle the concerns Some work has focused on the implementation of
regarding climate change, energy security, optimal design, and different energy management strategies based on various
problems related to the battery bank. The present paper programmable targets. [6] has opted for the measurement
proposes the development of a Raspberry Pi-based hardware and control of electrical energy (in kWh) by means of a
platform for data acquisition, supervision and energy microcontroller type "AT89C2051/ADE7757". [7] has
management of a hybrid PV/WT/Batteries system. It may be preferred to efficiently manage the electric load utilities and
speculated that integrating smart technologies in the renewable photovoltaic generated power. System design architecture is
energy sector into a single hybrid energy system, coupled put in place by the design of a management center consisting
through informatics linkages, would enable to overcome the of an electrical energy management center called (EMC:
drawbacks inherent in the intermittent nature of these energy Energy Management Center) and a network of Field
sources. Programmable Gate Array (FPGA). In [8], another
alternative based on a Raspberry Pi as a system key
Keywords—Renewable energy, supervision, energy
management, data acquisition, Raspberry Pi
component to monitor environmental parameters, namely
temperature, barometric pressure humidity, irradiation, etc.,
I. INTRODUCTION as well as to monitor electrical consumption of the building
environment in order to develop an effective environmental
Renewable energies are clean and safe energies that
monitoring system that can be used appropriately for data
produce no or few pollutants and are almost inexhaustible.
analysis and data collection. The work carried out in [9]
The use of renewable energies allows the reduction of CO2
adopted the objective of implementing, testing, diagnosing
production in comparison with the non-renewable energies
and monitoring a Renewable Energy Monitoring System
they replace. However, they account for only 16% to 20% of
(REMS). Based on this practical experience the purpose of
total gross energy consumption [1,2]. To promote this sector,
this work was focused on a remote multi-user system using
several scientific skills overlap for the design, control and
the concept based on Raspberry Pi and the Internet Of
management of these energies. This work deals with the
Things (IOT). The objectives expected in this work are: the
problems related to the management, data acquisition and
Implementation of an energy management strategy of a
supervision of renewable energy systems. Several works
hybrid PV/WT/Batteries system installed at CRTEn Borj
have been carried out in the field of renewable energies with
Cedria, a real-time acquisition of energy data from the
the major objective being to synthetize renewable energy
converters associated with the system components (SMA
management strategies in order to make these systems most
inverters), supervision of all energy data on a real-time web
reliable and to face their intermittent and random nature.
interface and error detection of the photovoltaic system.
Therefore, techniques of acquiring meteorological data and
These objectives will guarantee the supply of the required
the supervision of these systems can be adequate solutions to
electrical energy in a given remote area, producing the
avoid these problems. A large part of these earlier works are
maximum energy from renewable resources while
based on three fundamental axes: modeling and design of
maintaining a well-defined acceptable quality of energy

978-1-7281-4064-3/19/$31.00 ©2019 IEEE

Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 08:12:37 UTC from IEEE Xplore. Restrictions apply.
supplied and a real-time exploitation based on availability
and economy criteria through an implementation of a
resource management technique using a Raspberry Pi.
II. HYBRID PV/WT/BT SYSTEM DESCRIPTION
A. Hybrid PV/WT/BT system architecture
In the Thermal Processes Laboratory "LPT" part of
CRTEn Borj-Cedria, there is a hybrid power plant:
Photovoltaic/Wind Turbine/Battery system (PV/WT/BT),
which combines two sources of renewable energies (wind
turbine , photovoltaic panels) with electrochemical storage
(batteries). and whose management of the energy of the
different sources is ensured by a manager who controls the
switches status (ON/OFF) of the renewable sources,
according to the meteorological conditions (irradiation, wind
speed and State Of Charge (SOC) of the battery pack.
This system is composed of:
• A photovoltaic installation of 12 KWc
• A micro-wind turbine with 1 KWc of power +
inverter
• 1 Inverter connected to SMA network SUNNY
TRIPOWER 12000TL. Fig. 3. PV/WT/BT l energy management strategy.

• 3 SMA SUNNY ISLAND 6.0H SMA Inverters B. Hybrid PV/WT/BT energy management strategy
for Isolated Site.
In this section we propose to present an energy
• Battery storage system management strategy of the described PV/WT/BT system.
The main problem in energy management is to be able to
• Main elements of the Control Room: an supply the power required by the load despite the large
electrical cabinet for monitoring and a cabinet variations in the energy produced. The variations in the
for monitoring + protection boxes for two production of energies are caused by the intermittent nature
installations of the renewable resources In the system management, the
A photo extracted from the control room of the hybrid priority is given to the value of the SOC of the battery,
PV/WT/BT system subject of this study and the synoptic of because from this value we write the different scenarios of
its architecture are presented by the two following figures. the strategy. For energy management, first has acquired all
(Fig.1 and Fig.2). the essential data. The flow chart of the management
strategy is given below:
• Scenario 1 (SOC> SOCMax):
Pgen = PPV + PWind will be calculated. If Pgen is greater
than the Pload the system will switch to the energy evacuation
task (Dump load). If not Pgen will be Pgen = PPV + PWind+PBT :
If Pgen> Pload the battery will be charged. Otherwise we access
another solution LPS (Loss of Power Supply) [3].
• Scenario 2 (SOCmin <Soc< SOCMax):
Fig. 1. Hybrid PV/WT/BT control room
• Scenario 3 (SOC <SOCmin):
If Soc is lower than Socmin then the system will
disconnect the battery
III. RESULTS AND DISCUSSION
A. Data acquisition
1) Embedded solution for the energetic data acquisition
For the acquisition of energetic data (system status data
and meteorological data), it was proposed to use a raspberry
pi 2 card to be the core of the control system of the hybrid
PV/WT/BT system. The synoptic of the adopted material
architecture is illustrated by the following figure. More,. a
Bluetooth communication protocol was used to establish the
Fig. 2. Hybrid PV/WT/BT system architecture connection between the raspberry pi board and the SMA TRI
Power inverter of the photovoltaic station. Finally, for the

Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 08:12:37 UTC from IEEE Xplore. Restrictions apply.
acquisition of metrological values, the CR1000 acquisition
card is connected with raspberry pi 2 via an RS232-USB
adapter.

Fig. 5. Energetic data acquisition from CR1000

B. Supervision
In this section, we are interested in the discovery of
Fig. 4. Embedded solution for the energetic data acquisition
sequence diagrams of the web interface and the different
pages of our web application. In the identification phase, the
2) Acquisition of energetic data from SMA TRIPOWER user must enter their login and password to access Web
Server in order to enter different web interfaces of our site.
This operation is performed by a Python script, which The following figure shows the sequence to be completed to
makes it possible to make Bluetooth connection between begin the identification phase. We have developed two
Raspberry Pi and the SMA-Tri Power inverter. When the interfaces: "Day" and "month", from our web application as
Raspberry pi is picked up from SMA, the requested inverter shown in the figure below, this interface contains:
authentication, the user must enter his username and A table: contains the current active power value and the
password. If the identification is correct. The Raspberry PI total active power
card starts acquiring energy data every 5 minutes and saving
it to a SQLite database. A calendar: to choose the day / month or the user wants
to see the values of Active Power
the SQLite database assembles several parameters:
A curve: Active Power curve per day / month
- Pdc1, Pdc2, Pdc3: Continuous power of three lines
- Pac1, Pac2, Pac3: AC power of three lines
- Lac1, Lac2, Lac3: AC current of three lines
- Udc1, Udc2, Udc3: continuous voltage of three lines
- Uac1, Uac2, Uac3: three-line AC voltage
- Temperature: value of the temperature
- EToday: Energy Per day
- ETotal: Total Energy
- Frequency: sampling frequency
Fig. 6. “day” Interface
3) Energetic data acquisition from CR1000
With the connection between the Raspberry pi 2 card and
the acquisition chain cr100 by the RS232-USB adapter, it
was possible to extract the metrological data record for every
15 minutes from the "Pycampbell_CR100" lagoon library.
Python. This extraction will be saved in a CSV file
The metrological data backup on the csv file are:
- T109_c: Temperature sensed by the probe 109
- SlrKW: the power of solar radiation captured by
pyrometer CMP6
- WindDir: Air Direction
- WS_ms: air speed in milliseconds Fig. 7. “month” Interface
- Battv: default CR1000 voltage
C. Implementation of the management strategy
- BP mbar: the barometric pressure draws by CS100 To verify the correct operation of the energy management
Barometer strategy from the PV / WT / BT system, a Raspberry Pi

Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 08:12:37 UTC from IEEE Xplore. Restrictions apply.
board-based was adopted. A test plate with 4 LEDs IV. CONCLUSION
simulating the states of various components of the system. . Currently, using smart technologies e.g. Rasberry Pi …
Each LED corresponds to a specific case as follows: in renewable energy management, meteorological data
• Yellow LED: Energy evacuation (dump load) acquisition and supervision is unvoidable. Real-time
monitoring will reduce the risk of intermitent features of
• RED LED: When to charge the battery these energy sources. Traditional methods for renewable
• GREEN LED: Case of Other Solution (LPS) energy monotoring monitoring are being replaced by IOT
monitoring. In this paper, the development of a Raspberry Pi-
• WHITE LED: Disconnect the battery based smart platform for data acquisition, supervision and
management of a hybrid PV/WT/Batteries system is
the material architecture adopted is illustrated by the presented. The proposed system consists of a Raspberry Pi
following figure: board integrated with a hybrid PV/WT/BT system. The
proposed system is low-cost and a software panel is also
developed for the interactive user interface. The developed
user interface can help the end user to operate the system
efficiently and make decisions based on the result displayed.
In the future we plan to implement the system enabled
with the internet of things (IoT) for online hybrid
PV/WT/BT system monitoring.
ACKNOWLEDGMENT
• This work was supported by the Tunisian Ministry of
High Education, Research and Technology.
• The Project has been funded by Programme Instrument
Européen de Voisinage et de Partenariat (IEVP),
Coopération Transfrontalière (CT) Italie-Tunisie 2007-
2013 - 2PS2.3.005 CUP:C17D13000000006 - Projet
Fig. 8. Material architecture adopted to the energy management cofinancé par l’Union européenne- Programme ENPI.
strategy The authors thank very much scientific and technical
team from the DEDUENERT Project and The AGC
the implementation validity of the energy management (Palermo) financial support.
strategy of the PV/WT is illustrated by some results of the
scenario 1are aggregated in the following table and figures: REFERENCES
[1] Global Energy Assessment - Toward a Sustainable Future, Cambridge
TABLE I. RESULTS FROM SENARIO 1 University Press,Cambridge, UK and New York, NY, USA and the
International Institute for Applied Systems Analysis, Laxenburg,
Scenario 1 SOC(%) PV(W) PWind(W) Pg (W) PGen(W) Pload (W) PBT Austria, GEA, 2012.
95 10758 5000 15758 16758 15000 ……..
Case 1 : Dump
[2] British Petroleum, 2017. BP Statistical Review of World Energy
2017, British Petroleum.
load
95 10758 2000 12758 17758 15000 5000
[3] M. Belouda, M. Hajjaji, H. Sliti, A. Mami, “Bi-objective optimization
Case 2 : Battery of a standalone hybrid PV–Wind–battery system generation in a
remote area in Tunisia” Sustainable Energy, Grids and Networks,
charging
95 10758 1000 11758 12758 15000 1000
Volume16,(2018), pp. 315–326
Case 3 : Other [4] M. Belouda, H. Sliti, M. Hajjaji, A. Mami, (2018) “Multi-objective
optimization of a photovoltaic system generation with hydraulic
solution
storage in remote areas” Environmental Progress and Sustainable
Energy (2018).
[5] V. Oree, A. Rajoo, The potential for wind–generated electricity in
Fig. 9. Case 1: Dump load mauritius, Intl. J. Green Energy 12 (8) (2015), pp. 821–831
[6] Manish Kumar Ghodki. Microcontroller and solar power based
electrical energymanagement system for renewable energy
applications. International Journal
of Electrical Power et Energy Systems, 44(1) :852–860, January
2013.
[7] Paulo C.M. Carvalho et Sandro C.S. Jucá Renata I.S. Pereira,
Ivonne M. Du-pont. Iot embedded linux system based on raspberry pi
Fig. 10. Case 2: Battery charging applied to real-time cloud monitoring of a decentralized photovoltaic
plant, January 2018.
[8] Krishnamoorthy Baskaran et Suleman Khalid Rai Venkat
Subramanian Aru-muga Peruma. Implementation of effective and
low-cost building monitoringsystem(bms) using raspberry pi. Energy
Procedia, 143(1) :179–185, December 2017.
[9] Khurshid Alam Tahir Sarwar Inayat Ullah et Hanif Ullah Yousaf H.
Khattak,Tahir Mahmood. Smart energy management system for
utility source and photovoltaic power system using fpga and zigbee.
Fig. 11. Case 3 : Other solution American Journal of ElectricalPower and Energy Systems, 3(5) :86–
94, mars 2014.

Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 08:12:37 UTC from IEEE Xplore. Restrictions apply.

You might also like