FlexLab and LevLab: A Portable Lab for Dynamics and Control Teaching

Similar documents
Magnetic Levitation System

Electronics and Instrumentation Name ENGR-4220 Fall 1999 Section Modeling the Cantilever Beam Supplemental Info for Project 1.

MAGNETIC LEVITATION SUSPENSION CONTROL SYSTEM FOR REACTION WHEEL

Lab 11. Speed Control of a D.C. motor. Motor Characterization

Design and Implementation of the Control System for a 2 khz Rotary Fast Tool Servo

Addendum Handout for the ECE3510 Project. The magnetic levitation system that is provided for this lab is a non-linear system.

Conventional geophone topologies and their intrinsic physical limitations, determined

FLASH rf gun. beam generated within the (1.3 GHz) RF gun by a laser. filling time: typical 55 μs. flat top time: up to 800 μs

Part 2: Second order systems: cantilever response

ME 365 FINAL EXAM. Monday, April 29, :30 pm-5:30 pm LILY Problem Score

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

TRACK-FOLLOWING CONTROLLER FOR HARD DISK DRIVE ACTUATOR USING QUANTITATIVE FEEDBACK THEORY

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

EE 3TP4: Signals and Systems Lab 5: Control of a Servomechanism

The Principle and Simulation of Moving-coil Velocity Detector. Yong-hui ZHAO, Li-ming WANG and Xiao-ling YAN

Laboratory PID Tuning Based On Frequency Response Analysis. 2. be able to evaluate system performance for empirical tuning method;

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

DC SERVO MOTOR CONTROL SYSTEM

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Linear control systems design

Loop Design. Chapter Introduction

Free vibration of cantilever beam FREE VIBRATION OF CANTILEVER BEAM PROCEDURE

Correction for Synchronization Errors in Dynamic Measurements

Testing and Stabilizing Feedback Loops in Today s Power Supplies

Penn State Erie, The Behrend College School of Engineering

ME451: Control Systems. Course roadmap

RESIT EXAM: WAVES and ELECTROMAGNETISM (AE1240-II) 10 August 2015, 14:00 17:00 9 pages

New Long Stroke Vibration Shaker Design using Linear Motor Technology

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

Modeling and Control of Mold Oscillation

Exercise 9: inductor-resistor-capacitor (LRC) circuits

California University of Pennsylvania Department of Applied Engineering & Technology Electrical Engineering Technology

Dr Ian R. Manchester

Position Control of DC Motor by Compensating Strategies

A Real-Time Platform for Teaching Power System Control Design

Control Servo Design for Inverted Pendulum

Homework Assignment 13

Poles and Zeros of H(s), Analog Computers and Active Filters

ACTIVE VIBRATION CONTROL OF HARD-DISK DRIVES USING PZT ACTUATED SUSPENSION SYSTEMS. Meng-Shiun Tsai, Wei-Hsiung Yuan and Jia-Ming Chang

1. Introduction. 2. Concept. reflector. transduce r. node. Kraftmessung an verschiedenen Fluiden in akustischen Feldern

Characterizing the Frequency Response of a Damped, Forced Two-Mass Mechanical Oscillator

Dynamic Generation of DC Displacement AN 13

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor

Applications of Passivity Theory to the Active Control of Acoustic Musical Instruments

Figure 1: Unity Feedback System. The transfer function of the PID controller looks like the following:

Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Vibration Cancellation Using Synthetic Shunt Impedances

Non-Collocation Problems in Dynamics and Control of Mechanical Systems

CHASSIS DYNAMOMETER TORQUE CONTROL SYSTEM DESIGN BY DIRECT INVERSE COMPENSATION. C.Matthews, P.Dickinson, A.T.Shenton

EES42042 Fundamental of Control Systems Bode Plots

Study on Repetitive PID Control of Linear Motor in Wafer Stage of Lithography

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

Karadeniz Technical University Department of Electrical and Electronics Engineering Trabzon, Turkey

Energy efficient active vibration control strategies using electromagnetic linear actuators

레이저의주파수안정화방법및그응용 박상언 ( 한국표준과학연구원, 길이시간센터 )

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Winter Semester, Linear control systems design Part 1

Goals. Introduction. To understand the use of root mean square (rms) voltages and currents.

Goals. Introduction. To understand the use of root mean square (rms) voltages and currents.

Advanced Motion Control Optimizes Laser Micro-Drilling

EEL2216 Control Theory CT2: Frequency Response Analysis

A study of Vibration Analysis for Gearbox Casing Using Finite Element Analysis

High-speed wavefront control using MEMS micromirrors T. G. Bifano and J. B. Stewart, Boston University [ ] Introduction

A SIMPLE FORCE BALANCE ACCELEROMETER/SEISMOMETER BASED ON A TUNING FORK DISPLACEMENT SENSOR. D. Stuart-Watson and J. Tapson

Rotary Motion Servo Plant: SRV02. Rotary Experiment #02: Position Control. SRV02 Position Control using QuaRC. Student Manual

Differential Amplifier : input. resistance. Differential amplifiers are widely used in engineering instrumentation

A Machine Tool Controller using Cascaded Servo Loops and Multiple Feedback Sensors per Axis

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

Research and design of PFC control based on DSP

EECS40 RLC Lab guide

Course Outline. Time vs. Freq. Domain Analysis. Frequency Response. Amme 3500 : System Dynamics & Control. Design via Frequency Response

Positive Feedback and Oscillators

Thursday, 1/23/19 Automatic Gain Control As previously shown, 1 0 is a nonlinear system that produces a limit cycle with a distorted sinusoid for

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

DEEP FLAW DETECTION WITH GIANT MAGNETORESISTIVE (GMR) BASED SELF-NULLING PROBE

DESIGN AND ANALYSIS OF FEEDBACK CONTROLLERS FOR A DC BUCK-BOOST CONVERTER

Testing Power Sources for Stability

Optimizing Performance Using Slotless Motors. Mark Holcomb, Celera Motion

PHASES IN A SERIES LRC CIRCUIT

Microelectronic Circuits II. Ch 9 : Feedback

Active Vibration Control in Ultrasonic Wire Bonding Improving Bondability on Demanding Surfaces

Lab 6: Building a Function Generator

Other Effects in PLLs. Behzad Razavi Electrical Engineering Department University of California, Los Angeles

METHODS TO IMPROVE DYNAMIC RESPONSE OF POWER FACTOR PREREGULATORS: AN OVERVIEW

Pole, zero and Bode plot

Exam Signal Detection and Noise

EE 482 : CONTROL SYSTEMS Lab Manual

Servo Tuning. Dr. Rohan Munasinghe Department. of Electronic and Telecommunication Engineering University of Moratuwa. Thanks to Dr.

BSNL TTA Question Paper Control Systems Specialization 2007

Ball Balancing on a Beam

D102. Damped Mechanical Oscillator

10 Electromagnetic Interactions

Investigating the Electromechanical Coupling in Piezoelectric Actuator Drive Motor Under Heavy Load

Figure 4.1 Vector representation of magnetic field.

Last Name Girosco Given Name Pio ID Number

Preliminary study of the vibration displacement measurement by using strain gauge

Automatic Control Systems 2017 Spring Semester

Constant Current Control for DC-DC Converters

of harmonic cancellation algorithms The internal model principle enable precision motion control Dynamic control

Basic methods in imaging of micro and nano structures with atomic force microscopy (AFM)

Transcription:

FlexLab and LevLab: A Portable Lab for Dynamics and Control Teaching Lei Zhou, Mohammad Imani Nejad, David L. Trumper Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 39, USA Abstract This paper presents the design, modeling and control for an educational lab for control and mechatronics teaching in the department of Mechanical Engineering at MIT. The FlexLab is a system of flexible cantilever beam with permanent magnets attached to it, while the LevLab demonstrates a magnetic suspension system. Both labs are implemented on one printed circuit board, with actuators, sensors, power amplifiers arranged on it. This system works together with myrio from National Instruments. The design file for the system open source on the website of Precision Motion Control Lab at MIT. We would like to share the lab with others who might like to use it in their dynamics and control teaching. Keywords: educational lab, mechatronics, flexible beam, magnetic levitation. Introduction One major challenge in engineering course is offering student the chance of hands-on experiences, which is essential to obtain a fundamental understanding of phenomenas and design skills. However, in many circumstances, limited lab resources and concentrated lab time for classes may limit the depth of knowledge that student can learn. To address this, instructors for control system at MIT generated the idea of "portable educational labs". We believe that if we can make the lab portable and lend the hardware to student, the student can have chance to play with the system, discover the subtleties outside the structured lab time, and therefore achieve a better understanding of the knowledge. This will requires the educators to design a low-cost, portable, robust system that can demonstrate the intrinsic characteristics that make it applicable to a wide range of educational pursuits. Figure : Photograph of the FlexLab system. This paper introduces the design, modeling and control of the FlexLab/LevLab board, which is one of our our portable educational lab series. The design files of the lab can be downloaded at the website of Precision Motion Control Lab at MIT. The FlexLab is a system of flexible cantilever beam with permanent magnets attached to it, while the LevLab demonstrates a magnetic suspension system. Both labs are implemented on one printed circuit board, with actuators, sensors, power amplifiers arranged on it. This system works together with myrio from National Instruments [].. Hardware configuration Figure shows the hardware configuration of the FlexLab system, which is implemented as one printed circuit board (PCB). This system works together with NI myrio via the standard connector. The same system can be used for magnetic suspension experiment, known as LevLab. Figure shows the magnetic suspension with this system. In the design of the FlexLab, a -inch long flexible cantilever beam made out of.5mm thick phosphore bronze sheet is anchored on the PCB. Two pair of disk shape permanent magnets are attached at the middle and at the end of cantilever beam, as shown in Figure. When the tip displacement of the can- Preprint submitted to Mechatronics Figure : Photograph of the LevLab experiment November 7, 4

+5 V +5 V R m C m 8 V ref + - R R Coil R s + - R 4 R 3 V ref sum of sensor output(v) 7 6 5 4 3 measured fitted V in Figure 3: Circuit diagram of the coil power amplifiers. The op amps are the power amplifiers. Here V re f is V. V re f is.5 V. Controlling signal in injected at V in. The amplifier gain is selected to be 4. Therefore R = 4R, and R 3 = R 4. R s is the sensing resistor for current measurement. R m and C m are placed for stability. In our design R m = Ω, and C m =. µf..5.5.5 3 3.5 gap(mm) Figure 4: Calibration data of the hall effect sensors for position measurement. tilever is small, this system presents a linear, lightly damped mass-spring system. A complete electromechanical feedback system is built around this cantilever beam system, all integrated on the PCB. The controller for the system is implemented in the NI myrio. On the PCB, two spiral coils are embedded in the PCB via routing. Each coil has 3 turns, with 4 layers in total and 8 turns per layer. By driving current through the coils, a force can be generated to the cantilever beam through the interaction between the actuating current and the magnetic field from the permanent magnet. The coils are driven by linear power operational amplifiers to get rid of switching noise. In our design, TCA37 from ON semiconductor [] is selected to drive the coils. In order to make better use of the power supply from the NI myrio, single side power supply ( - 5V) is selected for the power operational amplifiers. The power amplifiers are differentially configured to provide the coil with both positive and negative currents. Figure 3 shows a circuit diagram of the coil power amplifier. Here the controlling signal is injected at V in, which is generated by the D/A converter of the myrio. The amplifier gain is selected to be 4. Therefore R = 4R, and R 3 = R 4. R s is the sensing resistor for current measurement. R m and C m are placed for stability. In our design R m = Ω, and C m =. µf. Two hall effect sensors are configured at both sides of every magnet on the beam to measure the position of the permanent magnet, which is also the local displacement of the cantilever beam. The signals from the two hall effect sensors around one magnet are added together and goes into the A/D converter of the myrio. The controller for the system is implemented digitally in the myrio. Figure 4 shows the calibration data of the hall sensors, with its x-axis being the vertical position of the magnet (gap between the PCB board and the magnet) while its y-axis is the sensor output. Data shows the position measurement by the hall sensors is approximately linear. The same system can be used for magnetic suspension experiment. If we take off the flexible beam, and correctly design the controller for the system, a spherical permanent magnet can be Figure 5: Principle of magnetic force generation. magnetically levitated underneath the coil in PCB. We call this system LevLab, as is shown in figure. 3. Modeling and system identification In this section the modeling and system identification for both FlexLab and LevLab systems are introduced. Here lists the assumptions that our model is based on: The motion of the permanent magnets have only one degree of freedom; Hall effect sensors and voltage control power amplifiers are linear and have no dynamics; Small deviation from the operating point is assumed; Inductance of the coil is small. 3.. Electromechanical interaction and the force generation In order to model the dynamics of the system, we first need the expression for the magnetic force that the coil applies to the magnet. This force is Lorentz force that generated by the field from magnet and the current in the coil. Figure 5 shows the principle of the magnetic force generation. In Figure 5, the permanent magnet field is modeled as a dipole pattern. When a current i is flowing in the coil, a Lorentz

force is generated to the coil. The Lorentz force can be calculated by F = J B, therefore the force in the horizontal plane is generated by the vertical component of the magnetic flux B x, while the force in the vertical direction is generated by the horizontal component of the magnetic flux. The Lorentz forces in the horizontal direction are canceled due to symmetry, as a result, the total force that the magnet applies to coil is in the vertical direction. We can get the form of the magnetic force as: f magnetic = C i. () Here the C is a constant that is determined by the strength of magnet, the number of turns of the coil and the geometry. x is the distance between the coil and the permanent magnet. We will use this expression for the magnetic force in the modeling for both FlexLab and LevLab systems. 3.. LevLab modeling and system identification In this section the modeling and identification of the LevLab system is presented. In this electromagnetic system, energy is transfered from electrical domain to mechanical domain. Figure 6 shows a diagram of the magnetic levitation system. equation, we define the following constants: K i = C [N/A] : Force constant x (5a) K s = C i [N/m] : Negative sti f f ness x (5b) 3 By substituting these constants and removing the variation sign δ we reached the dynamic equation for the magnet s movement is mẍ = K i i + K s x. (6) Notice that here the x and i represents the small variations from the operating point. For the electrical domain, the mechanical system influence the electrical domain via back emf of v em f = K i ẋ. Here the constant K i is the force constant shown in Equation (6). Since the inductance of the coil is very small, the electrical dynamics is much faster than that of mechanical domain. Therefore it is reasonable for us to ignore the dynamics of the circuit by assuming the inductance value L =. According to the Kirchhoff s circuit law, the equation for the circuit can be written as: e K i ẋ = ir. (7) Substituting Equation (7) into Equation (6), the equation for the system can be achieved: Figure 6: Diagram for DOF magnetic levitation. In the mechanical domain, the dynamics of the levitated permanent magnet is: mẍ = mg f magnetic. () Note that here positive direction of x is pointing down, which corresponds to increasing the distance between the magnet and the coil. By substituting the expression for magnetic force, we reached the dynamic equation for the magnet: mẍ = K s x + K i ( e R K i ẋ) (8) R Choosing state variables = x and = ẋ, the input signal to the power amplifier to be the control input u, and the output signal of the hall effect displacement sensors to be the system output y. We can rewrite (8) into a state space representation as: = K s m K i mr y = [ g sensor + ] g amp K i mr u (9) () Using Laplace transformation we can reach the transfer function of the system: mẍ = mg C i. (3) Linearizing this equation about operating point x and i and we reached the linear differential equation: mδx = mg C i x C x δi + C i δx. (4) x 3 The constant part of the magnetic force is balanced with the magnet s weight, which is mg = C i x. In order to simplify the 3 K i mr Y(s) U(s) = g sensorg amp s + K i mr s K s m () Here g amp [V/V] is the gain of the power amplifier, while g sensor [V/m] is the gain of the hall effect displacement sensor. The LevLab system parameters are being identified by measuring the system dynamics. Table presents the design parameters of the LevLab system. Figure 7 shows the experimentally measured and fitted Bode plot of the LevLab plant plotting together, with the signal to the power amplifier being the input,

Table : Design parameters of the LevLab system st mode Magnet mass m.5 [kg] Power amplifier gain g amp Hall effect displacement sensor gain g sensor.5 [V/V].8 [V/mm] i i st mode Resistance of the coil R 6 [Ω] Figure 8: FlexLab system and mode shape. Magnitude 3 4 5 5 Measured Model Figure 7: Measured and modeled plant bode plot of the LevLab. b F k k m m b Figure 9: Mass-spring model of the FlexLab system. Based on Figure 9, the differential equations of the system dynamics can be written as: m x = F k b + k ( ) + b ( ) m x = F k ( ) b ( ) F (3a) (3b) and taking the sensor signal as the output. Notice that this Bode measurement is taken with the system under closed-loop control, since the system is inherently unstable. The fitted transfer function is: Y(s) U(s) =.68 (s + 6)(s 6). () By substituting values in Table into Equation () and comparing it with (), we can calculate that K s = 5.34 [N/m], and K i =. [N/A]. Therefore we can calculate the electrical damping value as b e = K i mr =.53 [Ns/m]. 3.3. FlexLab modeling and system identification This section introduces the modeling and identification of the FlexLab system. The FlexLab system uses the same PCB with the LevLab. In our control teaching labs, the FlexLab system can use only one set of magnets arranged on the tip of the cantilever to demonstrate a lightly damped nd order system, and the coil in the middle can be used to add disturbance to the system. The FlexLab system can also work with two sets of magnets, which can let the students to explore the complete vibration dynamics of the system. Here we present the modeling and the identification of the complete system dynamics of the FlexLab system. Figure 8 shows a diagram of the FlexLab system. Here the two coils are driven with currents i and i respectively, and magnetic forces are generated between the coils and the magnets that introduced in Section 3.. When driving the system into resonances, the system will present different mode shapes. A fourth-order mass-spring-damper model is being used to model the FlexLab system. Figure 9 shows the linear system. 4 Here the forces F and F are the forces the coils acting on the magnet. The calculation of these magnetic forces is discussed in Section 3.. By linearizing these force about an operating point as discussed in Section 3., the forces can be expressed to be linear with the supplied voltage to the power amplifier, with a coefficient of K i g amp /R. Define the input voltages of the two coils to be u and u, and selecting state variables x = [ ] T, the system can be written in the state space form, as: d dt = y y k +k m b +b m k m b m k b m m k m b m m + m = g sensor g sensor K i g amp R u K i g amp R u (4) (5)

Magnitude Magnitude Model Measured 4 Model Measured Figure : Bode plot of the FlexLab system /u. Figure : Bode plot of the FlexLab system /u. Magnitude permanent magnets on the beam. In this mode, the system demonstrates a nd order system after linearization. A step response of the system is shown in Figure 3. It is shown that this system is very lightly damped inherently. The system demonstrated a natural frequency of 38 rad/s ( Hz) and a damping ratio of ζ =.7. 3 3 Model Measured response(v).5 Figure : Bode plot of the FlexLab system /u. Note that in Equation (4) the stiffness values are the sum of mechanical stiffness of the cantilever beam and the negative stiffness between the magnet and the coil, while the damping values are a combination of both air drag damping and electrical damping due to back emf. The identification of the parameters for the FlexLab is similar to that for the LevLab, except that this is a two-input-two-output system. Figure through Figure present the experimentally measured and modeled Bode plot for the FlexLab system, with different input and output selection. We can see that the system zeros are appearing in the collocated measurement, and have no zero in non-collocated measurement. By matching the pole and zero positions to the measured Bode plot, we identified the system parameters as m =.3 kg, m =.4 kg, k = 8 N/m, k = 9 N/m, b =.5 Ns/m, b =. Ns/m. The modeled Bode plot of the system with these identified values are plotted in blue in Figure through Figure. Good match between the model and the measured data confirms our modeling. The FlexLab system can also operate with only one pair of 5.5 3 4 5 6 7 8 9 time(s) Figure 3: Step response of the FlexLab system with tip magnet only. 4. System control design When operating, the FlexLab and LevLab system need to operate under closed loop control to be stable and achieve better performance. The feedback control system design and analysis are discussed in this section. 4.. Stabilization of the LevLab In this section the control for the magnetic suspension for the LevLab system is introduced. As discussed in Section 3., there is one right plane pole in the plant transfer function of the LevLab system, which makes the system unstable in open-loop. As a result, feedback control is needed to stabilize it. The controller s design for the LevLab is based on the Lev- Lab plant dynamics, which is depicted in Figure 7. In our design, series compensation to stabilize this magnetic suspension

Magnitude Magnutude Plant Controller Loop Return Ratio 3 4 Plant Loop without notch Loop return ratio controller Figure 4: Bode plot of loop shaping control design for the LevLab system. Figure 5: Bode plot of loop shaping control design for the FlexLab system. system. This is the approach that is generally used in practice as it only assumes the measurement of the magnet s vertical position. Lead-lag form of the PID controller is used for both stabilization and providing better disturbance rejection ability. The controller form is selected to be: G c (s) = K p ( + T i s )ατs + τs + (6) For the LevLab system, the lead network is chosen to have a pole-zero separation factor α =. The loop is designed to cross over at rad/s, thus we can calculate the lead time constant τ =.6 s to place the phase maximum at the desired crossover frequency. The integral gain for the system /T i is chosen to be 4 rad/s. Figure 4 shows a Bode plot of the loop shaping control design for the LevLab system. As a result, the system can reach a 35 Hz ( rad/s) crossover frequency with a 4 o phase margin. 4.. Position control of FlexLab In Section 3.3 we identified the system dynamics of the FlexLab, where we can see that the system has very lightly damped resonances. To better control the position of the magnet on the cantilever beam, feedback control is needed to add active damping to the system. In this experiment, the actuator at the tip of the cantilever is being used as the control input, while the actuator in the middle can be used to inject disturbance. A lead compensator is used to add damping to this position control system. In order to cross-over at a higher frequency, a notch filter is used to suppress the second resonance and maintain stability. The Bode plot of the plant, controller, and the corresponding loop return ratio is shown in Figure 5. The plot shows that the notch of the controller can effectively hit down the notch in the plant. With the designed controller, a crossover frequency of 5 Hz is reached, with a phase margin of 4 degrees. Figure 6 shows a closed-loop step response of the magnet position and the corresponding control effort signal of the FlexLab system. 6 Closed loop response(v) Control Effort(V).6.4..5..5..5.3.35 time(s) 5 5.5..5..5.3.35 time(s) Figure 6: Bode plot of loop shaping control design for the FlexLab system. 4.3. Self-resonance control for FlexLab The FlexLab system can also be used to demonstrate selfresonance control, which is an important building block for a taping mode atomic force microscope probe [3]. Here let us consider the FlexLab with only the magnets on the cantilever tip, which makes the system a second-order system after linearization. By self-resonance control we can regulate the system at its self-resonance and control its oscillation amplitude. The details of the self-resonance control is introduced in [4]. For a second-order linear system with poles at σ ± jω n, the system will have a response as y(t) = Ae σt sin(ω n t + φ). (7) Ideally, when the real part of the system poles become, the system is marginally stable, and will demonstrate sustain oscillation. However, in practice, it is not possible to set the real part of the pols to exactly and make a perfect marginally stable system. The closed-loop poles will eventually have a positive or negative real part, and the closed-loop system will become either stable or unstable. To make the cantilever beam in the

Figure 7: Block diagram of FlexLab self-resonance amplitude control. FlexLab a pure oscillator, a closed-loop amplitude controller, which measures the oscillation amplitude and adds positive or negative damping to the system to control the amplitude of the self resonance. With one pair of magnets attached to the cantilever tip, the natural frequency of the system is measured to be ω n = 38 rad/s ( Hz). It is possible to show that the oscillation amplitude envelope of the FlexLab changes as A(t) = A e ζω nt. (8) Here A is the initial amplitude of the oscillation, and ζ is the system damping ratio. Although the relationship between A and ζ is non-linear, we can linearize it around a set point and apply linear control theory to design the controller for the oscillation amplitude control. A first-order Taylor series linear approximation of Equation (8) about t = yields A(t) = A A ζω n t. (9) With the oscillation frequency fixed at ω n, the oscillator dynamics with the oscillation amplitude change A being the output and the damping ratio ζ being the input can be reached by applying a Laplace transform to Equation (9): Magnitude (db) Phase (deg) 5 5 45 9 35 8 3 Frequency (rad/s) Plant Controller Loop return ratio Figure 8: Bode plot for FlexLab oscillation amplitude control design. In the control loop shown in Figure 7, the dynamics from ζ to A can be modeled as a transfer function () with a lowpass filter, where the low-pass filter represents the dynamics of the amplitude estimation functions. In our implementation the filter is designed as A(s) ζ(s) = A ω n. () s The above transfer function shows that the incremental change in the envelope of oscillation A(s) is proportional to the integral of the damping ratio ζ. We can design a controller to control the oscillation amplitude of the FlexLab system in real time based on the plant transfer function in (). Figure 7 shows a block diagram of the control system implementation. The oscillatory magnet position signal is measured by the hall effect sensors and being acquired into the embedded controller (NI myrio) via A/D conversion. A absolute value function (rectifier) and a low-pass filter is used for the measured signal to get an estimation of the envelope amplitude of the oscillation signal. The amplitude signal A is then compared with a reference amplitude A re f, and the error goes through the controller and generated the control effort signal ζ, which is the controlling damping ratio (positive or negative) added to the system. The damping signal is generated by multiplying ω n and taking derivative to the signal (added another pole for filtering), and injected to the FlexLab system. 7 LPF(s) = s/ +. () The reference amplitude of oscillation is set as A r e f = A = V. Figure 8 shows the Bode plot for the oscillation amplitude controller design. Here the plant transfer function demonstrate the dynamics from control effort ζ to amplitude estimation Â. Note that the minus sign in Equation () is reversed for design purpose. A PI controller with a form of C(s) = K p ( + /T i s) is selected for the system. By targeting at a cross-over frequency at ω = rad/s and a phase margin of 4 o, the controller parameters are selected as K p =.35 and T i =.. The control loop shown in Figure?? is implemented on the FlexLab system with myrio controller. Figure 9 shows a waveform of the system output under self-resonance amplitude control under step changes of the reference amplitude A re f, and Figure and shows the corresponding envelope amplitude estimation and the control effort signal ζ. Note that the signals are asymmetric due to the nonlinearity, with the plant transfer function () depend on the current amplitude A.

response(v).4.3.. system analysis and control at MIT. We have attempted to describe this system and its related experiments in sufficiently detail so that it can be readily duplicated by others who might like to use it in their control teaching efforts. The design file of the system is available to be download at the website of Precision Motion Control Lab at MIT. We welcome comments, questions, or suggestions for improvement of this lab design and exercise....3.5.5.5 time(s) 6. Acknowledgments The authors would like to thank National Instruments for funding this project. Figure 9: Waveform of FlexLab self-resonance amplitude control. Envelope amplitude(v).3.5..5 References. NI myrio Hardware at a Glance. Tech. Rep.; National Instruments; 4.. On semiconductors.. A Output Current, Dual Power Operational Amplifiers. TCA37 Datasheet; 3. 3. Trumper DL, Hocken RJ, Amin-Shahidi D, Ljubicic D, Overcash J. Highaccuracy atomic force microscope. In: Control Technologies for Emerging Micro and Nanoscale Systems. Springer; :7 46. 4. Roberge JK. Operational amplifiers. Wiley; 975...5.5.5.5 Time(s) Figure : Amplitude signal of FlexLab self-resonance amplitude control..4.3. Control effort ζ....3.4.5.5.5 Time(s) Figure : Control effort signal ( ζ) of FlexLab self-resonance amplitude control. Here ζ = ζ + ζ, where ζ is the system damping ratio, ζ is the controlling damping ratio added through control, and ζ is the total damping ratio. 5. Conclusion In this paper, a compact mechatronics system that can work as either a flexible cantilever beam or a magnetic levitation system is reported. This system will be used in teaching feedback 8