Fuzzy Logic Controller in Solar Power Generation
Fuzzy Logic Controller in Solar Power Generation
Abstract—This paper presents the designing of the which is used to provide power to AC load [4]. There are
MATLAB model for a closed-loop fuzzy logic controller in different methods to use optimal power produced by a solar
solar power generation. To reduce harmonics generated by system such as Maximum Power Point Tracking (MPPT) in
non-linear loads, a reference signal of the load is given to a
[5], [6], [7] which captures maximum power produced,
fuzzy controller in order to make the system as a closed loop.
The main objective of the proposed method is to improve the
PWM (Pulse Width Modulation). By using conventional
efficiency of the system by reducing Total Harmonic Distortion control methods such as PI controller [8] and hybrid PI
(THD) in the source current. When Photo-Voltaic (PV) module controller [9], PWM control of DC-DC buck-boost
produces more amount of power, the battery is charged converter is achieved. As stated in [10], FLC (Fuzzy Logic
through the bi-directional converter. The load is supplied by Controller) provides a more desirable outcome than the
the battery when solar irradiation is less. Complete discharge further conventional controller. To store energy Li-ion
of the battery is prevented by using the S tate of Charge (S OC) battery is used, to pass the current from and to the battery
control on the battery. To obtain an extent power from the PV bi-directional converter is used. It is controlled by a
unit, the battery charging circuit is attached closer to the
microcontroller and connected to inverter; double boost bi-
source instead of connecting before load, it minimizes the
stages of power conversion. By using fuzzy-based PWM
directional is proposed in [11]. By using PID and manual
method power is controlled through a DC-DC converter. AC switches [12], controlling the bi-directional converter is
load is powered by using DC-AC inverter. Also, to control the achieved through an operational amplifier as well as MUX
bi-directional DC-DC converter PID controller is utilized along [13].
with switches. The parameters we have taken for obtaining The paper is spotlighted to enhance the
THD are, the number of cycles is 1 at starting time 0.15 sec and performance of the system by making it a closed loop to
the fundamental frequency is 60 Hz, for these values THD reduce harmonics using the fuzzy controller.
comes 1.47%. The result reveals that in closed-loop fuzzy logic The residue of the paper is arranged as follows.
controller total harmonic distortion is less than 5%. The explanation of the block diagram for the proposed
Keywords— Photo-voltaic (PV) Panel, Maximum power point system is given in section II. Controllers such as PID, FLC
tracking (MPPT), Fuzzy-Logic-Controller (FLC), State of charge are depicted and the theory of battery storage system is
(SOC), Proportional-Integral-Derivative (PID), Pulse- Width given in section III. In section IV simulation model is
Modulation (PWM) discussed. Section V presents the simulation result and the
specification chart is listed. At the last concluding part is
I. INT RODUCT ION depicted in VI.
To avoid energy crises , the energy available on the II. BLOCK DIAGRAM OF T HE PROPOSED SYST EM
earth has to be used as maximum as possible. One day non- Fig.1 shows a block diagram of the PV generation
renewable energy sources are going to vanish. So, interest in
system along with a fuzzy controller. The power produced
renewable energy sources has been promptly increasing [1]. by the PV system is given to the buck-boost converter as
Solar power is simply available amid all renewable energy well as a bi-directional converter. The bi-directional
sources. Other noted utilities are, set up of solar power
converter is located near to the source. It conducts in two
generation unit is done in corresponding to need, also it has ways due to which charging and discharging of battery is
little maintenance, no noise, no pollution, etc. Stand-alone done. Fuzzy logic based PWM controller is used for
PV units are a convenient option for the non-urban sector
controlling both the bi-directional converter and buck-boost
where rare power supply is present [2]. converter to improve the performance of the system, then
To obtain optimal power as well as efficiency from fed to the inverter to convert it into AC form.
PV cell, hence the losses are less is a tough job and different
The voltage of the PV system is 220V, when a
techniques are accessible. Generally, the solar power voltage is more than 220V battery is charged through excess
generation method uses two steps configuration [3]. In one power by using a bi-directional converter. When produced
step power is extracted from the PV panel and stored it into
voltage is fewer than 220V at that point battery gets
battery by DC-DC converter and second is DC-AC inverter discharged through bi-directional converter along with
Authorized licensed use limited to: Cornell University Library. Downloaded on August 20,2020 at 10:33:05 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Inventive Systems and Control (ICISC 2020)
IEEE Xplore Part Number: CFP20J06-ART; ISBN: 978-1-7281-2813-9
power is fed to load. The battery stops when it discharges up and it will harmful to the health of the battery. As it will
to 20% of SOC (State of Charge). damage battery life if it is discharged below 20%, SOC is
Highlights of the task introduced in this paper are controlled according to that. Two ways operation is
given below. performed by using diode and switch which are connected
x Power quality improvement and enhancing the in parallel on the battery side as shown in table. 1.
efficiency of the system is done by using the
closed-loop fuzzy logic controller. T ABLE . 1. BATTERY STORAGE SYSTEM (BSS) CONTROL
x To minimize harmonics, a reference signal of the Charging % Switch Mode Diode Batte ry State
load is given to a fuzzy logic controller which <20% OFF ON Charging
makes the system closed loop.
>20% ON OFF Charging/Discharging
x PID controller is used along with automatic
switches to control bi-directional DC-DC
converter. When SOC is 20% or below battery will only charge
diode conducts in one direction i.e. diode is ON and switch
is OFF. When SOC is more than 20%, the current will flow
through both ways by turning the switch ON.
C. Fuzzy-Logic Controller
When traditional controls are used, we have to learn
about configuration and objective function defined in
particular terms. So, it becomes very tough to use in various
cases. By using fuzzy logic to control one can apply human
skills and experience to design the controller. If-Then rules
which are known as control rules are used for constructing a
controller [15].
To control the operation of a buck-boost converter
fuzzy-logic controller is used. By using the ‘Mamdani’
technique FLC operates [16]. After computations, fuzzy
Fig. 1. Block Diagram of Proposed System values are transformed into crisp value by using a
III. CONT ROLLER DESIGN defuzzification process [17].
First of all, input and output variables are selected. In
Controllers are utilized to keep the required fixpoint for FLC couple inputs are taken, first is ‘error’ which is the
the process. Buck-boost converter is controlled by using a difference achieved by differentiating output voltage and
fuzzy-logic controller, PID is used for the bi-directional reference value while another input is ‘change error’ which
converter and the switch controller is used to controlling is e derivative of the error with reference to time [18]. ‘Duty
SOC. ratio’ is the gain of the fuzzy-logic controller.
By converting the crisp term to fuzzy term fuzzification
A. PID Controller is executed. In triangular and trapezoidal shape membership
function is taken [19]. With linguistic variable, five
The closed-loop feedback method is used by the PID membership functions are specified such as ln (large
(proportional integral derivative) controller to manage the negative), sn (small negative), z (zero), lp (large positive), sp
process. To control bi-directional converter two proportional (small positive). Fig. 2 shows the error, fig. 3 shows change
integral derivatives (PIDs) and conditional switches are used error and fig. 4 represents the duty ratio.
as in, source-side voltage is maintained at 220V by using
one PID and battery voltage is at 48V with other PID. By
using the Ziegler Nicholas technique, PID gains are
calculated [14]. The output of the PID controller is
calculated by Eq. 1 where u(t) is the output of the controller
with regard to time, k p is the proportional gain, k i is the
integral gain and k d is the derivative gain.
Authorized licensed use limited to: Cornell University Library. Downloaded on August 20,2020 at 10:33:05 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Inventive Systems and Control (ICISC 2020)
IEEE Xplore Part Number: CFP20J06-ART; ISBN: 978-1-7281-2813-9
L 55*10 -3 H
Error C1 5.17*10 -6 F
- ln sn z Sp lp L1 1.47*10 -5 H
Ln lp lp lp Sp z C2 4.26*10 -6 F
Change Sn lp sp sp Z sp C-3phase 32*10 -5 F
In Z lp sp z Sn ln L-3phase 10*10 -3 H
Error Sp sp z sn Sn ln
F 50 Hz
Lp z sp ln Ln ln
V source 220 V
V bat 48 V
A. Constant Irradiation
By considering all environmental conditions
default value of constant irradiation is approximately
1000W/m2. Steady state-input irradiation of 1000W/m2 is
shown in Fig.6.
Fig.5 Screenshot of Rule Editor: PWM Control Fig.6 Constant Input Irradiation
Authorized licensed use limited to: Cornell University Library. Downloaded on August 20,2020 at 10:33:05 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Inventive Systems and Control (ICISC 2020)
IEEE Xplore Part Number: CFP20J06-ART; ISBN: 978-1-7281-2813-9
Authorized licensed use limited to: Cornell University Library. Downloaded on August 20,2020 at 10:33:05 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Inventive Systems and Control (ICISC 2020)
IEEE Xplore Part Number: CFP20J06-ART; ISBN: 978-1-7281-2813-9
Fig. 10. Output AC Current [2] A. Mohammed, Alberto Berzoy and O. Mohmmed, “ Design and
Hardware Implementation of FL-MPPT Control of PV Systems Based
E. Current THD (Total Harmonic Distortion) on GA and Small-Signal Analysis”, IEEE Transactions on
Fig. 11 shows the output of total harmonic distortion in Sustainable Energy, vol. 8. no. 1, pp. 279-290, 2017.
bar format. Here the number of cycles taken is 1 at the [3] H. Cai, Wei Wei and J. Xiang,”Modelling, analysis and control
starting time 0.15 sec and the fundamental frequency is 60 design of a two-stage photovoltaic generation system”, IET
Renewable Power Generation, vol. 10, no. 8, pp. 1195-1203, 2016.
Hz. For these parameters, THD comes 1.47%. At starting
[4] M. Rashid, Power Electronics. T aipei: Person Education Taiwan Ltd,
harmonic distortion is more, as a fuzzy controller picks up it 2009.
becomes less. [5] Chian-Song Chiu, “ T -S Fuzzy Maximum Power Point T racking
In closed-loop fuzzy logic controller total harmonic Control of Solar Power Genaration Systems”, IEEE Transactions on
distortion is less than 5% while in open loop it is more than Energy Conversion, vol. 25, no.4, pp. 1123-1132, 2010.
5%. [6] R. Gurumbeth and R. Ramabadran, “ Fuzzy Logic Controller (FLC)
for Partial Shaded Photovoltaic Array fed Modular Multilevel
Converter ”,, IET Power Electronics, vol-9, no.8, pp. 1694-1702,
2016
[7] S. Mishra and P. Shekhar, “ T akagi-Sugeno (T -S) fuzzy-based
incremental conductance algorithm for maximum power point
tracking of photovoltaic generating system”, IET Renewable Power
Generation, vol. 8, no. 8, pp. 900-914,2014.
[8] Lindiya, Iyyappan and S. Palani, “ Performance Comparison of
Various Controllers for DC-DC Synchronous Buck Converter”,
Procedia Engineering, vol. 38, pp. 2679-2693, 2012.
[9] N. Altin, Kaplan, S. Ozdemir and I. Sefa, “ Fuzzy PI Controlled
Inverter for Grid Interactive Renewable Energy System ”, IET
Renewable Power Generation, vol.9, no.7,pp.729-738,2015.
[10] P. T enti, G. Spiazzi, L. Rossetto and P. Mattavelli, “General Purpose
Fuzzy-Controller for DC-DC Converters”, IEEE Transactions on
Power Elctronics, vol. 12, no. 1, pp. 79-86, 1997.
[11] J. Yang and H. Do, “ Soft Switching Bi-directional DC-DC Converter
Fig. 11. T HD Output Using a Lossless Active Snubber”, IEEE Transactions on Circuits
and Systems I- Regular Papers, vol. 61, no. 5, pp. 1588-1596, 2014.
[12] Z. Sallameh and A. Cultura II, “ Design and Analysis of 24 VDC to 48
VI. CONCLUSION VDC Bi-directional DC-DC Converter Specifically for Distributed
Energy Application”, Energy and Power Engineering, vol. 04, no. 05,
In this proposed model, fuzzy controller is pp. 315-323, 2012.
designed and simulated for a three-phase nonlinear load [13] Xinbo Ruan and Zhiling Liao, “ Control Strategy of Bi-directional
system. To minimize harmonic distortion, a reference signal DC-DC Converter for Novel Stand-Alone Photovoltaic (PV) Power
System ”, 2008 IEEE Vehicle Power and Propulsion Conference,
of the load is given to a fuzzy logic controller, which makes 2008.
the system closed loop. FLC is used to control the operation [14] P. Mishra, M. Mishra and N. Saxena, “ T uning of Generation
of the buck-boost converter while a PID controller is used Participation Depending upon Load Demand”, Control and Intelligent
for controlling the operation of a bi-directional converter. Systems (CCIS), 2016.
Power quality improvement and enhancing the efficiency of [15] Xi-Zhao Wang and C. R. Dong, “ Improving Generalization of Fuzzy
IF-T HEN Rules by Maximizing Fuzzy Entropy”, IEEE Transactions
the system has been done by minimizing total harmonic on Fuzzy Systems, vol. 17, no. 03, pp 556-567, 2009.
distortion using a closed-loop fuzzy logic controller. [16] Hao Ying, “ Conditions for General Mamdani Fuzzy Controllers to be
Nonlinear”, Annual Meeting of the North American Fuzzy
Information Processing Society Proceedings NAFIPS-FLINT, 2002.
[17] T . A. Runkler, “ Extended Defuzzification Methods and T heir
Properties”, IEEE 5 th International Fuzzy Systems, vol. 1, 1996.
[18] H. Weihau, Z. Zheng and F. Kangling, “ Analysis and Design of
Fuzzy- PID Controller with Generalized Linear Membership
Function”, 26 th Chinese Control and Decision Conference, 2014.
REFERENCES
[19] S. Das, N. K. T hotakanama and K. Manickavasagam, “ Analysis and
Design of Fuzzy based PWM Controller for Solar Power Generation”,
[1] Maria A. Usova and V. I. Velkin, “ Possibility T o Use Renewable International Conference on Technological Advancements in Power
Energy Sources For Increasing T he Reliabilty Of T he Responsible and Energy, 2017.
Energy Consumers On The Enterprise”, 2018 17th International Ural [20] F. Bolata and A. Nowe, “ From Fuzzy Linguistic Specifications to
Conference on AC Electric Drives (ACED), 2018. Fuzzy Controllers Using Evolution Strategies”, International
Conference on Fuzzy Systems, 2002.
Authorized licensed use limited to: Cornell University Library. Downloaded on August 20,2020 at 10:33:05 UTC from IEEE Xplore. Restrictions apply.