fuzzy logic control for a wind/battery renewable energy...

20
Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012, c T ¨ UB ˙ ITAK doi:10.3906/elk-1104-20 Fuzzy logic control for a wind/battery renewable energy production system Onur ¨ Ozdal MENG ˙ I 1, , ˙ Ismail Hakkı ALTAS ¸ 2 1 Giresun Technical Vocational School of Higher Education, Giresun University, 28200 Giresun-TURKEY e-mail: [email protected] 2 Department of Electrical and Electronics Engineering, Faculty of Engineering, Karadeniz Technical University, 61080 Trabzon-TURKEY e-mail: [email protected] Received: 16.04.2011 Abstract In this study, a designed proportional-integral(PI) controller and a fuzzy logic controller (FLC) that fix the voltage amplitude to a constant value of 380 V and 50 Hz for loads supplied from a wind/battery hybrid energy system are explained and compared. The quality of the power produced by the wind turbine is affected by the continuous and unpredictable variations of the wind speed. Therefore, voltage-stabilizing controllers must be integrated into the system in order to keep the voltage magnitude and frequency constant at the load terminals, which requires constant voltage and frequency. A fuzzy logic-based controller to be used for the voltage control of the designed hybrid system is proposed and compared with a classical PI controller for performance validation. The entire designed system is modeled and simulated using MATLAB/Simulink GUI (graphicaluser interface) with all of its subcomponents. Key Words: Fuzzy logic controller, proportional-integral controller, renewable energy, wind turbine 1. Introduction Wind energy is one of the most prominent renewable energy sources on earth. During the last decade, there has been tremendous growth in both the size and the power of wind energy converters (WECs). The global installed power increased from 7.5 GW in 1997 [1] to more than 194 GW in 2010 [2]. At the same time, turbines have grown in size, with rotor diameters of more than 100 m and power ratings ranging from kilowatts to megawatts, such as 7.5 MW. This enormous development and the more recent use of wind energy in offshore applications have led to high demands for the design, construction, and operation of WECs. Thus, a major new industry has been established and a new interdisciplinary field of research has begun to grow, affecting scientists from areas such as engineering, physics, and meteorology. Corresponding author: Giresun Technical Vocational School of Higher Education, Giresun University,28200 Giresun-TURKEY 187

Upload: trinhminh

Post on 24-Feb-2018

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012, c© TUBITAK

doi:10.3906/elk-1104-20

Fuzzy logic control for a wind/battery renewable energy

production system

Onur Ozdal MENGI1,∗, Ismail Hakkı ALTAS2

1Giresun Technical Vocational School of Higher Education, Giresun University,28200 Giresun-TURKEY

e-mail: [email protected] of Electrical and Electronics Engineering, Faculty of Engineering,

Karadeniz Technical University, 61080 Trabzon-TURKEYe-mail: [email protected]

Received: 16.04.2011

Abstract

In this study, a designed proportional-integral (PI) controller and a fuzzy logic controller (FLC) that fix

the voltage amplitude to a constant value of 380 V and 50 Hz for loads supplied from a wind/battery hybrid

energy system are explained and compared. The quality of the power produced by the wind turbine is affected

by the continuous and unpredictable variations of the wind speed. Therefore, voltage-stabilizing controllers

must be integrated into the system in order to keep the voltage magnitude and frequency constant at the

load terminals, which requires constant voltage and frequency. A fuzzy logic-based controller to be used for

the voltage control of the designed hybrid system is proposed and compared with a classical PI controller

for performance validation. The entire designed system is modeled and simulated using MATLAB/Simulink

GUI (graphical user interface) with all of its subcomponents.

Key Words: Fuzzy logic controller, proportional-integral controller, renewable energy, wind turbine

1. Introduction

Wind energy is one of the most prominent renewable energy sources on earth. During the last decade, there hasbeen tremendous growth in both the size and the power of wind energy converters (WECs). The global installed

power increased from 7.5 GW in 1997 [1] to more than 194 GW in 2010 [2]. At the same time, turbines havegrown in size, with rotor diameters of more than 100 m and power ratings ranging from kilowatts to megawatts,such as 7.5 MW. This enormous development and the more recent use of wind energy in offshore applicationshave led to high demands for the design, construction, and operation of WECs. Thus, a major new industryhas been established and a new interdisciplinary field of research has begun to grow, affecting scientists fromareas such as engineering, physics, and meteorology.

∗Corresponding author: Giresun Technical Vocational School of Higher Education, Giresun University,28200 Giresun-TURKEY

187

Page 2: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

The total electricity demand in 2009 in the United States of America was 3.953 × 109 kWh. The global

demand will reach 22.82 × 1012 kWh in 2015 [2]. Most of the present electricity demand in the world is metby fossil-fuel and nuclear power plants. A small part is met by renewable energy technologies, such as wind,solar, biomass, geothermal, and ocean sources. Among the renewable power sources, wind and solar energyhave experienced a remarkably rapid growth in the past 10 years. Both are pollution-free sources of abundantpower.

Wind power generation capacity saw an average global annual growth rate of 30% during the periodfrom 1993 to 2003. More than 8 GW of new wind capacity was added globally in 2003, at an investment valueof US$9,000,000,000. This brought the total cumulative wind capacity to 40 GW. The most explosive growthoccurred in Germany. Offshore wind farms are bringing a new dimension to the energy market. Many havebeen installed, and many more are being installed or are in the planning stage [3].

Energy is produced on farms composed of wind turbines. These types of systems are large power systems.For small applications, these energy types can also be used easily. For very small applications, battery groupsand wind turbines can be used together [4]. For large power applications, because of the costs, battery groupscannot be used. For some houses that are farther away from the grid or obtaining energy only from renewableenergy sources, however, the wind turbines and the battery groups can be used together. Diesel generators[5-8], solar panels [9,10], or fuel cells [11-13] can also be added to these systems. These systems are controlledby various control techniques. The objective of energy studies is to hold the amplitude and frequency of thevoltage at a constant value. These systems can work with or without connection to the grid [14-19].

Energy is produced by wind turbines with different electric motors. These can be asynchronous motors(ASM), synchronous motors (SM), or direct-current motors (DCM) [4,20]. The voltage produced can be directcurrent or alternative current. In this study, a squirrel-caged ASM was used. As the ASM works freely, thereactive energy that it needs is supplied by a capacitor group [21-24].

In the literature, different controlling types of both renewable energy sources and power electronicconverters can be seen [25,26]. In some research, control techniques such as fuzzy logic control [27], proportional-

integral (PI)-derivative control [28], and fuzzy neural networks [29] are frequently used. The used chopper andinverter are controlled by these techniques.

In commercial products, there is a problem in holding the voltage at constant values such as 380 Vand 50 Hz. At a true frequency and voltage, the loads must be supplied with a clean energy that does notcontain harmonics. If not, the harmonics can cause some faults and early aging problems for the components.Researchers are therefore heavily focused on these subjects.

In this paper, the fixing of voltage amplitude at a constant value of 380 V by using a controller for theloads supplied from a wind/battery energy production system is explained. The wind speed was continuouslychanged and the behavior of the system was analyzed. For the controller, both a PI controller and a fuzzylogic controller (FLC) were used; the results were compared. The quality of the energy was observed by taking

measurements of the loads frequently. The value of the total harmonic distortion (THD) was held at the

standard intervals. The entire system and all of its subcomponents were designed in a MATLAB/Simulinkenvironment.

188

Page 3: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

2. Wind/battery energy production system

The overall system structure, consisting of a 3-phase load, wind/battery hybrid energy system, interfacingconverters, filters, and control unit, is shown in Figure 1. When the wind speed is sufficient, the whole systemis supplied by the wind turbine; otherwise, the batteries are turned on to supply the system. The direct-current(DC) voltage produced by the wind/battery system is converted to alternative-current (AC) voltage using a3-phase inverter in order to supply power to the 3-phase load. The voltage output of the inverter is controlledto keep the voltage at 380 V, line to line, at a fixed frequency of 50 Hz. The 3-phase voltages are converted tod-q axis layouts as direct-axis voltage Vd and quadrature voltage Vq, to be used by the PI controller and theFLC. The output of the controller is then used to generate a pulse-width modulated (PWM) signal, which isused to control the output voltage of the inverter. The frequency of the inverter is controlled and kept constantat 50 Hz through a phase-locked loop (PLL) process.

Figure 1. PV/battery renewable source.

The filters in the system are used to supply clean AC voltage to the loads. The value of the THD in thesystem was measured and compared with the correct standard values.

All of the subsystem components (wind turbine, batteries, FLC, PI controller, inverter, 3-phase load,

regulator, and filters) were submodeled individually using the MATLAB/Simulink GUI (graphical user interface)environment and were combined to establish the overall system model. The simulation of the proposed schemewas done in MATLAB/Simulink/SimPower to establish model validation and component compatibility.

The used regulator is a device that measures the wind speed. This controller is a mechanism that usesan on-off control technique. When the wind speed is less than a specific value, it cannot supply the guaranteedpower to the system; the system then turns off the wind turbine and turns on the batteries.

In this study, a wind/battery system supplying power to 3-phase AC loads was examined. To fix thevoltage on the loads at 380 V, both a PI controller and a FLC were used, and the results were compared.

189

Page 4: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

2.1. The wind turbine model

Wind turbines convert mechanical energy produced by the wind to electrical energy. To use this electricalenergy, voltage and frequency regulation are needed. The model of a wind turbine is developed on the basisof the steady-state power characteristics of the turbine. The mechanical power produced by a wind turbine isshown in Eq. (1). The Simulink model of the studied wind turbine is shown in Figure 2.

Figure 2. Wind turbine model.

Pm =12Cp(λ, β)ρAv3 (1)

In Eq. (1), Pm is the mechanical output power of the turbine (W), Cp is the performance coefficient of the

turbine, λ is the tip speed ratio of the rotor blade tip speed to the wind speed (in degrees), β is the blade pitch

angle (in degrees), ρ is the air density (kg/m3), A is the turbine swept area (m2), and v is the wind speed

(m/s). The expression “Cp(λ, β)” is calculated by using Eqs. (2) and (3).

Cp(λ, β) = C1

(C2

λ1− C3β − C4

)e

C3λi + C6λ (2)

1λi

=1

λ + 0, 08β− 0, 035

β3 + 1(3)

Coefficients C1 through C6 are: C1 =0.5176,C2 =116,C3 =0.4,C4 =5,C5 =21, and C6 =0.0068. β is equalto 0, but, if necessary, this value can be changed [3,4].

2.2. The battery model

The nickel-metal hydride battery was modeled using a simple controlled voltage source in a series with constantresistance, as shown in Figure 3. This model assumes the same characteristics for the charge and the dischargecycles. The open voltage source was calculated with a nonlinear equation based on the actual state of charge(SOC) of the battery.

190

Page 5: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

Figure 3. Nonlinear battery model.

The controlled voltage source is described by Eq. (4).

E = E0 − KQ

Q −t∫0

idt

+ Ae(−B

t�

0idt)

(4)

Here, E is the no-load voltage (V), E0 is the battery constant voltage (V), K is the polarization voltage (V), Q

is the battery capacity (Ah), A is the exponential zone amplitude (V), B is the exponential zone time constant

inverse (Ah) - 1, Vbatt is the battery voltage (V), R is the internal resistance (Ω), i is the battery current (A),

and∫

idt = e actual battery charge (Ah) [28,30].

2.3. Control systems

Systems in the energy industry need to be controlled. Each system works with some rules, and these rulesdetermine the system’s instant situation. For example, in a system in which the speed is controlled, the speeddata of the motor shaft are compared to the reference data, and, according to the rules, the power of the motorcan be increased or decreased. In this situation, a controller is required.

2.3.1. Proportional-integral-derivative controller

Proportional-integral-derivative (PID) controllers are the most commonly used controllers, especially in theelectronics industry. The basic form of the controlled systems is shown in Figure 4. The expression at thecontinuous time and the transfer function of the PID type of controller that is used in this system are shown inEqs. (5) and (6) [31]. A PI type of controller is used in the simulated system.

191

Page 6: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

Figure 4. A system with PID controller.

u(t) = Kp[e(t) +1Ti

t∫0

e(t)dt+Tde(t)dt

] (5)

GController = KD + KT s +Ki

s(6)

2.3.2. Fuzzy logic controller

In the energy industry, while controlling a system, it is expected that the stability and safety of the systemwill be assured. The system must also be cheap, easy to use, understandable, repairable, and changeable, and,above all, must increase the performance to the desired level. To achieve all of these goals, the structure andthe dynamic properties of the system that will be controlled must be known and must also be mathematicallymodeled. Sometimes, however, due to some nonlinear systems, mathematic models are not possible. Even ifthe modeling is done, the controller that will be used in that system might cause some design problems andhigh costs. Therefore, the controller might not work at the desired performance level. In situations like this,an expert’s information is utilized. The expert presents the information and experiences as fuzzy or uncertaintypes to do the controlling. These characterizations are transferred to the computer, ending the need for theexpert. The differences among the controls of different experts also come to an end, and the controlling of thesystem thus becomes flexible.

The term “fuzzy logic” can be explained as a method that utilizes the experiences of people for numericalexpressions, instead of verbal and symbolic expressions, to produce the functional rules of a system. Fuzzylogic is established based upon the logical relations. In daily life, the terms that are used usually have a fuzzystructure type. While explaining something or giving an order, the terms that we use are fuzzy. Verbal termsincluding “old,” “young,” “tall,” “short,” “hot,” “cold,” “warm,” “cloudy,” “partly cloudy,” “sunny,” “fast,”“slow,” “a lot,” “a few,” “some,” and “more” can be understood as fuzzy variables. While people are explainingevents or describing a subject, they use expressions that do not contain certainty. According to a person’s age,he is called “old,” “middle-aged,” “young,” “very old,” or “very young.” According to the slipperiness and theslope of a road, the gas and the brake pedal of a car are pushed more slowly or more quickly. If the light ina room is not sufficient, it is increased; if the light is too bright, then it is decreased. All of these situationsare examples of how a human brain explains behaviors and its assessments of some situations with unclear anduncertain terms.

192

Page 7: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

After the development of fuzzy logic and the publication of an article about the theory of fuzzy setsusing these logic rules [32], investigations of systems containing uncertain terms showed new trends. Thoughdeveloped in 1965, the term “fuzzy sets” began to be commonly used in the mid-1970s. After the mid-1980s,the usage of fuzzy logic accelerated as Japan began to use the fuzzy logic technique in various products. Today,it has reached its peak, and it is possible to find an application of fuzzy logic almost everywhere.

The general properties of fuzzy logic, as explained by Zadeh [32], are as follows. In fuzzy logic, insteadof consideration based on exact data, approximate consideration is used. In fuzzy logic, all data are shown asvalues between 0 and 1. The information in fuzzy logic is verbal, such as “big,” “small,” “more,” or “few.” Thefuzzy implication process is conducted according to rules that are defined between the verbal expressions. Everylogical system can be defined as fuzzy. Fuzzy logic is very suitable for systems whose mathematical models arehard to develop. Fuzzy logic has the ability of processing uncertain or incomplete information [32,33].

The flow chart of a FLC is shown in Figure 5.

Figure 5. Basic configuration of a FLC.

As shown in Figure 5, the FLC system consists of 3 components. These are fuzzification, the rule base,and defuzzification. Fuzzification, the first component of the FLC, converts the exact inputs to fuzzy values.These fuzzy values are sent to the rule-base unit and processed with fuzzy rules, and then these derived fuzzyvalues are sent to the defuzzification unit. In this unit, the fuzzy results are converted to exact values.

The FLC’s input values are generally the control error and the variation of this error in one samplingtime. According to these variables, a rule table is produced in the FLC’s rule-base unit.

The holding of the voltage and the amplitude of the load at the desired values of 380 V and 50 Hz is doneby the FLC. The 3-phase voltage is transferred from the a-b-c axes to the d-q axes first. The voltage dividesinto its components, which are controlled separately. At the output of the control, the voltage is transferredin reverse, from the d-q axes to the a-b-c axes, and, at the end, the PWM is driven by that voltage. Thesecontrols are done in the regulator block.

In Figures 6 and 7, the error and the error variation of the input data of the FLC’s input variables areshown. Triangle membership functions were used. These functions are called NB, NK, S, PK, and PB, and thedata vary between –1 and 1, as seen in the Figures.

Figure 6. Error membership functions.

193

Page 8: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

In Figure 8, the output space of the FLC is shown. These data also vary between –1 and 1.

Figure 7. Variation of error membership functions. Figure 8. Output space.

These subsystems are shown in Figures 9-13. The triangle membership function is defined in Eq. (7),and its Simulink subsystem is shown in Figure 9.

μMU(x) = max(

min(

x − x1

xT − x1,

x2 − x1

x2 − xT

), 0

)(7)

Mu(x)

1

0

1

1

min

max

x2

4

xT

3

x1

2

x

1

Figure 9. Triangular membership function.

In Figure 10, the fuzzification unit is shown. It is designed to be 5-ruled. The minimums of the errorand its variations according to the input variables are calculated here.

In the Table, the rules of the FLC are given. Due to the 5-ruled input variables, there are 25 rules intotal. The unit for the rule processing is seen in Figure 11.

194

Page 9: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

PBeP

Bde

25

PBeP

Kde

24

PBeS

de

23

PBeN

Kde

22

PBeN

Bde

21

PKeP

Bde

20

PKeP

Kde

19

PKeS

de

18

PKeN

Kde

17

PKeN

Bde

16

SePB

de

15

SePK

de

14

SeSd

e

13

SeN

Kde

12

SeN

Bde

11

NK

ePB

de

10

NK

ePK

de

9

NK

eSde

8

NK

eNK

de

7

NK

eNB

de

6

NB

ePB

de

5

NB

ePK

de

4

NB

eSde

3

NB

eNK

de

2

NB

eNB

de

1

SeSd

e

min

SePK

de

min

SePB

de

min

SeN

Kde

min

SeN

Bde

min

Se

x x1 xT x2

Mu(

x)

PKeS

de

min

PKeP

Kde

min

PKeP

Bde

min

PKeN

Kde

min

PKeN

Bde

min

PKe

x x1 xT x2

Mu(

x)

PBeS

de

min

PBeP

Kde

min

PBeP

Bde

min

PBeN

Kde

min

PBeN

Bde

min

PBe

x x1 xT x2

Mu(

x)

NK

eSde

min

NK

ePK

de

min

NK

ePB

de

min

NK

eNK

de

min

NK

eNB

de

min

NK

e

x x1 xT x2

Mu(

x)

NB

eSde

min

NB

ePK

de

min

NB

ePB

de

min

NB

eNK

de

min

NB

eNB

de

min

NB

e

x x1 xT x2

Mu(

x)

Sde

x

x1

xT

x2

Mu(x)

PK

de

x

x1

xT

x2

Mu(x)

PB

de

x

x1

xT

x2

Mu(x)

NK

de

x

x1

xT

x2

Mu(x)

NB

de

x

x1

xT

x2

Mu(x)

PBde

12PK

de11

Sde

10N

Kde

9N

Bde

8

de 7

PBe6

PKe

5Se4

NK

e

3

NB

e

2

e1

Figure 10. Fuzzification unit.

195

Page 10: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

Table. Fuzzy rules.

e / de NB NK S PK PBNB NB NB NK NK SNK NB NK NK S PKS NK NK S PK PK

PK NK S PK PK PBPB S PK PK PB PB

Out25

25

Out24

24

Out23

23

Out22

22

Out21

21

Out20

20

Out19

19

Out18

18

Out17

17

Out16

16

Out15

15

Out14

14

Out13

13

Out12

12

Out11

11

Out10

10

Out9

9

Out8

8

Out7

7

Out6

6

Out5

5

Out4

4

Out3

3

Out2

2

Out1

1

PKdu

PBdu

NBdu

Goto4

[PBdu]

Goto3

[PKdu]

Goto2

[Sdu]

Goto1

[NKdu]

Goto

[NBdu]

From9

[NKdu]

From8

[NKdu]

From7

[NKdu]

[NBdu]

From5

[NBdu]

[PBdu][PKdu] [PBdu]

[PBdu][PKdu]

[PKdu]

From2

[Sdu]

[PKdu]

[PKdu]

[PKdu][Sdu]

[Sdu]

[Sdu]

[Sdu]

[NKdu]

[NKdu][NKdu]

From1

[NKdu]

[PKdu]

[NBdu]

Sdu

Sdu

PKdu

PKdu

PBdu

NKdu

NKdu NBdu

Sdu

PKdu

PKdu

PKdu PBdu

NKdu

NKdu

NBdu

Sdu

Sdu

PKdu

NKdu

NKdu

NKdu

PBdu

30

PKdu

29

Sdu

28

NKdu

27

NBdu

26

PBePBde

25

PBePKde

24

PBeSde

23PBeNKde

22

PBeNBde

21

PKePBde

20

PKePKde

19

PKeSde

18

PKeNKde

17

PKeNBde

16

SePBde

15

SePKde

14

SeSde

13

SeNKde

12

SeNBde

11

NKePBde

10

NKePKde

9

NKeSde

8

NKeNKde

7

NKeNBde

6

NBePBde

5

NBePKde

4

NBeSde

3

NBeNKde

2

NBeNBde

1

Figure 11. Fuzzy rules in Simulink.

In Figure 12, certain variables are obtained with defuzzification by using the center of the area method.In Eq. (8), the mathematical expression of this method is shown.

z0 =

n∑j=1

μC(zj).zj

n∑j=1

μC(zj)(8)

The designed FLC was redesigned in the MATLAB/Simulink environment, as shown in Figure 13. The

user can thereby use the controller more efficiently and can establish the necessary settings easily [28].

3. Simulation system

The wind turbine is affected by the wind speed. The variations of the wind speed are shown in Figure 14. Thesimulated system is shown in Figure 15.

The system includes a 60-kW wind turbine and induction machine, a 55-kW battery, a regulator, aninverter, filters, a total 50-kW load, measuring units, switches, and controllers. During the simulation process,the voltages on the loads are fixed at the values of 380 V and 50 Hz.

196

Page 11: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

Out1

fuzz

ific

atio

n

e NB

e

NK

e

Se PKe

PBe

de NB

de

NK

de

Sde

PKde

PBde

NB

eNB

de

NB

eNK

de

NB

eSde

NB

ePK

de

NB

ePB

de

NK

eNB

de

NK

eNK

de

NK

eSde

NK

ePK

de

NK

ePB

de

SeN

Bde

SeN

Kde

SeSd

e

SePK

de

SePB

de

PKeN

Bde

PKeN

Kde

PKeS

de

PKeP

Kde

PKeP

Bde

PBeN

Bde

PBeN

Kde

PBeS

de

PBeP

Kde

PBeP

Bde

defu

zzif

icat

ion

NB

eNB

de

NB

eNK

de

NB

eSde

NB

ePK

de

NB

ePB

de

NK

eNB

de

NK

eNK

de

NK

eSde

NK

ePK

de

NK

ePB

de

SeN

Bde

SeN

Kde

SeSd

e

SePK

de

SePB

de

PKeN

Bde

PKeN

Kde

PKeS

de

PKeP

Kde

PKeP

Bde

PBeN

Bde

PBeN

Kde

PBeS

de

PBeP

Kde

PBeP

Bde

NB

du

NK

du

Sdu

PKdu

PBdu

Out

1

Out

2

Out

3

Out

4

Out

5

Out

6

Out

7

Out

8

Out

9

Out

10

Out

11

Out

12

Out

13

Out

14

Out

15

Out

16

Out

17

Out

18

Out

19

Out

20

Out

21

Out

22

Out

23

Out

24

Out

25

PBdu17

PKdu16Sdu

15

NK

du

14

NB

du

13

PBde12

PKde11Sde

10

NK

de9

NB

de8de7

PBe6

PKe5Se4

NK

e

3

NB

e

2e1

Figure 12. Defuzzification units.

197

Page 12: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

out1

e

e

NBe

NKe

Se

PKe

PBe

du

du

NBdu

NKdu

Sdu

PKdu

PBdu

de

de

NBde

NKde

Sde

PKde

PBdez1

z1

e

NBe

NKe

Se

PKe

PBe

de

NBde

NKde

Sde

PKde

PBde

NBdu

NKdu

Sdu

PKdu

PBdu

Out1

1

0.1

5001

1

error1

Figure 13. FLC with input and output values.

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1× 10 -3

0

2

4

6

8

10

12

Time (s)

Vel

ocity

(m

/s)

Figure 14. Variations of wind speed between 0 and 1 ms.

50 kW380V rms

50 Hz 10kW 20kW

Discrete,Ts = 2e-006 s.

Wind Turbine

Generator speed (pu)

Pitch angle (deg)

Wind speed (m/s)

Tm (pu)

WIND-BATTERYREGULATOR

Vdc_lineWind

BATTERY

Vref (pu)

1

Voltage Regulator

Vabc (pu)

Vd_ref (pu)

Vabc_inv

m

v+-

v+-

v+-

z

1

Vabc

Iabc

A

B

C

a

b

c

A B C

Scope4

Rectifier

A

B

C

+

-

Random WindSpeed Generator

Speed

PWMIGBT Inverter

g

A

B

C

+

-

Multimeter

4

VabcA

B

C

abc

L1

m

Speed

IabcWind

VabcWind

Vabc

Sign

Wind

BAT

VabcWind

IabcWind

VabcWind

IabcWind

m

Vabc

Sign

Speed

BAT

Wind

signalTHD

UrefPulses

0

C

g m

1 2

Battery Switch

g m

1 2

Battery

+

_m

Tm

mA

B

C

A B C

Vabc

IabcPQ

3 kvar

A B C

2 mH

A

B

C

A

B

C

Con

n 1

Con

n 1

Con

n 2

Con

n 2

Con

n 3

Con

n 3

<Q>

<P>

I Diodes 1 & 3

I IGBT 1 & 2

Figure 15. Main system.

198

Page 13: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

The PWM used in the system’s inverter has a 2-kHz switching frequency. Therefore, in the simulation,discrete time control is done at a sampling time of 2 μs.

In Figure 15, the alternative voltage obtained from the wind turbine is converted to direct current bypassing it through a rectifier and then filtering it. The direct current is also connected to the battery unit. Itis converted to the 3-phase voltage by an inverter and then filtered again, and the loads are supplied by thisvoltage. To investigate the system’s behavior at different loads, first a 10-kW and then a 20-kW load is addedto the 20-kW reference load. The total load is 50 kW. In the system, the regulator decides when the loadswill be supplied by the wind turbine or by the battery unit. According to the decision, the signals are sentto the switches that turn on and off the wind turbine and the battery unit. This process is conducted in thewind-battery block.

The voltage regulator block is the place where the control process occurs. Here, as explained before, thetransfer process is done from the a-b-c axes to the d-q axes. The voltage is divided into its d and q components,which are controlled separately, and, in the output of the controller, these data are converted to the a-b-c axesfrom the d-q axes. The PWM is driven by that voltage.

By taking some measurements from every point, data about the system’s current, voltage, and power canbe examined. By changing the wind speed between 0 and 12 m/s, a simulation close to reality is undertaken.

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1-500

0500

Time (s)

Vlo

ad (

V)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-100

0100

Time (s)

Iloa

d (A

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5246× 10

4

Time (s)

Ploa

d (W

)

b

a

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1-500

0500

Time (sec)

Vlo

ad (

V)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-100

0100

Time (s)

Iloa

d (A

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5246× 10

4

Time (s)

Ploa

d (W

)

Figure 16. Power on the load: a) with a PI controller and b) with a FLC.

199

Page 14: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

4. Discussion and result analysis

In Figures 16a and 16b, the active power, current, and voltage on the load with both a PI controller and a FLCare shown. The increase of the loads can be seen clearly. First a 20-kW, then a 10-kW, and finally a 20-kWload were added to the system. As a result, a total load of 50 kW is supplied by the system.

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5

980

990

1000

Time (s)

Vdc

(V

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-1000

0

1000

Time (s)

Vab

-inv

erte

r (V

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-500

0

500

Time (s)

Vab

-loa

d (V

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50.6

0.65

Time (s)Mod

ulat

ion

Inde

x

Figure 17. Results of the PI controller.

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5980

990

1000

Time (s)

Vdc

(V

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-1000

0

1000

Time (s)

Vab

-inv

erte

r (V

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-500

0

500

Time (s)

Vab

-loa

d (V

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

Time (s)

Mod

ulat

ion

Inde

x

Figure 18. Results of the FLC.

200

Page 15: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

In Figures 17 and 18, the results derived from the control achieved by using the PI controller and theFLC, respectively, are shown, along with the DC output voltage, the inverter’s output voltage between the aand b phases, the load voltage between the a and b phases, and the variation of the modulation indexes.

0 1 2 3 4 50.02

0.04

0.06

0.08

0.1

0.12

0.14

Time (s)

%3

Phas

e T

HD

0 1 2 3 4 5375

380

385

390

Time (s)

Vab

eff

(V

)

0 1 2 3 4 5

0.05

0.1

0.15

Time (s)

%1

Phas

e T

HD

0 1 2 3 4 5216

218

220

222

224

226

Time (s)

Va e

ff (

V)

Figure 19. PI controller results.

0 1 2 3 4 5

0.02

0.025

0.03

0.035

0.04

Time (s)

%3

Phas

e T

HD

0 1 2 3 4 5375

380

385

Time (s)

Vab

eff

(V

)

0 1 2 3 4 50.02

0.03

0.04

0.05

0.06

Time (s)

%1

Phas

e T

HD

0 1 2 3 4 5216

218

220

222

Time (s)

Va e

ff (

V)

Figure 20. FLC results.

201

Page 16: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

In Figure 19, the voltage on the load reaches a value of 380 V at 2 s with the PI controller. The maximumovershoot voltage that can be reached is 392 V. The 3-phase THD value is less than 10% at the steady situation.In Figure 18, the results derived from the control done by using the FLC are shown, along with the DC outputvoltage, the inverter’s output voltage between the a and b phases, the load voltage between the a and b phases,and the variation of the modulation indexes. The voltage on the load reaches a value of 380 V at 0.05 s with theFLC. The maximum overshoot value is 384 V. The 3-phase THD value is less than 2% at the steady situation.Detailed results are shown in Figures 19 and 20.

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1-600

-400

-200

0

200

400

600

Time (s)

Vab

-loa

d (V

)

Figure 21. Vab−load variation for PI controller.

In Figures 21 and 22, the variation of the voltage between the a and b phases done in simulations withthe PI controller and FLC in sequence are shown. As can be seen from the THD values, the FLC has a lessharmonic and a clean sinus wave.

0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05-600

-400

-200

0

200

400

600

Time (s)

Vab

-loa

d (V

)

Figure 22. Vab−load variation for the FLC.

In Figures 23 and 24, the variations of the electrical parameters of the wind turbine are shown.

202

Page 17: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5

0500

1000

Time (s)

Vw

ind

(V)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-50

050

Time (s)

Iwin

d (A

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50246× 104

Time (s)

Pwin

d (W

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-202× 10 4

Time (s)

Qw

ind

(VA

r)

Figure 23. Wind turbine V, I, active, and reactive power variations with PI system.

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5

0500

1000

Time (s)

Vw

ind

(V)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-50

050

Time (s)

Iwin

d (A

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50246× 104

Time (s)

Pwin

d (W

)

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-202× 104

Time (s)

Qw

ind

(VA

r)

Figure 24. Wind turbine V, I, active, and reactive power variations with FLC system.

5. Conclusion

The waveform of the loads was very similar to the sinus wave form using both the PI and fuzzy logic controllers.The system can fix the voltage on the loads at a constant value of 380 V regardless of effects from the variationsof the wind speed. The system frequency value is steady at 50 Hz. According to the value of the wind speed,

203

Page 18: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

the used regulator works effectively by turning on and off the batteries.

The maximum overshoot and settling time values of the FLC were much better than those of the PIcontroller. The PI controller maximum overshoot voltage that can be reached is 392 V. This value is 384 Vwith the FLC system. The PI controller’s setting time was 2 s; this value was 0.05 s for the FLC.

When the THD values are compared, it is seen that both controllers had values in the standard ranges.However, the FLC’s value was better than the PI’s, as was its sinus wave form.

When the produced energy is greater and the loads are low, the wind turbine must be arranged to rechargethe batteries. This can be done by the management of the energy.

When there is no wind, the loads are supplied only with batteries. When the batteries are empty, theloads will have no energy supply. To prevent this situation, a diesel generator can be added to the system orthe system can be supplied with energy by the main network.

References

[1] J. Peinke, P. Schaumann, S. Barth, Wind Energy Proceedings of the Euromech Colloquium, Berlin-Heidelberg,

Springer, 2007.

[2] Global Wind and Energy Council, Market Forecast 2010-2014, available at:

http://www.gwec.net/fileadmin/documents/Publications/Global Wind 2007 report/market%20forecast%202010-

2014.JPG.

[3] M.R. Patel, Wind and Solar Power Systems, Boca Raton, Florida, CRC Press, 2006.

[4] T. Ackerman, Wind Power in Power Systems, New York, John Wiley and Sons, 2005.

[5] P.A. Stott, M.A. Mueller, “Modelling fully variable speed hybrid wind diesel systems”, 41st International Universities

Power Engineering Conference, Vol. 1, pp. 212-216, 2006.

[6] A. Karlis, P. Dokopoulos, “Small power systems fed by hydro, photovoltaic, wind turbines and diesel generators”,

Third IEEE International Conference on Electronics, Circuits, and Systems, Vol. 2, pp. 1013-1016, 1996.

[7] X. Liu, S. Islam, “Wind-diesel-battery hybrid generation system reliability analysis on site and size factors”, 4th

International Conference on Electrical and Computer Engineering, pp. 229-232, 2006.

[8] A.S Kini, U.R. Yaragatti, “Modelling and simulation of a wind/diesel hybrid power system”, IEEE International

Conference on Industrial Technology, pp. 1670-1675, 2006.

[9] Y.M. Chen, Y.C. Liu, S.C. Hung, C.S. Cheng, “Multi-input inverter for grid-connected hybrid PV/wind power

system”, IEEE Transactions on Power Electronics, Vol. 22, pp. 1070-1077, 2007.

[10] V. Rao, C. Chinnagounder, “Analysis of hybrid power system”, First Asia International Conference on Modelling

and Simulation, pp. 48-52, 2007.

[11] M.J. Khan, M.T. Iqbal, “Analysis of a small wind-hydrogen stand-alone hybrid energy system”, Applied Energy,

Vol. 86, pp. 2429-2442, 2009.

[12] H. Miland, R. Glockner, P. Taylor, R.J. Aaberg, G. Hagen, “Load control of a wind-hydrogen stand-alone power

system”, International Journal of Hydrogen Energy, Vol. 31, pp. 1215-1235, 2006.

204

Page 19: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

MENGI, ALTAS: Fuzzy logic control for a wind/battery renewable...,

[13] M.J. Khan, M.T. Iqbal, “Dynamic modeling and simulation of a small wind-fuel cell hybrid energy system”,

Renewable Energy, Vol. 30, pp. 421-439, 2005.

[14] M.E. Ropp, S. Gonzales, “Development of a MATLAB/Simulink model of a single-phase grid-connected photovoltaic

system”, IEEE Transactions on Energy Conversion, Vol. 24, pp. 195-202, 2009.

[15] Y.M. Chen, C.S. Cheng, H.C. Wu, “Grid-connected hybrid PV wind power generation system with improved DC

bus voltage regulation strategy”, 21st Annual IEEE Applied Power Electronics Conference and Exposition, doi:

10.1109/APEC.2006.1620673, 2006.

[16] Y.M. Chen, S.C. Hung, C.S. Cheng, Y.C. Liu, “Multi-input inverter for grid-connected hybrid PV/wind power

system”, 20th Annual IEEE Applied Power Electronics Conference and Exposition, Vol. 2, pp. 850-856, 2005.

[17] B. Lu, M. Shahidehpour, “Short-term scheduling of battery in a grid-connected PV/battery system”, IEEE Trans-

actions on Power Systems, Vol. 20, pp. 1053-1061, 2005.

[18] F. Giraud, Z.M. Salameh, “Steady-state performance of a grid-connected rooftop hybrid wind-photovoltaic power

system with battery storage”, IEEE Transactions on Energy Conversion, Vol. 16, pp. 1-7, 2001.

[19] K. Ro, S. Rahman, “Two-loop controller for maximizing performance of a grid-connected photovoltaic-fuel cell

hybrid power plant”, IEEE Transactions on Energy Conversion, Vol. 13, pp. 276-281, 1998.

[20] T. Petru, T. Thiringer, “Modeling of wind turbines for power system studies”, IEEE Transactions on Power Systems,

Vol. 17, pp. 1132-1139, 2002.

[21] T. Wildi, Electrical Machines, Drives, and Power Systems, New Jersey, Prentice Hall, 1997.

[22] L. Krichen, B. Francois, A. Ouali, “A fuzzy logic supervisor for active and reactive power control of a fixed speed

wind energy conversion system”, Electric Power Systems Research, Vol. 78, pp. 418-424, 2008.

[23] E. Levi, Y.W. Liao, “An experimental investigation of self-excitation in capacitor excited induction generators”,

Electric Power Systems Research, Vol. 53, pp. 59-65, 2000.

[24] E. Muljadi, J. Sallan, M. Sanz, C.P. Butterfield, “Investigation of self-excited induction generators for wind turbine

applications”, Annual Meeting of the IEEE Industry Applications Society, Vol. 1, pp. 509-515, 1999.

[25] F. Iov, M. Ciobotaru, D. Sera, R. Teodorescu, F. Blaabjerg, “Power electronics and control of renewable energy

systems”, 7th International Conference on Power Electronics and Drive Systems, pp. 6-28, 2007.

[26] S.A. Papathanassiou, G.A. Vokas, M.P. Papadopoulos, “Use of power electronic converters in wind turbines and

photovoltaic generators”, IEEE International Symposium on Industrial Electronics, Vol. 1, pp. 254-259, 1995.

[27] H. Weiss, J. Xiao, “Fuzzy system control for combined wind and solar power distributed generation unit”, IEEE

International Conference on Industrial Technology, Vol. 2, pp. 1160-1165, 2003.

[28] O.O. Mengi, I.H. Altas, “A fuzzy logic control for wind/battery renewable energy production system”, International

Symposium on Innovations in Intelligent Systems and Applications, pp. 229-233, 2010.

[29] A. de Medeiros Torres, F.L.M. Antunes, F.S. dos Reis, “An artificial neural network-based real time maximum

power tracking controller for connecting a PV system to the grid”, 24th Annual Conference of the IEEE Industrial

Electronics Society, Vol. 1, pp. 554-558, 1998.

205

Page 20: Fuzzy logic control for a wind/battery renewable energy ...journals.tubitak.gov.tr/elektrik/issues/elk-12-20-2/elk-20-2-1... · Fuzzy logic control for a wind/battery renewable energy

Turk J Elec Eng & Comp Sci, Vol.20, No.2, 2012

[30] O. Tremblay, L.A. Dessaint, A.I. Dekkiche, “A generic battery model for the dynamic simulation of hybrid electric

vehicles”, Vehicle Power and Propulsion Conference, pp. 284-289, 2007.

[31] K. Ogata, Modern Control Engineering, 4th ed., New Jersey, Prentice Hall, 2001.

[32] L.A. Zadeh, “Fuzzy sets”, Information Control, Vol. 8, pp. 338-353, 1965.

[33] L.A. Zadeh, “Applied Soft Computing - foreword”, Applied Soft Computing, Vol. 1, pp. 1-2, 2001.

206