Magnetic Levitation Experiment

Similar documents
Inductors in AC Circuits

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

PS-6.2 Explain the factors that determine potential and kinetic energy and the transformation of one to the other.

Operational Amplifier - IC 741

CONSTRUCTING A VARIABLE POWER SUPPLY UNIT

RLC Series Resonance

6/2016 E&M forces-1/8 ELECTRIC AND MAGNETIC FORCES. PURPOSE: To study the deflection of a beam of electrons by electric and magnetic fields.

Measuring Impedance and Frequency Response of Guitar Pickups

Electrical Resonance

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

GENERAL SCIENCE LABORATORY 1110L Lab Experiment 6: Ohm s Law

Scaling and Biasing Analog Signals

Analog control unit for mobile robots

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Mounting instructions. Acceleration Transducer B12. B 26.B12.10 en

The Time Constant of an RC Circuit

K-Type Thermocouple Sensor User s Guide

Direction of Induced Current

Impedance Matching and Matching Networks. Valentin Todorow, December, 2009

Ampere's Law. Introduction. times the current enclosed in that loop: Ampere's Law states that the line integral of B and dl over a closed path is 0

EE 1202 Experiment #4 Capacitors, Inductors, and Transient Circuits

1. The diagram below represents magnetic lines of force within a region of space.

Service Information CALIBRATION PROCEDURE AND TROUBLESHOOTING FOR LINEAR GOVERNOR CONTROLLERS NOTE

Lab 8: DC generators: shunt, series, and compounded.

Experiment 3: Magnetic Fields of a Bar Magnet and Helmholtz Coil

Chapter 19 Operational Amplifiers

Chapter 12: The Operational Amplifier

Experiment 5. Strain Gage Measurements

Building the AMP Amplifier

ES250: Electrical Science. HW7: Energy Storage Elements

PMP 4000 Series. Druck Amplified Output Pressure Transducers. GE Sensing. Applications. Features

FORCE ON A CURRENT IN A MAGNETIC FIELD

Physics 41, Winter 1998 Lab 1 - The Current Balance. Theory

Precision Miniature Load Cell. Models 8431, 8432 with Overload Protection

ElectroMagnetic Induction. AP Physics B

RGB for ZX Spectrum 128, +2, +2A, +3

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

W03 Analysis of DC Circuits. Yrd. Doç. Dr. Aytaç Gören

E/M Experiment: Electrons in a Magnetic Field.

5. Measurement of a magnetic field

Experiment 3: Magnetic Fields of a Bar Magnet and Helmholtz Coil

104 Practice Exam 2-3/21/02

Physics 121 Sample Common Exam 3 NOTE: ANSWERS ARE ON PAGE 6. Instructions: 1. In the formula F = qvxb:

12. The current in an inductor is changing at the rate of 100 A/s, and the inductor emf is 40 V. What is its self-inductance?

E. K. A. ADVANCED PHYSICS LABORATORY PHYSICS 3081, 4051 NUCLEAR MAGNETIC RESONANCE

Physics 221 Experiment 5: Magnetic Fields

Experiment 8: Undriven & Driven RLC Circuits

Microcontroller-based experiments for a control systems course in electrical engineering technology

ELECTRON SPIN RESONANCE Last Revised: July 2007

Environmental Monitoring with Sensors: Hands-on Exercise

Section 3. Sensor to ADC Design Example

Practice Test SHM with Answers

Conversion Between Analog and Digital Signals

ACCELERATION DUE TO GRAVITY

Reading: HH Sections , (pgs , )

V out. Figure 1: A voltage divider on the left, and potentiometer on the right.

Operating instructions

Induced voltages and Inductance Faraday s Law

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

Force on Moving Charges in a Magnetic Field

Student Exploration: Circuits

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

Chapter 11. Inductors ISU EE. C.Y. Lee

Lab E1: Introduction to Circuits

PHYSICS 111 LABORATORY Experiment #3 Current, Voltage and Resistance in Series and Parallel Circuits

Magnetic Fields and Their Effects

Motors and Generators

Building a simple seismometer

AP Physics Electricity and Magnetism #4 Electrical Circuits, Kirchoff s Rules

Analog Servo Drive 25A8

Study Guide for the Electronics Technician Pre-Employment Examination

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

Subminiature Load Cell Model 8417

EXPERIMENT 7 OHM S LAW, RESISTORS IN SERIES AND PARALLEL

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

d di Flux (B) Current (H)

Lab 7: Operational Amplifiers Part I

Determining the Acceleration Due to Gravity

OPERATION MANUAL VALVE CHECKER G

Automation System TROVIS 6400 TROVIS 6493 Compact Controller

Grounding Demystified

Loudspeaker Parameters. D. G. Meyer School of Electrical & Computer Engineering

OPERATIONAL AMPLIFIERS

Cable Testing with the Huntron Tracker Model 30 and Scanners

Edmund Li. Where is defined as the mutual inductance between and and has the SI units of Henries (H).

Step Response of RC Circuits

GenTech Practice Questions

PLL frequency synthesizer

Frequency Response of Filters

Technical Datasheet Scalar Network Analyzer Model MHz to 40 GHz

INSTRUCTION MANUAL. SIGNAL AMPLIFIER 4-20 ma

SIMULATIONS OF PARALLEL RESONANT CIRCUIT POWER ELECTRONICS COLORADO STATE UNIVERSITY

Modified True/False Indicate whether the statement is true or false. If false, change the identified word or phrase to make the statement true.

Application Information

Diodes have an arrow showing the direction of the flow.

Active Vibration Isolation of an Unbalanced Machine Spindle

ELECTROMAGNETIC LEVITATION THESIS

Mounting Instructions. Torque Transducer. A en

Transcription:

Magnetic Levitation Experiment

Magnetic Levitation Experiment Quanser Consulting Inc. 1 Description The maglev experiment consists of an electromagnet encased in a rectangular enclosure. One electromagnet pole faces a black post upon which a 2.54 cm steel ball rests. The ball elevation from the post is measured using a sensor embedded in the post. The post is designed such that with the ball at rest on its surface it is 14mm from the face of the electromagnet. The purpose of the experiment is to design a controller that levitates the ball from the post and the ball position tracks a desired trajectory. 2 Mathematical Model 2.1 Electrical system The coil used in the electromagnet has an inductance and a resistance. The voltage applied to the coil results in a current governed by the differential equation: V ' i R l % L di dt The actual system is equipped with resistor Rs in series with the coil whose voltage Vs can be measured using the A/D. The measured voltage can be used to compute the current in the coil. The sense resistor in the circuit results in the equation : V ' i (R l %R s ) % L di dt The state space equations for the current is given by: i ' & R l %R s L. i 1 i. % 1 L V Maglev 1

we have introduced an integrator for the current (. i ' i)for reasons which shall become clearer in the control system design section. Note that the sense resistor is only 1 S compared to the coil s 1 S resistance. The relationship between the voltage measured across Rs is: V s ' i R s then the current can be obtain from measuring Vs as: i ' V s R s and since Rs is 1 S then i = Vs. UPM245 Electromagnet From D/A # 5 Vs To S3 and then to A/D #2 V i Rl L Equivalent Circuit Rs D = 25.4mm x 39.4 mm F m g Vb To S1 and then to A/D # Sensor Maglev 2

2.2 Electro-mechanical System The force experienced by the ball using the electromagnet is given by: F ' m g & G i ( i x )2 where i is the current in Ampere, x is the distance from the electromagnet face in mm and g is in mm/sec 2. This results in the following differential equation for the ball dynamics: F ' m g & G i ( i x )2 ' m ẍ G i is the magnetic force constant for the electromagnet/ball pair and m is the mass of the ball in Kgms linearizing about a quiescent point ( i, x ) we obtain the equations: ẍ ' 2 G i i 2 x 3 m x & 2 G i i x 2 m i which in state space form becomes: x ẍ. x ' 1 2 G i i 2 x 3 m 1 x x. x % & 2 G i i x 2 m i Maglev 3

3 Control System Design In order to control the ball position, we need to control the current in the electromagnet. The electromagnet control loop is designed using the equations: i ' & R l %R s L. i 1 i. % 1 L V The current is measured using a 1 ohm resistor in series with the coil. By wiring the system to the A/D, S3 on the amplifier will measure the voltage Vs across the sense resistor. The current is given by Vs/ Rs. In order to track a desired current, the current control loop is designed using the feedback: V ' kip (i&i c ) % kiii (i&i c ) The gain are obtained by using the linear quadratic regulator. The open loop model for current is: i. i ' &26.6 1 i. % 2.42 V q = diag([1 1]) r=.1 This results in the gains: ki = [1.3 89.6] for the current loop. The closed loop eigenvalues for the current loop are: -242.3 and -1. For the ball position control loop the open loop state space equations are: x ẍ. x ' 1 28 1 x x. x % &196 i Maglev 4

Using lqr in MATLAB and q = diag([1.1 1]) r =45 results in the gains: k = [ -.2872 -.72 -.149] The closed loop eigenvalues are: -24.18-116.4 -.1 In order to implement the controller two loops are implemented: i c ' k(1) (x&x c )&k(2) x & k(3) I(x&x c ) where x is the ball position in mm and xc is the commanded ball position in mm. This loop generates a commanded current ic for the current control loop which is implemented as: V ' ki(1) (i&i c )& ki(2) I(i&i c ) where i is the measured current and ic is the current commanded by the ball position loop. Maglev 5

4 Implementation and results The system is implemented using Simulink and WinCon. The controller is in the file q_maglev.mdl. It is ready to run using WinCon by loading q_mqglev.wcl or q_maglev.wcp. Place the ball on the black post. Wire up the system as described and power the amplifier up. The two lights should go on inside the chamber. Start WinCon and load q_maglev.wcp. Click start. This should levitate the ball to midway as shown in the photo across. Click Stop when you are finished. 4.1 Feedforward current The integrator in the ball position loop is designed to compensate for the gravitational bias. It would be better if we pre-compute the current required to maintain the ball at a desired level and regulate the current about that quiescent value. This pre-computed current is the feedforward current and is calculated from m g ' G i ( i x )2 i 2 ' m g G i x 2 Thus the commanded position is used to precalculate the current required to maintain the ball in position. This current is of course not accurate and that is why we still need the integrator to remove any bias. The controller is required to compensate for dynamic disturbances. You may want to estimate the relationship between current and position using experimental data. The dbest way to do this is to command the position to track a very slow sine wave of a small amplitude (eg 3 mm) such that the acceleration of the ball is very small. You then measure the current and position and plot them using a WinCon plot. Save the data into a Matlab file and then use the data to fit the curve: i 2 ' kf 1 x 2 % kf 2 using the matlab function: kf = polyfit(pos_sq,curr_sq,1); where pos_sq is an array of x 2 values and curr_sq is an array of i 2 values. Using this method you can obtain a better fit for your system parameters. The current is Maglev 6

then pre-computed using: i ' kf 1 x 2 % kf 2 An example of this technique is shown below. The figure below shows the ball position 1 9 8 7 6 5 Ball Position in mm 4 3 2 1 Current in Ampere 1 2 3 4 5 6 Time and the current when the ball is tracking a slow sine wave. This data is imported into Matlab and is fitted to a straight line using: 2.5 2 Current 2 Straight line fit kf = polyfit(pos_sq,curr_sq,1 ) 1.5 1 Real data resulting in kf = [.112.2] which is slightly off from the nominal values of [.2 ] resulting in Gi = 5946 as opposed to Gi = 32654.5 Position 2 2 4 6 8 1 12 14 16 18 2 Using the above fit, you can then pre-compute a more precise model for the actual system you have. Maglev 7

Maglev 8

4.2 Tracking results The Figure below shows the initial response of the ball lifting from the post and tracking a desired ramp sequence. The oscillations are due to the ball swaying right and left rather than vertically. You may touch the ball lightly to dampen out these vibrations. The current is shown in the lower trace. The typical current required to maintain the ball afloat at 7 mm is about 1 Ampere. You may of course design a better controller than the one shown here! 14 12 1 8 6 4 2-2 2 4 6 8 1 12 Time Maglev 9

5 Wiring and Calibration Use UPM245 amplifier for this experiment From To Cable Function Current Sense S3 on UPM245 6 pin mini Din/ 6 pin mini Din Measure Vs via S3 Ball sensor (bottom connector on Maglev) S1 on UPM245 6 pin mini Din/ 6 pin mini Din Measure ball position Voltage Vb To/ A/D on UPM MultiQ Analog inputs,1,2,3 5 pin Din 4 x RCA Vb to A/D # Vs to A/D #2 MultiQ D/A # UPM From D/A RCA 5 Pin Din Mono To Load Coil 6 pin Din / 4 pin Din Gain = 5 ( green marker) Signal to amplifier Power to Coil Using this wiring S1 senses ball position using A/D # and S3 senses coil current using A/D #1 5.1 Calibration The ball sensing system is calibrated at the factory but may need re-adjustment when you receive it. The voltage measured on S1 should be zero when the ball is resting on the black post and should be between 4.75 and 4.95 Volts when the ball is held up by (stuck to) the electromagnet. To calibrate: Wire the system as described and power up the amplifier. a) calibrate the zero Run WinCon - load project mag_cal.wcp - this displays the current in the coil and the voltage measured by the position sensor. Adjust the offset potentiometer on the Maglev to obtain volts. Click stop when you are done and close WinCon. b) calibrate the maximum voltage Run WinCon - load project mag_cal5.wcp - this displays the current in the coil and the voltage measured from the position sensor. The program applies 1.5 amperes to the Maglev 1

coil which causes the ball to jump up to the magnet and stay there. Adjust the gain potentiometer on the Maglev to obtain anywhere between 4.75 to 4.95 volts on the position sensor. Click stop when you are done and close WinCon. c) Run the test controller Put the ball on the post. Run WinCon, load project q_maglev.wcp, click start. This should levitate the ball halfway between the post and the magnet (7 mm). If the ball is swaying left and right put your hand in and dampen the motion. 6 Software File Software needed Function Output /Input filenames ( I = input file, O = Output file) I/O d_maglev.m MATLAB Derive feedback gains k i and k I O q_maglev.mdl SIMULINK WinCon Design controller Implement controller q_maglev.wcl O q_maglev.wcl WinCon Runs the controller q_maglev.wcl I mag_cal.wcp WinCon Calibration at post position (down) Measure voltage and adjust offset mag_cal5.wcp WinCon Calibration at magnet position (up) Measure voltage and adjust gain mag_cal.wcl mag_cal5.wcl I I Maglev 11

7 System parameters Name Symbol Value Units Electromagnet Coil inductance L.4125 Henry Coil resistance R 1 Ohm Current sense Resistor Rs 1 Ohm Force Constant Ki 32654 (mn mm 2 )/Amp 2 OR 3.2654e-5 Nm 2 /Amp 2 Ball Mass m.68 Kg Diameter 2.54 cm Ball Sensor Range to +5 Volts Sensitivity 2.88 ± 2% mm/volt * Travel distance 14 mm * When calibrated as described Maglev 12