25
ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur Hasirci Clemson University, Electrical and Computer Engineering Department Spring 2013 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be presented in this lecture provides some additional design tools: (i) Nonlinear Damping, and (ii) A very simple model based observer design.

1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

Embed Size (px)

Citation preview

Page 1: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

1

This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train.

The control design procedure to be presented in this lecture provides some additional design tools: (i) Nonlinear Damping, and (ii) A very simple model based observer design.

Page 2: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

2

Before the design, I would like to remind that the experimental setup is ready to test. By using the guide posted at course website, please install the software set, make the required laptop configuration, and then go to Riggs 25 (passcode is 1495#).

At workstation 3, you will find the experimental setup. Connect the ethernet cable to your laptop (host computer), launch xPC Target Explorer, upload analog_loopback.mdl file, build it, and run the model.

As you remember, this mdl file sends a sin signal to the Quanser Q4 analog output port. If you see a sin wave at the target PC monitor, then all your installations are ok !

Page 3: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

3

Magnetic levitation (maglev) trains present a powerful alternative to land, air, and classical rail transportation systems. Because of the friction between wheel and rail, conventional trains have speed limitations, operate at high noise levels and require frequent maintenance. Maglev trains replace wheel by electromagnets and produce the propulsion force without any contact. This motivates researchers to investigate some novel maglev topologies to increase the ride quality and to decrease the cost of the overall system.

Page 4: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

4

• A novel topology for maglev systems was patented by Levi and Zabar. This system uses only one air-cored tubular linear induction motor to produce levitation, propulsion and guidance forces simultaneously .

• Specifically, we design, implement, test and control the newly proposed maglev system in this study. Main aim of the study is to prove that the experimental performance of this maglev system is satisfactory to use it in a commercial application.

Page 5: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

5

The motor has two main parts as in a classical rotary induction motor: the primary; which consists of the drive coils, and the secondary; which consists of an aluminum slit sleeve. Drive coils can be placed either on the track or onboard the vehicle. Fig. 1 shows the proposed maglev system with energization from the wayside, and Fig. 2 shows the other configuration of the proposed system with energization onboard the vehicle.

1 2 3 4

Fig. 1. Proposed maglev system with energization from the wayside.(1-vehicle, 2-drive coils, 3-aluminum sleeve, 4-support)

1 2 3 4

Fig. 2. Proposed maglev system with energization onboard the vehicle.(1-vehicle, 2-drive coils, 3-aluminum sleeve, 4-support)

Page 6: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

6

Mechatronics Forum Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Main Advantages:

• This new system produces levitation, propulsion and guidance forces simultaneously by using only one motor.

• It is not needed to control the levitation and guidance forces because the restoring force centers the moving part, as will be proved experimentally in the following.

Page 7: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013Mechatronics Forum Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Drive Coils Entire System Acceleration Sensor

Page 8: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

-2,00

-1,00

0,00

1,00

2,00

3,00

4,00

5,00

0 0,2 0,4 0,6 0,8 1 1,2 1,4

Time (s)

Acc

eler

atio

n (G

ee)

Propulsion

Levitation

Guidance

Page 9: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Page 10: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Page 11: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Page 12: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

State-Space Model

1 1

1 1

1

1

s m mqs qs dr qr qs

s r s r s r r s

s m mds ds qr dr ds

s r s r s r r s

mqr qr dr qs

r r

mdr dr qr ds

r r

fdr qs

R pL Li i V V

L T L L h L L T L

R pL Li i V V

L T L L h L L T L

Lp V i

T h T

Lp V i

T h T

KBV V i

M M

Lqr ds

Fi

M

where ids and iqs are stator current components on d and q-axis, λds and λqs depict rotor flux components on d and q-axis, V is linear velocity, Rs is stator resistance per phase, Ls and Lr represent stator and rotor inductances per phase, Lm is magnetizing inductance per phase, p denotes number of poles, h is pole pitch, σ depicts leakage coefficient, Tr is rotor time constant, Kf represents force constant, FL depicts load force, M is the total mass of the moving part, B denotes viscous friction coefficient, and finally, Vd and Vq are stator voltages on d and q-axis.

Page 13: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

To simplify the control design procedure, system dynamics given can be written in a more compact form as

1 1 1 2 4 5 3 3 4 1

2 1 2 2 3 5 3 4 4 2

3 1 3 2 1 3 4 5

4 1 4 2 2 3 3 5

5 1 5 2 1 4 2 3 3

x a x a x x a x a u

x a x a x x a x a u

x b x b x b x x

x b x b x b x x

x c x c x x x x c

Control problem can be defined as follow; drive the linear velocity x5 to a desired velocity profile x5d while the rotor flux components x3 and x4 are unmeasurable. It is assumed that all parameters related electrical and mechanical subsystems are known. To determine the performance of the controller to be designed, an error signal can be defined as

5 5 .de x x

Page 14: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Due to the states x3 and x4 (rotor flux components) are unmeasurable, let design a model based observer as

1 1 1 2 4 5 3 3 4 1

2 1 2 2 3 5 3 4 4 2

3 1 3 2 1 3 4 5

4 1 4 2 2 3 3 5

5 1 5 2 1 4 2 3 3

x a x a x x a x a u

x a x a x x a x a u

x b x b x b x x

x b x b x b x x

x c x c x x x x c

3 1 3 2 1 3 4 5

4 1 4 2 2 3 3 5

ˆ ˆ ˆ

ˆ ˆ ˆ

x b x b x b x x

x b x b x b x x

Observer

where and are the estimates of unmeasurable states, x3 and x4. Define the state estimation errors as

3x̂ 4x̂

3 3 3

4 4 4

ˆ

ˆ .

x x x

x x x

This implies the state estimation error system will be

3 1 3 3 4 5

4 1 4 3 3 5 .

x b x b x x

x b x b x x

Page 15: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

To show the stability of this observer, following Lyapunov function can be used:

2 23 4

1 1

2 2obsV x x 3 3 4 4

2 21 3 3 3 4 5 1 4 3 3 4 5

2 21 3 1 4

obsV x x x x

b x b x x x b x b x x x

b x b x

State estimation errors go to zero exponentially, and thus we can use estimated values of this unmeasurable states during the control design. ■

Page 16: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

By going back to the control design, we investigate the error system dynamics;

5 5

1 5 2 1 4 2 3 3 5

d

d

e x x

c x c x x x x c x

If x3 and x4 were available for measurement, one could choose the produced electromechanical force Fe=c2(x1x4-x2x3) as the virtual control input and initiate directly the backstepping procedure. Since these state variables are not measured but estimated, observer backstepping should be applied.

1 5 2 1 4 2 3 2 1 4 2 3 3 5ˆ ˆ de c x c x x x x c x x x x c x

1 5 2 1 4 2 3 2 1 4 2 3 3 5 1ˆ ˆ de c x c x x x x c x x x x c x

2 2 21 5 1 5 3 1 2 1 2e dK e x c x c d c x x e

Nonlinear Damping

Term

The nonlinear damping term defined as where d1 is the damping coefficient, will be used to damp the state estimation errors and while designing the control input signals.

2 2 21 2 1 2dN d c x x e

3x 4x

Page 17: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

In this step, a new error variable (a new coordinate) is defined as

1 1 2 1 4 2 3 1ˆ ˆ ˆez F c x x x x

Then the final expression for the error system dynamics will be

2 2 22 1 4 2 3 1 2 1 2 1ee K e c x x x x d c x x e z

By following the standard backstepping procedure, let’s backstep on z1. To reach the control input signals u1 and u2, dynamics of z1 must be investigated. Note that z1 is a function of and . By using the partial differentiation, the expression for z1 dynamics is obtained as

1 2 3 4 5ˆ ˆ, , , , , dx x x x e x 5x

1 1 4 1 2 4 2 3 4 3 5 4z a u a u x x

where are the factors of related signals which contain all measurable states and known parameters. For simplicity, their explicit expressions are written here due to their length. Then the feedback rule is

, {1,2,3,4,5}i i

2 21 4 1 2 4 2 1 1 3 2 4 5 1za u a u K z e d z

where d2 is the second damping coefficient and Kz1 is a control gain. If control inputs are designed as above, the final dynamics for z1 will be

2 21 1 1 4 3 5 4 2 4 5 1.zz K z e x x d z

Page 18: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

A very important subtask in meeting the control objective is to ensure a bounded rotor flux, i.e., rotor flux should be forced to track a bounded signal. Since x3 and x4 are not measurable, we replace them by their estimates and define a new error variable as

2 23 4ˆ ˆ dx x

where ψd is the desired flux. Investigating ε dynamics yields

2 31 3 4 2 1 3 2 4ˆ ˆ ˆ ˆ 2 2 db x x b x x x x

Once again, we have to choose a virtual control input. One should select the term as virtual control input, then add and subtract a second stabilizing function α2 to the right hand side of above equation as shown in the following.

2 1 3 2 4ˆ ˆ2b x x x x

2 31 3 4 2 1 3 2 4 2ˆ ˆ ˆ ˆ2 2 db x x b x x x x

2 32 1 3 4ˆ ˆ2 dK b x x

2 2 1 3 2 4 2ˆ ˆ2z b x x x x 2 .K z

Page 19: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

2 6 4 1 7 4 2 8 9 3 10 4z a u a u x x

2 26 4 1 7 4 2 2 2 8 3 9 10 2za u a u K z d z

2 22 2 2 9 3 10 4 3 9 10 2 .zz K z x x d z

By combining two expressions for control input signals, which are

2 26 4 1 7 4 2 2 2 8 3 9 10 2za u a u K z d z

2 21 4 1 2 4 2 1 1 3 2 4 5 1za u a u K z e d z

we can write the control input signal in vector matrix form as

1

1 21 1 1 3 2 4 5 1

6 72 2 2 8 3 9 10 24

1 z

z

u K z e d z

u K z d za

Page 20: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

1

1 21 1 1 3 2 4 5 1

6 72 2 2 8 3 9 10 24

1 z

z

u K z e d z

u K z d za

The designed control law is well defined if the matrix

1 2

6 7

D

is globally invertible.

Before presenting the stability analysis, let me remind the final dynamics of all error variables. We will need them to complete the stability analysis.

2 2 21 2 1 4 2 3 1 2 1 2

2 21 1 1 4 3 5 4 2 4 5 1

2

2 22 2 2 9 3 10 4 3 9 10 2

3 1 3 3 4 5

4 1 4 3 3 5

e

z

z

e K e z c x x x x d c x x e

z K z e x x d z

K z

z K z x x d z

x b x b x x

x b x b x x

Page 21: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

To show the stability of the overall system, let’s select the Lyapunov function as follows:

2 2 2 2 2 21 2 3 4

1 1 2 3

1 1 1 1 1

2 2V e z z x x

b d d d

Why do we add this term to the final Lyapunov function?

We already showed the exponential stability of the observation errors !!!

The answer is hidden in another characteristic behavior of the nonlinear systems: ------------- FINITE ESCAPE TIME --------------

Please see the following side note, which is a well-known demonstration of Finite Escape Time.

Page 22: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Consider the system2x x x

where is the observation error for unmeasurable state of the system, . Assume that we already showed the observation error goes to zero exponentially, i.e.,

( ) (0)exp t kt k R

Then the solution of the differential equation is

(0)(1 )( )

1 (0) (0) (0) (0)t kt

x kx t

k x e x e

which escape to infinity in a finite time, which is

1 (0) (0)ln for all (0) (0) (1 )

1 (0) (0) (1 )f

xt x k

k x k

Consequently, even though the observer is exponentially stable, the overall system might become unstable in nonlinear systems. This is the reason to put the observation errors into the final Lyapunov function, and also to use Nonlinear Damping terms in the

design, to damp the terms related observation errors. !!!!!! ■

Page 23: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Back to the stability analysis:

2 2 2 2 2 21 2 3 4

1 1 2 3

1 1 1 1 1

2 2V e z z x x

b d d d

2 2 2 2 2 21 1 2 2 3 4

1 2 3

2 2

1 4 2 1 1 3 2 21 1

2 2

2 3 4 1 2 4 5 12 2

2

3 3 9 2 3 4 9 23 3

3 1 1 1

4

1 1

2 2

1 1

2 2

1 1

2 2

e z zV K e K z K K z x xd d d

d x c ex d x c exd d

d x z d x zd d

d x z d x zd d

2

2 2 2 2 2 21 1 2 2 3 4

1 2 3

3 1 1 1

4e z zV K e K z K K z x xd d d

GAS of the E.P. is achieved.

Page 24: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

25 2 1 exp sin( ) m/sdx t t

0 2 4 6 8 10 12 14 16 18 200

0.5

1

1.5

2

2.5

3

3.5

4

Zaman (saniye)

Ref

eran

s H

ız (m

/s)

0 2 4 6 8 10 12 14 16 18 20

0.075

0.08

0.085

0.09

0.095

0.1

0.105

0.11

0.115

Zaman (saniye)

Hız

Tak

ip H

atas

ı (m

/s)

Tracking Error

Page 25: 1 This lecture presents Backstepping controller design for another industrial example, a magnetic levitation train. The control design procedure to be

ECE 893 Industrial Applications of Nonlinear Control Dr. Ugur HasirciClemson University, Electrical and Computer Engineering Department Spring 2013

Your guns before today

Backstepping

Your guns as of today

Backstepping Nonlinear Damping

You will have lots of guns at the end of the semester to control the systems in nature.