Proceedings of Engineering and Technology - PET...

6
2ème conférence Internationale des énergies renouvelables CIER-2014 Proceedings of Engineering and Technology - PET Copyright - IPCO 2015 Design of the MPPT in PV System Based on PIC18F4550 Microcontroller Samia Latreche, Mabrouk Khemliche, Mohammed Mostefai Electrical Engineering Department, Setif 1 University Automatic Laboratory, Maabouda, 19000 Setif Algeria [email protected] [email protected] [email protected] Abstract—This document presents the design and the implementation of the MPPT of PV system using PIC18F4550 microcontroller. In electrical engineering the basic dominant variables are the current and the voltage. The use of the converters conditions on the operator to ensure maximum performance. The type of converter we towards one of the two variables, having a maximum current at the expense of voltage or voltage maximum at the expense of current. This problem was solved in a solar installation by MPPT (maximum power point tracking). Much work has been done to this lawsuit even by adding intelligent techniques, but the introduction of microcontrollers in this action is essential with advanced programming language. The experimental results have verified the performance and the feasibility of the proposed system. KeywordsPV system, MPPT, Microcontroller, Design, Implementation, C - language I. INTRODUCTION Since the earliest MPPT method published in 1960s, we can count over than fifteen MPPT methods. They can be classified according to the research process of MPP into indirect and direct method. The indirect methods, such a short circuit and an open circuit methods, need a prior evaluation of the PV panel, or they are based on mathematical relationships or database not valid for all operating meteorological conditions. So, they cannot obtain exactly the maximum power of PV panel at any irradiance and cell temperature [1]. PV generation system should operate at its maximum power point (MPP) to increase system efficiency. Therefore, MPP tracking is very crucial for PV power generation systems to operate at the maximum power point as much as possible at any time. However, the MPP also changes with the irradiation level and temperature due to the nonlinear characteristics of PV modules [2]. Another classification can be built based on the implementation simplicity, energy efficiency, convergence speed, sensors required and cost effectiveness. These criteria are often dependent to each other, and make the choice of a MPPT method more difficult [3]. Given the large number of studies on the MPPT algorithms in the recent years, the MPPT method analysis, based on the more used in both research and industrial applications may clarify the MPPT position method over the chosen criteria and assist to the decision [4]. Concerning the widely-adopted MPPT algorithms for PV system, some comparative studies, presented in the literature, give results from simulation tool, which provide simultaneous operating systems. In the other hand, for real PV test bench, in order to reproduce the same operating solar conditions. Comparative studies were done under solar simulator and often for only one PV panel [5]. A microcontroller is a unit of information processing which was added to the internal devices for carrying fixtures without requiring the addition of auxiliary components. A microcontroller can operate autonomously after programming. The microcontroller that we used works with the software MicroC, this software allows you to easily program the PIC18F4550. The use of the PIC microcontroller will enable us to raise the voltage and current of the solar panel, through a splitter and a filter and then calculate its power bridge. Achieving our device had five steps [6], [7]: The definition of the specifications is the most difficult step because it involves researching bibliographic and technical information to be used to achieve the objective. The choice and design of electronic components from the specifications by simulating different parts of the assembly to fix the component values, and some preliminary tests on a test plate to confirm their choice. The simulation of the algorithm established in real time in the microcontroller of the environment " MicroC "then programming the PIC18F4550 from HEX code obtained after compilation and simulation

Transcript of Proceedings of Engineering and Technology - PET...

Page 1: Proceedings of Engineering and Technology - PET …ipco-co.com/PET_Journal/CIER-2014_Papers/78.pdf · Proceedings of Engineering and Technology - PET Copyright - IPCO 2015 ... Fig.9

2ème conférence Internationale des énergies renouvelables CIER-2014

Proceedings of Engineering and Technology - PET

Copyright - IPCO 2015

Design of the MPPT in PV System Based on

PIC18F4550 Microcontroller

Samia Latreche, Mabrouk Khemliche, Mohammed Mostefai

Electrical Engineering Department, Setif 1 University

Automatic Laboratory, Maabouda, 19000 Setif Algeria

[email protected]

[email protected]

[email protected]

Abstract—This document presents the design and the

implementation of the MPPT of PV system using PIC18F4550

microcontroller. In electrical engineering the basic dominant variables are the current and the voltage. The use of the

converters conditions on the operator to ensure maximum

performance. The type of converter we towards one of the two

variables, having a maximum current at the expense of voltage

or voltage maximum at the expense of current. This problem was

solved in a solar installation by MPPT (maximum power point

tracking). Much work has been done to this lawsuit even by

adding intelligent techniques, but the introduction of

microcontrollers in this action is essential with advanced

programming language. The experimental results have verified

the performance and the feasibility of the proposed system.

Keywords— PV system, MPPT, Microcontroller, Design,

Implementation, C - language

I. INTRODUCTION

Since the earliest MPPT method published in 1960s, we

can count over than fifteen MPPT methods. They can be

classified according to the research process of MPP into

indirect and direct method. The indirect methods, such a short

circuit and an open circuit methods, need a prior evaluation of

the PV panel, or they are based on mathematical relationships

or database not valid for all operating meteorological

conditions. So, they cannot obtain exactly the maximum

power of PV panel at any irradiance and cell temperature [1].

PV generation system should operate at its maximum

power point (MPP) to increase system efficiency. Therefore,

MPP tracking is very crucial for PV power generation systems

to operate at the maximum power point as much as possible at

any time. However, the MPP also changes with the irradiation

level and temperature due to the nonlinear characteristics of

PV modules [2].

Another classification can be built based on the

implementation simplicity, energy efficiency, convergence

speed, sensors required and cost effectiveness.

These criteria are often dependent to each other, and make

the choice of a MPPT method more difficult [3]. Given the

large number of studies on the MPPT algorithms in the recent

years, the MPPT method analysis, based on the more used in

both research and industrial applications may clarify the

MPPT position method over the chosen criteria and assist to

the decision [4].

Concerning the widely-adopted MPPT algorithms for PV

system, some comparative studies, presented in the literature,

give results from simulation tool, which provide simultaneous

operating systems. In the other hand, for real PV test bench, in

order to reproduce the same operating solar conditions.

Comparative studies were done under solar simulator and

often for only one PV panel [5].

A microcontroller is a unit of information processing

which was added to the internal devices for carrying fixtures

without requiring the addition of auxiliary components. A

microcontroller can operate autonomously after programming.

The microcontroller that we used works with the software

MicroC, this software allows you to easily program the

PIC18F4550. The use of the PIC microcontroller will enable

us to raise the voltage and current of the solar panel, through a

splitter and a filter and then calculate its power bridge. Achieving our device had five steps [6], [7]:

• The definition of the specifications is the most

difficult step because it involves researching

bibliographic and technical information to be used to

achieve the objective.

• The choice and design of electronic components

from the specifications by simulating different parts

of the assembly to fix the component values, and

some preliminary tests on a test plate to confirm their

choice.

• The simulation of the algorithm established in real

time in the microcontroller of the environment "

MicroC "then programming the PIC18F4550 from

HEX code obtained after compilation and simulation

Page 2: Proceedings of Engineering and Technology - PET …ipco-co.com/PET_Journal/CIER-2014_Papers/78.pdf · Proceedings of Engineering and Technology - PET Copyright - IPCO 2015 ... Fig.9

2ème conférence Internationale des énergies renouvelables CIER-2014

Proceedings of Engineering and Technology - PET

Copyright - IPCO 2015 program written an interface representing the wiring

in ISIS.

• The realization of the full assembly on a test plate.

• Interpretation of the results and suggestions.

II. DESCRIPTION OF A PV SYSTEM WITH MPPT

The MPPT (Maximum Power Point Tracking) is a

mechanism for tracking control is used in photovoltaic

systems to maximize the power delivered by the solar panel

continuously pursuing the maximum power point MPP [5].

The following figure shows a general view of a photovoltaic

system with a MPPT controller.

Fig.1 general view of a photovoltaic system with a MPPT controller

The mechanism tracking (MPPT) is an important

component in any solar system, since 1968 several MPPT

controls have been developed and implemented [6], among

these methods are the methods for reacting against voltage

and current. The control technique commonly used consists in

acting on the duty ratio to automatically cause the generator at

its optimum operating value, whatever the weather

instabilities or sudden changes in loads that can occur at any

time [7].

Figure (2) illustrates three cases of disturbances.

Depending on the type of disturbance, the operating point

swung from the maximum power point PPM1 to a new

operating point P1 more or less far from the optimum. For a

variation of insolation (a), simply adjust the value of the duty

ratio to converge to the new maximum power point PPM2.

For a load variation (b), we can also see a change in the

operating point which can find a new optimal position through

the action of a command.

A case of variation of the operating point may occur due to

variations in operating temperature of the GPV (c).

Although it must also act at the command, the latter does

not have the same time constraints as the two previous cases.

In summary, the monitoring of PPM is achieved by means

of a specific command called MPPT which is primarily the

duty cycle of the power converter search and reach the GPP

for GPV.

(a)

(b)

(c)

Fig.2 Research of PPM

III. SIMULATION UNDER MATLAB/SIMULINK

The proposed algorithm was validated by mean of

simulations performed with the Matlab/Simulink in two

different situations, the former assuming the presence of the

proposed control system and the latter its absence. In both

cases the module output power was evaluated in order to

perform a subsequent comparison. During the tests, the PV

module was submitted to constant temperature and solar

radiation conditions.

Page 3: Proceedings of Engineering and Technology - PET …ipco-co.com/PET_Journal/CIER-2014_Papers/78.pdf · Proceedings of Engineering and Technology - PET Copyright - IPCO 2015 ... Fig.9

2ème conférence Internationale des énergies renouvelables CIER-2014

Proceedings of Engineering and Technology - PET

Copyright - IPCO 2015

Fig. 3 Simulink model for perturbation and observation MPPT

In the former test the DC/DC converter was connected

between the module and the load without controller; in this

case the PV module was connected to generic impedance.

Under these conditions, the output power is always less

than 800 W, as can be seen in figure (4).

Fig.4 Output power without MPPT

In the latter test the same conditions were maintained, but

the MPPT control was properly inserted. In this case the

output power is always greater than 850 W, as can be seen in

figure (5).

Fig.5 Output power with MPPT

IV. IMPLEMENTATION OF MPPT

From the current and power characteristics curves, the

nonlinear nature of the PV array is obvious [8]. Therefore, an

MPPT algorithm must be implemented to force the system to

operate at the maximum power point.

Q1IRFZ44N

6/7

2

U3TC4421

R13.3k

R21k

IP+1/2

IP-3/4

VIOUT7

VCC8

GND5

FILTER6

U1

ACS712ELCTR-05B-T

C40.1uF

C50.01uF

3

2

1

41

1

U4:A

LM324

R3100k

R4100k

R73.3K

R6

1k

RA0/AN02

RA1/AN13

RA2/AN2/VREF-/CVREF4

RA3/AN3/VREF+5

RA4/T0CKI/C1OUT/RCV6

RA5/AN4/SS/LVDIN/C2OUT7

RA6/OSC2/CLKO14

OSC1/CLKI13

RB0/AN12/INT0/FLT0/SDI/SDA33

RB1/AN10/INT1/SCK/SCL34

RB2/AN8/INT2/VMO35

RB3/AN9/CCP2/VPO36

RB4/AN11/KBI0/CSSPP37

RB5/KBI1/PGM38

RB6/KBI2/PGC39

RB7/KBI3/PGD40

RC0/T1OSO/T1CKI15

RC1/T1OSI/CCP2/UOE16

RC2/CCP1/P1A17

VUSB18

RC4/D-/VM23

RC5/D+/VP24

RC6/TX/CK25

RC7/RX/DT/SDO26

RD0/SPP019

RD1/SPP120

RD2/SPP221

RD3/SPP322

RD4/SPP427

RD5/SPP5/P1B28

RD6/SPP6/P1C29

RD7/SPP7/P1D30

RE0/AN5/CK1SPP8

RE1/AN6/CK2SPP9

RE2/AN7/OESPP10

RE3/MCLR/VPP1

U2

PIC18F4550

U2

(RA

3)

D7

14

D6

13

D5

12

D4

11

D3

10

D2

9D

18

D0

7

E6

RW

5R

S4

VS

S1

VD

D2

VE

E3

LCD1LM044L

56%

RV1

1k

RV1(2)

X1CRYSTAL

C1

15pF

C2

15pF

+5v

L1

100uH

BAT112V

A B C D

R5150ohm

R3(1)

C4(1)

RD

7

RD7

RD

6

RD6

RD

5R

D4

RD5

RD4

RD1

RD0

RD

1

RD

0

U3

U3

i

i

Ve

Ve

Vs

Vs

D

D

v

v

1

1

C6100uF

C3220uF

C71000pF

D1

10BQ015

Fig.6 Electrical scheme under Proteus

V. EXPERIMENTAL RESULTS

The following figure shows our device after printing on

the test plate and welding.

Fig.7 Practical realization of the power part

Fig.8 Practical realization of the current sensor

Page 4: Proceedings of Engineering and Technology - PET …ipco-co.com/PET_Journal/CIER-2014_Papers/78.pdf · Proceedings of Engineering and Technology - PET Copyright - IPCO 2015 ... Fig.9

2ème conférence Internationale des énergies renouvelables CIER-2014

Proceedings of Engineering and Technology - PET

Copyright - IPCO 2015

VI. RESULTS ANALYSIS

The operation of the MPPT done is managed by the HEX

code injected into the "flash" of the PIC 18F4550 memory,

this code is obtained after compiling the source program in the

environment of MicroC, see Figure (9, 10).

Fig.9 Output signal of the PIC 18F4550 with D= 10%, (5V/div., 25µs/div.)

Fig.10 Output signal of the PIC 18F4550 with D= 54%, (5V/div., 25µs/div.)

A prototype MPPT system (figure 11) has been developed

using the described method and has been tested in the

laboratory [10].

Fig.11 Prototype of MPPT

The computation intensive parts of the model are the

generation of the cells characteristics then the construction of

the array’s I/V curves.

However, this part is needed to run only when the

environmental conditions are changing; hence it can be

executed with the low sampling rate.

Page 5: Proceedings of Engineering and Technology - PET …ipco-co.com/PET_Journal/CIER-2014_Papers/78.pdf · Proceedings of Engineering and Technology - PET Copyright - IPCO 2015 ... Fig.9

2ème conférence Internationale des énergies renouvelables CIER-2014

Proceedings of Engineering and Technology - PET

Copyright - IPCO 2015

Fig.12 Benchmark test

Therefore the model of the complex system is reduced to

look up tables, without requiring much computational

resource and is suitable for running in real-time, in order to

verify the effectiveness of the model developed [11].

Fig. 13 Measured and simulated I/V characteristics of a BP3150 panel

Figure (13) shows the measured and modeled I/V

characteristics of a PV module under various partial shadow

conditions.

Due to the ageing of the panel used, its behavior is not

identical to datasheet, therefore the environmental conditions

(G and T) for the simulation have been adjusted in order to

create the same short-circuit current and open-circuit voltage

to the measurement.

As a result of the comparison between experimental and

simulation result and in order to confirm the established

MPPT control and the obtained simulations, we belonged to

experimental measurements of the power according to the

voltage and the PV power of MPPT method under step

changing irradiance. The curves obtained are identical to the

simulation ones. We can conclude that there is a similarity and

concordance.

VII. CONCLUSIONS

In this paper we have realize an advanced control applied to a

photovoltaic system in view to supervise the work conditions,

in normal or in shadow weather conditions. All results have

been achieved modeling all systems in Simulink and writing

all models in Matlab code. The schemes which we focused on

include the PV plant model, the estimator parameters, the

reference model block and the supervision system control.

Page 6: Proceedings of Engineering and Technology - PET …ipco-co.com/PET_Journal/CIER-2014_Papers/78.pdf · Proceedings of Engineering and Technology - PET Copyright - IPCO 2015 ... Fig.9

2ème conférence Internationale des énergies renouvelables CIER-2014

Proceedings of Engineering and Technology - PET

Copyright - IPCO 2015 The block MPPT is necessary to track the maximum

power point and to establish the reference voltage in input, it

is based on the algorithm Perturb and Observe, which, step by

step researches the point for the first order derivative is zero.

The experimental results are quite satisfactory.

REFERENCES

[1] M. A. Eltawil, Z. Zhao. Grid-connected photovoltaic power systems:

Technical and potential problems–a review. Renewable Sustainable

Energy Review 2010; 14:112–29.

[2] A. Kargarnejad, M. Taherbaneh and A. Hosein Kashefi. A New Fuzzy-

Based Maximum Power Point Tracker for a Solar Panel Based on

Datasheet Values. International Journal of Photoenergy, Volume 2013.

[3] Irmak E, Güler N. Application of a high efficient voltage regulation

system with MPPT algorithm. International Journal of Electrical Power

Energy System 2013; 44 (1): 703–12.

[4] V. Salas, E. Olias, A. Barrado, A. Lazaro. Review of the maximum

power point tracking algorithms for stand-alone photovoltaic systems.

Solar Energy Mater Solar Cell 2006; 90 (11): 1555–78.

[5] W. Zhou, H. Yang, Z. Fang. A novel model for photovoltaic array

performance prediction. Applied Energy 2007; 84:11 87-98.

[6] Datasheet “PIC 1 6F87x: 28/40 pin CMOS Flash Microcontrollers”.

1999 Microchip Technology Inc. DS30292B

[7] N. Khaehintung, K. Pramotung, B. Tuvirat, P. Sirisuk, “RISC-

microcontroller built in fuzzy logic controller of maximum power point

tracking for solar-powered lightflasher applications”, Industrial

Electronics Society, 2004, IECON 2004,Vol. 3, pp. 2673-2678, Nov.

2004.

[8] E. Koutroulis, K. Kalaitzakis. Development of an integrated data-

acquisition system for renewable energy systems monitoring.

Renewable Energy 2003; 28:139-52.

[9] Y. Yanga, F. P. Zhaob. Adaptive perturb and observe MPPT technique

for Grid-connected Photovoltaic Inverters, Procedia Engineering,

vol.23, pp. 468 – 473, 2011.

[10] A. R. Reisi, M. H. Moradi, S. Jamasb. Classification and comparison of

maximum power point tracking techniques for photovoltaic system: A

review, Renewable and Sustainable Energy Reviews 19 (2013) 433–

443.

[11] Patel, H. et al., 2008. MATLAB based modelling to study the effects of

partial shading on PV array characteristics. IEEE Transactions on

Energy Conversion 23(1), 302–310.