Advanced Digital Controls

Similar documents
Control System Design

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

CDS 101/110a: Lecture 8-1 Frequency Domain Design

D(s) G(s) A control system design definition

Stability of CL System

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10

AMME3500: System Dynamics & Control

FEEDBACK CONTROL SYSTEMS

Topic # Feedback Control. State-Space Systems Closed-loop control using estimators and regulators. Dynamics output feedback

Topic # Feedback Control Systems

Chapter 13 Digital Control

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

FREQUENCY-RESPONSE DESIGN

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Let the plant and controller be described as:-

Systems Analysis and Control

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

Frequency methods for the analysis of feedback systems. Lecture 6. Loop analysis of feedback systems. Nyquist approach to study stability

Digital Control Systems

Positioning Servo Design Example

DESIGN USING TRANSFORMATION TECHNIQUE CLASSICAL METHOD

6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0.

DIGITAL CONTROL OF POWER CONVERTERS. 3 Digital controller design

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

DIGITAL CONTROLLER DESIGN

Inverted Pendulum. Objectives

Chapter 2. Classical Control System Design. Dutch Institute of Systems and Control

Outline. Classical Control. Lecture 1

Control Systems I Lecture 10: System Specifications

Application of Neuro Fuzzy Reduced Order Observer in Magnetic Bearing Systems

Control of Single-Input Single-Output Systems

Lab 6a: Pole Placement for the Inverted Pendulum

Linear State Feedback Controller Design

Exercise 1 (A Non-minimum Phase System)

MAE 142 Homework #5 Due Friday, March 13, 2009

Chapter 9 Robust Stability in SISO Systems 9. Introduction There are many reasons to use feedback control. As we have seen earlier, with the help of a

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

Feedback design for the Buck Converter

CDS 101/110a: Lecture 10-1 Robust Performance

Controls Problems for Qualifying Exam - Spring 2014

STABILITY ANALYSIS TECHNIQUES

Exercise 1 (A Non-minimum Phase System)

THE REACTION WHEEL PENDULUM

ELECTRONICS & COMMUNICATIONS DEP. 3rd YEAR, 2010/2011 CONTROL ENGINEERING SHEET 5 Lead-Lag Compensation Techniques

x(t) = x(t h), x(t) 2 R ), where is the time delay, the transfer function for such a e s Figure 1: Simple Time Delay Block Diagram e i! =1 \e i!t =!

CYBER EXPLORATION LABORATORY EXPERIMENTS

Engraving Machine Example

Control Systems Design

EC CONTROL SYSTEM UNIT I- CONTROL SYSTEM MODELING

Exam. 135 minutes, 15 minutes reading time

IC6501 CONTROL SYSTEMS

ECEn 483 / ME 431 Case Studies. Randal W. Beard Brigham Young University

Table of Laplacetransform

CONTROL OF DIGITAL SYSTEMS

EECS C128/ ME C134 Final Wed. Dec. 15, am. Closed book. Two pages of formula sheets. No calculators.

Topic # Feedback Control Systems

Inverted Pendulum System

Laplace Transform Analysis of Signals and Systems

The loop shaping paradigm. Lecture 7. Loop analysis of feedback systems (2) Essential specifications (2)

UNIVERSITY OF WASHINGTON Department of Aeronautics and Astronautics

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Lecture 5 Classical Control Overview III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Autonomous Mobile Robot Design

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

EL 625 Lecture 10. Pole Placement and Observer Design. ẋ = Ax (1)

Chapter 7. Digital Control Systems

MEM 355 Performance Enhancement of Dynamical Systems

Inverted Pendulum: State-Space Methods for Controller Design

State Feedback Controller for Position Control of a Flexible Link

Feedback Control of Linear SISO systems. Process Dynamics and Control

ECE 486 Control Systems

Control Systems. Design of State Feedback Control.

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

(b) A unity feedback system is characterized by the transfer function. Design a suitable compensator to meet the following specifications:

Andrea Zanchettin Automatic Control AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Linear systems (frequency domain)


INTRODUCTION TO DIGITAL CONTROL

Acceleration Feedback

] [ 200. ] 3 [ 10 4 s. [ ] s + 10 [ P = s [ 10 8 ] 3. s s (s 1)(s 2) series compensator ] 2. s command pre-filter [ 0.

Systems Analysis and Control

Collocated versus non-collocated control [H04Q7]

Internal Model Principle

Control Systems! Copyright 2017 by Robert Stengel. All rights reserved. For educational use only.

Robust Control. 2nd class. Spring, 2018 Instructor: Prof. Masayuki Fujita (S5-303B) Tue., 17th April, 2018, 10:45~12:15, S423 Lecture Room

Mechatronic System Case Study: Rotary Inverted Pendulum Dynamic System Investigation

Problem Set 4 Solution 1

Analysis of SISO Control Loops

ESE319 Introduction to Microelectronics. Feedback Basics

Introduction to Feedback Control

MEM 355 Performance Enhancement of Dynamical Systems

1 An Overview and Brief History of Feedback Control 1. 2 Dynamic Models 23. Contents. Preface. xiii

Chapter 9: Controller design

Intro to Frequency Domain Design

Prüfung Regelungstechnik I (Control Systems I) Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Root Locus

Fall 線性系統 Linear Systems. Chapter 08 State Feedback & State Estimators (SISO) Feng-Li Lian. NTU-EE Sep07 Jan08

Classify a transfer function to see which order or ramp it can follow and with which expected error.

Chapter Stability Robustness Introduction Last chapter showed how the Nyquist stability criterion provides conditions for the stability robustness of

EECS C128/ ME C134 Final Wed. Dec. 14, am. Closed book. One page, 2 sides of formula sheets. No calculators.

Transcription:

Advanced Digital Controls University of California, Los Angeles Department of Mechanical and Aerospace Engineering Report Author David Luong Winter 8

Table of Contents Abstract 4 Introduction..5 Physical Plant Description System Connection..6 System Identification Analytical Modeling 7 State Space Representation... Transfer Function Form. Plant Decoupling Experimental Modeling using Digital Signal Analyzer.4 Frequency Characterization...5 System Isolation.5 System Decoupling 6 Curve Fitting..7 Analytical and Experimental Comparison.8 Controller Designs. Methodology.. Internal Model Principle Robust Stability Analysis Framework... Selection of Sampling Time..6 Direct and Indirect Lead-Lag Controller...7 Design Continuous-. 7 Discrete-..3 Sensitivity and Complementary Sensitivity Analysis 34 Robust Stability Analysis...35 Simulation..36 Implementation..39 Sinusoidal Reference Tracking..4 State Estimation Feedback.4 Formulation 4 Design 47 Sensitivity and Complementary Sensitivity Analysis 49 Robust Stability Analysis...5 Simulation..5 Implementation..53 Summary 54 Professor T.C. Tsao Page 3//8

Pole Placement and Model Matching (RST) Design.55 Formulation 55 Design 57 Sensitivity and Complementary Sensitivity Analysis 59 Robust Stability Analysis...6 Simulation..63 Implementation..66 Summary 68 H and H Norm 69 Formulation 69 Design 7 Sensitivity and Complementary Sensitivity Analysis 7 Robust Stability Analysis...73 Simulation..74 Implementation..75 Summary 76 Zero-Phase Feed-forward Error Tracking..77 Formulation 77 Design 79 Sensitivity and Complementary Sensitivity Analysis 79 Robust Stability Analysis...79 Simulation..8 Implementation..8 Summary 84 Repetitive Control..85 Formulation 85 Design 88 Robust Stability Analysis...89 Simulation..9 Implementation..9 Summary 94 Appendix 95 MATLAB m-files..95 system_id...96 lead_lag_design 4 state_feedback_observer_full.. state_feedback_observer_integrator_full. modelmatch..5 dioph RST.. Youla_example.. HModelMatching...5 designzerophase..6 zerophase.8 designrepcontrol 9 Augmented State Observer Feedback Loop Gain Derivation..3 Professor T.C. Tsao Page 3 3//8

ABSTRACT Figure : Magnetic Bearing MBC 5 This report explores various digital controller designs on a magnetic bearing system. Models of the translational and rotational dynamics in the y-direction are obtained analytically and validated against experimental frequency response data. The report illustrates the theory, design, and implementation of several digital controllers with considerations given to stability, robustness, performance, and reference tracking of step and periodic external signals. The framework of this report starts with an understanding of the magnetic bearing system from a dynamics point of view. With a model of the system in hand, the controllers were motivated and theorized, designed in MATLAB and Simulink environments, and implemented on a xpc setup connected to the MBC5. From considerations beginning with the classical lead-lag compensator to more modern control designs in repetitive control, the reader should note the improvements, as well as the tradeoffs, as the methodologies progress. The MATLAB m-files used to conduct analysis and simulations are included in the Appendix. A description of their function appears on the first page in that section. Professor T.C. Tsao Page 4 3//8

INTRODUCTION Physical Plant The magnetic bearing is a shaft suspended by 4 electromagnetic actuators, two on each end. The actuators are oriented in the horizontal x and vertical directions y. There are four Hall Effect sensors placed in a similar manner. The manufacturer provides an optional analog controller programmed to stabilize the plant. In identifying the plant, these controllers are turned on by loop switches on the left. Twelve user defined signals exist on the MBC5. For each electromagnet and Hall Effect sensor combination are three signals: input reference r, control voltage u, and position voltage y. Figure X highlights the I/O configuration. Figure : Inputs and Outputs to the Magnetic Bearing Professor T.C. Tsao Page 5 3//8

System Connection The connection layouts of the coupled and decoupled magnetic bearing system are given in Figures and 3, respectively. Figure : Bearing System seen by Controller Cx x and y directions coupled Figure 3: Bearing System seen by Controller Cx x and y directions decoupled Professor T.C. Tsao Page 6 3//8

ANALYTICAL MODELING The modeling of the magnetic bearing is performed separately on the plant and the controller. The signal flow for the plant is D/A Voltage Amplifier Current Electromagnets Force Mechanical Dynamics Motion Sensor Voltage A/D And the signal flow for the controller is A/D Control D/A A mathematical description of the system is next needed to determine its dynamics. The forces and measurements are shown in Figures and. Figure : MBC5 System Configuration Figure : Rotor Configuration The rigid body dynamics are investigated assuming the shaft does not rotate. This allows for the decoupling of the x and y system states, and their individual input/output descriptions. The table below describes the symbols used and their descriptions. Note that the analysis is exactly the same for the y-direction dynamics. Professor T.C. Tsao Page 7 3//8

Symbol Description x The horizontal displacement of the center of the rotor s mass. x, x The horizontal displacements of the rotor at the left and right bearing positions, respectively. X, X The horizontal displacements of the rotor at left and right Hall Effect sensor positions, respectively. θ The angles that the long axis of the rotor makes with the z-axis. F, F The forces exerted on the rotor by left and right bearings, respectively. Table : Modeling Definitions The equations of motions governing the magnetic bearing system are given as F = mx = F + F M = I θ = F ( l d)cos θ F( l+ d)cosθ x x l d x x l d X x l d X x l d L L L = ( L = + ( + L = ( L = + ( + )sinθ )sinθ )sinθ )sinθ The set of equations can be compactly represented in state-space form. Applying the small angle approximationssin θ θ,cosθ to linearize the system, we get x x x x m m F = + θ θ F L L θ θ I ( l+ d) I ( l d) x L X ( l d) x = L X ( l d) + θ θ The equation for the magnetic forces can be described by ( icontrol +.5) ( i.5) i Fi = k k ( x.4) ( +.4) i controli xi Since we assume small displacements in these forces, we can linearize the above equation about its equilibrium point ( xi, i control i ) = (,). The Taylor series approximation at this point is Professor T.C. Tsao Page 8 3//8

with F i F i Fi( xi, ic_ i) = Fi(,) + (,) ( xi ) + (,) ( ic_ i ) xi ic_ i F ( ic_ i+.5) ( ic_ i.5) i Fi = k 4375 3 3 = x i ( xi.4) ( xi.4) + xi (,) F ( i +.5) ( i.5) F = k = 3.5 i x x + i i c_ i c_ i i c_ i ( i.4) ( i.4) c_ i (,) Thus, the linearized magnetic force is F = 4375x + 3.5i i i c_ i With the small angle approximation of x = x ( l d)sin θ x ( l d) θ L L x = x + ( l+ d)sin θ x ( l+ d) θ L L the solution of the magnetic forces is F = 4375x 4375( l d) θ + 3.5i L c_ i F = 4375x + 4375( l+ d) θ + 3.5i L c_ i The state-space representation can now be written as 4375 4375( l d) x x x L m m r = r + L r 4375 4375( l d) + L L I ( l+ d) I ( l d) 3.5 i + m m c_ 3.5 ic _ L L ( l d) ( l+ d) I I 875 3.5 3.5 m m m i c _ x r = x r + i c _ 875( L + l d) 3.5 L 3.5 L I ( l d) I ( l+ d) I L X ( l d) x L r X = ( l + d) Professor T.C. Tsao Page 9 3//8

Current Amplifier Dynamics The setup includes a dual-channel current amplifier that is governed by the following differential equation: Sensor Dynamics d.5 ( i ) = i + V dt.x.x controli 4 controli 4 controli The relationship between the sense voltage and the horizontal displacements of the rotor at the Hall Effect sensors is given by V = 5 X + (5x ) X 9 3 sensei i i Linearizing with the Taylor approximation at the point X i =, the above equation becomes With Vsense i Vsense ( X ) () () i i = Vsense + X i i X i ( ) V sensei X i V = + = ( x ) 9 sensei 5 3 5 Xi 5 Xi () the solution becomes V sensei = 5X i The state space representation remains the same with modification to the output equation. V L l d xr sense = 5 Vsense L l + d Professor T.C. Tsao Page 3//8

The overall state space representation is 875 3.5 3.5 m m m Vc _ x 875 L r = ( + d ) x 3.5 3.5 r + L L ( ) ( ) V I _ I l d I l+ d c.5 4 4.x.x.5 4 4.x.x ( ) Vsense L 5 l d = x L ( ) r Vsense l + d where our new state vector is x x Θ xr = Θ i c ic Transfer Function Representation The state space model reveals that the system is multiple-input multiple-output (MIMO) in nature. Thus, there exist transfer functions from each input to each output, totaling four in our model. The input-output relationships can be summarized compactly in matrix form as Vsense G G Vc _ = V V sense G _ G c To write the transfer functions, we need values for the physical constants defined in the model. The system parameters are summarized in the table below. L.46 meters Total shaft length l.4 meters Distance from magnet to end l.8 meters Distance from Hall sensor to end 4 I.53x kg m Moment of Inertia M.47 kg Mass d ~ meters Center of Mass Displacement Table : System Parameter Values Professor T.C. Tsao Page 3//8

With these parameter values, the corresponding state space representation is then 875 3.5 3.5 m m m Vc _ x 875 L r = ( ) x 3.5 3.5 r + L L ( ) ( ) V I _ I l I l c.5 4 4.x. x.5 4 4.x.x ( ) Vsense L V 5 l d = x L sens ( ) r e l + d The Bode plots of the four transfer functions are plotted in Figure 3 using the sstf command in MATLAB. 5 G 5 G magnitude -5 - magnitude -5 - magnitude -5 4 frequency G 5-5 - magnitude -5 4 frequency G 5-5 - -5 4 frequency -5 4 frequency Figure 3: Frequency Response of Analytical Model The figure indicates coupling of translation and rotation since the off-diagonal terms are non-zero. Physically, this means a displacement on one end of the shaft (recorded as a voltage) will send voltages to both sensors. Physically, this makes sense since applying a force to one end will move both ends, with the resulting motion being a composition of translation and rotation. This complicates control design because this is a MIMO system. Finding a way to reduce the system to a SISO one is desirable. Plant Decoupling We can simplify control design by noting that the translational and rotational dynamics can be decoupled. By defining our inputs appropriately, we can achieve this. Consider applying equal forces in the same direction to both ends of the shaft. The resulting motion is purely translational since the shaft will only displace vertically. By applying the forces on both ends in opposite directions, the shaft will rotate about its center of mass. Mathematically, we need to apply a transformation the model such that the input and output variables are voltages that affect translation and rotation instead of tip displacement. Professor T.C. Tsao Page 3//8

Vc_, t Vc_ V = V c_, θ c_ Vsense, t Vsense = V V sense, θ sense where t andθ denote translation and rotation, respectively. Defining the transformation matrix T as T = we get the following: V G () s G () s V sense c _ T = T T T V sense _ G () s G () s V c Vsense, t G() s G () s V c_, t = T T V sense _,, G() s G() s V θ c θ where our transformed plant is G() s G() s G () s G () s G = T T G() s G() s = G () s G () s We expect this new plant to be decoupled i.e. the off-diagonal elements are zero. Figure X plots the transfer function elements of this matrix. Note that the magnitudes of the off-diagonal transfer functions are much smaller than those on the diagonal. This indicates the system has been decoupled and can perform control design on two SISO systems instead of a MIMO one. The transformation of our state-space that achieves this is x ˆr = Tx r where our state transformation matrix T is T = Professor T.C. Tsao Page 3 3//8

Our new state vector is xˆ r x x ic + i c = Θ Θ ic i c Intuitively, this makes physical sense since the same current-induced force in the same direction applied to both shaft purely translates the shaft, while in the opposite direction rotates it. The resulting A matrix is block diagonal with the translational transfer function on the (,) block and rotational on the (,) block. 5 Gd 5 Gd magnitude -5 - magnitude -5 - magnitude -5 4 frequency Gd 5-5 - magnitude -5 4 frequency Gd 5-5 - -5 4 frequency -5 4 frequency Figure 4: Frequency Response of Decoupled Analytical Model The analytical transfer functions for the translation and rotation models are provided later in the report after we examine the experimental modeling of the plant. Experimental Modeling Using Digital Signal Analyzer The following series of steps are used to identify the MBC5 magnetic bearing system:. Frequency Characterization with the Digital Signal Analyzer (DSA). System Isolation 3. Decoupling 4. Frequency Curve Fit for Decoupled System Model simulation was used to verify the accuracy of the models. Professor T.C. Tsao Page 4 3//8

Frequency Characterization The coupling between the horizontal and vertical directions is ignored in the characterization. When the characterization is performed between directions, the signal is very small. However, the positions are extremely coupled when taken in the same direction. The x system must be considered as a whole. For simplicity, the analysis will consider only one direction, and can be repeated for the other. The control signal u cannot be directly controlled, so we circumvent this fact by finding the transfer function between r and u in addition to r to y. Using the DSA, we refer to transfer functions as Tru andt ry, respectively. Classical linear feedback control theory tells us that ru ( ) T = I + CG ( ) Try = + CG G With all the combinations between sides, eight frequency responses are obtained Tru witht ry Tru witht ry TruwithT ry TruwithT ry System Isolation We know that Y = T R ry U = T R ru Combining the two, we get Y = T T U ry ru The system plant from input u to output y is then defined as G G G Try Try Tru Tru = G G = T ry T = ry Tru T ru The experimental frequency responses for the elements of G are shown in Figures 5 Professor T.C. Tsao Page 5 3//8

Gy Gy Magnitude (db) - -4 Magnitude (db) - -4-6 -6 4 6 8 Frequency (Hz) Gy -8 4 6 8 Frequency (Hz) Gy 5 Magnitude (db) - -4-6 Magnitude (db) -5-8 4 6 8 Frequency (Hz) - 4 6 8 Frequency (Hz) Figure 5: Frequency Response of Physical System Decoupling Because the system outputs due to rotation and translation inputs are independent of each other, we can simplify our model. We are allowed to decouple the system using a transition matrix T The transformation is T = Gd = TGT = TGT with the off-diagonals representing the transfer functions between a translational/rotational input and rotational/translational output. Ideally, these are zero, but in practice they are close to zero and several orders of magnitude smaller as shown in Figures 6. 5 Gdy Gdy Magnitude (db) -5 Magnitude (db) - -4-6 - 4 6 8 Frequency (Hz) Gdy -8 4 6 8 Frequency (Hz) Gdy Magnitude (db) -5 Magnitude (db) - -4-4 6 8 Frequency (Hz) -6 4 6 8 Frequency (Hz) Figure 6: Frequency Responses of Decoupled Physical System Professor T.C. Tsao Page 6 3//8

Curve Fitting We use MATLAB S curve fitting function invfreq to find a fit to the experimental frequency response. The weighting functions used was Wt = (f<)*.5 + (f<)*.5+e-9; The obtained fits for the translation and rotation models are plotted in Figure X. The transfer functions are also provided. Gyd raw fit magnitude - - -3-4 3 4 frequency Figure 7: Fit and Experimental Frequency Response, Translation G y, translation ( s 588)( s+ 39) = 75.356 ( s+ 488)( s+ 4)( s 377.) Gyd raw fit magnitude - - -3 3 4 frequency Figure 8: Fit and Experimental Frequency Response, Rotation G y, rotation ( s 495)( s+ 5) = 6.6438 ( s+ 396)( s+ 46.5)( s 435.3) The fits were assumed to have three poles to match with our analytical models poles. Note the existence of one two open-loop stable poles and one unstable pole. Although the analytical model does not have zeros, we decided to include some in the experimental Professor T.C. Tsao Page 7 3//8

model to increase the goodness of fit. We will use the experimental models to design controllers. Comparison of Analytical Model to Experimental and Curve Fit Figure 9 and compare the system magnitude and phase of our three methods used to characterize the dynamics. The shapes of the analytical plots compare well with the experimental ones, suggesting that our model fits our physical system reasonably well. The accuracy applies especially well at the frequencies below 5 Hz for both magnitude and phase. However, the gain of 5, in the sensor dynamics was modified to shrink the magnitude gap; increasing it to, provided a better match. 5 System ID of Gyd Magnitude -5 Phase [rad] - 3 4 5 - Experimental Curve Fit Analytical rad/s - 3 4 5 rad/s Figure 9: System Identification of G y, translation 5 System ID of Gyd Magnitude -5 Phase [rad] - - 3 4 5 Experimental Curve Fit Analytical rad/s - 3 4 5 rad/s Figure : System Identification of G y, rotation Professor T.C. Tsao Page 8 3//8

The analytical transfer functions are G ya, translation 8 6.689x = ( s+ 4545)( s+ 47.6)( s 47.6) G ya, rotation 9.98x = ( s+ 4545)( s+ 88.)( s 88.) Thus, we expect the decoupled system for pure translational and rotational dynamics to have third order transfer functions. Comparing to the curve fit transfer functions, the system order matches with exactly one unstable and two unstable poles. However, the analytical model lacks any zeros while the curve fit suggests there are two. All in all, the model gives a fair amount of confidence that it captures a majority of the plant dynamics. Professor T.C. Tsao Page 9 3//8

CONTROLLER DESIGNS As a class, we will use the transfer functions of the translation and rotational of the plant in the y direction G 5 9 68.s +.843 s+.553 () s = s + 475s 4.4 6.537 d, translation 3 4 8 G 5 9 589.6s + 5.7 s+.454 () s = s + 456s.44 7.69 d, rotation 3 4 8 instead of the ones obtained in the analytical modeling and curve fit. They are both open loop unstable due to poles in the right half complex plane. It turns out that the transfer functions were very similar in form for the x-direction. Methodology Step : (G(s),C(s)) For each controller presented in this report, we design based on the low-order models for its simplicity. Step : (Gzoh(z),C(z)) We map the controller, if necessary, and the model of the plant into the z-domain for digital implementation via a zero-order hold function and a specified sampling. Step 3: (Gactual,zoh(z), C(z): Simulation We expect the designed controller will stabilize the plant. Before implementing the controller, we run simulations on a higher order plant model to reduce the possibility for unstable compensation. For this, we use a th order model of the original (coupled) plant that we decouple as necessary to implement the translation and rotation controllers. Step 4: (Gactual(s) C(z)): Implementation We implement the controllers to the actual system, and compare the experimental results to the simulated ones for verification. Professor T.C. Tsao Page 3//8

Internal Model Principle In controller design, it is often desired to achieve rejection to external inputs to the system. In other words, we desire asymptotic regulation (zero-steady state). This is achieved by inserting the dynamics of the external signal in the feedback path between the external input signal and the regulated output signal. This method assumes that the dynamics of the external signal are known with arbitrary initial conditions. Mathematically, we want the signal dynamics to appear in the numerator of the controller compensated system such that when the known input is applied, we have cancellation of those dynamics. This is the Internal Model Principle (IMP). Consider the control diagram in Figure. Figure : Typical Block Diagram of Feedback Compensated System IMP applies to the following transfer functions but does not to the following: y y e e e,,,, d d r d d o i i o y y u u u u,,,,, r n r d d n In our exploration of controllers, we will apply IMP to eliminate steady-state error in reference tracking to step and sinusoidal signals. The dynamics of these signals are Step Signals : b d( k) = z Sinusoidal Signals : Bz ( ) d( k) = z cos( ωts ) z+ Periodic Signals : Bz ( ) d( k) = Np z i o Professor T.C. Tsao Page 3//8

Robust Stability Analysis Framework Typically, we analyze gain and phase margins of compensated systems to determine their proximity to instability. Bode plots of the open-loop gains are often plotted and looked at. Recall that those plots contain information from Nyquist plots. A generic Nyquist plot is shown in Figure. Figure : Stability Margins on Nyquist Plot If we define a radius ρ around the -+j point, the required gain margin for stability can be formulated as where GM ρ + ρ ρ = min L ( ) = min L+ ω ω This can also be written as = max = max S = ρ ω L + ω S where S is the sensitivity transfer function. The phase margin can be computed by using the law of cosines with the side opposite the angle of interest having length ρ and the others having length. ρ θ cos bc Thus, we have a relationship between phase and gain margin to the closed-loop infinity norm of the sensitivity function. Professor T.C. Tsao Page 3//8

Another way to formulate robust stability is to consider the feedback diagram shown in Figure. Figure : Robust Stability Model We represent the plant transfer function by the nominal modelĝ we derived before and some unmodelled dynamics,δ. G = G ˆ + δ where ( ) G Gˆ δ ( ω) = Gˆ By the Small Gain Theorem, the closed-loop system is stable if. feedback ( GC) ˆ, is stable andδ is stable.. Tˆ δ < ω This is only a sufficient condition for stability. Also note that if G has unstable poles, thenĝ should have them too. Otherwise,δ will be unstable. Professor T.C. Tsao Page 3 3//8

Now let s define a weighting filter for robustness such that. Wr δ, Wr is stable. denotes all stable transfer functions such that ω The robustness model in Figure X now reduces to the ones in Figure 3. Figure 3: Reduced Robustness Model This system is robustly stable if and only if TW ˆ r < This is both a sufficient and necessary condition for stability to any arbitrary phase distortion based on the closed-loop transfer function. We find the Wr and Wr for the translation and rotation models by upper-bounding theδ ( ω) andδ ( ω ). The actual plant is treated as the frequency response data obtained from the DSA, and the nominal models are the frequency data from the 3 rd order models we curve fitted. 3 Wr 3 Wr delta Wr delta Wr magnitude - - magnitude - - -3-3 -4-4 -5-5 -6-6 3 4 frequency Figure 4: Experimental Wr -7 3 4 frequency Professor T.C. Tsao Page 4 3//8

The transfer functions of the Wr s are Wr = 5 ( s+ )( s+ 8) 3 4 Wr = 4 s + ( s+ 5)( s+ ) 4 4 s + We will design the controller C based onĝ such that+ GC ˆ = is stable, i.e. ˆ ˆ PC T = + PC ˆ is stable. Together with Wr, we are able to determine the stability robustness of each controller design. An important remark of this result is we desire the magnitude of ˆ T small for more robust stability. However, that would cause S to become larger and affect performance by decreasing the gain and phase margins. Thus, there is a tradeoff between robust stability and performance. At the expense of ensuring the compensated system is stable given modeling errors of the plant, performance is sacrificed. Professor T.C. Tsao Page 5 3//8

Selection of Sampling Time Since we will implement controllers digitally, we will need to consider the significance of our choice of sampling, T s. For small sampling s, the system becomes susceptible to round-off errors, reducing the accuracy of signals and precision for poles and zeros. And too high a sampling uses much of the system s computing resources without significant gain in performance. To understand the choice of sampling, the continuous plant is modeled as shown in Figure with zero-order hold block and a sampler. Figure : Discretization of Plant The zero-order hold is mathematically represented and approximated as sts e T s s s e Depending on the value oft s, this phase correction affects the gain cross over frequency, and therefore changes the system s phase margin. Typically, we desired this change between 5 and 5 degrees. 8 T ωc 5 5 π Tωc.5.5 ( fc π ) fs fs 4 f c Thus, for a 5 degree reduction in the phase margin, we choose a sampling frequency of at least 4 s larger than the gain cross over frequency. For the magnetic bearing, the gain crossover frequency is at5 degrees. A sampling frequency of 5 Hz meets this condition for small phase margin reduction. Professor T.C. Tsao Page 6 3//8

CONTINUOUS-TIME (INDIRECT) DESIGN OF LEAD-LAG COMPENSATOR A lead- lag controller in a negative feedback scheme is considered to stabilize the closed loop step response and minimize its steady-state error. This will be designed using the root locus method using MATLAB s rlocus and sisotool commands. We consider the translational model in this controller design, and later find out that this will also stabilize the rotational model. Root Locus 5 Root Locus Editor for Open Loop (OL) 5 5 Imaginary Axis 5-5 Imag Axis 5-5 - - -5-5 - - -4-3 - - 3 4 Real Axis -5-5 -4-3 - - 3 4 5 Real Axis (a) (b) Figure : Root Locus of (a) Uncompensated System and (b) Lead-Lag Compensated System Root Locus Editor for Open Loop (OL) 3 Imag Axis - - -3 - -5 5 Real Axis Figure : Zoomed-in Root Locus of Lead-Lag Compensated The poles and zeros of the lead controllers were first selected at strategic locations along the real axis such that the poles would breakaway and head towards zero while remaining in the left half plane as the gain increased. The pole/zero placements for this controller have implications to the transient characteristics of the system s step response. The real LTI viewer allows for an on-the-fly observation as the placements were tweaked. Professor T.C. Tsao Page 7 3//8

To improve steady-state error of the type system, a lag compensation was employed. Because the uncompensated (and compensated) system is type, it will have a steadystate error. The pole was chosen at, so it functions like an integrator to eliminate steady-state error, and the zero was chosen close to the pole have a small effect on the DC gain. Lastly, the compensator gain is adjusted by moving the poles along the root locus. This was performed with consideration to the following characteristics of the step response. Peak Amplitude Rise Time Settling Time The transfer function of the designed controller is ( +.8 s)( +.86 s) Cs ( ) = 6.89 s( +.8 s) The open loop and the closed loop lead-lag compensated step responses are shown in Figure 3. 6 x 6 Step Response 6 Step Response 5 5 4 4 Amplitude 3 Amplitude 3 -.5..5..5.3.35.4 Time (sec) -...3.4.5.6.7.8.9. Time (sec) (a) (b) Figure 3: Step Responses of (a) Open Loop System and (b) Compensated System Professor T.C. Tsao Page 8 3//8

Stability margins of the designed compensated system can be examined by plotting the open loop Bode plot, shown in Figure 4. 4 Bode Diagram Magnitude (db) - -4-6 -8 5 Phase (deg) 8 35 9-3 4 5 Frequency (rad/sec) Figure 4: Open loop Bode of Compensated System In determining how close the system is to instability, the relevant gain margin is about 4 db or K = 5.9 and the phase margin is about 78 degrees. The phase margin is exceptionally good with the gain margin being less so. Professor T.C. Tsao Page 9 3//8

Discretization of Continuous- Controller The bilinear transform approximation is used to find the discrete- equivalent of the lead-lag compensator. Using MATLAB s cd command with a realizable sampling oft s = 5 =.sec, the discretized controller becomes Hz.8567( z.9977)( z.93) Cz ( ) = Cs ( ) s z = Ts z+ ( z )( z.8947) The frequency response of the continuous and discrete controllers is shown in Figure 5. 5 Bode Diagram Magnitude (db) 4 3-45 Discrete Continuous Phase (deg) -45-9 - 3 4 5 Frequency (rad/sec) Figure 5: Frequency Response of Continuous and Discrete Time Controllers Magnitude (db) Phase (deg) 5-5 5 8 35 9 45 System: L_z Gain Margin (db): -.8 At frequency (rad/sec): 5 Closed Loop Stable? Yes Bode Diagram System: L_z Gain Margin (db): 6.77 At frequency (rad/sec): 796 Closed Loop Stable? Yes System: L_z Phase Margin (deg): 7.34 Delay Margin (samples):. At frequency (rad/sec): 88 Closed Loop Stable? Yes System: L_s Gain Margin (db): 9.35 At frequency (rad/sec):.6e+3 Closed Loop Stable? Yes -45-3 4 5 Frequency (rad/sec) Figure 6: Comparison of Open loop Bode of Continuous- and Discrete- Compensated System Professor T.C. Tsao Page 3 3//8

The approximation begins to worsen significantly at8 rad for the phase plot. This sec frequency at which distortion becomes more significant may need to be larger depending on the frequency range of interest. Increasing the sampling would make the adjustment. Note that the stability margins in the continuous- system are almost identical to the ones in the discrete- system. Thus, the indirect design of the controller, although an approximation at the discretization step, maintains the system stability characteristics, and should produce similar results in implementation as predicted in continuous- design. Professor T.C. Tsao Page 3 3//8

DISCRETE-TIME (DIRECT) DESIGN OF LEAD-LAG CONTROLLER The direct controller design involved discretizing the plant via the bilinear transform and using MATLAB s sisotool command to place poles and zeros. Figure shows the root locus of the plant in the z-domain. Root Locus.8.6.4 Imaginary Axis. -. -.4 -.6 -.8 - - -.5.5.5.5 3 Real Axis Figure : Root Locus of G(z) Because most of the root locus lies outside the unit circle and results in system instability, we place poles and zeros inside the unit circle to bend the root locus to the left to lie inside the stable region. An initial attempt is to place the poles/zeros directly on top of the ones furthest away from the origin. This would result in a lead compensator since p > z. We place another pair of pole and zero in a lag configuration to eliminate steady-state error. The resulting root locus is shown in Figure. Root Locus.8.6.4 Imaginary Axis. -. -.4 -.6 -.8 - - -.5.5.5.5 3 Real Axis Figure : Root Locus of Lead-lag Directly Compensated System A point on the root locus corresponding to a gain K was selected based on how it affected the step response. Consideration in this selection was based on the peak amplitude of the response, rise, and settling. The compensator chosen is C lead lag ( z.9)( z.998) ( z) =.776 ( z.7563)( z ) Professor T.C. Tsao Page 3 3//8

The step response of this closed-loop compensated system is shown in Figure 3. 3.5 Step Response 3.5 Amplitude.5.5 -.5..4.6.8...4 Time (sec) Figure 3: Step Response of Direct-Design Compensated System Table compares the stability margins in both the direct and indirect design of the leadlag controllers. Indirect Direct Gain Margin [db] 6.77 7.5 Phase Margin [degrees] 9..8 Table : Comparison of Stability Margins Using MATLAB s sisotools in both designs, the direct method is better suited for achieving desired stability margins because of the real- design capability of modifying the controller and observing the effects of these margins. In indirect design, the stability margins were designed for in continuous-, and deviates from the designed figures as a result of the bilinear transform approximation. This is especially noticeable in the phase margin. Professor T.C. Tsao Page 33 3//8

Sensitivity and Complementary Sensitivity Analysis Sensitivity Complementary Sensitivity Magnitude (db) - Magnitude (db) - - - Phase (deg) -3 7 8 9 Translation Rotation Phase (deg) -3 45 36 7 8 9 Translation Rotation -9 3 4 5 Frequency (rad/sec) -9-3 4 5 Frequency (rad/sec) Figure 9: Indirect Lead-Lag Controller Sensitivity Complementary Sensitivity Magnitude (db) - - Magnitude (db) - - Phase (deg) -3 7 8 9 Translation Rotation Phase (deg) -3 45 36 7 8 9 Translation Rotation -9 3 4 5 Frequency (rad/sec) -9-3 4 5 Frequency (rad/sec) Figure : Direct Lead-Lag Controller Note the roll-off in the sensitivity functions that indicates the existence of an integrator in the compensator. This is expected since the lead-lag effectively tracks step references with zero steady-state error. The complementary sensitivity function tells us the bandwidth of the system, which is roughly at rad/s in both translation and rotation. Professor T.C. Tsao Page 34 3//8

Robust Stability Analysis 5 Robust Stability: (Wr*T) translation 5 Robust Stability: (Wr*T) rotation 5 5 magnitude (db) -5 - -5 - magnitude (db) -5 - -5-5 - -3 3 4 rad/sec (rad/sec) -5 3 4 rad/sec (rad/sec) Figure : Indirect Lead-Lag Controller The indirect Lead-Lag compensated system is not robustly stable since it is the plotted curve is not less than db for all frequencies. Robust Stability: (Wr*T) translation 5 Robust Stability: (Wr*T) rotation 5 magnitude (db) - - -3 magnitude (db) 5-5 - -5 - -5 3 4 rad/sec (rad/sec) 3 4 rad/sec (rad/sec) Figure : Direct Lead-Lag Controller Similarly, the direct Lead-Lag compensated system is not robustly stable. Professor T.C. Tsao Page 35 3//8

Simulation Prior to applying the designed controller to the MBC5, we perform several simulations in MATLAB and Simulink to gauge performance. This gives confidence of our controller s performance and reduces risk of destabilizing the magnetic bearing or saturating the current and voltage sources. Figure 4 is the Simulink block diagram to run the simulations. Figure 4: Simulink Simulation of Direct and Indirect Lead-Lag Compensated th Order Plant A lead-lag compensator was designed both directly and indirectly using the decoupled third order system representation. Stability and performance of the controllers were analyzed, and resulted in a pair of C(z) s given in the design sections. The plant and indirect controller are both discretized using the continuous- plant and controller version in preparation for digital implementation. In the case of the direct design controller, only the plant needed discretization. A realizable sampling frequency of 5 Hz was used in generating the zero order hold plant and the bilinear transform of the controller. The root locus and bode plots were examined in the previous section to ensure the discretized plant/controller pair resulted in a stable system. The th order plant replaces the 3 rd order plant since it models the dynamics of the system more closely. Although the higher order of the system cannot be explained on a physical basis, the simulation will provide insight to how the system will perform realistically. The Simulink model is used for simulation. Figure 5 show the y-direction system outputs due to step inputs with a half second delay between them. Because the controller was not designed with saturation limits in mind, the gains of the controllers were modified so that the output is within the limits of +-5 Volts. Professor T.C. Tsao Page 36 3//8

The modified controllers have slightly increased gains, and are given below. C C y y =.567 =.8567 ( z.9977 )( z.93) ( z )( z.8947) ( z.9977 )( z.93) ( z )( z.8947) Figure 5: Step Response of Discretized Indirect Lead-lag Compensated th Order Plant y Figure 6: Step Response of Discretized Indirect Lead-lag Compensated th Order Plant u Professor T.C. Tsao Page 37 3//8

Figure 7: Step Response of Direct Lead-lag Compensated th Order Plant y Figure 8. Step Response of Direct Lead-lag Compensated th Order Plant u Note that tracking to the step reference given some for the transients to settle. The controller outputs are also examined to ensure the signal stays within the saturation limits. Professor T.C. Tsao Page 38 3//8

Implementation Once the previous steps convince us that the controller will stabilize the plant with desired performance characteristics in simulation, we implement the controller with the magnetic bearing apparatus. The following figures show the step responses of y and y with equal magnetic forces applied in the same direction at both shaft ends for translation, and in opposite directions for rotation. The experimental and simulated step responses (Step 3 and 4) are shown in Figures 3 through 6 for both controllers. Note that two step responses, with the same amplitude and different delays, are applied at both sensors to reveal the degree of decoupling the physical system exhibits. Implementation and Simulation Output: Y translation Implementation and Simulation Output: Y rotation.6..4..8.6.8.6.4.4..4.5.6.7.8.9... -..4.5.6.7.8.9.. Figure 3. Step Response of System Output with Direct Design Lead-Lag Controller Implementation and Simulation Control: U translation Implementation and Simulation Control: U rotation.8.8.6.6.4.4.. -. -. -.4 -.4 -.6 -.6 -.8 -.8.5.6.7.8.9..5.6.7.8.9...3 Figure 4. Step Response of Controller Output with Direct Design Lead-Lag Controller Professor T.C. Tsao Page 39 3//8

Implementation and Simulation Output: Y translation Implementation and Simulation Output: Y rotation.5.8.6.4..5.8.6.5.4. -..4.5.6.7.8.9...4.5.6.7.8.9.. Figure 5. Step Response of System Output with Indirect Design Lead-Lag Controller Implementation and Simulation Control: U translation Implementation and Simulation Control: U rotation.6.5.4. -. -.4 -.6 -.5 -.8 - -. -.4.4.5.6.7.8.9.. -.5.6.7.8.9.. Figure 6. Step Response of Controller Output with Indirect Design Lead-Lag Controller Note that Figures 3 through 6 signify that our lead-lag controllers are correctly implemented and tracks a step response close to zero error as expected from simulations. There are slight differences for the indirectly designed controller more so than the direct designed one in the simulated and experimental step responses. Although the peak amplitude and transient ringing are somewhat matching, these differences can be attributed to the approximation of the continuous- controller used in the indirect design, namely the distortion from frequency warping. In both controller designs, note that a step input applied at a sensor location has noticeable effects on the other sensor, signifying the system s translational and rotational dynamics are slightly coupled. Our model assumes perfect decoupling, but the experimental results indicate dynamics with relatively small magnitudes. One important check at this step is to examine the intersample interpolation. Essentially, we need to sample at a sufficiently high sample rate to avoid aliasing and incorrect conclusions of the discretized output signals. At the sampling frequency of 5 khz, our simulation and experimental data appear free of aliasing. Professor T.C. Tsao Page 4 3//8

Sinusoidal Reference Tracking Supposed the system receives an input other than the step reference that the lead-lag compensator does so well in tracking. We run simulations with sinusoidal inputs applied to both the translational and rotational directions, and check the tracking performance. Simulation Output: Y translation Simulation Output: Y rotation 4 3.5.5 -.5 - - - -.5-3 - -4...3.4.5.6.7 -.5...3.4.5.6 Figure 7: Sinusoidal Reference Tracking with Direct Lead-Lag Controller System Output Simulation Control: U translation Simulation Control: U rotation.5.8.6.4.5. -.5 -. - -.4 -.6 -.5 -.8 -.5..5..5.3.35.4 -...3.4.5.6.7 Figure 8: Sinusoidal Reference Tracking with Direct Lead-Lag Controller Controller Output Although the system output has the same oscillation frequency as the reference, the directly designed lead-lag compensator does not track sinusoidal references with zero steady-state error. We will consider other controllers that can accomplish sinusoidal and eventually periodic reference tracking. Professor T.C. Tsao Page 4 3//8

STATE OBSERVER FEEDBACK CONTROLLER This controller leverages modern control design techniques, in other words, state-space form. The graphical representation that classical design features is not apparent in modern design. However, designers have a richer mathematical framework for placing closed-loop system poles by designing a feedback gain for achieving that. Often s, state variables are not available for control design. Estimation techniques are thus needed. The Luenberger Observer is explored and trialed in constructing a state feedback controller for the MBC5. Formulation A controller for the system (A,B) can be designed using state feedback if and only if (A,B) is controllable. The locations of the system s closed-loop poles can be placed anywhere with the appropriate state feedback gain K. We can represent the system in the statespace form x( k+ ) = Ax( k) + Bu( k) yk ( ) = Cxk ( ) with the state feedback and feed-forward control law uk ( ) = Kxk ( ) + Nrk ( ) With the control law, the closed-loop system is The associated transfer function is x( k+ ) = ( A BK) x( k) + BNu( k) yk ( ) = Cxk ( ) [ ] Y() z = C zi ( A BK) BNr() z To examine the phase and gain margins of the system, we look at the characteristic equation + K( zi A) Bu( z) = where the loop gain is ( ) = ( ) L z K zi A B Professor T.C. Tsao Page 4 3//8

The gain K can be chosen to have the specified closed-loop poles using MATLAB s place command with the matrices (A,B), and vector P containing the desired poles. State feedback relies on the fact that information of the states is available. In practice, this is often not the case. We can augment the state feedback controller with state estimation. The closed-loop Luenberger observer includes extensive information of the states from output measurements. In this scheme, we examine the error dynamics defined as x ( k) = x( k) xˆ ( k) We desire the error dynamics to converge to in the steady-state so that our estimated states are close to the actual ones. The observer state-space equation is x ( k+ ) = Axk ( ) LCxk ( ) = ( A LC) x ( k) The observer gain L is usually chosen to place the closed-loop poles such that the state estimation is quicker than the state feedback. The observer poles can be placed at any location if and only if (A,C) is observable. MATLAB S place(a,c,p) command is often used for pole placement. The state estimation feedback can be written as the following: xk ( + ) A BK BK xk ( ) B N r () t xk ( ) = A LC xk ( ) + + xk ( ) yk ( ) = [ C ] xk ( ) The closed-loop characteristic equation of the system above is given by zi ( A BK) BK det = det ( ) det ( ) zi ( A LC) [ zi A BK ] [ zi A LC ] This shows that n of the closed-loop eigenvalues, or poles, are from the state feedback design and the other n eigenvalues are from the observer compensator design. This highlights the separation principle i.e. the state feedback control poles can be designed separately from the observer poles. To examine the phase and gain margins of the modified system, we look at the characteristic equation [ ] + K zi ( A LC BK) LC( zi A) B = Professor T.C. Tsao Page 43 3//8

where the modified loop gain is [ ] Lz ( ) = K zi ( A LC BK) LCzI ( A) B Internal Model Augmentation For reference tracking with zero steady-state error, we can include a form of the reference signal into the controller. This is called Internal Model Control. For step reference tracking, we can build integral control into this controller through a state augmentation. We accomplish this by augmenting the model of the plant with an integrator, which adds an error integral output to the existing plant output. We define the error signal as ( ) = ( ) ˆ( ) = ( ( ) ˆ( )) e k y k y k C x k x k The propagated integral of the error is formulated as The augmented state equation is then ( + ) = ( ) + [ ( ) ( )] = ( ) + [ ( ) ( )] e k e k y k r k e k Cx k r k xk ( + ) A xk ( ) B uk ( ) rk ( ) ek ( ) = C ek ( ) + + + xk ( ) = A' + B' u( k) + N' r( k) ek ( ) The modified control gain has the following form [ ] K = K K where K i is the added element is the gain for the integrator. As before, the place command with the new A' and B ' matrices can be used to determine the feedback gain. The block diagram of this state-space system is shown in Figure. s i Professor T.C. Tsao Page 44 3//8

Figure : State Estimator with Observer Augmented with Integrator The equation for the internal model is x = Ax BC+ r D D d D For the integrator, x = x + r KC D D i We augment the state-space system once more to get xk ( + ) A xk ( ) B xd( k ) BDC A D xd( k) u( k) + = + + r( k) ek ( + ) A LC ek ( ) xk ( ) A B = xd ( k) u( k) r( k) A LC + + ek ( ) xk ( ) = A'' xd ( k) + B'' u( k) + N'' r( k) e ( k) The modified control law has the following form x( k) x( k) xk ( ) u = [ K KD] [ K KD K ] xd( k) K K xd( k) xd ( k) = = ek ( ) ek ( ) Professor T.C. Tsao Page 45 3//8

The closed loop A matrix is A BK : A B A" B" K = K K A LC A BK BK = A LC We arrive at an upper triangular A-matrix once again, so the separation principle also applies in determining feedback and observer gains. For robust stability analysis, we need to calculate the sensitivity and complementary sensitivity functions. The loop gain from the integrator output v to y is ( ) ( ) LI ( z) = G( z) K zi A LC L + + z + K zi A+ LC B The derivation is provided in the Appendix. KI The sensitivity and complementary sensitivity functions for the integrator system are + K( zi A+ LC) B ( ) ( ) S = = + Lz ( ) K I + K zi A+ LC B+ G( z) K zi A+ LC L+ z K I Gz ( ) K( zi A+ LC) L+ z T = S = KI + K( zi A+ LC) B+ G( z) K( zi A+ LC) L+ z The T is also used in robust stability analysis. The characteristic equation of this system is now ( ) ( z) + Li = ( ) ( ) KI + Gz K zi A LC L + + = + K zi A+ LC B z Professor T.C. Tsao Page 46 3//8

Design The state observer feedback controlled system will have the block diagram shown in Figure. Figure : Block Diagram of State Observer Feedback Control We begin with the third order discretized transfer functions for translation and rotation, and obtain their associated A,B,C, and D matrices. Because the two systems have similar input-output relationships, we design the same controller for each. By the separation principle, we design for the K and L matrices independently. We arbitrarily place the closed-loop feedback poles at poles = [.88.83.8]; for stability and quick transient dynamics. Using these pole locations with the place command in MATLAB, the following K matrices were obtained: Kt = [-.85.36 -.47] Kr = [-.3.49 -.4] Professor T.C. Tsao Page 47 3//8

We arbitrarily place the observer poles at poles_obs= [.68.63.6] which produces the corresponding gain matrices Lt = [36.79 6.349 5.785] Lr = [.89 35.374 8.9363] The forward gain matrices Nt and Nr are calculated so that the input and output are scaled the same. This is achieved by solving the equation ( [ ] ) N = C I A+ BK B The integrator gain is arbitrarily chosen at 5 for the augmented controller that resulted in good transient performance. Professor T.C. Tsao Page 48 3//8

Sensitivity and Complementary Sensitivity Analysis Note the increased performance from the lead-lag compensator. The bandwidth of the sensitivity transfer function is much higher. Sensitivity Complementary Sensitivity Magnitude (db) 5-5 Magnitude (db) 5-5 - - 8 35 Translation Rotation -5 36 8 Translation Rotation Phase (deg) 9 45 Phase (deg) -8-45 3 4 5 Frequency (rad/sec) -36 3 4 5 Frequency (rad/sec) Figure 3: State-Feedback Controller With the augmented integrator, note the roll-off at low frequencies that we expect. 4 Sensitivity 3 Complementary Sensitivity Magnitude (db) - -4 Magnitude (db) -6 7 8 Translation Rotation - 54 36 Translation Rotation Phase (deg) 9 Phase (deg) 8-8 -9 3 4 5 Frequency (rad/sec) -36 3 4 5 Frequency (rad/sec) Figure 4: State-Feedback with Integrator Controller Professor T.C. Tsao Page 49 3//8

Robust Stability Analysis Note that the state-feedback controller, as designed, is not robustly stable in either direction. Robust Stability: (Wr*T) translation Robust Stability: (Wr*T) rotation 4 3 3 magnitude (db) magnitude (db) - - - 3 4 rad/sec (rad/sec) - 3 4 rad/sec (rad/sec) Figure 5: State-Feedback Controller Robust Stability: (Wr*T) translation Robust Stability: (Wr*T) rotation 5 4 4 3 3 magnitude (db) magnitude (db) - - - -3 3 4 rad/sec (rad/sec) - 3 4 rad/sec (rad/sec) Figure 6: State-Feedback with Integrator Controller Professor T.C. Tsao Page 5 3//8

Simulation Using MATLAB and Simulink, the state observer feedback controllers for the third order models for translation and rotation were created. Note the existence of non-zero steadystate error to pulse step reference..3 Simulation Output: Y translation.35 Simulation Output: Y rotation.5.3..5..5..5..5.5 -.5...3.4.5.6.7.8.9 -.5...3.4.5.6.7.8.9 Figure 7: Simulated Pulse Response of State Estimator Feedback Control, Output The controller output signals are also shown in Figure 8 to verify that they are not saturating the plant..5 Simulation Control: U translation.5 Simulation Control: U rotation...5.5 -.5 -.5 -. -. -.5 -.5 -. -....3.4.5.6.7.8.9 -.5...3.4.5.6.7.8.9 Figure 8: Simulated Pulse Response of State Estimator Feedback Control, Controller Professor T.C. Tsao Page 5 3//8

Figure 9 show the output of the system compensated with the integral state estimation controller. Note the elimination of steady-state error in the reference tracking of step inputs..7 Simulation Output: Y translation.6 Simulation Output: Y rotation.6.5.5.4.4.3.3.... -. -. -. -. -.3...3.4.5.6.7.8.9 -.3...3.4.5.6.7.8.9 Figure 9: Simulated Pulse Response of Augmented State Estimator Feedback Control, Output Again, the controller output signals are shown, and do not saturate the plant..5 Simulation Control: U translation.8 Simulation Control: U rotation.6.4.5. -.5 -. -.4 - -.6 -.5...3.4.5.6.7.8.9 -.8...3.4.5.6.7.8.9 Figure : Simulated Pulse Response of Augmented State Estimator Feedback Control, Controller Professor T.C. Tsao Page 5 3//8

Implementation Figures and show the system and controller output signals without integral control. Note the existence of steady-state error to step reference tracking and the coupling effects between translation and rotation. Implementation Output: Y translation Implementation Output: Y rotation.4..8.6 -.4 -. -3 -. -4 -.4.5.5.5-5.5.5.5 Figure : Implemented Step Response of State Estimator Feedback Control, Output Implementation Control: U translation Implementation Control: U rotation.6 6.4 5. 4 3 -. -.4 -.6 -.8.5.5.5 -.5.5.5 Figure : Implemented Step Response of State Estimator Feedback Control, Controller Professor T.C. Tsao Page 53 3//8