Slide PE Control
Slide PE Control
1/48
Table of Contents
4 Numerical Simulations
2/48
Table of Contents
3/48
Section 1
Introduction of the flyback converter
Introduction of the flyback converter
(a) MCP1661 Flyback Converter Reference (b) Mobile charger circuit diagram
4/48
Section 2
Mathematical model of the flyback converter
Analysis and assumptions
Assumptions
RL = 0 and VD = 0, because RL and VD affect only static error in both transient state
and steady state. This error is small enough to be ignored.
RC
RC = 0. If, RC ̸= 0, subsystem RC C becomes a virtual capacitor C ′ = C +
R
5/48
Exact Model
d
L. iL = E
(1a)
dt
C . d u = −uC
(1b)
C
dt R
0 0 "1#
d iL iL Figure: Flyback converter state
= u + L E (2)
dt uC 1 C 0
0 −
RC
6/48
Exact Model
d
L. iL .n = −uC
(3a)
dt
C . d u = iL − uC
(3b)
C
dt n R
1
0 −
Ln iL
d iL
= (4) Figure: Flyback converter state
dt uC
1 1
uC
−
Cn RC
7/48
Exact Model
T
State vector q = iL uC . Exact model of the flyback converter with k states
k
d X d
q= qi hi (5)
dt dt
i=0
" #
1
" # ! 1 !
d 0 0 0 −
q= 1 q+ L E u+ 1
Ln q (1 − u)
(6)
dt 0 − 1
RC 0 −
Cn RC
1 1 1
" # !
d 0 − 0
q= 1 Ln q + Ln
q + L E u (7)
dt 1 1
− − 0 0
Cn RC Cn
8/48
Big signal parts model
9/48
Big signal parts model
Therefore,
1 −1 " d #
0 (d − 1)
qest = −
Ln L E (10)
1 −1
(1 − d) 0
Cn RC
Edn2
iLest 2
qest = = R(1 − d) (11)
dCest Edn
1−d
The relationship between input voltage and output voltage
do d
=n (12)
E 1−d
10/48
Small signal parts model
11/48
Small signal parts model
Reject the products of two small signals
d 1 1
L x̃1 = x2e d˜ − (1 − de )x̃2 + E d˜
(15a)
dt n n
C d x̃ = − 1 x d˜ + 1 (1 − d )x̃ − 1 x˜
(15b)
2 1e e 1 2
dt n n R
It can be written in matrix form follow as:
de − 1
1 E
0 x2e + L ˜
d x̃1 Ln x̃1
x̃
= 1 − de 1 x̃ + Ln−1 d (16)
dt 2 − 2
x1e
| Cn {z RC } | Cn{z }
A B
1 0 x̃1 0 ˜
y= + d (17)
0 1 x̃2 0
| {z } |{z}
C D
12/48
Small signal parts model
And transfers function can be found by the state-space matrices
de − 1 !−1 1
E
0 x +
1 0 1 0 Ln Ln 2e L 0
G= s − 1 − d + (19)
1 −1
0 1 0 1 e 0
− x1e
Cn RC Cn
13/48
Model Parameters
14/48
Simulation for models comparison
0.75
0.2
Current [A]
Inductor current of exact model
0.5 0.15 Inductor current of average model
0.1
0.25 2.5 2.6 2.7 2.8 2.9 3
10 -4
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4
-3
10
20 7.2
Voltage [V]
Figure: Simulation results of the exact model and the average model.
15/48
Simulation for models comparison
0.75
0.2
Current [A]
Inductor current of exact model
0.5 Inductor current of average model 0.15
0.1
0.25 1.2 1.4 1.6 1.8
10 -3
0
0 0.5 1 1.5 2 2.5
-3
9 10
20
Voltage [V]
Figure: Simulation results of the exact model and the average model when E decrease 15%.
16/48
Simulation for models comparison
0.25
0
0 0.5 1 1.5 2 2.5
-3
10
20
Voltage [V]
Figure: Simulation results of the exact model and the average model with high frequency disturbance.
17/48
Section 3
Controller Design for the flyback converter
Control Structures
_ Inductor Current
ref Pre-
Flyback model
processing _
Capacitor Voltage
Pole
Assignment
Luenberger
Observer
18/48
Control Structures
_ Inductor Current
ref Pre-
Flyback model
processing _
Capacitor Voltage
LQR controller
Kalman Observer
19/48
State-Space matrix and Transfer function
From equations (16) và (17), state-space model of flyback converter at equilibrium can be find
d iL i i
= A L + Bu; y =C L (21)
dt uC uC uC
where
T
0 −0.01069 0.386667 0
A= .105 ; B= .105 ; C= (22)
5.17258 −0.10752 −1.81065 1
and, from equation (20), transfer function from duty circle to output voltage is
6680101579724626105204736s − 737893565198799761236340780043
GuC = − (23)
4294967296(8589934592s 2 + 554189328516129s + 4749794634333150416)
20/48
Pole Assignment
Figure: Pole assignment control structure. Source: Prof. Nguyen Doan Phuoc
21/48
Pole Assignment
sT
−1 0
sT = B
S= ; AB .
sT A 1
(24)
22/48
Luenberger Observer
The observation matrix can be found similar to the pole assignment controller, by performing
pole assignment on the dual system
T
CT
A B A
G= → G′ = (29)
C D BT DT
Similar to the design of the pole assignment controller, the observation matrix is
T
L = 76261 389247 (30)
23/48
Luenberger Observer
Current [A]
Without Luenberger Observer
0.5 Luenberger Observer
0.25
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-3
10
Voltage [V]
24/48
Luenberger Observers
Current [A]
Without Luenberger Observer
0.5 Luenberger Observer
0.25
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-3
10
Voltage [V]
Figure: Simulation results of Luenberger observer under the influence of white noise.
25/48
LQR controller
u = ω − Klqr x (32)
The LQR controller is a state feedback controller, with the control signal u found to be satisfied
Z∞
1
J= x T Qx + u T Ru dt → min (33)
2
0
26/48
LQR controller
The first step to find the LQR controller is to find the solution P = P T > 0 of the Algebraic
Riccati Equation (ARE)
PA + AT P − PBR −1 B T P + Q = 0 (34)
Klqr = R −1 B T P (35)
27/48
Kalman Filter (Kalman Observer)
The Kalman observer is an optimal observer, designed similarly to the design of the LQR
controller for the dual system.
Cost function of the Kalman Filter
Z∞
1
JKalman = x T Nx x + u T Ny u dt → min (38)
2
0
where, x and u are the state and control variables of the dual system, respectively.
d
x = AT x + C T u (39)
dt
28/48
Kalman Filter (Kalman Observer)
Ny = 10−10
Nx = diag ( 1 30 ); (40)
29/48
Kalman Filter (Kalman Observer)
Current [A]
Without Kalman Observer
0.5 Kalman Observer
0.25
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-3
10
Voltage [V]
30/48
Kalman Filter (Kalman Observer)
Current [A]
Without Kalman Observer
0.5 Kalman Observer
0.25
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-3
10
Voltage [V]
Figure: Simulation results of Kalman observer under the influence of white noise.
31/48
Pre-process
Consider a stable, noise-free closed-loop system with a negative feedback. The system has a
static error of 0, i.e. e∞ = 0 if with w (t) = 1(t), and the open-system transfer function Gh (s)
has at least one pole at the origin.
Integrate the error between the reference and the output, then the transfer function of the
pre-process is
Kpre
Gpre (s) = ; Kpre = 50000 (43)
s
32/48
Section 4
Numerical Simulations
Numerical Simulation
0.5
Current [A]
0.25
0.2 PA
0.25 0.15 LQR
1 1.05 1.1
PID
10-3
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-3
10 10
Voltage [V]
PA
9.2
5 9
LQR
8.8 PID
1 1.05 1.1 Ref
0 10
-3
33/48
Numerical Simulation
PA
9.5
5 9
LQR
8.5 Observer of PA
1 1.02 1.04 1.06 Observer of LQR
0 10
-3
34/48
Numerical Simulation
n ∼ N (µ, σ 2 ) (44)
35/48
Numerical Simulation
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-3
10 10
Voltage [V]
PA
9.5
5 9
LQR
8.5 Ref
1 1.005 1.01
0 10
-3
Figure: Simulation of Controller without Observer under the influence of white noise
36/48
Numerical Simulation
PA
9.5
5 9
LQR
8.5 Observer of PA
1 1.005 1.01 1.015 1.02 Observer of LQR
0 10
-3
Figure: Simulation of Controller with Observer under the influence of white noise
37/48
Section 5
LQR Weight Matrices Analysis
LQR controller
u = ω − Klqr x (46)
The LQR controller is a state feedback controller, with the control signal u found to be satisfied
Z∞
1
J= x T Qx + u T Ru dt → min (47)
2
0
38/48
Q matrix
39/48
R matrix
40/48
Section 6
Model Predictive Control for the Flyback
Converter
Model Predictive Control: Theory
41/48
Model Predictive Control: Theory
where,
N
Xs +1 Nc
X
J(q, qr , d ) = Qe[k + i]2 + Rd[k + i]2 (cost function)
i=0 i=0
42/48
Model Predictive Control: Theory
Algorithm 1:
1. At step k, measurement state variables
2. Predict the next states based on the equation (8), with the input as the solution of the
previous step.
T
3. Solve equation (48) with constraint to find solution u ∗ = dk∗ dk+1∗
. . . dN∗c .
4. The control signal at step dk is d1k , the next to step k + 1 and repeat from 1.
43/48
Model Predictive Control: Theory
44/48
Model Predictive Control: Simulation
45/48
Model Predictive Control: Simulation
46/48
Model Predictive Control: Simulation
47/48
Acknowledgment
Model was verified in Raj, Akshatha S., et al. ”Modelling of flyback converter using state
space averaging technique.” 2015 IEEE International Conference on Electronics,
Computing and Communication Technologies (CONECCT). IEEE, 2015.
All script and simulation files (MATLAB R2021a) in:
Click here
Request for the older version: mailto: [email protected]
This slide was created by LATEX.
Open source: https://www.overleaf.com/read/tnqqrzpwnrsj
48/48
THANK YOU !