Sie sind auf Seite 1von 5

4th International Conference on Computer Integrated Manufacturing CIP’2007 03-04 November 2007

Modeling and Simulation of Photovoltaic Panel based


on Artificial Neural Networks and VHDL-Language
H. MEKKI, A. MELLIT, H.SALHI, and K.BELHOUT
Department of Electronics, Control laboratory, Faculty of Science Engineering
BLIDA University, USDB
BLIDA, Algeria
Mekkihamza@yahoo.fr, a.mellit@yahoo.co.uk, h_hassan@yahoo.com, bk_elec@yahoo.fr

Abstract- The Number of electronic applications using very limited, in literature there are several models that are
artificial neural network-based solutions has increased proposed for modeling and simulation of PV-panel for
considerably in the last few years. However, their applications evaluating the performance and the power quality in the PV-
in photovoltaic systems are very limited. This paper introduces panel [2],[3]. The performances of a PV module are strictly
the preliminary result of the modeling and simulation of dependent on the environmental factors such as irradiance
photovoltaic panel based on neural network and VHDL- and cell temperature. These two parameters make the PV
language. In fact, an experimental database of meteorological module maximum power change and especially for PV-
data (irradiation, temperature) and output electrical integrated power system dispatchers it is necessary to be able
generation signals of the PV-panel (current and voltage) has to predict accurately the PV output [3]. It is very difficult to
been used in this study. The inputs of the ANN-PV-panel are develop an accurate PV-panel model based on analytical
the daily total irradiation and mean average temperature while
models or numerical simulations; due to the influencing of
the outputs are the current and voltage generated from the
the environmental factors. In fact, some very recent works
panel. Firstly, a dataset of 4x364 have been used for training
the network. Subsequently, the neural network (MLP) were developed for modeling a PV-system based on ANN
corresponding to PV-panel is simulated using VHDL language [4],[10].
based on the saved weights and bias of the network. Simulation The main objective of this work is to use of the ANN and
results of the trained MLP-PV panel based on Matlab and VHDL-language for modeling and simulation PV-panel. The
VHDL are presented. The proposed PV-panel model based proposed model allows us to evaluate the performance of the
ANN and VHDL permit to evaluate the performance PV-panel PV-panel based only on the meteorological data such as
using only the environmental factors and involves less
mean average temperature and daily total solar radiation.
computational efforts, and it can be used for predicting the
output electrical energy from the PV-panel.
This paper is organized as follows: the next section
introduces the PV-panel and presents the database used in
this study, section III provides the ANN architecture used for
modeling of the PV-panel, also, the same section describe
I. INTRODUCTION the simulation of the PV-panel based on ANN and VHDL.
Solar energy conversions has various advantages such as Results and discussion are presented in section IV.
short time duration of installation and long life of
exploitation, circuit simplicity, no need of moving part and II. PHOTOVOLTAIC PANEL AND DATABASE
realize a salient, safe, not pollutant an renewable source of
electricity. The wide acceptance and utilization of the The efficiency of solar energy conversion is related both
photovoltaic (PV) generation of electric power depends on to the optimal design and to the maximum power extraction
reducing the cost of the power generated and improving the from PV system. The PV-array used in this simulation
energy efficiency of PV systems. In recent years, it has been consists of 16 ITALSOLAR modules. Each module
shown that artificial neural networks (ANN) have been comprises 30 square single crystal silicon cells. The total
successfully employed in solving complex problems in peak power of each PV array is 720 We, the PV-array
various fields of applications including pattern recognition, voltage is 40 V (max) and the PV-array current is 20 A
identification, classification, speech, vision, prediction and (max). The area of PV generator is 6 m². The traditional I-V
control systems [1]. Today ANNs can be trained to solve characteristics of a solar array, when neglecting the internal
problems that are difficult for conventional computers or shunt resistance, are given by the following equation [2]:
human beings. ANNs, overcome the limitations of the
conventional approaches by extracting the desired   q  
information directly from the experimental (measured) data. I 0  I g  I sat exp  (V0  I 0 Rs )  1 (1)
However, the application of the ANN in PV-systems are   AKT  
4th International Conference on Computer Integrated Manufacturing CIP’2007 03-04 November 2007

Input Hidden Output


Where Io, Vo are the output current and output voltage of the layer ayers layer
solar array. Ig is the generated current under a given
x1 y1
insolation. Isat is the reverse saturation current. q is the
charge of an electron. k is the Boltzmann constant. A is the
ideality factor for a P-N junction. T is the array temperature. x2 y2
Rs and Rsh are the intrinsic series and shunt resistances of the
solar array.
x3 y3

40 400
xn yn
T(C°) H(KW h/day)
30
300
20 Fig. 2.a. Schematic diagram of a multi-layer feed-forward neural network.
200
10
w1j
0 100 x1j
0 100 200 300 400 0 100 200 300 400
Days Days w1j yj
x1j
26
Vpv(V)
18
Ipv(A) wij
 
16
25 xij
14
Activation function
24
Weights summation
12

23 10 Fig. 2.b. Information processing in a neural network unit.


0 100 200 300 400 0 100 200 300 400
Days Days
  
Fig. 1. the database of T, H, Vpv and Ipv y j  f   wij .xij   bj  . (2)
 i  
“Fig. 1,” shows the different signal recorded form the 1
f ( x) 
 
above PV-panel, there signals are the mean temperature, daily (3)
irradiation. The output PV-current and PV-voltage generated. 1  e x
where yj, is the output of the processing unit wjj, the
III. METHODOLOGY synaptic weight coefficient of the i-th input of the
processing unit bj, is the bias.
A) Multi-layer Perceptron (MLP) network
Back-propagation (BP) has been widely adopted as a B) MLP-Based modeling and simulation of PV-panel
successful learning rule to find the appropriate values of the
“Fig. 3,” shows the MLP configuration proposed for
weights for NNs. The MLP consists of various layers: an
modeling and simulation of the PV-panel, the input of this
input and output ones between which lie one or several
model are the daily total solar radiation (H) and the mean
hidden ones whose outputs are not observable. These layers
average temperature (T) while the output are the generated
are based upon some processing unit (neurons)
current (Ipv) and voltage (Vpv). The input and the output are
interconnected by means of feed-forward pondered links
fixed initially however the number of hidden layers and the
(figure 2-a) [11]. All these processing units carry out the
neurons within these layers are optimized during the learning
same operation (figure 2-b): i.e. the sum of their weighed
process based on the good performance of MSE. A database
inputs (See “(2)”). Then they apply the result to a non-linear
of 365*5 patterns for each signals are divided in two parts, a
function named activation function and generally based upon
dataset of 365*4 (4-years) patterns used for training the
the sigmoid function (see “( 3)”).
proposed MLP-PV panel model and a dataset of 365*4 (1-
year) patterns used for testing and validation of the model. A
soft computing program has been implemented for MLP-PV
panel based on the LM-algorithm, the Matlab Ver 7.1b are
used in this simulation.
4th International Conference on Computer Integrated Manufacturing CIP’2007 03-04 November 2007

1 ¡
17

H Ipv 16

2 2
15

T Vpv
14
3 3
13

12

2-neurons 2-neurons 11
Input layer 9 Output layer
7 10
0 50 100 150 200 250 300 350 400

7-neurons 9-neurons
1st hidden 2nd hidden (a)
layer layer
2 6

2 5 .5
Fig. 3. MLP-PV panel model
2 5

2 4 .5

2 4

2 3 .5

2 3
0 5 0 1 0 0 1 5 0 2 0 0 2 5 0 3 0 0 3 5 0 4 0 0

(b)
Fig. 5. Comparison between Measured and estimated output signal of
a. The current, b. the voltage

Fig. 4. Neural processor architecture It should be noted there is a very good agreement between
measured and estimated signal (Ipv, Vpv) in addition the
C) VHDL-implementation of the PV-panel coefficient of determination R2 is 97% which is very
satisfactory. In order to simulate the PV-panel model on
Once the MLP-PV panel model is optimized, the weights VHDL language, the data was coded on 18 bits in fixed-
and bias are saved in order to be used for implementation of point [12].
the MLP based on VHDL language. The structural Function activation is very difficult in its known expression
description of a neuron with VHDL allows during the Tansig) “(3)”. In order to simplify function expression, it
compiling step to specify generically some characteristics was linearized on several intervals [Ci, Ci+1] and its value is
like the input numbers and the data size, and even to modify
evaluated using two constants (ai and bi) corresponding to
the type of some arithmetic operators like the adder or the
this intervals [13] “( 4 )”and “(5)”.
multiplier and eventually the activation function unit if one
wants to modify the activation function. The neuron
computes the product of its inputs, with the corresponding f ( xi )  a i .xi  bi For xi  [ci , ci 1 ] . (4)
synaptic weights, which are memorized in an ROM, and then
the results are added. The result is presented to a comparison f (x) = 1 for x > 3. (5)
unit designed to represent an appropriate sigmoid function.
Then the output of this comparison unit is used as a
controller for a multiplexing unit, which delivers they output “Fig. 6-a,” presents the result of the activation function
of the neuron “Fig. 4,” [11]. simulation. The obtained results by MODELSIM has been
tested and compared with Matlab, which gives a good
accurate result See “Fig. 6.b,”.
IV. RESULTS AND DISCUSSION
Firstly, we present the results of MLP-PV panel model
based on Matlab simulation. “Fig. 5,” shows a comparison
between measured and estimated output generating current
and voltage of the PV-panel.
4th International Conference on Computer Integrated Manufacturing CIP’2007 03-04 November 2007

26

25.5

25

24.5

24

23.5

Fig. 6-a. VHDL Simulation of the activation function


23
0 50 100 150 200 250 300 350 400

Fig. 8.a. comparison between MATLAB and VHDL


estimation of a voltage

17

16

15

14

13

12

11

Fig. 6-b. Comparaison between activation function calculated by


10
Matlab and simulated by MODELSIM (VHDL) 0 50 100 150 200 250 300 350 400

The network is composed of several elements of basis that


(b)
are the neurons; this network is presented in “Fig. 7.a,”.
Fig. 8.b. Comparison between MATLAB and VHDL
The simulation result based on VHDL is presented in
“Fig. 7.a,”, where X1 is the mean average temperature, X2 is estimation of a current
the daily total solar radiation, Y1 is the output voltage and The MODELSIM has been used for simulating the
Y2 is the output current from the PV-panel. proposed architecture based on the VHDL, once the
architecture is simulated. “Fig. 8,” shows a comparison
between Matlab and VHDL (ModelSim) estimation. the next
step consists the implementation of this architecture on
FPGA hardware.

ACKNOWLEDGMENT
In this paper, a PV-panel has been modeled and
simulated based on ANN and VHDL-language. The
accuracy and the generalization of the neural model in the
system prediction are demonstrated by comparing test results
with actual data. The advantage of the proposed model that it
can be used for estimating the performance of PV-panel and
it is able to predict the output electrical energy generation
from the PV-panel based only on the environmental data. In
addition, the using of the VHDL language for PV-panel
Fig. 7.a. Global architecture of the neural network
simulation has been demonstrated. The modelsim has been
used for simulate this network. Actually, it remains the
implementation of this architecture on a FPGA hardware,
that will be our objective in the future paper.

REFERENCES
[1] S.A. Kalogirou “Artificial neural networks in renewable energy systems
applications: a review”. Renewable and Sustainable Energy Reviews,
vol.5, pp.373-401, 2000.
Fig. 7.b. Simulation results based on VHDL
4th International Conference on Computer Integrated Manufacturing CIP’2007 03-04 November 2007

[2] A. Gow, C.D. Manning, “Development of a photovoltaic array model Proceedings of the Solar Word Congress ISES 2005 August 6-12 2005
for use in power electronics simulation studies”, IEE Proceedings on Florida, USA 2005.
Electric Power Applications, Vol. 146, No 2, March pp. 193 -200. [9] A. Mellit and S.A. Kalogirou “Neuro-fuzzy based modelling for
1999. photovoltaic power supply (PVPS) system”. In First International
[3] W. T. Jewell and T. D. Unruh: “Limits on clouds induced fluctuation in Power and Energy Coference PECon IEEE, Nov. 28-29, 2006,
photovoltaic generation”. IEEE Transactions on energy conversion, Malaysia Vol.1, pp-88-93
Vol. 5, N. 1 ,March, pp 8-14, 1990. [10] A Mellit, M, Benghanem and. S.A. Kalogirou “Modelling and
[4] TF. Elshatter M.T, Elhagree M.E Aboueldahab and. A.A, Elkousry simulation of a stand-alone photovoltaic system using an adaptive
“Fuzzy modeling and simulation of photovoltaic system”. In 14th artificial neural network”. Renewable Energy, vol.32, pp.285-313.
European photovoltaic Solar Energy Conference, 1997. 2007
[5] M. Abdulhadi A. M, Al-Ibrahim and G.S Wirk. “Neuro-fuzzy based [11] Y. Taright, M.l Hubin “FPGA implementation of a multilayer
solar cell models”. IEEE Transactions on Energy Conversion, vol.19 Perceptron Neural Network using VHDL” In Proceedings of ICSP
n3,pp. 619-629,.2004. pp-1311-1314, 1998
[6] L. Zhang and Y. Fei Bai “Genetic algorithm-trained radial basis [12] E.M. Ortigosa a , A. Canas a, E. Ros a, P.M. Ortigosa b, S.Motaa, J.
functions neural networks for modelling photovoltaic panels”. Dı´az “a Hardware description of multi- layer perceptrons with
Engineering application of artificial intelligence;Vol.18: pp.833-844. different abstraction levels “ Elsevier .Microprocessors and
2005. Microsystems 30 (2006).
[7] A. Mellit, M Benghanem. A. Hadj Arab and A Guessoum. “Prediction [13] F. Smach, M. Atri, J. Mitéran and M. Abid “Design of a
and modeling signals from the monitoring of stand-alone PV systems Neuralnetworks Classifier for Face Detection” transactions on
using an adaptive neural network model”. In Proceedings of The 5th engineering, computing and technology v5, 2005
ISES European Solar Conference. 2004, vol.3 :pp.224-230.
[8] A. Mellit and M., Benghanem “Modelling and simulation of stand-
alone photovoltaic power system using artificial neural network”. in

Das könnte Ihnen auch gefallen