Научная статья на тему 'Fuzzy logic controller implementation for photovoltaic station'

Fuzzy logic controller implementation for photovoltaic station Текст научной статьи по специальности «Электротехника, электронная техника, информационные технологии»

CC BY
176
64
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
СОЛНЕЧНЫЕ БАТАРЕИ / ВОЛЬТ-АМПЕРНЫЕ ХАРАКТЕРИСТИКИ / СОЛНЕЧНОЕ ИЗЛУЧЕНИЕ / КОНТРОЛЛЕР / НЕЧЕТКАЯ ЛОГИКА

Аннотация научной статьи по электротехнике, электронной технике, информационным технологиям, автор научной работы — Zein Imad, Petrenko Y.N.

Солнечные батареи (СБ) имеют нелинейные вольт-амперные характеристики с характерной точкой максимальной выходной мощности (МВМ), которая зависит от условий окружающей среды, таких как температура и уровень солнечного излучения. Для обеспечения максимальной выходной мощности СБ должны работать в точке МВМ независимо от условий окружающей среды. Эта задача обеспечивается соответствующим контроллером, который целесообразно реализовать на основе нечеткой логики.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Solar panels have a nonlinear voltage-current characteristic, with a distinct maximum power point (MPP), which depends on the environmental factors, such as temperature and irradiation. In order to continuously harvest maximum power from the solar panels, they have to operate at their MPP despite the inevitable changes in the environment. This is why the controllers of all solar power electronic converters employ some method for maximum power point tracking (MPPT). Over the past years many MPPT techniques have been published and based on that the main paper’s objective is to analyze one of the most promising MPPT control algorithms: fuzzy logic controller.

Текст научной работы на тему «Fuzzy logic controller implementation for photovoltaic station»

44

Системный анализ

UDC 620.92+502.174.3

IMAD ZEIN, YURY N. PETRENKO, Belarusian National Technical University

FUZZY LOGIC CONTROLLER IMPLEMENTATION FOR PHOTOVOLTAIC STATION

Solar panels have a nonlinear voltage-current characteristic, with a distinct maximum power point (MPP), which depends on the environmental factors, such as temperature and irradiation. In order to continuously harvest maximum power from the solar panels, they have to operate at their MPP despite the inevitable changes in the environment. This is why the controllers of all solar power electronic converters employ some method for maximum power point tracking (MPPT). Over the past years many MPPT techniques have been published and based on that the main paper’s objective is to analyze one of the most promising MPPT control algorithms: fuzzy logic controller.

Солнечные батареи (СБ) имеют нелинейные вольт-амперные характеристики с характерной точкой максимальной выходной мощности (МВМ), которая зависит от условий окружающей среды, таких как температура и уровень солнечного излучения. Для обеспечения максимальной выходной мощности СБ должны работать в точке МВМ независимо от условий окружающей среды. Эта задача обеспечивается соответствующим контроллером, который целесообразно реализовать на основе нечеткой логики.

Introduction

According to the realization of high efficiency and low cost photovoltaic (PV) modules, interest in photovoltaic power generation system has increased over the past decade as a clean and infinite energy. The PV modules have maximum operating points corresponding to the surrounding condition such as intensity of the sunlight, the temperature of the PV modules, cell area, and load.

Maximum Power Point Tracking (MPPT) is the newest concept which helps to extract the maximum possible power from a PV array. The MPPT methods are various in the complexity, convergence speed, popularity, cost, operating range, sensor dependence, capability of escaping from local optima and their applications [1]-[4].

One of the most significant issues in PV system and MPPT efficiency is DC-DC converter. In recent years, there has been increasing interest in the development of efficient control strategies to improve dynamic behavior of DC-DC converters by using traditional PID (proportional-integral differential) based controllers and fuzzy logic controller (FLC), neural networks (NN), and neuro-fuzzy controller or adaptive fuzzy logic controller (AFLC) which have been used to control buck, boost and buck-boost converter which were presented.

The authors [4] have designed a different control model and implementation has been made to regulate DC-DC converter by using a digital signal processor (DSP TMS320C50).

Different control technologies were used to control DC-DC converter using a microcontroller and an extra specialized hardware proposed a FLC that uses an optimal algorithm, and they have given experimental results.

Design of fuzzy logic has been applied to a broad variety of engineering problems, particularly those having nonlinear dynamics [5]-[7]. Fuzzy logic controllers have been implemented as embedded controllers for frequency controlled induction motor drives. Numerous electric motor drive problems have been solved using fuzzy principles [5].

Furthermore, corresponding authors made their effort in the design of Fuzzy Logic Controllers and demonstrated some diffculties in the selection of optimized membership functions and fuzzy rule base, which is traditionally achieved by a tedious trial-and-error process.

This paper is a synthesis of works by [1]-[4] and introduces a systematic approach to construct FLC for DC-DC converters as a part of Maximum Power Point Tracing system of Photovoltaic station to adapt to photovoltaic modules under varying operating conditions and the nonlinear properties of DC-DC power converters.

СИСТЕМНЫЙ АНАЛИЗ И ПРИКЛАДНАЯ ИНФОРМАТИКА

4, 2014

Системный анализ

45

Fig. 1. The basic structure of the Fuzzy Logic Controller

The modified FLC (MFLC) optimizes membership functions and rule base of the FLC were obtained from training data in the pattern file. An MFLC approach is general in the sense that it is almost the same control rules can be applied to other applications.

Fuzzy logic controller

In recent years, there has been increasing interest in the development of effcent control strategies to improve dynamic behavior of DC-DC converters by using fuzzy logic controller (FLC), neural networks (NN), and neuro-fuzzy controller or adaptive fuzzy logic controller (AFLC) - have been used to control buck, boost and buck-boost converter were presented.

The authors [3], [4] have designed a different control model and implementation has been made to regulate DC-DC converter by using a digital signal processor (DSP TMS320C50).

Different control technologies were used to control DC-DC converter using a microcontroller and extra specialized hardware have proposed an FLC that uses an optimal algorithm, and they have given experimental results. Researches have also proposed to use the FLC in situations where it could be useful in (1) there is no precise mathematical model for the plant and (2) there are experienced human operators who can satisfactorily control the plant and provide qualitative control rules in terms of vague and fuzzy sentences.

The use of fuzzy logic control has become popular over the last decade because it can deal with imprecise inputs, does not need an accurate mathematical model and can handle nonlinearity.

Microcontrollers have also helped in the popularization of fuzzy logic control.

The implementation of fuzzy logic is used to have a faster controller response and to increase system stability once reached the MPP. The tracking of the MPP will be divided into two phases: the first phase is of tough research, with a significant step to improve the response of the MPPT controller, the second one is the fine phase where the step is very small, thus ensuring the system stability and decrease the maximum oscillations around the MPP. This feature of the fuzzy controller demonstrates its effectiveness and makes it among the best MPP tracking devices.

The fuzzy controller consists of three blocks: the Fuzzification of input variables which is performed in the first block, it allows the passage from the real domain to fuzzy domain. The second block is devoted to inference rules, while the last block is the Defuzzification for returning to the real domain. This last operation uses the center of mass to determine the value of the output.

The FLC block diagram to control DC-DC power converter in MPPT system of PVS is presented in Fig. 1.

Corresponding authors made their effort in design of Fuzzy Logic Controllers and demonstrated some diffculties in the selection of optimized membership functions and fuzzy rule base, which is traditionally achieved by a tedious tri-al-and-error process.

The modified FLC (MFLC) optimizes membership functions and rule base of the FLC were obtained from training data in the pattern file.

4, 2014

СИСТЕМНЫЙ АНАЛИЗ И ПРИКЛАДНАЯ ИНФОРМАТИКА

46

Системный анализ

The inputs of Fig.1 of the FLC are the error e and difference of error de respectively and they are defined as

e =Uref- Uo (1)

de(k) = e(k) - e(k - 1) (2)

Where Urf is reference output voltage, U0 is actual output voltage of DC-DC converter at the kth sampling time.

The output of the FLC is a change in duty ratio (du(k)).

Duty ratio d(k), at the kth sampling time, is defined as:

d(k) = d(k-1) + du(k) (3)

Knowing that, the output of the controller then sends through PWM out to DC-DC converter to generate desired switching action (Fig. 1).

Shrinking-span membership functions algorithm is used to construct membership functions for FLC. Then the result of (3) is send through the PWM controller to DC-DC converter to generate desired switching action. By using this method the designer of an FLC assigns only the number of elements of term set and shrinking factor.

In fact, the shrinking-span membership functions [9], [11] (SSMF) is constructing membership functions method for FLC which, in compare to [4], generates a series of orderly arranged membership functions A(x)s in the FLC for a linguistic variable across its universe of discourse. For example [5], widely used trapezoidal family SSMF is showing on Fig. 2 for the membership number of linguistic variables m = 3, shrinking factors s = 0.65 and overlapping b = 1. In case

when shrinking factor is chosen one, the membership functions have equal span. Using various shrinking factors to the same linguistic variable, different membership function obtained to examine which is the most suitable for a specific application process.

The overlapping factor has range [0, 1] and increases monotonously as b increases.

It is clear that there is no overlap between SSMF and if b = 1 the supports for the SSMF have proper overlapping region.

If shrinking factors is chosen one (s = 1), the membership functions have equal span. By applying various shrinking factors to the same linguistic variable, deferent membership function obtained to examine which is the most suitable for a specific application process. Let us take that b is the overlapping factor whose reasonable range is [0, 1]. In our case we will consider that b can take values greater than unity as long as we as experts consider that resultant membership functions are rational in applications. The overlapping region increases monotonously as b increases. For b = 0 it is clear that there is no overlap between the SSMFs. Diversity of b is shown in Fig. 6 as B1, B2, and B3. Consider B = 1 the supports for the SSMFs have proper overlapping region.

For a Mamdani-type FLC [5], fuzzy rules are in the form:

Ri: IF e is A;- and de is B;- THEN duk is Ch where A;- and B;- are fuzzy subsets in their universe of discourse and C;- is a fuzzy singleton.

Each universe of discourse is divided into seven (as an example; for more information see

СИСТЕМНЫЙ АНАЛИЗ И ПРИКЛАДНАЯ ИНФОРМАТИКА

4, 2014

Системный анализ

47

[5] fuzzy subsets: PB (Positive Big), PM (Positive Medium), PS (Positive Small), ZE (Zero), NS (Negative Small), NM (Negative Medium) and NB (Negative Big).

The rule base of the FLC is created the way to make it easy to obtain membership functions with index representation method.

The index representation of a simple rule mapping for m1 = m2 = 3 and the FLC has two inputs, single output

By naming the numbered symbols (0? Zero, 1? Positive Small, 2? Positive Medium..., 1? Negative Small, 2? Negative Medium...), one

can recognize anti-diagonal rule base proposed by number of authors [4]. The inference result of each rule consists of two parts of weighting factor, w;, of the individual rule, and degree of change in duty ratio Ct, according to the rule. The weighting factor w, is obtained by means of Mam-dani’s MIN fuzzy implication of membership degrees це(е) and цde(de). Ct is retrieved from control rule table. As a result the inferred output of each rule using Mamdani’s MIN fuzzy implication is given as

w, = min{me (e) • m-de (de)} (4)

Z, = wtCt, (5)

where Zt denotes the fuzzy representation of change in duty ratio inferred by the i-th rule.

Modernized algorithm for the fuzzy logic controller

MFLC, which is discussed in this paper, is an ordinary FLC with a modernized (adaptation) algorithm. Thus, MFLC adapts membership functions and computes the consequent parts of rules in the rule base. The inputs of MFLC are model data in the pattern file that is created from some expert knowledge data for desired output. The outputs of the controller are membership functions and the consequent parts for the controller. The MFLC updates its parameters (which are membership function’s shrinking factors) Se, Sde and Su according to the pattern file, by using modified algorithm.

Finally, application of this adaptation algorithm can be accepted as adaptation of parameters as well as the training data in the pattern file.

The implementation of the MFLC is made for boost, buck, and buck-boost converters as part of

the MPPT system. The circuit components and parameters of these converters can be found in [1]. It has two inputs and one output. Number of Antecedent membership functions for inputs and output can be in range of 5 or 7, as it is shown in [5]. Thus the rule base has 49 outputs. The output of rules du is the change of duty ratio.

At the first, the pattern file is to be prepared. It contain of three vectors which are error e, difference error de and change of duty ratio du. Each variable vector contains a number of sample data or by another words the number of training data in the pattern file.

The MFLC algorithm described above can be implemented on a number of devices. We will consider implementation on a ST52E420 [11] microcontroller, which is an 8-bit microcontroller and the erasable EPROM version, which has 4 Kbytes program and data EPROM. This model has been chosen to perform, in an effcient way, both Boolean and fuzzy algorithms, in order to reach the best performances that the two methodologies allow. This microcontroller has another important role in allowing describing a problem using a linguistic model instead of mathematical model. The microcontroller includes an 8-bit sampling (A/D) converter with an 8 analog channel fast multiplexer and reconfigurable digital ports in order to transfer data from/to the on-chip Register Files. A three independent PWM/Timers are included allows managing directly power devices and high frequency PWM controls.

The ST52T410/ST52x420 Decision Processor (DP) main features are: Up to 8 Inputs with 8-bit resolution; 1 Kbyte of Program/Data Memory available to store more than 300 to Membership Functions (Mbfs) for each Input; Up to 128 Outputs with 8-bit resolution; Possibility of processing fuzzy rules with an unlimited number of antecedents; unlimited number of Rules and Fuzzy Blocks.

The limits on the number of Fuzzy Rules and Fuzzy program blocks are only related to the Program/Data Memory size.

Fuzzy Inference: The ST52T410/ST52x420 Core allows for the implementation of a Mam-dani type fuzzy inference with crisp consequents. Inputs for fuzzy inference are stored in 8 dedicated Fuzzy input registers. The LDFR instruction is used to set the Input Fuzzy registers with values stored in the Register File. The result of a Fuzzy

4, 2014

СИСТЕМНЫЙ АНАЛИЗ И ПРИКЛАДНАЯ ИНФОРМАТИКА

48

Системный анализ

Fig. 3. Microprocessor ST52T410/ST52x420 Alpha Weight Calculation

inference is stored directly in a location of the Register File.

AFLC is a FLC with an adaptation algorithm. Thus, MFLC adapts membership functions and computes the consequent parts of rules in the rule base. The inputs of MFLC are model data in the pattern file that is created from some data for desired output. The outputs of MFLC are membership functions and the consequent parts for FLC.

The MFLC can update its parameters which are membership function’s shrinking factors se, sde and su, according with the MFLC, which is general and can be applied to any DC-DC converter topologies. Thus, the same microcontroller software can be used to control any switch-mode converters without any modifications.

Conclusion

In this paper, a modernized fuzzy logic controller was introduced for DC-DC converter output voltage regulation in MPPT system in PhV station and have implemented on an 8-bit microcontroller. The MFLC is able to regulate the output voltage of buck, boost and buck-boost converters to desired value despite change in load. Since these converters, buck, boost and buck-boost, are controlled using the same MFLC algorithm without any medications to microcontroller program. This shows that the proposed algorithm is general and can be applied to any DC-DC converter topologies practically.

References

1. E. Koutroulis, F. Blaabjerg, «A New Technique for Tracking Global Maximum Power Point of PV Arrays Operating Under Partial-Sheding Conditions» IEEE JORNAL OF PHOTOVOLTAICS, vol. 2, no.2, April 2012.

2. Трещ, А. М. Система управления фотоэлектрической установкой при автономном использовании / Ю. Н. Петренко, А. М. Трещ // Наука и техника. Международной научно-технической журнал. Минск 2013 № 1. С. 53-56.

3. M. Azab, «A New Maximum Power Point Tracking for Photovoltaic Systems,» in WASET. ORG, vol. 34, 2008, pp. 571-574.

4. D. P. Hohm and M. E. Ropp, «Comparative Study of Maximum Power Point Tracking Algorithms», Prog. Photovolt: Res. Appl. 2003; 11:47-62 (DOI:1002/pp.459).

5. Petrenko, Y. N. Fuzzy logic and genetic algorithm technique for non-liner system of overhead crane / Y. N. Petrenko, S. E. Alavi Computational Technologies in Electrical and Electronics Engineering (SIBIRCON), 2010 IEEE Region 8 International Conference, 11-15 July 2010. pp. 848-851.

6. Алави, С. Э. Fuzzy logic controller for non-linear system design / С. Э. Алави, Ю. Н. Петренко // Информационные технологии в промышленности: сборник тезисов пяти Международной научно-технической конференции ITI*2008, г. Минск, 22-24 октябрь 2008. - С. 214-215.

7. Alavi, S. E. System control, based on the artificial intelligence techniques / S. E. Alavi, Y N. Petrenko // Информационные технологии в промышленности: сборник тезисов шестой Международной научно-технической конференции ITI*2010, г. Минск, 28-29 октябрь 2010. - С. 170-171.

8. Лобатый А. А., Шейников А. А., Белегов А. Н. Диагностика стартер-генераторов постоянного тока с использованием теории нечёткой логики // Энергетика, 2011 № 5 С. 17-24.

9. Elzein, I. Fuzzy Logic Controller Design for Photovoltaic System / I. Elzein, Y N. Petrenko// Information Technologies and Systems 2014 (ITS 2014), Proceedings of the Int. Conf.(BSUIR, Minsk, Belarus, 29th October, 2014)

10. I. A. Elzein, Y. N. Petrenko. A study of maximum power point tracking algorithm for photovoltaic system using a fuzzy logic controller. WIT Transaction on Engineering Sciences, Vol.96, WIT Press, 2014, pp.409-419.

11. Электронный ресурс. http://www.dz863.com/datasheet. Дата доступа 16.01.2015.

СИСТЕМНЫЙ АНАЛИЗ И ПРИКЛАДНАЯ ИНФОРМАТИКА

4, 2014

i Надоели баннеры? Вы всегда можете отключить рекламу.