0% found this document useful (0 votes)
355 views15 pages

Control of Magnetic Levitation System

This document describes an experiment to design a control system for a magnetic levitation (MAGLEV) system that levitates a steel ball using an electromagnet. The objectives are to obtain a mathematical model of the MAGLEV system, linearize the model near an equilibrium point, design a state-feedback controller with integrator to track a desired trajectory, and add feed-forward control to bring the ball to the equilibrium point initially. Prerequisites for the experiment include modeling, linearization, state-space representation, control design concepts. Students must submit a pre-report answering questions about modeling and control design before conducting the experiment in MATLAB/Simulink.

Uploaded by

ordek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
355 views15 pages

Control of Magnetic Levitation System

This document describes an experiment to design a control system for a magnetic levitation (MAGLEV) system that levitates a steel ball using an electromagnet. The objectives are to obtain a mathematical model of the MAGLEV system, linearize the model near an equilibrium point, design a state-feedback controller with integrator to track a desired trajectory, and add feed-forward control to bring the ball to the equilibrium point initially. Prerequisites for the experiment include modeling, linearization, state-space representation, control design concepts. Students must submit a pre-report answering questions about modeling and control design before conducting the experiment in MATLAB/Simulink.

Uploaded by

ordek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

EXPERIMENT 5

CONTROL OF MAGNETIC LEVITATION SYSTEM

1. Objectives
Magnetic levitation (MAGLEV) system consists of the stabilization problem for a steel ball of
mass 𝑀𝑏 in a specific position 𝑥𝑏 under the gravitational and magnetic attraction forces. The
purpose of the MAGLEV experiment is to design a control system that levitates a solid steel
ball in air from the post using an electromagnet. The designed controller can then track the
ball position to a desired trajectory by providing the specified criteria. For this purpose, it is
required to obtain mathematical model of the system. Since the obtained model is not linear,
linearization process is required near an equilibrium point. After that it is expected to design a
state-feedback controller with integrator that provides desired performance. Besides, in order
to bring the steel ball to the equilibrium point, a feed-forward structure will be used and also
feed-forward gain will be calculated.

2. Prerequisites
• Modeling of electrical and mechanical systems
• Knowledge of linearization techniques
• State-space representation of dynamical systems
• Root-locus method
• Stability analysis in state-space
• State-feedback controller design
• Investigation of state-feedback controller with integrator
• Linearity, controllability, observability concepts

are prerequisites which are required to carry out the experiment successfully.

Each student should prepare a pre-report which is written in student’s own handwriting
and consists of the answers of following questions. It is required to deliver pre-reports to
the research assistant at least 1 day before the experiment. Students who did not prepare
a pre-report or prepared a poor report will not be able to attend the laboratory. Grade of
the pre-report must be at least 50/100 to attend the laboratory.
Pre-Report Questions:

1. What is the purpose of the experiment?

2. Figure 2 shows the representation of magnetic levitation system. Using this figure,
write the differential equation for the electrical sub-system and obtain the transfer
𝐼 (𝑠)
function 𝑇𝑒 (𝑠) = 𝑉𝑐 (𝑠) with the help of the Laplace Transform.
𝑐

3. Write the equation of motion for the magnetic levitation system in 𝑥𝑏̈ = 𝑓(𝑥𝑏 , 𝑖𝑐 )
format by applying Newton's 2nd law of motion (∑ 𝐹 = 𝑚𝑎) to the steel ball.

4. While the MAGLEV system is operating in an equilibrium point 𝑥𝑏0 (i.e. ∑ 𝐹 = 0)


express the coil current (𝑖𝑐0 ) in terms of 𝑥𝑏0 .

5. Linearize the resulting non-linear equation of motion (Question 3) for small


deviations (∆𝑥𝑏 , ∆𝑖𝑐 ) near the equilibrium point (𝑥𝑏0 , 𝑖𝑐0 ) using Taylor series
expansion and perform necessary simplifications.

6. Obtain the linear state space model of the MAGLEV system using the differential
equations related to electrical sub-system and motion of steel ball (Hint: Use ∆𝑥𝑏 ,
∆𝑥𝑏̇ and ∆𝑖𝑐 as state variables).

7. Calculate the eigenvalues of the matrix A. Is the system stable? Explain.

8. While the system is operating in an equilibrium point, response of the system to the
±1 mm square wave position reference is expected to provide performance criteria
given below. Calculate the state-feedback gain matrix (K) by using Ackermann
formula (Place the non-dominant pole of the system to the point of -200).
• Overshoot < 5%
• Settling Time < 2 seconds

9. What changes should be done in the classic state-feedback structure if the steady-
state error for the closed-loop system is expected to be 0? Draw the proposed block
diagram.

10. Calculate the feed-forward gain, which is added to the control system, by using the
formula (5.13).

NOTE: All system parameter are given in Table 2. However, value of the operating point
𝒙𝒃𝟎 should be taken as follows (Here 𝒏𝟎 is the last digit of the student number and 𝒏𝟏 is
the penultimate digit of the student number):

𝑥𝑏0 = 4,95 + 0,25 𝑛1 + 0,3 𝑛0 [𝑚𝑚]


3. Wiring and Hardware Setup
Figure 1 shows Quanser Magnetic Levitation System. Components of the MAGLEV system
are given in Table 1 and all parameters of the system are given in Table 2. Figure 2 shows the
representative diagram for the system. Reference [1] must be read to acquire more detailed
information about wiring and hardware setup.

Figure 1: Quanser MAGLEV Experiment Setup.

Table 1: Components of the system

1 MAGLEV overall enclosure 7 Position sensor offset potentiometer


2 Selenoid coil 8 Position sensor gain potentiometer
3 Coil steel core 9 Coil leads (4-Pin DIN connector)
Position sensor cable
4 Position sensor 10
(6-Pin Mini-DIN connector)
Current sensor cable
5 Solid steel ball 11
(6-Pin Mini-DIN connector)
6 Interior lights 12 Inside Chamber
Table 2: MAGLEV parameter list and their values

Parameter Value Unit Parameter Value Unit

Lc 412,5 mH Km 6,5308 x 10-5 N.m2/A2


Rc 10 Ω Mb 0,068 kg
Rs 1 Ω xb0 7 mm
g 9,81 m/s2

Figure 2: MAGLEV Representative Diagram.

In the laboratory, MATLAB and Mathematica software packages will be used during both of
the modeling, analysis and controller design phases. Control of the MAGLEV system will be
carried out through MATLAB–Simulink. In order to collect the current and position data from
the system and to send the control signal to the system, Q2-USB data acquisition card (Figure
3) will be used.

Figure 3: Q2-USB Data Acquisition Card.


Figure 4 shows necessary connections from the data acquisition terminal board and the power
amplifier to MAGLEV system. The procedure is summarized in Table 3.

Figure 4: General Connection Diagram for the Experiment.

Table 3: Detailed information about wiring

Number Definition
Control signal cable from the data acquisition card to the
1
amplifier
Power cable from the amplifier to the MAGLEV coil to
2
supply power to the coil
Cable from the amplifier to the data acquisition card to
3
transmit current and position data
Cable from the MAGLEV system to the amplifier to
4
transmit position data
Cable from the MAGLEV system to the amplifier to
5
transmit current data
4. Modeling of the System

In this section, it is aimed to obtain state-space model of the MAGLEV system. Taylor series
expansion will be used to linearize the system to be able to obtain linear model since the
system consists of the terms which are not linear.
Firstly, if the differential equation for the electrical sub-system is written, we get:

𝑉𝑐 = ………………… (4.1)

If the Newton's 2nd law of motion is applied to the steel ball which stands balanced in the air
under the gravitational and magnetic attraction, we get:

∑ 𝐹 = 𝑀𝑏 𝑎𝑏 (4.2)

𝐹𝑔 − 𝐹𝑚 = 𝑀𝑏 𝑥𝑏̈ (4.3)

Equations for the forces of gravity and magnetic attraction are given as follows.

𝐹𝑔 = 𝑀𝑏 𝑔 (4.4)

1 𝐾𝑚 𝐼𝑐2
𝐹𝑚 = (4.5)
2 𝑥𝑏2

If these expressions are substituted in equation (4.3), we obtain the following equation.

𝑥𝑏̈ = 𝑓(𝑥𝑏 , 𝐼𝑐 ) = ………………… (4.6)

As it is seen from the equation (4.6), magnetic levitation system has a nonlinear characteristic.
While the system is operating in an equilibrium point 𝑥𝑏0 , it is possible to calculate the coil
current 𝐼𝑐0 as follows.

∑ 𝐹 = (𝐹𝑔 − 𝐹𝑚 )|(𝑥𝑏0 , 𝐼𝑐0 ) = 0 (4.7)

𝐼𝑐0 = ………………… (4.8)


If the numeric values are used in the obtained equation, value of the coil current is calculated
as follows.

𝐼𝑐0 = …………… [A]

In order to obtain linear model of the system, equation (4.6) can be linearized by using Taylor
series expansion. Formula for the Taylor series expansion is given below.

𝜕 𝜕
𝑓(∆𝑥𝑏 , ∆𝐼𝑐 ) = 𝑓(𝑥𝑏0 , 𝐼𝑐0 ) + 𝑓(𝑥𝑏0 , 𝐼𝑐0 )∆𝑥𝑏 + 𝑓(𝑥𝑏0 , 𝐼𝑐0 )∆𝐼𝑐 (4.9)
𝜕𝑥𝑏 𝜕𝐼𝑐

If necessary expressions are substituted, we get:

𝑓(∆𝑥𝑏 , ∆𝐼𝑐 ) = ∆𝑥̈ 𝑏 = ………………… (4.10)

If the expression for 𝐼𝑐0 , which is found in (4.8), is substituted in the equation (4.10) and some
necessary simplifications are done, linearized expression for the equation of motion is
obtained as follows.

∆𝑥̈ 𝑏 = ………………… (4.11)

Lastly, state-space model of the system can be obtained using the differential equation for the
electrical sub-system and linearized equation of motion.
The standard state-space representation of a system given as follows.

𝒙̇ = 𝑨𝒙 + 𝑩𝒖
(4.12)
𝒚 = 𝑪𝒙 + 𝑫𝒖

Here, state variables can be chosen as deviation of the steel ball position (∆𝑥𝑏 ), deviation of
the steel ball velocity (∆𝑥𝑏̇ ) and deviation of the coil current (∆𝐼𝑐 ) for the state-space
representation of the system.

𝑥1 = ∆𝑥𝑏
𝑥2 = ∆𝑥̇ 𝑏
𝑥3 = ∆𝐼𝑐

Thus the state-space model is obtained as follows.


𝑥1̇ 𝑥1
(𝑥2̇ ) = (𝑥2 ) + 𝑉𝑐
𝑥3̇ 𝑥3
( ) ( )
(4.13)
𝑥1
𝑦= ( ) (𝑥2 )
𝑥3

If values of the system parameters are substituted in (4.13), we obtain the state-space model of
the system as below.

𝑥1̇ 𝑥1
(𝑥2̇ ) = (𝑥2 ) + 𝑉𝑐
𝑥3̇ 𝑥3
( ) ( )
(4.14)
𝑥1
𝑦= ( ) (𝑥2 )
𝑥3

5. Stability Analysis and Controller Design

5.1. Stability Analysis

It is possible to analyse system stability through the state-space model of the system. In order
to analyse a system, eigenvalues of the system matrix A (also means places of system poles in
s-domain) should be investigated. If real parts of the all eigenvalues are negative, then system
is said to be stable but if any of the eigenvalue has a positive real part, then system is said to
be unstable.
Eigenvalues of a matrix are expressed as 𝜆 values that provide the following equation.

|𝑨 − 𝜆𝑰| = 0 (5.1)

The system under consideration has 3 eigenvalues because the system order is also 3. If these
eigenvalues are calculated by MATLAB, we get:

𝝀𝟏 = …………………

𝝀𝟐 = …………………

𝝀𝟑 = …………………
After that it is possible to comment on the system stability with the help of the eigenvalues of
the system matrix.

5.2. State-Feedback Controller

Full state feedback or pole placement is a method employed in feedback control system
theory to place the closed-loop system poles in pre-determined locations. In this section, a
controller design will be performed to stabilize the system in a specified equilibrium point 𝑥𝑏0
and while the system is operating in this equilibrium point, to provide desired performance
criteria of response of the system to the ±1 mm square wave position reference.
State-feedback controller with integrator will be used as a controller. In the standard state-
feedback controller structure (Figure 5), all system poles (if all states of the system are
measurable) can be placed to the pre-determined locations which provide specified time-
domain criteria or if there exists states that cannot be measured but observable, by designing
an observer it is still possible to place system poles to the pre-determined locations.

Figure 5: Standard State-Feedback Controller Structure.

The problem in this structure is that steady-state error may be observed in the closed-loop. In
order to avoid this situation, a pre-gain can be used so that the system will settle to the given
reference. However, it is clear that this structure is not robust under parametric uncertainties
and disturbance effects.
It is possible to add an integrator to the state-feedback controller structure to resolve the
mentioned negativity and even under disturbance effects; steady-state error can be prevented.
Number of the state will increase one because of the integrator in the structure. Figure 6
shows the state-feedback controller structure with integrator.
Figure 6: State-Feedback Controller with Integrator

A new state (𝜀) is appeared because of the integrator added to the structure. Therefore, system
model should be reform. System model which consists of the state-feedback controller with
integrator can be obtained as follows (𝐷 = 0):

𝒙̇ = 𝑨𝒙 + 𝑩𝑢 (5.2)
𝜀̇ = 𝑒 = 𝑟 − 𝑦 = 𝑟 − 𝑪𝒙 (5.3)

In matrix form,

𝒙̇ 𝑨 𝟎 𝒙 𝑩 𝟎
( )=( )( ) + ( )𝑢 + ( )𝑟 (5.4)
𝜀̇ −𝑪 𝟎 𝜀 0 1

expression for the control signal,

𝑢 = −(𝑢𝑘 + 𝑢𝑣 ) = −(𝑲𝒙 + 𝜀𝑣) (5.5)

𝒙
𝑢 = −(𝑲 𝑣) ( 𝜀 ) (5.6)

and expression for the output,

𝒙
𝑦 = (𝑪 0) ( 𝜀 ) (5.7)

All these expressions can be shown in more regular form as below.

𝒙∗̇ = 𝑨∗ 𝒙∗ + 𝑩∗ 𝑢 + 𝑭𝑟
𝑦 = 𝑪∗ 𝒙∗ (5.8)
𝑢 = −𝑲∗ 𝒙∗
After that dominant system poles can be placed to the specified locations and so system is
controlled. In this experiment, state-feedback matrix (K) will be calculated by using
Ackermann formula as follows.

𝑲 = (0 0 0 … … 0 1) (𝑩 𝑨𝑩 𝑨𝟐 𝑩 … … 𝑨𝒏−𝟏 𝑩)−1 ∅(𝑨) (5.9)

Here, ∅ is a polynomial which consists of the desired closed-loop pole locations.


In order to obtain K* state-feedback matrix using MATLAB, following code segment can be
used.

Astar = [ ... ... ... ... ; ... ... ... ... ; ... ... ... ... ; ... ... ... ... ]; % A* matrix
Bstar = [ ... ; ... ; ... ; ... ]; % B* matrix
P = [ ... ; ... ; ... ; ... ]; % Desired closed-loop pole locations (4 poles)
Kstar = acker(Astar, Bstar, P); % Calculation of K* matrix
K = [Kstar(1) Kstar(2) Kstar(3)]; % State-feedback matrix
v = Kstar(4); % Integral gain

5.3. Controller Design


In this section, magnetic levitation system will be controlled by using the control method
presented earlier.
First of all, the new state variable (𝑥4 = 𝜀) should be added to the state-space model of the
system. In this case, the new model becomes:

𝑥1̇ 𝑥1
𝑥2̇ 𝑥2
( )= (𝑥 ) + 𝑉𝑐 + 𝑟
𝑥3̇ 3
𝑥4̇ 𝑥4
( ) ( ) ( )
(5.10)
𝑥1
𝑥2
𝑦= ( ) (𝑥 )
3
𝑥4

Ackermann formula will be used to calculate the K* gain matrix. For this purpose, it is
required to determine the closed-loop system poles.
While the system is operating in an equilibrium point, response of the system to the ±1 mm
square wave position reference is expected to provide performance criteria given below.
• Overshoot < 5%
• Settling Time < 2 seconds
To provide these criteria, closed-loop dominant and non-dominant poles can be placed to the
locations given below.

𝑠1,2 = …………………
(5.11)
𝑠3,4 = …………………

Please note that non-dominant system poles should be placed to the locations where at least
20 – 30 times away from the dominant system poles.
In this case, state-feedback matrix K* which is calculated by MATLAB is given as follows,

𝑲∗ = ( … … … … ) (5.12)

5.4. Calculation of the Feed-Forward Gain

Magnetic levitation system has a nonlinear characteristic and to be able to use linear control
methods, it is required to linearize the system near an equilibrium point. Consequently, it is
also required to operate the system near this equilibrium point so that performance of the
controller does not change much. Otherwise, the designed controller cannot work well or even
can cause the system to be unstable.
Since the steel ball is at the position of 𝑥𝑏 = 0 at the beginning, it is required to bring the steel
ball near the equilibrium point as soon as possible because of the reasons mentioned above.
Feed-forward structure is used to achieve this purpose. Reference signal (𝑥𝑏0 ) which is
applied to the system is multiplied by the feed-forward gain 𝐾𝑓𝑓 and this new signal is added
to the control signal. In this case, the steel ball is brought near the equilibrium point quickly
hence the system starts to operate in the expected region. Feed-forward gain is calculated by
using the following formula.

𝐼𝑐0
𝐾𝑓𝑓 = (𝑅 + 𝑅𝑠 ) (5.13)
𝑥𝑏0 𝑐

If parameter values are use, we calculate the gain as below.

𝐾𝑓𝑓 = .................... [V/m]

Figure 7 shows the state-feedback controller with integrator when the feed-forward structure
is also inserted to the block diagram in Figure 6.
Figure 7: General Block Diagram For the System and Controller Together.

In summary, the system is brought near the equilibrium point quickly with the feed-forward
gain and deviations of the system near this equilibrium point are controlled with the state-
feedback controller with integrator.

6. Real-Time Implementation
Figure 8 shows the Simulink environment to implement the designed state-feedback controller
to the physical system.

Figure 8: Simulink Environment for Real-Time Implementation.

As it can be seen from the figure, both of the feed-forward structure, integrator and state-
feedback are used to control the system.
First of all, reference tracking will be OFF at the beginning of the experiment. In this case, it
will be tried to bring the steel ball near equilibrium point and then to stabilize the steel ball
there. After that, reference tracking will be ON so that the steel ball will track the given
square wave reference. It will be observed if the reference tracking of steel ball provides the
specified criteria earlier. If the performance criteria for reference tracking do not match,
reasons will also be discussed.
o Is the system brought to the equilibrium point successfully? ....................
o Is the system stabilized at this point successfully? ....................
o Observed performance criteria for the ±1 mm deviations;
➢ Overshoot: ................ %
➢ Settling Time: ................ seconds

7. Conclusions
At the end of the experiment, it is expected that students have an idea of how to model
magnetic levitation system which has nonlinear characteristics. In addition, the dynamics of
this new state-space control method applied for the system under consideration is expected to
be comprehended and it is also expected students to carry out the idea about other control
methods which can be used for such systems.
In the experiment report, students must explain the operating principles of the system,
catalogue information of system elements and specify all the analytical analysis (formulas
contained preliminary report) in a detailed way. It is required to interpret the results obtained
in each step of the experiment. Furthermore, comparison of the real-time results and
simulation results should be made. It is also required to specify the changes so that the system
can provide the expected criteria.

8. Topics should be Included in Laboratory Report


✓ Purpose of the experiment and information about experiment setup.
✓ Dynamical equations and state-space model (A, B, C, D matrices) of the system will be
obtained. Stability analysis will be performed with the help of the state-space model.
✓ Control method used to control the system will be explained briefly.
✓ Block diagram which is given in Figure 6 will be created on MATLAB-Simulink and
step response of the system will be obtained (State-space matrices and state-feedback
gain values will be used same as values calculated in laboratory).
✓ Simulation results and real-time implementation results will be compared and also be
interpreted. If the results are not same, possible reasons will be discussed.
✓ All achieved data and especially figures in the experiment will be added to final report
regularly.
References:
1. MAGLEV User Manual, <http://web.itu.edu.tr/dincele/MAGLEV_User_Manual.pdf>.
2. Q2-USB User Manual, <http://web.itu.edu.tr/dincele/Q2USB_Manual.pdf>.
3. Ogata K., Modern Control Engineering, Prentice Hall, 4th ed., 2001.
4. Goodwin G. C., Graebe, S. F. & Slagado, M. E., Control System Design, Prentice
Hall, 2001.
5. Url-1, <http://en.wikipedia.org/wiki/State_space_representation>.
6. Url-2, <http://www.atp.ruhr-uni-bochum.de/rt1/syscontrol/node102.html>.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy