# US 2023/0266743 A1 · Automatic tuning of a proportional-integral-derivative controller for dc-dc buck switching power converter

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0266743 A1
- Document ID: US20230266743A1
- Status: Published application
- Kind: A1
- Application number: 18/010,087
- Filed: 2021-06-29
- Published: 2023-08-24
- Earliest claimed: 2020-06-29
- Assignees: Khalifa University of Science and Technology
- Applicants: Khalifa University of Science and Technology
- Inventors: Igor BOIKO; Ahmed SHEHADA; Balanthi Mogru Abdul Rahiman BEIG; Yan YAN
- Web page: https://patentgrep.com/patent/US20230266743A1

## CPC

- G05B 11/42: for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.
- G05B 19/4155: characterised by program execution, i.e. part program or machine function execution, e.g. selection of a program
- G05B 2219/42033: Kind of servo controller
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## 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).

## Claims

### Claim 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; and
i) substituting the MRFT block with the PID controller.

### Claim 2 (depends on 1)

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; and
m) 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)

### Claim 3 (depends on 2)

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).

### Claim 4 (depends on 3)

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
Ω
0
=
2
⁢
π
T
MRFT
N
MRFT
.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the PID controller parameters are updated based on the amplitude (a0) where
a
0
=
∑
N
MRFT
⁢
e
max
+
∑
N
MRFT
⁢
❘
"\[LeftBracketingBar]"
e
min
❘
"\[RightBracketingBar]"
2
⁢
N
MRFT
.

### Claim 6 (depends on 5)

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:
K
c
=
c
1
⁢
4
⁢
h
π
⁢
a
0
,
T
i
=
c
2
⁢
2
⁢
π
Ω
0
,
T
d
=
c
3
⁢
2
⁢
π
Ω
0
.

### Claim 7 (depends on 6)

The method according to claim 6, where c1=0.69±5%, c2=1.14±5%, and c3=0.19±5%.

### Claim 8 (depends on 6)

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
ξ
=
2
⁢
π
⁢
c
3
-
1
2
⁢
π
⁢
c
2
and (ϕm) is a desired phase margin;

### Claim 9 (depends on 1)

The method according to claim 1, where a threshold parameter β=−0.2±5%.

### Claim 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; and
switch the controller circuit of the DC-DC buck switching power converter from a MRFT block to the PID controller.

### Claim 11 (depends on 10)

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; and
calculate 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.

### Claim 12 (depends on 10)

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).

### Claim 13 (depends on 12)

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
Ω
0
=
2
⁢
π
T
MRFT
N
MRFT
,

### Claim 14 (depends on 13)

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
a
0
=
∑
N
MRFT
⁢
e
max
+
∑
N
MRFT
⁢
❘
"\[LeftBracketingBar]"
e
min
❘
"\[RightBracketingBar]"
2
⁢
N
MRFT
.

### Claim 15 (depends on 14)

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:
K
c
=
c
1
⁢
4
⁢
h
π
⁢
a
0
,
T
i
=
c
2
⁢
2
⁢
π
Ω
0
,
T
d
=
c
3
⁢
2
⁢
π
Ω
0
.

### Claim 16 (depends on 15)

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%.

### Claim 17 (depends on 15)

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
ξ
=
2
⁢
π
⁢
c
3
-
1
2
⁢
π
⁢
c
2
,
and (ϕm) is a desired phase margin;

### Claim 18 (depends on 11)

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%.
