Fuzzy Logic Control of A Switched-Inductor DC-DC Buck Converter in CCM
Fuzzy Logic Control of A Switched-Inductor DC-DC Buck Converter in CCM
By
Terry Kolakowski
2009
Wright State University
WRIGHT STATE UNIVERSITY
SCHOOL OF GRADUATE STUDIES
Committee on
Final Examination
Modern electronics are operating at lower voltages with higher currents, requiring
is constructed, and tested in the presence of load and source disturbances to show
the converter cannot maintain the desired output voltage when the disturbances are
applied.
A fuzzy logic PID controller is designed to regulate the duty cycle of the converter to
control the output voltage. Control surfaces are designed for proportional, integral,
and derivative gains of the fuzzy PID controller. The compensated power converter is
tested using the Simulink model in the presence of the disturbances, and it is shown
that the fuzzy controller is capable of keeping the power converter output voltage
within the operating requirements, while improving system speed and stability.
iii
Contents
1 Introduction 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.3 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4 Device Stresses and Losses . . . . . . . . . . . . . . . . . . . . . . . . 11
iv
3.3 Closed-Loop Switched-Inductor Buck . . . . . . . . . . . . . . . . . . 22
3.3.1 Analog-to-Digital Converter . . . . . . . . . . . . . . . . . . . 23
3.3.2 Digtal Pulse Width Modulator . . . . . . . . . . . . . . . . . . 25
4 Control Selection 30
5 Fuzzy Logic 33
5.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.3 Fuzzication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.4 Rule Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.4.1 Proportional Control Surface . . . . . . . . . . . . . . . . . . . 43
v
6.4.3 Derivative Control Surface . . . . . . . . . . . . . . . . . . . . 44
6.5 Defuzzification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.6 Output Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7 Simulation 48
7.1 Simulation Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 48
8 Conclusions 52
References 54
vi
List of Figures
2 Switched-inductor buck. . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Inductor modeled as an ideal inductor with equivalent series resistance
rl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
vii
19 Simulink model of DPWM . . . . . . . . . . . . . . . . . . . . . . . . 27
20 Simulink model of closed-loop switched-inductor buck converter . . . 29
21 Block diagram of control system for switched-inductor buck converter 31
surface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
27 Inference procedure with a) minimum as conjunction and b) product
as conjunction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
37 Time response of the open-loop system and closed-loop system com-
viii
39 Comparsion of time response for 1 V change in the source between
open-loop system and closed-loop system with fuzzy logic PID controller. 51
ix
1 Introduction
Power converters provide a highly efficient means to deliver a regulated voltage from
a standard power source [1]. However, circuit trends are requiring voltage/current
requirements outside the efficient range of most classical conveters; the duty cycle is
below 0.1 or above 0.9, and therefore new conveter topologies must be developed [2].
In addition, these conveters/regulators are susceptable to various disturtances from
the attached load or the power source. These disturbances, if not controlled may
damage or shutdown devices attached to the converter [1],[3].
In recent years, the use of digital control schemes has become increasingly popular
to control these converters [4]-[7]. These digital control schemes incorperate micro-
controllers to analyze the input signal and produce the appropriate output signal.
Fuzzy logic control provides a method of nonlinear control using piece-wise linear
functions to apply varying gains depending on the error signal between the desired
output and the actual output. The fuzzy logic controller is advantageous over classical
controls where the gains are fixed. A fuzzy logic controller allows the proportional,
integral, and derivative gains to be adjusted to work optimally to control the system
1
2
1.1 Background
1.1.1 Classical Buck
The classical buck converter is a basic step down DC-DC converter circuit which is
used to provide a constant voltage from a standard source (12V, 24V, etc ). The circuit
contains two switches, either one transistor and one diode or a pair of transistors, to
reduce the standard voltage to the desired value. When using a second transistor
in place of a diode, the circuit is using synchronous rectification. In addition to
the switches, an inductor is used to maintain the desired current and a capacitor is
used to maintain the required output voltage. This buck converter uses pulse width
modulation (PWM), a method whereby a duty cycle pulse is used to activate the
switches to pass power from the source to load. Only one of the switches is active
at a time. When the duty cycle pulse from the primary switch (transistor) is high,
the source charges the inductor and capacitor, and when the duty cycle pulse of the
primary switch is low, the diode/transistor (secondary switch) continues the flow of
electrons through the circuit and discharges the the reactive components. Overall, the
average power transferred within the circuit is related the duty cycle. The classical
a)
L IO +
VI D b) 1−D C RL VO
_
and 0.9. Outside these extremes, the operation is unreliable since heavy losses due
to swtiching decreae the efficiency of the converter.
In order to combat the need for the extreme duty cycles, higher order topologies have
been utilized. Multistage buck converter circuits are capable of having more median
duty cycles. The quadratic buck circuit, for example, has the transfer function
VO
= D2 . (1.2)
VI
However, the losses caused by the increase in parasitic resistances due to the increase
in components, counteracts the increase in efficiency gained by having a more median
duty cycle. In order to compensate for the need of a more meadian duty cycle and the
parasitics losses,the switched inductor topology in figure 2 is examined. The switched
inductor topology has the transfer function
VO D
= . (1.3)
VI 2−D
The switched-inductor topology utilizes the same number of components as the tra-
ditional quadratic circuit but has less current flow through the inductor inductors
and switches within the circuit. The decrease in the current flow through these com-
ponents leads to less losses due to parasitic resistances. In addition,the size of the
inductor is reduced because less energy storage is required. To confirm these char-
IO
L
+
VI D 1−D 1−D C RL VO
−
L
switched-inductor buck can be divided into two stages; the first stage when the pri-
mary switch is active and the second stage when the secondary switches are active.
The first stage occurs when the duty cycle pulse from the pulse width modulator is
During the first time interval, 0 ≤ t ≤ DT , the inductors are in series. Therefore,
when steady-state is reached, the current through the load is equal to the current
where IO1 is the output current from 0 ≤ t ≤ DT , IL1 and IL2 are the currents
through the inductors, VI is the DC input voltage, and RL is the load resistance.
During the second time interval, DT ≤ t ≤ T , the inductors are in parallel. There-
fore, when steady-state is reached,the current through the load is sum of the currents
in the inductors.
IO2 = IL1 + IL2 = 2IL = −VO /RL (1.5)
The total current through the load is the summation of the current through the two
stages. Therefore, the relationship between the inductor current and the load current
is
IO = IO1 D + IO2 (1 − D)
= IL D + 2IL (1 − D)
5
IO = (2 − D)IL (1.6)
Substituting the values of IO1 and IO2 from equations (1.4) and (1.5) respectfully,
we solve from for the output current in terms of the duty cycle, input and output
voltages, and load resistance is given by
VI D (1 − D)VO
IO = − (1.7)
RL RL
Now, using Ohm’s law and value of Io from (1.7), the output voltage can be written
as
VI D
VO = (1.8)
2−D
Therefore the DC voltage gain of the system, Mv , in terms of the duty cycle is given
by
VO D
Mv = = . (1.9)
VI 2−D
D
Within this thesis, the ratio 2−D
is refered to as the duty cycle control ratio, A.
DC analysis has provided the gain of the converter with respect to the duty cy-
cle, (1.9) as well as the relationship between the inductor current and output current,
(1.6). These characteristics differentiate the switched-inductor buck converter from
the classical buck conveter. Taking into account these differences, the converter can
This thesis presents the design, modeling, and fuzzy logic control of a switched-
inductor buck converter. The switched-inductor buck is designed from a set of re-
quired specifications, and then modeled to construct a block diagram within simulink.
The overall performance is evaulated by implementing disturbances in the form of a
and 1 V step change in the source using MATLAB/simulink. A fuzzy logic controller
then is designed to reject the disturbances from the change in the source and load as
well as optimize the response from the connection to the source while maintain the
The converter, in this thesis, is designed for CCM operation, and needs to operate
from a 12 ± 3 V DC source. The output voltage, Vo , from the converter must be 2
± 0.1 V with a steady-state ripple of less than 2.5 percent or 0.05 V. The converter
is required to maintain output voltage while the output current, Io , varies between 1
A and 10 A.
The design of the swtiched-inductor buck converter requires the selection of two in-
ductors, a capacitor, and two MOSFETS. Before designing for the requirements in
section 2.1, the components and devices are modeled according to their impedence
characteristics. These impedence charactertisics effect the overall performance of the
The inductors provide the magnetic storage element in the buck circuit. However,
the inductor contain a parasitic equivalent series resistance (ESR), due to nature of
the material from which the inductor is constructed and any connection leads from
the inductor to other parts of the circuit. Therefore, a real inductor is modeled as a
ideal inductor with a parasitic resistance, rl , in series as shown in figure 3. The value
of rl affects the charging/discharging rate of the inductor by
L
τL = (2.1)
rl
where τL is the time constant of the inductor in seconds.the charging curve of the
inductor current in amps with respect to time. A inductor with a high inductance
7
8
Ideal
L Inductor
r l Inductor
ESR
value is capable of maintaining the current but has heavy losses due to the ESR and
is slow to charge due to changes in the current. A small inductor, however, is able to
charge and discharge quickly and has a lower ESR. However, it causes a high ripple in
the output voltage. Therefore, a trade-off must occurs between efficiency and output
ripple. The inductor chosen satisfies both conditions.
The capacitor provides the electrical energy storage element of the circuit. However,
losses occur within the capacitor due to leakages across the dielectric boundary caused
by imperfections in the material. The leakage equates to an ESR. Therefore, a real
capacitor is modeled as an ideal capacitor with a parasitic resistance, rc , in series as
shown in figure 4. The ESR effects the time constant of the charging/discharging of
Ideal
Capacitor
C
Capacitor
r c ESR
the capacitor by
τC = CrC (2.2)
where t is time in seconds and τC is the time constant of the capacitor. In addition,
the ESR causes a ripple in the output voltage. The capacitor chosen meets both
The N-channel MOSFETs are used to provide the switching network for the switched-
inductor buck circuit. While the MOSFETs are active, they contain an on-resistance,
rDS , which inhibits current flow and produces losses within the system. Therefore,
the model for the MOSFET contains a perfect switch with resistance of rDS in series
as seen in figure 5.
2.3 Design
The power output of the system is based upon the the required output voltage of
the system and the output current requirements. In addition, the maximum and
minimum load are calculated using the required voltage and current.
Ideal
Switch
rds On Resistance
VO
RLmin = = 0.2Ω (2.5)
IOmax
VO
RLmax = = 2Ω (2.6)
IOmin
The minimum, nominal, and maximum values of the DC voltage gain are determined
using the range of input voltages and the required output votlage.
VO
MV DCmin = = 0.1333 (2.7)
VImax
VO
MV DCnom = = 0.1667 (2.8)
VInom
VO
MV DCmax = = 0.2222 (2.9)
VImin
The duty cycle requirements are calucated from the DC voltage gain. However, since
all of the components contain parasitic losses, the duty cycle is adjusted by an assumed
2MV DCmin
Dmin = = 0.2476 (2.10)
η(MV DCmin + 1)
2MV DCnom
Dnom = = 0.3008 (2.11)
η(MV DCnom + 1)
2MV DCmax
Dmax = = 0.3825 (2.12)
η(MV DCmax + 1)
Selecting the switching frequency, fs , of the PWM to be 100 kHz, the minimum total
LT min
Lmin = = 9.303µH . (2.14)
2 − Dmax
VO (1 − Dmin )
∆iLmax = = 0.7524A . (2.15)
fs L
In order to achieve the minimum ripple requirement, Vr of 0.05 V, the ESR of the
output capacitor should be
Vr
rcmax = = 0.0665Ω . (2.16)
∆iLmax
Substituting (4.14) into (4.15), the minimum required capacitance is
1 − Dmin
Cmin = = 56.571µF . (2.17)
2fs rcmax
The MOSFETs chosen for the swithching network must maintain operating condition
under the voltage and current stresses from the power source, inductors, capactior,
and load. The MOSFET chosen is the IRF3711z, provided by International Recti-
and
1 IOmax ∆iLmax
ISM max = IDM max = ( + ) = 3.279A . (2.19)
2 2 − Dmax 2
The power loss in the primary MOSFET due to the on-resistance and switching is
IOmax 2
PrDS1 = Dmin rds1 ( ) = 0.0568W (2.20)
2 − Dmax
and
2
Psw1 = fs Co VImax = 0.0153W . (2.21)
The power loss in the secondary MOSFETs due to the on-resistance and switching is
IOmax 2
PrDS2 = (1 − Dmin )rds2 ( ) = 0.1725W (2.22)
2 − Dmax
and
2
Psw2 = fs Co VImax = 0.0153W . (2.23)
IOmax 2
PrLmax = rL ( ) = 0.4204W . (2.24)
2 − Dmax
rC VO2 (1 − Dmin )2
PrC = = 0.05661W . (2.25)
12fs2 L2
Subsituting (2.3) and (2.26), the total efficiency of the ciruit is given by
POmax
η= = 0.94 . (2.27)
POmax + PT
Using the components selected from the modeling and design procedure, the complete
converter circuit can be constructed. After construction, the complete circuit needs
to be modeled and tested to determine if the output requirement can be maintained
The switched-inductor buck converter has three variable parameters: the change in
source voltage, vi , the change in the load current, io , and the change in the duty cycle
control raito, a. Each of these parameters can be defined as an input to converter
while the output voltage, Vo , can be defined as the output of the converter. The result,
as shown in figure 6, is a block diagram divided into three separate transfer functions.
The load current and source voltage, while bounded, are free to change and are
treated as disturbances. The duty cycle control ratio can be adjusted to compensate
for changes in the load and source, and thus it is a controllable parameter. The output
io Z0
Vo
vi Mv +
+
a Tpa
14
15
a) c) d)
L
VI D b) 1−D 1−D C RL
The circuit model in figure 7 contains four types of branches; a primary switch branch,
secondary switch branches, inductor branches, and the output branch. The average
current through these branches is not equal. However, all the currents can be related
to the inductor current. The relationship between the output current and inductor
current is stated in (1.6). The primary switch branch current, IS1 , corresponds to the
inductor current IL by
IL
IS1 = (3.1)
D
The secondary switch branch current, IS2 , corresponds to the inductor current by
IL
IS2 = (3.2)
1−D
Using the relationships between the currents in (3.1) and (3.2), the parasitic resitances
from the primary switch branch, secondary switch branches, and inductor branches
However, since there are two inductors, the total parasitic resitance of these compo-
nents is divided evenly between the inductors. The resulting circuit model with the
r sL
1 +
D
VI sC R L Vo
rc
−
r sL
the change in duty cycle and load change to zero. Once this is accomplished, the
system is reduced to a single-input single-output (SISO) system which can seen in
figure 9. The system can be split into two parts: the two inductor branches and
the output branch. Recall, the relationship between the inductor current and output
current is described in (1.6). The impedance of the to be inductor branch is defined
to be
sL + r
Z1 (s) = (3.4)
2−D
and the impedance of the output branch is defined as
1
Z0 (s) = ( + rc )||RL (3.5)
sC
RL (sCrc + 1)
= (3.6)
C(rc + RL )s + 1
vo (s)
Therefore, the small signal transfer function vi (s)
is
r sL IO
1 +
A
vi IL sC RL Vo
rc
−
r sL
vo (s) Z0 (s)
= (3.7)
vi (s) 2Z1 (s) + Z0 (s)
(2−D)RL (Crc s+1)
2CL(rc +RL )
= 2C(rc +RL r+C(2−D)rc RL +2L 2r+(2−D)RL
(3.8)
s2 + 2CL(rc +RL )
s + 2CL(rc +RL )
Vo (s) vo (s)
= MvDCnom (3.9)
vi (s) vi (s)
vo (s) D
= (3.10)
vi (s) 2 − D
The output voltage-to-duty cycle control ratio transfer function can be measured by
reducing the change in the input voltage and change in the load current to zero. This
produces another SISO system. Recall from chapter 1, the duty cycle control ratio is
defined as
D
A = Mv = (3.11)
2−D
Since the duty cycle control ratio is a non-linear quantity, the change in ratio is
defined as
D+d D
a= − (3.12)
2−D−d 2−D
where d is the change in the duty cycle. As stated in section 3.1.2, the system can be
broken down into an inductor branch with impedence, Z1 , and an output branch with
the impedence, Z0 . Therefore, the small signal output voltage-to-duty cycle control
ratio transfer function can be
The transfer function, Tpa , which includes the nominal input voltage, VInom , is
18
Vo (s) vo (s)
= VInom (3.14)
a(s) a(s)
the change in the input voltage and change in the duty cycle control ratio to zero.
As stated in the section 3.1.2, the system can be broken down into an inductor branch
with impedence, Z1 , and an output branch with the impedence, Z0 . The transfer
Vo (s)
= 2Z1 (s)||Z0 (s) (3.15)
io (s)
2CLrc RL s2 +(2Crc RL r+2LRL )s+2RL r
2CL(rc +RL )
= (3.16)
s2 + 2CrC r+2CRL r−CDrc RL +2Crc RL +2L
2CL(rc +RL )
s + (2−D)R L +2r
2CL(rc +RL )
The three transfer functions: Vo −to−vi ; Vo −to−a; and Vo −to−io , can be combined
as in the block diagram in figure 6 and results in the simulink model seen in figure
10. This model has three inputs to the system: the power source, Vi ; the change
in control ratio, a, and the change in the load current io ; and one output, Vo . The
nomimal values of the source voltage, duty cycle control ratio, and load current are
within operating parameters stated within section 2.1. As the input source varies ±
3 V and loads varies between 1 A and 10 A, the output voltage is required to be 2
± 0.1 V. Three separate responses are analyzed to see if the switched-inductor buck
19
3.5
2.5
2
Vo (V)
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t (sec) −3
x 10
erating conditions; the steady-state error is 0.4 percent. The transient characteristics
are a maximum overshoot of 69.4 percent, a rise time of 88 µsec, and a settling time
of 2.75 msec.
21
2.2
2.15
2.1
2.05
2
Vo (V)
1.95
1.9
1.85
1.8
1.75
1.7
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t (sec) −3
x 10
The load is capable of varying between 1 A and 10 A after the system has reached
steady-state. The changes in the load alter the operating condition of the system and
therefore changes in the load are analyzed to see if the system still remains within
operating parameters after a change in the load has occurred. To test the system,
a 1 A step change in the load is applied. The response can be seen in figure 12.
The output voltage response still meets steady-state operating conditions but the
transient operating parameters are not satisfied. The steady-state error is 1 percent.
The maximum overshoot is 7.5 percent, and the maximum undershoot is 13.5 percent,
which exceed outside the 5 percent requirement.
22
2.3
2.25
2.2
Vo (V)
2.15
2.1
2.05
2
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
t (sec)
The source is capable of varying ± 3 V, and changes in the source voltage affect the
operating condition of the system, and therefore can impact the output voltage. To
test if the system remains within operating parameters, a 1 V step change is applied
to the converter after response from the power source has reached steady-state. The
response of the output voltage can be seen in figure 13. The output voltage no
longer meets the steady-state operating requirements. The steady-state error is 8.4
percent. In addition, the peak response of the is 2.282 V, which exceeds the 5 percent
requirement.
The open-loop buck converter is not capable of maintaining the steady-state and
the transient operating requirements once disturbances are introduced. Therefore,
23
closed loop operation of the system is tested to see if operatung requirements can be
maintained. Figure 14 shows the closed-loop block diagram for the switched-inductor
buck. As shown, two addition devices need to be modeled in simulink to complete
The output voltage signal from the coverter is continuous while the DPWM is discrete-
time device, therefore the signal must transformed into a discrete signal. A discrete
signal is obtained using an ADC. In order to generate the discrete signal, the input
signal is connected to one side ,Vin , of an analog comparator within the ADC while a
If the input voltage, Vin , is is greater than the reference voltage, VR , the output
produces a positive level, logical 1, while if the input voltage is less than the reference
voltage, it will produce a low level, logical 0. In order to accurately perform the con-
version from an analog to digital signal, the reference voltage is varied to determine
which 2n binary number is closest to the input signal. The reference voltage assumes
2n values in the form
Vref
Microcontroller VI
L Vout
ADC DPWM
C
Vin +
VO
VR _
n
X
VR = Vr Ai 2−i (3.17)
i=1
where Vr is the reference voltage, and Ai is the binary coefficients. The value of Ai is
chosen so that the difference between the input and output signals is minimum.
n
X
e = |Vin − VR | = |Vin − Vr Ai 2−i | (3.18)
i=1
The resolution of the ADC is important since it controls the overall accuracy of the
A tweleve bit ADC is chosen to analyze the output voltage and error signal. The
range of the ADC is ± 10 V. VR is chosen to be 10 V, therefore gain of 5 is applied
to the output voltage so the error signal is zero when Vo reaches the required 2 V.
The ADC converter is also chosen to have a gain of 0.1. Under these conditions, the
VO
(Vin − VR )
overall accuracy is
The ADC is modeled in simulink, shown in figure 17, using a quantizer to set the
resolution, ∆VADC , a zero-order hold to represent the hold betweeen sample times,
a saturation to set the upper and lower bounds of [-10, 10], a gain to represent the
attenuation of 0.1 of the input signal, and a transport delay to represent any delay
caused by the circuit used for actual implementation.
The digital pulse width modulator (DPWM) is the driving circuit which applies the
duty cycle to the switching components. The circuit is capaple of produing a duty
cycle between 0 ans 1 but duty cycles less the 0.1 and greater than 0.9 are avoidable
due to circuit switching losses. The operating frequency of the modulator ranges
from the kHz to MHz range. The operating frequency selected for operation of PWM
circuits is normally 100 kHz, therfore 100k Hz is chosen for the switching frequency
as in section 2.1. In addition, the duty cycle resolution of the converter is based on
the of the number of bits in the DPWM.
1
∆DP W M = (3.20)
2NDP W M
where NDP W M is number of bits in the DPWM and ∆DP W M is resolution of the
DPWM. In addition, the resolution of the DPWM is required to be higher than the
26
In order to acheive the required resolution, the DPWM must have at least 12 bits.
The DPWM needs higher resolution than the ADC so the integral may converge. A
quantization level must exist in the DPWM which cooresponds to zero error range
from the ADC. If the resolution is less than or equal to resolution of the ADC, such a
level does not exist. The result would be steady-state oscillations around the desired
value, seen in figure 18.
The DPWM is modeled in simulink, figure 19, using a saturation to set the limits of
the DPWM and a quantizer to set the resolution.
The next parameter of the digital control system which is chosen is the sampling
frequency. The sampling rate of controller the is determined by finding the highest
frequency of the system and applying the nyquist criterion. The nyquist criterion
allows for accurate respentation and reconstruction of a sampled signal; it states
where fsa is sampling frequency and B is highest frequency of the system. The highest
frequency in a PWM circuit is the swtiching frequecy of the DPWM, which is fs of
Voltage Vout
Voltage Vout
~
~
Time
Figure 18: Output of DPWM if a) resolution of DPWM is less than ADC and b)
relsolution is greater than ADC
The simulink model of the closed-loop system is seen in figure 20. The model still
contains three inputs: the power source, Vi ; the change in control ratio, a, and the
change in the load current io ; and one output, Vo . However, the change in the
change in the control ratio, a, is now being regulated by the error signal between the
output voltage and the reference voltage. The resulting system, however, is unstable
when tested with the disturbances. Since neither the open-loop or closed-loop system
In chapter 3, it is shown that the outout of voltage of the converter cannot be main-
tain without a controller. Therefore a controller to be selected which is capable of
meeting the operating requirements outlined in section 2.1. This can be accomplished
by adjusting the duty cycle to not only the appropriate value to meet the steady-state
requirements and by adjusting the rate of change of the duty cycle so the transient
Before selecting the controller type, the control configuration is chosen. The con-
trol configuration selected is a simple feedback system. The reference signal is the
desired output voltage of the converter. The compartor compares the reference signal
to the actual output of the converter to create an error signal to work on by the
controller. The controller chosen to control the buck converter and keep it within
operating conditions is a fuzzy logic PID controller. The fuzzy logic controller uses
piecewise linear functions to adjust the proportional, integral, and derivative gains
according to the error signal. The adjustment of these gains through a rule base
and/or control surface allows the gains only to be applied where they have optimial
effect. For example, the derivative is only required when the signal is approaching
steady-state to reduce the overshoot, and the integral gain is only needed close to
steady state to reduce the error signal to zero. Classical controllers such as the gain
conpensator, PI, and PID controllers have constant gains, shown insufficent to control
A gain controller cannot control both steady-state error and overshoot, since it only
has one controllable parameter. As the gain is increased to meet steady-state error
30
31
requirements, the overshoot increases. Both conditions are required and thus this
controller is not acceptable
4.2 PI Controller
stability will increase the overshoot and undershoot, therefore the transient require-
ment cannot be achieved. Even if the gain is reduced to improve stability, the system
An analog PID controller is capable of reducing the steady-state error to zero and
maintaining the stability requirements, however, the implementation of the of a analog
PID controller is non-desirable. The derivative portion of the controller is required
Vref
Microcontroller VI
Control L Vout
ADC Law DPWM
C
Figure 21: Block diagram of control system for switched-inductor buck converter
32
A fuzzy logic PID controller is capable of reducing the steady-state error zero as well as
maintaining the transient and stability requirements. The fuzzy controller is capable
of producing nonlinear gains, therefore the undesirable effects of the integral and
derivative being in constant proportion can be removed, since their effect changes
with the output voltage and error signal. In addition, the fuzzy controller can be
implemented on a microcontroller, which can isolate the noise from the error signal.
In order to implement the fuzzy logic PID control on a microcontroller, the fuzzy
logic control law has the follwing form
Dca (k + 1) = −Kp De (k) − Kd [De (k) − De (k − 1)] − Ki Di (k) + Dref (k) (4.1)
where k is discrete time, Dca (k) is duty cycle control ratio command, De (k) is error
signal, Dref (k) is reference signal, Di (k) is state of the integrator given by
In addition, Kp is the gain based on the proportional gain control surface, Kd is the
gain based on derivative gain control surface, and Ki is the gain based on the integral
gain control surface. The design of these fuzzy logic control surfaces are discussed in
Chapter 6. The control ratio command also needs to converted to so the duty cycle
is changed to the correct value. In order to change the duty cycle appropritately, the
duty cycle command is computed from the control ratio command by
2Dca (k + 1)
Dc (k + 1) = . (4.3)
Dca (k + 1) + 1
where Dc is the duty cycle command and Dca is the duty cycle control ratio command.
Now that the fuzzy logic PID controller has been selected to control the converter, it
must be designed to meet the operating specifications.
5 Fuzzy Logic
5.1 Overview
Fuzzy Logic is a piecewise linear method of data analysis based on using non-precise
values over a range to determine the correct coorespondence to a particular group.
Since fuzzy logic is used within the control scheme, explaination of the methodology
The fuzzy logic procedure consists of three parts: input fuzzification, input-to-output
mapping, and output defuzzification as seen in figure 22. A precise input, such as volt-
age, current, etc is measured. The input is the fuzzified by mapping it to a set of input
33
34
Fuzzy logic makes use of liguistic variables to determine relationships instead of nu-
merical variable. For example, the variables used within this thesis to express the
error voltage are given the names “Negative Big (NB)”, “Negative Medium (NM)”,
“Negative Small (NS)”, “Zero (ZO)”, “Postive Small (PS)”, “Positive Medium (PM)”,
and “Positive Big (PB)“. In order to determine the which catagory the input belongs,
membership functions are defined in order to show the degree of belonging to each
particular variable.
Membership functions are graphical mappings to determine how close or how much
produce fuzzy sets. The degree which an input belongs to each membership function
in the fuzzy sets is determined through the inference procedure.
µ Error NB NM NS ΖΟ PS PM PB
a)
Error
µ Error NB NM NS ΖΟ PS PM PB
b)
Error
µ Error NB NM NS ΖΟ PS PM PB
c)
Error
In order to understand the inference procedure, the basic fuzzy operation and the rule
base are explained. A set of rules for the interaction of the membership functions
within the fuzzy sets is defined since membership function overlap. The basic set
rules/operations are union, intersection, and complement. Let A and B be the fuzzy
sets in U with membership functions µA and µB where U is universe of discourse over
1. Union
2. Intersection
3. Complement
The membership of the function µA of the complement of fuzzy set A is defined
for all x ∈ U
µA = 1 − µA (x)
A fuzzy rule is mapping from the input domain to the output domain. The fuzzy rule
is typically based on expert knowledge of the system. Usually fuzzy rules follow an
36
If x is A, and y is B, then z is C
where x and y are the input fuzzy variables; z is the output fuzzy variable; A, B, and
the rule base, R, is defined as the union of the individual rules. An example rule base
is shown in figure 25. The rule base may also by presented graphically as a surface
similar to figure 26
µA
1
1
µB
a) 1
µAUB
x
1
b)
µA U
B x
1 µA
c)
x
error
∆ error NB NM NS ZO PS PM PB
NB NB NB NB NB NM NS ZO
NM NB NB NB NM NS ZO PS
NS NB NB NM NS ZO PS PM
ZO NB NM NS ZO PS PM PB
PS NM NS ZO PS PM PB PB
PM NS ZO PS PM PB PB PB
PB ZO PS PM PB PB PB PB
Figure 25: Fuzzy model rule base with two input and single output.
R = R1 ∪ R2 ∪ R3 ∪......∪ Rn
The inference procedure determines the degree of correlation between the rules and the
input. Since the input is typically involves more than one membership function, the
0.5
−0.5
−1
1
0.5 1
0 0.5
0
−0.5
−0.5
−1 −1
Figure 26: Fuzzy model rule base with two input and single output shown as a surface.
38
inference is used to decide how much of each rule to utilize. Two methods are typically
used, inference with min as conjunction or inference with product as conjunction.
Assuming the following rule,
R: if x is A then z is C
where x as the input fuzzy variable; z the output fuzzy variable; and A and C are the
r = µA (x)
c0 = min(c, r)
or
µ0c (r) = min(µc (r), r)
for all z ∈ Z.
r = µA (u)
c0 = c ∗ r
or
for all z ∈ Z.
If the inference procedure does not produce a crisp output, a weighted average is taken
to produce the best possible outcome based on the rules and membership functions.
µA µC µC’
(a)
X Z Z
µA µC µ C’
(b)
X Z Z
R1:If x is Ai , then z is C1
R2:If x is Ai+1 , then z is C2
Pn
j=1 µAj (u)Cji
P n
j=1 µAj (u)
where µAi is the weight of the membership in the in set Ai and Cji is the consequent
This chapter shows an overview of fuzzy logic including the fuzzification procedure,
rule base, and defuzzification procedure. The methods outlined are used within the
fuzzy logic controller to interpret the input and construct an output control signal.
40
The design of the fuzzy logic controller using these procedures is covered in the next
chapter.
6 Control Design: Fuzzy Logic Control
6.1 Overview of Fuzzy Logic Control
The controller chosen to control the switched inductor buck will be of the form of
fuzzy logic PID controller, as shown in the block diagram in figure 28.The strucure
of a fuzzy logic portion of the controller consists of 5 parts:
• input scaling
• fuzzification
• rule base
• defuzzification
• output scaling
Input scaling provides a means to bound the input of the fuzzy controller within a
certain range. Since the inference procedure is designed to only operate within the
bounds [-1,1] ihe input into the fuzzy logic controller is bounded within the universe
of discourse between [-1,1]. The input to the fuzzy sets is directly connected to
the output of the ADC. Therefore the input gain, gi , should be selected such that
41
42
However, to produce adequate output from the fuzzy logic controller, the scale of
the integral and derivative must be altered. The sampling frequency of the integral
and the derivative causes the output of the integral to be three orders of magnitude
smaller than the error signal. Likewise, the output of the derivative is three orders
of magnitude larger than the error signal. Such inputs would cause the derivative
to dominate the output of the fuzzy logic controller and integral to have little to no
is the scaling gain of the integral input, and gid is the scaling gain of the derivative
input.
6.3 Fuzzication
The rule base provides a method to map the input signal to the corresponding output
signal. The rule base, represented as a control surface, where the input is the error
voltage and the output is the control action. Three distinct rule bases are utilized to
contruct the output signal. One rule base is used to control the propotional gain, one
the integral gain, and the last the derivative gain. Each rule base is used to control
Figure 29: Centers for input/output fuzzy set for proportional gain.
The proportional gain control surface needs to minimize the rise time, the overshoot
and steady-state error. In order to improve the rise time, overshoot, and steady-state
error, the centers for the input and output fuzzy sets are choosen, shown in figure 29.
The control surface corresponding to these centers can be seen in figure 30.
The integral control surface needs reduce the steady-state error to zero while still
maintaining the overall stability of the system. In order to decease the steady-state
0.8
0.6
0.4
Control Output
0.2
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Error
Figure 31: Centers for input/output fuzzy set for proportional gain.
error while still maintaining stability, the centers for the input and output fuzzy sets
are choosen, shown in figure 31. The control surface corresponding to these centers
can be seen in figure 32.
The derivative control surface needs to increase the stability and decrease the over-
shoot of system, while having little impact on the speed of the system. In order to
decrease the overshoot and increase the stability of the system, the centers for the
input and output fuzzy sets are choosen, shown in figure 33. The control surface
0.8
0.6
0.4
Control Output
0.2
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Error
Figure 33: Centers for input/output fuzzy set for proportional gain.
6.5 Defuzzification
The defuzzification procedure uses a weighted average method to recieve a crisp out-
Output scaling allows the output of the fuzzy logic controller to be adjusted so it is the
appropriate amplitude when applied to the DPWM of the buck converter. The fuzzy
0.8
0.6
0.4
Control Output
0.2
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Error
controller output is bounded in the universe of discourse between [-1,1]. The change
D D
in duty cycle control ratio of the DPWM is bounded between [- (2−D) , 1− (2−D)
],
D D
therefore the output gain must be selected such that go Vof uzzy ∈ [− (2−D) , 1 − (2−D) ].
D D
Since Vof uzzy = a, it is already bounded between [- (2−D) ,1 − (2−D)
] and go = 1. The
overall gain of the fuzzy controller needs to be decreased in order properly regulate
the duty cycle. The outputs the of the the proportional, intergal, and derivative fuzzy
sets are decreased by gop = 0.2, goi 0.15, and god = 0.15 respectfully.
A simulik model, figure 35, is contructed from the parameters obtained in sections
10.2 -10.6. The model has a the error voltage, Ve as the input, and the change in the
duty cycle control ratio, a, as the output. The model of the fuzzy logic PID controller
is added to the simulink model of the system in figure 20. The resulting is the model
is shown in figure 36, and is tested in the next section against the disturbances in the
load and source to show improvement has been acheived compared to the open-loop
response.
is designed to compare the open-loop response of the system with the compensated
closed-loop response of the system. The conditions simulated are the same as in
The switched-inductor buck designed in Section 2 has the following component values:
• L = 20 µH
• C = 220 µF
• RL = 2.00 Ω
• Dnom = 0.2891
• r = 0.0161 Ω @ Dnom
The controller is a fuzzy logic PID with the control surfaces outline in section 6.4.
The controller contains the required input and output gains mentioned in sectons 6.2
and 6.6. The ADC of the controler has a resolution of 4.8828 ∗ 10−4 V and a gain of
0.1, while the DPWM has a resolution of 2.4414 ∗ 10−4 V. Other assumptions made
are
48
49
• All other disturbances from the power source, including noise, are ignored.
cycle, D is 0.2891, is chosen so that is met. The open-loop response has a maximum
overshoot of 70 percent while the closed-loop response has a maximum overshoot of
6.5 percent. In addition, the settling rise has been reduced from 2.75 msec to 1.10
msec. However, the rise time has been increased from 0.2 msec to 0.6 msec.
3.5
Closed−Loop w/ Fuzzy Logic PID
Open−Loop
3
2.5
2
Vo (V)
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t (sec) x 10
−3
Figure 37: Time response of the open-loop system and closed-loop system compen-
sated by a fuzzy logic PID controller to 12 V DC power source.
50
The time resposne of the open-loop and closed-loop sytem compensated by a fuzzy
logic PID controller to a 1 A step change in the load can be seen in figure 38. It can
be seen from this figure that the steady-state error decreases from 1 percent to zero.
In addition, the maximum undershoot improves from 12 percent to 3 percent and the
maximum overshoot improves from 7 percent to 2 percent.
The time response of the open-loop and closed-loop system compensated by a fuzzy
logic PID controller for a 1 V step change in the source can be seen in figure 39.
The figure shows that the steady-state error improves from 8 percent to less than
1 percent for the simulation. The steady-state error of the compensated system
eventually decrease to zero because of the integral action. In addition, the maximum
2.2
Closed−loop w/ Fuzzy Logic PID
2.15 Open−Loop
2.1
2.05
2
Vo (V)
1.95
1.9
1.85
1.8
1.75
1.7
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t (sec) x 10
−3
Figure 38: Time response of the open-loop system and closed-loop system compen-
sated by a fuzzy logic PID controller to a 1 A load step change.
51
2.3
Closed−Loop w/ Fuzzy Logic PID
Open−Loop
2.25
2.2
2.15
Vo (V)
2.1
2.05
1.95
1.9
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
t (sec)
Figure 39: Comparsion of time response for 1 V change in the source between open-
loop system and closed-loop system with fuzzy logic PID controller.
Current trends in electronics requiring operation at low voltages with higher currents.
In order to supply power to these electronics, PWM power converters are required
which are able to deliver these voltages and currents efficiently. One such converter
capable of delivering these requirements is the switched inductor buck converter. The
circuit is capable of generating lower voltages with a more median duty cycle when
In addtion, digital control schemes are replacing the use of analog control schemes
when controlling PWM power converters. Digital schemes, implemented through the
use of microcontrollers, offer an immunity to component variations, digital system
compatibility, and the ability to incorporate advanced control schemes which is not
logic control. Fuzzy logic control is a nonlinear control scheme with piecewise linear
proportional, integral, and derivative gain to control the duty cycle of the system.
Control of the duty cycle, in turn, controls the output voltage of the system. The fuzzy
respect to the open-loop system. The overall speed of the system is also increased,
as seen by the decrease of the settling time when the converter is connected to the
power source. The system is also capable of fully rejecting disturbances by reducing
52
53
References
[3] Jia Wei, Kaiwei Yao, Ming Xu, and Free C. Lee, “Applying Transformer Concept
[4] K. S. Rattan, Class notes, EE 417-Digital Control Systems, Wright State Uni-
versity, Winter 2007.
[9] Bor-Ren Lin and Chihchiang Hua, “Buck/Boost. Converter control with Fuzzy
Logic Approach,” National Yulin Institute of Technology, 1993.
[10] Bor-Ren Lin and Richard G. Hoft, “Power Electronics Converter Control Based
on Neural Network and Fuzzy Logic Methods,” University of Missouri, 1993.
[11] Bor-Ren Lin, “Analysis of Fuzzy Control Method Applied to DC-DC Converter
www.niccomp.com.