AUTOMATIC TUNING OF A PROPORTIONAL-INTEGRAL-DERIVATIVE CONTROLLER FOR DC-DC BUCK SWITCHING POWER CONVERTER

Information

  • Patent Application
  • 20230266743
  • Publication Number
    20230266743
  • Date Filed
    June 29, 2021
    3 years ago
  • Date Published
    August 24, 2023
    a year ago
Abstract
A method of automatically tuning a proportional-integral-derivative (PID) controller (102) controlling a DC-DC converter (100) includes substituting the PID controller (102) with a modified relay feedback test (MRFT) (104) controller having a threshold parameter (β) and a magnitude parameter (h), iteratively determining a current error signal (e [k]) by measuring an output voltage (Vo[k]) of the DC-DC converter (100) and comparing it to a desired reference output voltage (Vo-ref), input the error signal (e[k]) to the MRFT (104), determining an output value (u[k]) of the MRFT, update the duty cycle (D) based on the output value (u[k]), operating the DC-DC converter (100) using the updated duty cycle (D), exciting oscillations in the loop containing the MRFT (104) and the DC-DC converter (100), measuring a frequency (Ω0) and amplitude (α0) of the output voltage (Vo[k]), updating PID controller parameters based on the frequency (Ω0) and amplitude (α0), and substituting the MRFT (104) with the PID controller (102).
Description
FIELD OF INVENTION

The present invention relates to systems and methods for automatically tuning a proportional-integral-derivative (PID) controller for DC-DC buck switching power converter.


BACKGROUND

Fueled by the development of low-cost microcontrollers with high clock speeds, the autotuning of digitally-controlled DC-DC switched-mode converters has attracted the attention of researchers in the last two decades. Even though analog controllers are still faster and cost less, the digital controller offers some unmatched advantages such as the immunity to controller parameter variation, the ease of retuning the controller, and the ability to implement highly sophisticated control algorithms


Autotuning in the present context refers to the automatic online tuning of a digital controller at pre-set intervals or in response to a user command or a triggering event. Because components in converters have a tolerance and so their exact values are unknown, and because they are prone to ageing, the ability of a controller to retune itself based on actual system parameters rather than a nominal mathematical model can largely improve the stability and dynamic performance of a converter. Autotuning generally includes a test stage in which the system dynamics are excited, and a tuning stage in which the controller is retuned using measurements from the test. Some autotuning methods use an intermediate stage of system identification.


The relay feedback test (RFT) is classically known in the field of control. It involves placing a relay in series with the plant or process, and operating the system in closed-loop, which leads to limit-cycle oscillations occurring at the phase cross-over)(−180°) frequency of the plant. The amplitude and time period of the oscillations are measured and used for tuning a PID controller, for example, using the Ziegler and Nichols (Z-N) PID tuning rules. While this usually yields satisfactory performance, stability is not guaranteed, nor are gain or phase margin be specified. A form of RFT-based autotuning of a DC-DC buck converter has been previously implemented. However, different from the conventional RFT, an integrator is placed in series with the RFT relay. This forces oscillations at a frequency corresponding to a −90° phase shift, thereby identifying the LC resonant frequency of the converter. The first PID zero is placed at the resonant frequency, while the other zero is iteratively tuned until the desired phase margin is met. The PID gain is finally tuned (iteratively) to achieve the desired bandwidth. A disadvantage of this method is that since oscillation amplitude is large at the resonant frequency, the test is performed at a voltage below the nominal, during the startup ramp. This means autotuning must be performed during regular operation. Also, the tuning process is somewhat complex and long as it consists of several stages, some with iterations. In other prior implementations, an improvement to the same RFT-based work has been developed in which only time-period measurements are used in order to avoid errors related to amplitude measurement. In other prior art, limited-cycle oscillations are induced in a DC-DC buck converter by temporarily reducing the resolution of the digital PWM rather than using a relay, which allows for continued regulation of the system even during the test stage, although with poorer tracking.


Several other autotuning methods using tests besides RFT have also been implemented, for example, methods that use the injection of a pseudo-random binary sequence (PRBS) in the test stage. But almost all known methods, whether based on the RFT, PRBS injection, or others, have some level of complexity, mainly because the full burden of test and tuning is to be done online. One way to simplify the test and tuning stages, and thus make them more suitable for practical implementation, is to utilize general knowledge of the system's behavior to do part of the tuning preparation offline. The modified relay feedback test (MRFT) autotuning method is one such method. It is built on a coordinated test and tuning concept that guarantees a specified gain margin or phase margin. Further, the MRFT autotuning method can also be extended to include optimized non-parametric tuning, which in addition to the guaranteed gain or phase margin, provides near-optimal transient performance for a wide range of designs of a given system. The MRFT autotuning method consists of a single-step test and a single-step tuning stage, which are described below.


TEST STAGE: A general block diagram of the test stage of the MRFT autotuning method is shown in FIG. 1a, where Wp(s) is the transfer function of the plant to be controlled. The logic of the MRFT block is given below, where e(t) is the error signal and u(t) is the control command produced by the MRFT block. u(t−) is the control output immediately prior to the time t. b1 and b2 are the relay switching conditions, given by b1=−βemin and b2=βemax, where emin and emax are the last (negative) minimum and last (positive) maximum of e(t), respectively, and where β is a “threshold parameter” of the test set by the user in the range −1<β<1.










u

(
t
)

=

{







{





e

(
t
)



b
1


&



u



(

t
-

)


=

-
h


}







+
h

,
if



or








{



e

(
t
)




-

b
2


+


u



(

t
-

)




=

+
h


}

















{





e


(
t
)




-

b
2



&



u


(

t
-

)


=

+
h


}







-
h

,
if



or








{





e


(
t
)




b
1


&



u



(

t
-

)


=

-
h


}









Eq
.


(
1
)








h is the “MRFT magnitude”, which is the amount of the control effort provided by the MRFT block to the process, or in other words the command provided to the actuator. The test stage of MRFT autotuning method is performed when the subject system is in steady-state. FIG. 1b shows illustrative waveforms of the test stage. emax and emin are initially set to zero, making b1=b2=0. Oscillations start to develop in the output y(t), and consequently in error signal e(t). Every time a minimum (emin) or maximum (emax) is recorded, the switching condition (b1 or b2) for the upcoming half-cycle is updated. After a few transient cycles, the oscillations stabilize, and |emax| and |emin| are equal. This is when amplitude and frequency measurements are taken. Let Ω0 (in rad/s) be the frequency of the resulting oscillations and let a0=emax=−emin be the amplitude of the oscillations. Tu=2π/Ω0 is called the ultimate time period. For improved accuracy, Tu and a0 are best computed as an average over a few oscillation cycles. The ultimate gain Ku refers to the gain from the fundamental component of e(t) to the fundamental component of u(t). In other words, it is the ratio of the amplitudes of the first harmonics of u(t) and e(t) and is calculated using the equation below.










K
u

=


4

h


π


a
0







Eq
.


(
2
)








TUNING STAGE: A PID controller of the format








W
c

(
s
)

=


K
c




(

1
+

1


T
i


s


+


T
d


s


)






is used in the MRFT autotuning method. The tuning stage is to simply calculate the updated PID parameters using the following equations, where c1, c2, c3 are predetermined constants:





Kc=c1Ku, Ti=c2Tu, Td=c3Tu   Eq. (3)


SUMMARY

According to one or more aspects of the present disclosure, a method of automatically tuning a digitally-implemented proportional-integral-derivative (PID) controller for the purpose of controlling a DC-DC buck switching power converter includes the steps of

  • a) Using a PID controller of the form









W
c

(
s
)

=


K
c




(

1
+

1


T
i


s


+


T
d


s


)



,




where s is the Laplace variable, Kc is the proportional gain, Ti is the integral time, and Td is the derivative time, to drive the system to a steady state;

  • b) substituting the PID controller with a modified relay feedback test (MRFT) block;
  • c) the input to the MRFT block is an error signal (e[k]), which is obtained by measuring an output voltage (Vo[k]) of the DC-DC buck switching power converter and comparing it to a desired reference output voltage (Vo-ref);
  • d) the output of the MRFT block is the new modulation index that is input to the pulse-width modulator (PWM); the MRFT block output is set to either D+h or D−h, where D is the nominal duty cycle, i.e., the modulation index that is normally provided by the PID controller to the pulse-width modulator (PWM) to produce an output voltage equal to the set point (Vo-ref); This is in contrast to the prior implementations of the MRFT in prior art, where the output of the MRFT block is only +h or −h.
  • e) repeating steps a) through c) until a number of cycles (Ncycles) of sustained oscillations are produced;
  • f) measuring the frequency (Ω0) and amplitude (a0) of the sustained oscillations resulting from the application of the MRFT, where a0 is the incremental amplitude around the steady-state output voltage; for improved accuracy, Ω0 and a0 are taken as an average over several cycles of MRFT oscillations;
  • g) updating the PID controller parameters based on the measured Ω0 and a0; using the following equations








K
c

=


c
1




4

h


π


a
0





,


T
i

=


c
2




2

π


Ω
0




,



T
d

=


c
3




2

π


Ω
0




;





and

  • h) replacing the MRFT block back with the PID controller.


In one or more embodiments of the method according to any one of the previous paragraphs, the threshold parameter of the MRFT block is given by β=−0.2±5%.


In one or more embodiments of the method according to any one of the previous paragraphs, c1=0.69±5%, c2=1.14±5%, and c3=0.19 ±5%.


According to one or more aspects of the present disclosure a non-transitory computer readable storage medium has data stored therein representing software executable by a computer. The software includes instructions to switch a controller circuit of a DC-DC buck switching power converter from a proportional-integral-derivative (PID) controller to an MRFT block; determine an error signal (e[k]) by measuring an output voltage (Vo[k]) of the DC-DC buck switching power converter and comparing it to a desired reference output voltage (Vo-ref); input the error signal (e[k]) to the MRFT block; depending on the value of e[k], the MRFT block will output either D+h or D−h, where D is the nominal duty cycle described earlier and h is the MRFT magnitude; repeat the preceding instructions until a predetermined number of oscillation cycles (Ncycles)have developed; measure a frequency (Ω0) and amplitude (a0) of the oscillations as an average over the Ncycle oscillations, but disregarding an initial number of cycles (Ndiscard); update the PID controller parameters based on Ω0 and a0 using the equations








K
c

=


c
1




4

h


π


a
0





,


T
i

=


c
2




2

π


Ω
0




,



T
d

=


c
3




2

π


Ω
0




;





and finally switch the controller circuit of the DC-DC buck switching power converter from the MRFT block back to the (updated) PID controller.


In one or more embodiments of the non-transitory computer readable storage medium according to any one of the previous paragraphs, the software further includes instructions to continuously track the error signal (e[k]) and record every occurring maximum (emax) and minimum (emin).


In one or more embodiments of the non-transitory computer readable storage medium according to any one of the previous paragraphs, the software further includes instructions to measure the frequency (Ω0) and amplitude (a0) of the oscillations as an average based on a number of recorded cycles (NMRFT)—which equals a total number of cycles (Ncycles) minus the initial number of cycles (Ndiscard)—and an elapsed time period (TMRFT) of the number of recorded cycles (NMRFT); Ω0 and a0 are then calculated using







Ω
0

=




2

π



T

M

R

F

T



N
MRFT





and



a
0


=











N

M

R

F

T





e
max


+






N

M

R

F

T




|

e
min

|


2


N

M

R

F

T




.






In one or more embodiments of the non-transitory computer readable storage medium according to any one of the previous paragraphs, the software further includes instructions to update the PID controller parameters based on the amplitude (a0) where







a
0

=











N
MRFT




e
max


+






M
MRFT



|

e
min

|


2


N

M

R

F

T




.





In one or more embodiments of the non-transitory computer readable storage medium according to any one of the previous paragraphs, the software further includes instructions to calculate a proportional gain (Kc), Ti an integral time (Ti), and a derivative time (Td) for the PID controller, where:








K
c

=


c
1




4

h


π


a
0





,


T
i

=


c
2




2

π


Ω
0




,


T
d

=


c
3





2

π


Ω
0


.







In one or more embodiments of the non-transitory computer readable storage medium according to any one of the previous paragraphs, the non-transitory computer readable storage medium has data stored therein representing a value of C1 as 0.69±5%, a value of c2 as 1.14±5%, and a value of c3 is 0.19±5%.


In one or more embodiments of the non-transitory computer readable storage medium according to any one of the previous paragraphs, the non-transitory computer readable storage medium has data stored therein representing a value of β as −0.2±5%.





DESCRIPTION OF THE DRAWINGS

The present invention will now be described, by way of example with reference to the accompanying drawings, in which:



FIG. 1a shows a schematic block diagram of the MRFT (which represents the test stage of the MRFT autotuning method) according to the prior art;



FIG. 1b shows illustrative waveforms of the operation of the MRFT according to the prior art;



FIG. 2 shows a flowchart for an implementation of the MRFT test stage on a DC-DC switching buck converter according to some embodiments;



FIG. 3 shows a schematic block diagram of the MRFT block with the DC-DC switching buck converter according to some embodiments;



FIG. 4 shows a graph of oscillations resulting from the application of the MRFT to a DC-DC switching buck converter, using scales of 20 mV/division for the vertical axis and 200 μs/division for the horizontal axis, according to some embodiments;



FIG. 5 shows a graph of oscillations resulting from the application of the MRFT to a DC-DC switching buck converter overlaid on the relay status according to some embodiments;



FIG. 6a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the commanded set-point voltage from 2V to 2.2V, where the converter has an inductance value of 10 μH and a capacitance value of 660 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments;



FIG. 6b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 6a and for the same step in set-point like in FIG. 6a, but where the PID controller of the converter, unlike FIG. 6a, is tuned using an optimal but non-autotuning method;



FIG. 7a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the commanded set-point voltage from 2V to 2.2V, where the converter has an inductance value of 10 μH and a capacitance value of 440 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments;



FIG. 7b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 7a and for the same step in set-point like in FIG. 7a, but where the PID controller of the converter, unlike FIG. 7a, is tuned using an optimal but non-autotuning method;



FIG. 8a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the commanded set-point voltage from 2V to 2.2V, where the converter has an inductance value of 4.8 μH and a capacitance value of 660 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments;



FIG. 8b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 8a and for the same step in set-point like in FIG. 8a, but where the PID controller of the converter, unlike FIG. 8a, is tuned using an optimal but non-autotuning method;



FIG. 9a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the commanded set-point voltage from 2V to 2.2V, where the converter has an inductance value of 4.8 μH and a capacitance value of 440 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments;



FIG. 9b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 9a and for the same step in set-point like in FIG. 9a, but where the PID controller of the converter, unlike FIG. 9a, is tuned using an optimal but non-autotuning method;



FIG. 10a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the load current from 0.27 A to 1.27 A, where the converter has an inductance value of 10 μH and a capacitance value of 660 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments;



FIG. 10b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 10a and for the same step in load current like in FIG. 10a, but where the PID controller of the converter, unlike FIG. 10a, is tuned using an optimal but non-autotuning method;



FIG. 11a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the load current from 0.27 A to 1.27 A, where the converter has an inductance value of 10 μH and a capacitance value of 440 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments;



FIG. 11b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 11a and for the same step in load current like in FIG. 11a, but where the PID controller of the converter, unlike FIG. 11a, is tuned using an optimal but non-autotuning method;



FIG. 12a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the load current from 0.27 A to 1.27 A, where the converter has an inductance value of 4.8 μH and a capacitance value of 660 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments;



FIG. 12b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 12a and for the same step in load current like in FIG. 12a, but where the PID controller of the converter, unlike FIG. 12a, is tuned using an optimal but non-autotuning method;



FIG. 13a shows the transient response of the output voltage of a DC-DC switching buck converter due to a step in the load current from 0.27 A to 1.27 A, where the converter has an inductance value of 4.8 μH and a capacitance value of 440 μF, and where the PID controller of the converter is tuned with the MRFT autotuning method, according to some embodiments; and



FIG. 13b shows a transient response of the output voltage of a DC-DC switching buck having the same inductance and capacitance values as in FIG. 13a and for the same step in load current like in FIG. 13a, but where the PID controller of the converter, unlike FIG. 13a, is tuned using an optimal but non-autotuning method.





DETAILED DESCRIPTION

A method of autotuning a PID controller 102 of a DC-DC switching buck converter 100 using the modified relay feedback test (MRFT) is provided. The method is comprised of two components, which are:

    • a procedure for implementing the test stage of the MRFT autotuning method on a digitally-controlled DC-DC pulse-width modulated buck converter; and
    • PID controller tuning rules that provide near-optimal performance for virtually any DC-DC buck converter. The tuning rules also provide a desired phase margin.


In the context of the DC-DC converter, a direct implementation of the original MRFT autotuning method would be to disable the DPWM and let the MRFT directly control the converter switches, so that when the MRFT block output is +h, the main switch is turned ON, and when the relay is −h, the main switch is turned OFF. But since the MRFT frequency is typically much lower than the DPWM frequency, switching at the MRFT frequency will result in an increased ripple in both the inductor current and the output voltage. The present invention adopts a more appropriate approach of double-modulation, where the DPWM is still maintained during the test stage, and the MRFT modulation is superposed on top of it. This is done by setting the MRFT block output, u(t), to either D+h or D−h instead of +h or −h, where D is the nominal duty-cycle, i.e., the modulation index that is normally provided by the PID controller to the DPWM to produce an output voltage equal to the set point (Vo-ref). In such approach, the MRFT oscillations appear superposed on top of the nominal output voltage. In terms of gate pulses, the MRFT manifests as a series of slightly wider PWM pulses corresponding to the D+h duty-cycle and lasting for Tu/2, followed by a series of slightly narrower PWM pulses corresponding to the D−h duty-cycle and also lasting for Tu/2, where Tu is the time period of the MRFT oscillations. The advantage of the adopted approach is that the converter maintains the switching frequency it was designed for even during the test stage, thus maintaining an acceptable level of ripple. This minimizes the impact of the MRFT auto-tuning on the converter, making it possible to take place even during normal operation (in most applications).


The algorithm of the MRFT block in such approach is expressed as below:







u

(
t
)

=

{







{





e


(
t
)





-
β



e
min



&



u



(

t
-

)


=

D
-
h


}







D
+
h

,
if



or








{





e


(
t
)





-
β



e
max



&



u



(

t
-

)


=

D
+
h


}

















{





e

(
t
)



-

βe
max




&



u



(

t
-

)


=

D
+
h


}







D
-
h

,
if



or








{





e

(
t
)



-

βe
min



&



u



(

t
-

)


=

D
-
h


}

















The MRFT tuning method can be initiated upon user prompt or programmed by the user in accordance with a certain schedule or event. The MRFT tuning method only lasts for a short duration (typically less than 1 millisecond). The inputs required by the MRFT tuning method routine are:

    • β is a threshold parameter that determines the amount of hysteresis in the modified relay;
    • h is the desired magnitude of the relay (to be added to steady-state duty-cycle);
    • Ndiscard is the number of initial MRFT oscillation cycles to be neglected in calculating amplitude and frequency of oscillations;
    • NMRFT is the number of MRFT oscillation cycles to be run after the first Ndiscard cycles; and
    • Ncycles is the total number of MRFT oscillation cycles per single run of the test. Thus, Ncycles=Ndiscard+NMRFT.


Next, the MRFT tuning method data that needs to be recorded for post-processing is as follows:

    • All minimums and maximums of an error signal for duration of the test stage of the


MRFT autotuning method; and

    • TMRFT is the time duration for the last NMRFT cycles only, i.e., not including the time duration of the initial Ndiscard cycles.
    • The complete error signal waveform for duration of the MRFT tuning method is optionally recorded.
    • The complete relay signal waveform for duration of the MRFT tuning method is optionally recorded.


The MRFT tuning method is then executed per the algorithm in the flowchart shown in FIG. 2. After the MRFT tuning method is completed, the following post-processing calculations are carried out:







T
u

=


T

M

R

F

T



N

M

R

F

T









    • is calculated. This is the time period of the MRFT oscillations (referred to as the ultimate time period). It is calculated as the average time period over the last NMRFT cycles (i.e., not including the first Ndiscard cycles).









a
=











N
MRFT




e
max


+






N
MRFT



|

e
min

|


2


N
MRFT











    • is calculated. This is the average amplitude of the MRFT oscillations, calculated using the (absolute value of) all minimums and maximums over the last NMRFT cycles.

    • A validity check on the error waveform may optionally be conducted to check if it contains many noise spikes or highly irregular oscillations. The test may be repeated if deemed necessary.





The above procedure represents the test stage, which is first of two steps of the MRFT tuning method. The second and final step is the tuning stage, which is to update the PID controller parameters using the test results. A PID controller of the following form is used, where Kc is the proportional gain, Ti the integral time, and Td the derivative time.











W
c

(
s
)

=


K
c

(

1
+

1


T
i


s


+


T
d


s


)





Eq
.


(
3
)








Tuning rules of the following form are used, where coefficients c1, c2, and c3, are positive constants.











K
c

=



c
1



K
u


=


c
1




4

h


π


a
0






,


T
i

=



c
2



T
u


=


c
2




2

π


Ω
0





,


T
d

=



c
3



T
u


=


c
3




2

π


Ω
0









Eq
.


(
4
)








According to the MRFT autotuning method, selecting c1, c2, and c3, and the threshold parameter β of the MRFT in coordination with each other as per the following constraints would provide a user-specified phase margin, ϕm, for any arbitrary system.











c
1




1
+

ξ
2




=
1




Eq
.


(
5
)











β
=

sin

(


ϕ
m

-


tan

-
1



ξ


)


,


where


ξ

=


2

π


c
3


-

1

2

π


c
2









Further to this, using a two-stage optimization technique, the set (β, c1, c2, c3) is chosen so that it provides near-optimal transient performance for a wide range of DC-DC buck converters. Details of the optimization procedure used to obtain the optimized tuning rules is provided later. The optimized set (β*, c1*, c2*, c3*), is given below.





β*=−0.2±5%, c1*=0.69±5%, c2*=1.14±5%, c3*=0.19±5%  Eq. (6)


Referring to the example application shown in FIG. 3, a digitally controlled synchronous DC-DC buck converter 100, operating in voltage-control mode, is used for the implementation of the MRFT tuning method. A full schematic of the system is illustrated in FIG. 3. The output voltage (vo) goes through a sensing circuit 106 that includes a voltage step-down circuit and an anti-aliasing filter.


A digital microcontroller, e.g., Texas Instruments TMS320F28335, is used for sampling and control. The microcontroller includes non-transitory memory containing software instructions to perform the steps of the method described herein. The microcontroller also includes transitory memory containing data generated by the method described herein.


The switching frequency (fs=1/Ts) of the digital pulse width modulator (DPWM) 108 is set to 200 kHz. The sampling rate is also set to 200 kHz and is synchronized with the PWM. The resistive load (Ro) 110 can be electronically switched between two values to provide load transients for controller testing. The resistor Rs 112 is used to sense the inductor current (IL) through the inductor L 114 for protection purposes. The output filter capacitance consists of a parallel combination of two larger aluminum polymer low equivalent series resistance (ESR) capacitors (together forming capacitance C1) 115 and three smaller ceramic capacitors (together forming capacitance C2) 116. RL, RC1, and RC2 are the parasitic resistances of L, C1, and C2, respectively. Nominal input supply voltage (Vs) is 9 V while the set-point output voltage (Vo-ref) is 2 V.


For the first test setup, L=4.8 μH and C1=440 μF are used (where C1 is formed using two parallel 220 μF capacitors for lower ESR). The MRFT tuning method is performed using the optimized β in Eq. (6). The experimentally measured oscillations in vo are shown in FIG. 4. The digital controller is programmed to discard the first few cycles when taking measurements of Tu and a0, since as seen from FIG. 4 the oscillations stabilize after a short transient of one or two cycles. It is also noted that the amplitude of oscillations is relatively low (only ±0.04 V around the 2 V steady state, i.e., 2%). Such small magnitude of the oscillations, as well the need for only a few oscillation cycles, makes the MRFT method's effect on a converter's operation minimal The same oscillations of FIG. 4 but recorded in the microcontroller memory as contiguous digital conversion samples taken by the Analog to Digital Converter (ADC) 118 (see FIG. 3), are shown in FIG. 5. Also shown superposed in FIG. 5 is a plot of the relay's output, where +1 (relay ON) indicates that h is added to the steady-state controller output, while −1 (relay OFF) indicates that h is subtracted from the steady-state controller output. It is noted that the sampled ADC signal shown in FIG. 5, upon which the control action is based, is much cleaner than that shown in the graph of FIG. 4. This is achieved by sampling between switch transitions to avoid switching noise spikes and is also partially due to the filtering provided by the anti-aliasing low pass filter (LPF) 106.


Immediately following the first stage of the MRFT method, the new PID controller coefficients are calculated. Ku is obtained from Eq. (2) using the measured amplitude a0, and it is used along with the frequency Ω0=2π/Tu to calculate the PID controller coefficients using Eq. (4) and (c1, c2, c3) from Eq. (6). Tu for this example application (using a DC-DC buck converter with L=4.8 μH and C1=440 μF) was 138 μs, while the Ku based on the measured a0 was 11.4 V−1.


This same test stage of the MRFT autotuning method was repeated using the same example converter referred above but with different values of L and C1. For each design, two tests are conducted to test the MRFT auto-tuned controller's performance In the first test, a step in Vo-ref from 2 V to 2.2 V is applied, while in the second test a step in the output current (Io) from 0.27 A to 1.27 A is applied.









TABLE 1







Controller Parameters for MRFT Auto-


Tuned and Optimized Controllers












Controller

Ti
Td


Design #
Type
Kc
(μs)
(μs)















1
L = 10 μH
MRFT
10.5
150
25



C1 = 660 μF
(Adaptive)




Optimized
7.3
193
36




(Non-adaptive)


2
L = 10 μH
MRFT
7.9
157
26



C1 = 440 μF
(Adaptive)




Optimized
5.6
145
35




(Non-adaptive)


3
L = 4.8 μH
MRFT
4.6
100
17



C1 = 660 μF
(Adaptive)




Optimized
4.8
132
16




(Non-adaptive)


4
L = 4.8 μH
MRFT
3.7
96
16



C1 = 440 μF
(Adaptive)




Optimized
4.3
105
16




(Non-adaptive)









For comparison, another PID controller that is tuned optimally for each of the specific converter designs is used. This optimized controller is obtained using the following procedure. Experimentally measured frequency response data of the buck converter system is obtained with the aid of a software frequency response analyzer (SFRA) tool, such as that produced by Texas Instruments Incorporated, and a high order transfer function (TF) is fitted to the measured frequency response data. Using this fitted model, a controller that gives the lowest integral of time-weighted absolute error (ITAE) (in simulation) for a step in Vo-ref for this TF is obtained through optimization using a processes of finding a minimum of an unconstrained multivariable function using derivative-free method, e.g., the fminsearch function in MATLAB® available from MathWorks, Inc. Note that this optimized controller differs from the MRFT block in that it 1) is optimized only for a given converter design and cannot be re-tuned to any other converter, and 2) does not guarantee a specific gain or phase margin.


Table 1 above lists the PID controller parameters for the MRFT blocks and the optimized controllers of each of the four tested designs. FIGS. 6a-9b show the experimental voltage output waveforms for the Vo-ref step tests, while FIGS. 10a-13b show the experimental voltage output waveforms for a step change in the load. The overall performance of the MRFT block is quite close to that of the optimized controller. Furthermore, in many of the cases where the overshoot/undershoot of the optimized controller is (expectedly) less than that of the MRFT-autotuned controller, the settling time of the latter is the same or even better, as seen in FIG. 8. Finally, the cases of high overshoot/undershoot (such as FIGS. 8a, 9a, 12a, and 13a) are associated with low damping due to the choice of a smaller inductor L.


In the remainder of this section, the optimization framework used to arrive at the optimal set of (β, c1, c2, c3) is described. The model below describes a general buck converter. The term e−τs represents the total delay due to sampling/control and the PWM operation, given by τ=1.5Ts.








G

b

u

c

k


(
s
)

=


e


-
τ


s




L


C
o



s
2


+


L

R
o



s

+
1






Let T1=√{square root over (LCo)} and







T
2

=


L

R
o


.





Gbuck is said to have three following situational parameters, namely T1, T2, and τ. The situational parameters may be reduced to two through use of the scaled Laplace variable s′=T1s, which results in the TF below having only







τ

T
1




and




T
2


T
1






as situational parameters.








G

b

u

c

k


(
s
)

=


e


τ

T
1




s






s



2


+



T
2


T
1




s



+
1






In order to obtain a realistic range of TFs covering practical buck converter designs, basic component-sizing equations are utilized. The following equation may be used to determine the inductive value L in a DC-DC buck converter:






L
=



V
o

(

1
-
D

)



K
L



I
o



f
s







where Vo and Io are the nominal output voltage and nominal output current, respectively. KL is a coefficient related to the inductor current ripple and is typically set between 0.2 and 0.3 for a buck converter. KL=0.3 is chosen to provide the minimum L, since L will be scaled up later. The nominal duty-cycle (D) is taken as 0.5. Noting that the ratio of Vo to Io is equal to the load resistance (Ro), minimum inductance (Lmin) is given by







L
min

=




0
.
5



R
o




0
.
3



f
s



=


5
3





R
o


f
s


.







The design criteria for Co, in the case of a low ESR, is given below where Kc is the desired maximum percent ripple in the capacitor voltage.







C
o

=


1

8


f
s







K
L



I
o




K
C



V
o








Choosing KC as 1%, the following expression is obtained for the minimum inductance, Co-min:







C

o
-
min


=



1

8


f
s






0.3

I
o



0.01

V
o




=




1

5

4



1


f
s



R
o




=



3
.
7


5



f
s



R
o









Defining scaling factors aL for L and aC for Co, the situational parameters and thus the expression for Gbuck may be rewritten as follows:







T
1

=



L


C
o



=




α
L



L
min



α
C



C

o
-
min




=


5
2






α
L



α
C




f
s












T
2

=


L

R
o


=




α
L



L
min



R
o


=


5
3




α
L


f
s














τ

T
1



=



0.6



α
L



α
C





and




T
2


T
1



=


2
3





α
L


α
C













G

b

u

c

k


(
s
)

=


e


-

(

0.6


α
L



α
C



)





s






s
′2

+


(


2
3





α
L


α
C




)




s



+
1






Comparing the characteristic polynomial in the denominator to the standard second order system format of (s2+2ζωnn2), the damping factor ζ is found to be








1
3





α
L


α
C




,




while the natural frequency ωn is 1. By considering all combinations of aL and aC from 1 to 10, a whole range of converters are represented. An illustration of this in grid format is provided in Table 2.









TABLE 2







Grid of TFs representing the range of buck converter designs









αC

















αL
1
2
3
4
5
6
7
8
9
10




















1
1











2
2
3


3
4
5
6


4
7
8
9
10


5
11
12
13
14
15


6
16
17
18
19
20
21


7
22
23
24
25
26
27
28


8
29
30
31
32
33
34
35
36


9
37
38
39
40
41
42
43
44
45


10
46
47
48
49
50
51
52
53
54
55









Finally, to justify the approximation of neglecting the zero that appears in the transfer function when the output capacitor has a non-negligible ESR, the ESR effect is represented to some extent by increasing the damping (ζ). This is done by making sure aL≥aC, which results in ζ being ≥⅓. A total of 55 TFs (shown as shaded boxes in the figure below) are obtained after applying the criterion aL≥aC. The TFs are numbered serially from 1 to 55, with the TF number appearing in the respective box in Table 2.


The optimization framework consists of two stages. In the first stage, the optimized value (β, c1, c2, c3) for every TF of the grid in Table 2 is obtained through optimization of the transient response in simulation, using the derived model Gbuck. The transient performance is evaluated using the “integral of time weighted absolute error” (ITAE), calculated using the following equation, where X is the vector [β, c1, c2, c3]. tinit is the time instant at which the transient occurs, and ts is the settling time.







ITAE

(
X
)

=







t
init


t
s




(

t
-

t
init


)





"\[LeftBracketingBar]"


e

(


t
-

t
init


,
X

)



"\[RightBracketingBar]"



dt





A combination of computer-based simulation programs, such as MATLAB® and SIMULINK®, also available from MathWorks, Inc., may be used for this purpose. A processes of finding a minimum of an unconstrained multivariable function using derivative-free method, e.g., the fminsearch function in MATLAB® which is based on the Nelder-Mead simplex direct search algorithm, is used for the optimization. Each iteration of the optimization consists of the following 3 steps.

    • 1. The MRFT block described by the diagram of FIG. 1a, with the modified relay as described in Eq. (2) and with W(s)=Gbuck(s), is simulated by the computer-based simulation programs using the initial/current value of β. Measurements of Tu and a0 from the simulation are obtained.
    • 2. PID controller coefficients are calculated from (4) using Tu and a0 from step 1 and the initial/current (c1, c2, c3).
    • 3. Using the PID controller coefficients from step 2 and the current Gbuck, a closed-loop simulation of a step in Vo-ref is performed and the ITAE is calculated.


After every iteration (of steps 1-3), the set (β, c1, c2, c3) is updated by the fminsearch function to result in a lower ITAE—while still ensuring that the updated (β, c1, c2, c3) still satisfy the constraints in Eq. (5). The iterations (of steps 1-3) are repeated until the improvement in ITAE is below the specified tolerance. Let the 55 TFs in the grid of FIG. 4 be referred to as Gbuck-n for n=1 to 55. The final output of the first stage of optimization is therefore a group of locally optimized sets (βn, c1n, c2n, c3n) for n=1 to 55, where each (βn, c1n, c2n, c3n) results in the lowest ITAE for the corresponding Gbuck-n.


The second stage of the optimization applies the principle of “least performance degradation” to obtain a globally optimized set of (β, c1, c2, c3). This is done as follows:

    • 1. Using β1 (the optimized β found for Gbuck-1), MRFT is simulated for Gbuck-1 to Gbuck-55. Respective MRFT measurements, Tu1n and a01n (for n=1 to 55), are recorded.
    • 2. Now using c11, c21, and c31 (which are locally optimized for Gbuck-1), along with Tu1n and a01n (for n=1 to 55) from the previous step, a PID controller C1n(s) is designed for each of Gbuck-1 to Gbuck-55 using (10). Thus, C1n(s) is based on Gbuck-n and the set (β1, c11, c21, c31) that is locally optimized to Gbuck-1.
    • 3. Next, each Gbuck-n is simulated in closed-loop using its corresponding PID controller from the previous step, C1n(s). For example: Gbuck-1 with C11(s), Gbuck-2 with C12(s), and so on. Each time the corresponding ITAE, denoted ITAE1n(for n=1 to 55) is recorded. The single maximum (worst-case) ITAE








max


n
=
1

,
2
,





55




ITAE
1
n


,




is then found.

    • 4. Steps 1, 2, and 3 are repeated using (β2, c12, c22, c32) to obtain ITAE2n for n=1 to 55, and







max


n
=
1

,
2
,





55




ITAE
2
n





is recorded. This is repeated until all worst-case ITAEs,








max


n
=
1

,
2
,





55




ITAE
k
n




(


for


k

=

1


to


55


)


,




are recorded.


The globally optimized set, (β*, c1*, c2*, c3*), is the set with the lowest








max


n
=
1

,
2
,





55




ITAE
k
n



for


k

=

1


to

55.





In other words, it is the set that results in the least performance degradation when applied to all converters in the considered range. This completes the second stage of the optimization. Constraints used in the optimization process include restricting ϕm in Eq. (5) to [20°, 60°], c2 to [0.1, 100] to limit the integral action, and restricting c1 and c3 to being positive. A final constraint was to set the minimum β to −0.2, since large negative values of β may be difficult to apply in practice due to the oscillations associated with having a smaller amplitude thus making their accurate measurement a challenging task. Performing the optimization process above for the system represented by Gbuck and for the range of parameters defined by the grid of Table 2, the globally optimized set was found to be (β3, c13, c23, c33), which resulted in ϕm=35°. The numerical values of the parameters in this set were:





β*=−0.2, c1*=0.69, c2*=1.14, c3*=0.19


In other words, using (β*, c1*, c2*, c3*)=(β3, c13, c23, c33) to tune a controller for every other Gbuck-n model in the considered range resulted in the least performance degradation from the locally optimized performance, ITAE33. This worst-case degradation,








max


n
=
1

,
2
,





55




ITAE
3
n


,




only 13% more than the locally optimized case ITAE33. It is noted that the (β*, c1*, c2*, c3*) provided earlier in the manuscript included a ±5% tolerance for each parameter in the set. This is because as long as the four parameters satisfy the constraints in Eq. (5), the specified phase margin is guaranteed, and further if they are in the vicinity of the original values of (β3, c13, c23, c33) , then very similar dynamic performance is obtained.


While the invention has been described with reference to an exemplary embodiment(s), it will be understood by those skilled in the art that various changes may be made, and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention is not limited to the disclosed embodiment(s), but that the invention will include all embodiments falling within the scope of the appended claims.

Claims
  • 1. A method of automatically tuning a proportional-integral-derivative (PID) controller controlling a DC-DC buck switching power converter, comprising: a) substituting the PID controller with a modified relay feedback test (MRFT) block having an MRFT magnitude (h) and a threshold parameter (β);b) determining a current error signal (e[k])by measuring an output voltage (Vo[k]) of the DC-DC buck switching power converter and comparing the output voltage (vo) to a desired reference output voltage (Vo-ref);c) inputting the error signal (e[k]) to the MRFT block;d) producing a MRFT block output signal u[k] in accordance with the MRFT block equations, which can only be D+h or D−h;e) operating the DC-DC buck switching power converter using the updated nominal duty cycle (D);f) repeating steps from b) through e), which results in generation of self-excited oscillations due to the switching of the MRFT block output between the values D+h and D−h, until a predefined number of cycles (Ncycles) is observed;g) measuring a frequency (Ω0) and amplitude (a0) of oscillations of the output voltage (Vo[k]) of the DC-DC buck switching power converter;h) updating PID controller parameters based on the frequency (Ω0) and amplitude (a0) of the oscillations of the voltage output (Vo[k]) of the DC-DC buck switching power converter; andi) substituting the MRFT block with the PID controller.
  • 2. The method according to claim 1, further comprising: j) comparing the error signal (e[k]) against previous maximum and minimum values of the error signal (emax, emin);k) determining a new maximum value (emax) if the current error signal value (e[k]) is greater than the previous maximum value;l) determining a new minimum value (emin) if the current error signal value (e[k]) is less than the previous minimum value; andm) determining the current value of the MRFT block output signal (u[k]) based on the new maximum or minimum value (emax, emin), the previous value of the MRFT block output signal (u[k−1]), the current error signal value (e[k]), and the MRFT block threshold parameter (β) and magnitude (h) in such a way that the current value of the MRFT block output signal (u[k]) is set to be D+h if (e[k]≥−β×emin and u[k−1]=D−h) or if (e[k]≥−β×emax and u[k−1]=D+h); and the current value of the MRFT block output signal (u[k]) is set to be D−h if (e[k]≤−β×emax and u[k−1]=D+h) or if (e[k]≤−β×emin and u[k−1]=D−h)
  • 3. The method according to claim 2, wherein an initial number of cycles (Ndiscard) are disregarded when measuring the frequency (Ω0) and amplitude (a0) of the oscillations of the output voltage (Vo[k]) of the DC-DC buck switching power converter (step g).
  • 4. The method according to claim 3, wherein the PID controller parameters are updated based on a number of recorded cycles (NMRFT) which equals a total number of cycles (Ncycles) minus the initial number of cycles (Ndiscard), an elapsed time period (TMRFT) of the number of recorded cycles (NMRFT), and the frequency (Ω0), where
  • 5. The method according to claim 4, wherein the PID controller parameters are updated based on the amplitude (a0) where
  • 6. The method according to claim 5, further comprising the step of: n) calculating a proportional gain (Kc), an integral time (Ti), and a derivative time (Td) for the PID controller, where:
  • 7. The method according to claim 6, where c1=0.69±5%, c2=1.14±5%, and c3=0.19±5%.
  • 8. The method according to claim 6, in which the coefficients c1, c2, and c3 are selected to satisfy the equations: c1√{square root over (1+ζ2)}=1 and β=sin(ϕm−tan−1ζ), where
  • 9. The method according to claim 1, where a threshold parameter β=−0.2±5%.
  • 10. A non-transitory computer readable storage medium having data stored therein representing software executable by a computer, the software including instructions to: switch a controller circuit of a DC-DC buck switching power converter from a proportional-integral-derivative (PID) controller enforcing a nominal duty cycle (D) of the converter to a modified relay feedback test (MRFT) block having an MRFT magnitude (h) and a threshold parameter (β);determine a current error signal (e[k]) by measuring an output voltage (Vo[k]) of the DC-DC buck switching power converter and comparing the output voltage (Vo[k]) to a desired reference output voltage (Vo-ref);input the error signal (e[k]) to the MRFT block;determine a controller output signal (u[k]) of the MRFT block;update the nominal duty cycle (D) to the value given by the controller output signal (u[k]);operate the DC-DC buck switching power converter using the updated nominal duty cycle (D);observe appearance of self-excited oscillations and repeat the preceding instructions for a predetermined number of cycles (Ncycles) of these oscillations;measure a frequency (Ω0) and amplitude (a0) of oscillations of the output voltage (Vo[k]) of the DC-DC buck switching power converter;update PID controller parameters based on the frequency (Ω0) and amplitude (ao) of the oscillations of the voltage output (Vo[k]) of the DC-DC buck switching power converter; andswitch the controller circuit of the DC-DC buck switching power converter from a MRFT block to the PID controller.
  • 11. The non-transitory computer readable storage medium according to claim 10, wherein the software further includes instructions to: compare the error signal (e[k]) against previous maximum and minimum values of the error signal (emax, emin);store a new maximum value (emax) in transitory memory if the current error signal value (e[k]) is greater than the previous maximum value;store a new minimum value (emin) in transitory memory if the current error signal value (e[k]) is less than the previous minimum value; andcalculate current value of the MRFT block output signal (u[k]) based on the new maximum or minimum value (emax, emin), the previous value of the MRFT block output signal (u[k−1]), the current error signal value (e[k]), and the MRFT block threshold parameter (β) and magnitude (h) in such a way that the current value of the MRFT block output signal (u[k]) is set to be D+h if (e[k]≥−β×emin and u[k−1]=D−h) or if (e[k]≥−β×emaxu[k−1]=D+h); and the current value of the MRFT block output signal (u[k]) is set to be D−h if (e[k]≤−β×emax and u[k−1]=D−h) or if (e[k]≤−β×emin and u[k−1]=D−h), and store it in transitory memory.
  • 12. The non-transitory computer readable storage medium according to claim 10, wherein the software further includes instructions to discard the frequency (Ω0) and amplitude (a0) of the oscillations of the output voltage (Vo[k]) of the DC-DC buck switching power converter data collected during an initial number of cycles (Ndiscard).
  • 13. The non-transitory computer readable storage medium according to claim 12, wherein the software further includes instructions to update the PID controller parameters based on a number of recorded cycles (NMRFT) which equals a total number of cycles (Ncycles) minus the initial number of cycles (Ndiscard), an elapsed time period (TMRFT) of the number of recorded cycles (NMRFT), and the frequency (Ω0), where
  • 14. The non-transitory computer readable storage medium according to claim 13, wherein the software further includes instructions to update the PID controller parameters based on the amplitude (a0) where
  • 15. The non-transitory computer readable storage medium according to claim 14, wherein the software further includes instructions to calculate a proportional gain (Kc), Ti an integral time (Ti), and a derivative time (Td) for the PID controller, where:
  • 16. The non-transitory computer readable storage medium according to claim 15 having data stored therein representing a value of c1 as 0.69±5%, a value of c2 as 1.14±5%, and a value of c3 is 0.19±5%.
  • 17. The non-transitory computer readable storage medium according to claim 15, wherein the software further includes instructions to calculate the coefficients c1, c2, and c3, which are selected to satisfy the equations: c1√{square root over (1+ζ2)}=1 and β=sin(ϕm−tan−1ζ), where
  • 18. The non-transitory computer readable storage medium according to claim 11 having data stored therein representing a value of threshold parameter β as −0.2±5%.
CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a National Stage Application of International Patent Application No. PCT/IB2021/055825 filed Jun. 29, 2021, which claims priority under Article 8 of the Patent Cooperation Treaty to U.S. Provisional Patent Application 63/045,469 filed in the Unites States Patent and Trademark Office on Jun. 29, 2020, the entire disclosure of each of which is hereby incorporated by reference.

PCT Information
Filing Document Filing Date Country Kind
PCT/IB2021/055825 6/29/2021 WO
Provisional Applications (1)
Number Date Country
63045469 Jun 2020 US