Lab 5a: Magnetic Levitation (Week 1)

Similar documents
The Digital Multimeter (DMM)

Capacitance Measurement

Lab 4: Gauss Gun Conservation of Energy

Principles and Problems. Chapter 1: A Physics Toolkit

Critical parameters of

Electrostatics II. Introduction

farads or 10 µf. The letter indicates the part tolerance (how close should the actual value be to the marking).

CHARGED PARTICLES IN FIELDS

Electrostatics: Coulomb's Law

EE 241 Experiment #5: TERMINAL CHARACTERISTICS OF LINEAR & NONLINEAR RESISTORS 1

Please bring the task to your first physics lesson and hand it to the teacher.

Circuits for Analog System Design Prof. Gunashekaran M K Center for Electronics Design and Technology Indian Institute of Science, Bangalore

Harnessing the Power of Arduino for the Advanced Lab

Mechatronics II Laboratory EXPERIMENT #1: FORCE AND TORQUE SENSORS DC Motor Characteristics Dynamometer, Part I

Last Revision: August,

Lab 2: Kirchoff s Laws

6.302 Feedback Systems

Electric Fields and Potentials

Charge to Mass Ratio of The Electron

STEAM Clown Production. Series Circuits. STEAM Clown & Productions Copyright 2017 STEAM Clown. Page 2

An Ultra Low Resistance Continuity Checker

Lecture 5: Using electronics to make measurements

EXPERIMENT 9 Superconductivity & Ohm s Law

Review of Ohm's Law: The potential drop across a resistor is given by Ohm's Law: V= IR where I is the current and R is the resistance.

Conservation of Momentum

Lab 3: Quanser Hardware and Proportional Control

Laboratory I: Impedance

Figure Two. Then the two vector equations of equilibrium are equivalent to three scalar equations:

Figure 1: Capacitor circuit

Materials Needed 1 D-Cell battery 6 6-inch pieces of wire 3 flashlight light bulbs 3 light bulb holders (optional)

Circuit Analysis and Ohm s Law

Rotational Motion. Figure 1: Torsional harmonic oscillator. The locations of the rotor and fiber are indicated.

ENSC387: Introduction to Electromechanical Sensors and Actuators LAB 3: USING STRAIN GAUGES TO FIND POISSON S RATIO AND YOUNG S MODULUS

X: The Hall Effect in Metals

Physics 15b PSI Week 4: Magnetic Fields

THE HALL EFFECT AND CURRENT SENSORS. Experiment 3

Lab 7 Energy. What You Need To Know: Physics 225 Lab

Charge to Mass Ratio of The Electron

Inter-Ing 2005 INTERDISCIPLINARITY IN ENGINEERING SCIENTIFIC CONFERENCE WITH INTERNATIONAL PARTICIPATION, TG. MUREŞ ROMÂNIA, NOVEMBER 2005.

Gravity Pre-Lab 1. Why do you need an inclined plane to measure the effects due to gravity?

Experiment #6. Thevenin Equivalent Circuits and Power Transfer

UC Berkeley, EECS Department EECS 40/42/100 Lab LAB2: Electronic Scale UID:

Learning outcomes: You will learn:

SENSOR OR TRANSDUCER OF INTEREST.

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Homework 8. This homework is due October 26, 2015, at Noon.

Lecture 5: Using electronics to make measurements

Experiment A4 Sensor Calibration Procedure

PHY 112L Activity 1 Electric Charges, Potentials, and Fields

Outline. Week 5: Circuits. Course Notes: 3.5. Goals: Use linear algebra to determine voltage drops and branch currents.

Digital Multi-Day Soil Temperatures Protocol

Activity One Force, Mass, and Acceleration

Circuit Lab Free Response

Maintenance/ Discontinued

Data and Error Analysis

WIND POWER AND ITS METROLOGIES

Books by Dieter Stotz

Impedance. Reactance. Capacitors

Investigate the relationship between the extension of a spring and the applied force

Digital Multi-Day Max/ Min/Current Air and Soil Temperatures Protocol

Introductory Energy & Motion Lab P4-1350

Lab E3: The Wheatstone Bridge

PHY 111L Activity 2 Introduction to Kinematics

CONTROL SYSTEMS LABORATORY ECE311 LAB 1: The Magnetic Ball Suspension System: Modelling and Simulation Using Matlab

CEE575 - Homework 1. Resistive Sensing: Due Monday, January 29

POLYTECHNIC UNIVERSITY Electrical Engineering Department. EE SOPHOMORE LABORATORY Experiment 2 DC circuits and network theorems

PHYSICS LAB: CONSTANT MOTION

Forces and Newton s Laws

Lab 4 CAPACITORS & RC CIRCUITS

Superconductivity. Never store liquid nitrogen in a container with a tight fitting lid.

Lesson Plan: Electric Circuits (~130 minutes) Concepts

F = ma W = mg v = D t

ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer

Maintenance/ Discontinued

Consider a simple RC circuit. We might like to know how much power is being supplied by the source. We probably need to find the current.

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

RC Circuits. 1. Designing a time delay circuit. Introduction. In this lab you will explore RC circuits. Introduction

ME 3210 Mechatronics II Laboratory Lab 4: DC Motor Characteristics

PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum

UMEÅ UNIVERSITY Department of Physics Agnieszka Iwasiewicz Leif Hassmyr Ludvig Edman SOLID STATE PHYSICS HALL EFFECT

2009 Assessment Report Physics GA 1: Written examination 1

Wide Range Stabilization Of A Magnetic Levitation System Using Analog Fuzzy Supervisory Phase Lead Compensated Controller

Properties of Matter - Mass Unit

Computer Exercise Modeling and control of a magnetic suspension system N S. magnetic. gravity. Figure 1: Sketch of the magnetic levitation system.

Fig. 1. Two common types of van der Pauw samples: clover leaf and square. Each sample has four symmetrical electrical contacts.

Lecture 4: Feedback and Op-Amps

1. AP Physics math review

EE 3CL4: Introduction to Control Systems Lab 4: Lead Compensation

Operational Amplifiers

Incline Plane Activity

Name Date Time to Complete

Positioning Servo Design Example

Developing a Scientific Theory

Title of Activity: Let there be Light! Introduction to Ohm's Law and basic series circuits.

Operational amplifiers (Op amps)

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Final Exam. Exam location: RSF Fieldhouse, Back Left, last SID 6, 8, 9

Notebook Circuits With Metering. 22 February July 2009

- Memorize the terms voltage, current, resistance, and power. - Know the equations Ohm s Law and the Electric Power formula

Lab #6 Ohm s Law. Please type your lab report for Lab #6 and subsequent labs.

Section 1 Electric Charge and Force

One Dimensional Collisions 1 Fall 2018

Transcription:

ME C134 / EE C128 Fall 2017 Lab 5a Lab 5a: Magnetic Levitation (Week 1) Magnetism, as you recall from physics class, is a powerful force that causes certain items to be attracted to refrigerators. Dave Barry 1 Objectives The goal of this week s and the next week s lab is to design and implement an analog controller for the magnetic levitation (MagLev) system shown in Figure 1. To do so, we want to design an analog compensator such that the DC gain is 1000 A/m and the phase margin is 60 degrees. Figure 1: Magnetic levitation system in action (starring Skot Croshere) 2 Equipment and Safety 2.1 Lab Rules Safety glasses can be requested, if needed. The coils and black heat sink on the current amplifier can get very hot, please do not touch them. Before making any connections, make sure that the polarity is correct. Be cautious before turning on any power supplies and double check all connections. If you are unsure about something, ask first! October 6, 2017 1 of 7

2.2 Lab Equipment Magnetic levitation system: magnetic coil, LED, and photoresistor Copley Controls Bantam BTM-055-20 current amplifier (Blue box mounted on green PCB) 24V DC power supply for current amplifier Various cables and wires z-stage Steel Balls Digital weighing scale 3 Theory 3.1 System Setup and Block Diagram Figure 2 shows a high level block diagram of the magnetic levitation system. The main task of this first week of the lab is to perform system identification to obtain the transfer function of the linearized plant G(s). Based on this model, you will design an analog controller to stabilize the system, using the methods you learned in class. In next week s lab you will then implement this controller using an analog circuit. Desired Ref Controller Current Offset Linearized plant Amplifier Gain Figure 2: High level block diagram of the magnetic levitation setup Figure 3 on the next page of these instructions shows a block diagram of the magnetic levitation setup with circuit level details. You will be picking values for R 1, R 2, and C to stabilize the steel ball around an equilibrium point. The potentiometers will be used to calibrate the photoresistor and the current offset to the equilibrium point. 3.2 System Modeling The equations of motion of the ball are: mẍ = f(i, x) mg (1) y = h(x) (2) where x is the vertical position of the ball (in m), I is the current through the coil (in A) and g = 9.81 m/s 2 is the gravitational constant. The nonlinear function f(i, x) describes the magnetic force (in N) on the October 6, 2017 2 of 7

ball as a function of x and I, and the nonlinear function h(x) describes the voltage drop across the photo resistor as a function of x. You will need to perform system identification on the MagLev plant in order to determine a linearized system model. This is unlike your previous labs where you were given the system parameters. You will notice that the most difficult part of this lab is in fact the system identification. But the point of the lab is to expose you to control systems design in the real world, so the effort is worth it! 4 Pre-Lab 4.1 Familiarization Get an idea of the system setup by studying Figures 2 and 3 and the system modeling equations. A good understanding of the system will be very helpful when implementing the analog controller during the lab. Also brush up on linearization of nonlinear systems around an equilibrium point as well as op-amp and impedance theory. Figure 3: Block diagram of the magnetic levitation setup with circuit level details. October 6, 2017 3 of 7

4.2 Derivation of the System Transfer Function 4.2.1 Desired position / output offset circuitry Let y ref := Y 0 in the left box in Figure 3. This is the reference voltage that you will adjust using a potentiometer. Derive the following relationship between the signal y 1, the voltage y from the photoresistor and the reference voltage y ref : y 1 = 2y ref y (3) 4.2.2 Transfer function of the analog controller Derive the following transfer function of the analog controller in the red box in Figure 3: G c (s) = Y 2(s) Y 1 (s) = Ω 104 (R 1 + R 2 )C s + 1 R 1 R 2 C s + 1 (4) Notice the negative sign of this transfer function. 4.2.3 Current offset circuitry In the current offset circuit in the blue box in Figure 3, let y i be the voltage drop across the potentiometer and let V out be the output of the op amp. Observe that y i will be negative. Derive the following relationship: V out = (y 2 + y i ) (5) 4.2.4 Linearization of the system We linearize the equation of motion of the MagLev plant to obtain the following approximation: mẍ = f(i, x) mg f(i o, x 0 ) + K i δi + K x δx mg (6) where δi = I I 0 and δx = x x 0. We will tune the current offset circuitry to cancel out the gravitational force at the equilibrium, i.e. we will have f(i 0, x 0 ) = mg. Also, we linearize the output function h around the equilibrium x 0 to obtain h(x) aδx, where δx = x x 0. Therefore, our linearized plant is: mẍ = K i δi + K x δx (7) y = aδx (8) Derive the following transfer function of the linearized plant: G(s) = Y (s) I(s) = ak i m ( s 2 Kx m ) (9) October 6, 2017 4 of 7

5 Lab 5.1 Setting up the Hardware The hardware setups are all slightly different (mainly because of differences in the exact placement of the photoresistor). Make sure you use the same hardware setup for both weeks of the lab or you need to redo the system identification in Lab5a. Please do not make any changes to the setup (such as adjusting the photoresistor) without consulting the GSI first you may be changing another group s setup. You will not have to implement the complete circuit given in Figure 3 in this lab, that will happen next week. However, you will be using the current amplifier. The GSI will help you with setting things up. Do not turn on your circuit before checking off with the GSI! If you want to know more about the current amplified, you can find a data sheet under http://www.copleycontrols.com/motion/pdf/ bantam.pdf. 5.2 System Identification In this lab, you will identify parameters of a linearized model of the magnetic levitation system. Make sure you are aware of the following: Remember to have proper SI units for all of these measurements and calculations and keep track of what you are measuring (i.e. force is in Newtons, not grams). Also, make sure your lighting conditions are consistent since you are using a photoresistor. A note on the power supplies: You may be using multiple power supplies in this lab. The low-power amplifier has a COM connection, which should be connected to the GND of the +24V power supply. For part 4 you will need to vary the voltage to the current amplifier. For this you can use the 6V channel on the lab power power supply. Note that this is quite sensitive, so be careful when adjusting. The high-power power supply +24V/GND will only be connected to the current amplifier board. If everything is ok on the current amplifier board, the AOK green LED will glow. If the LED turns off during operation it might be due to an automatic thermal shutoff, which should not occur if you are doing things correctly. Time to shut off the power supply and debug your circuit! The first offset circuits in Figure 3 is to scale y down to y 1 such that y 1 moves around 0. Perform system identification on the MagLev setup by following the steps below: 1. Decide on an equilibrium height of the ball, which is the x = x 0 = 0 position. This position should be set so that about half of the light going to the photo-resistor is covered (about 6 mm from the bottom of the electromagnet). 2. Measure the range of variation of the resistance of the photo-resistor as the balls shadow covers from none to the entire resistor surface. Using this data, determine a suitable resistor value R to use in series with the photo resistor (see green system box in Figure 3), given that the supply voltage is V + = 7V and the fact that the photo resistor must not exceed a power dissipation of 250mW. Hint: You can use the wooden piece to keep the ball from rolling around. October 6, 2017 5 of 7

3. To linearize h(x): (a) (b) Position the ball at x = 0 (half shade on photo resistor) using the z-stage and weighing scale. Wire the photo resistor in series with a potentiometer and apply V + = 7V. Move the ball slightly up and down (within a few mm) from your equilibrium position. Record the output voltage y at about 5 or 6 different positions. Using Matlab, plot the output y as a function of the deviation δx from the equilibrium point x = 0. You should observe that this relationship is indeed nonlinear. Find the slope a (in V/m) of a linear approximation of h(x) (you can use different techniques for this, including determining the slope from a pair of measurements, or performing linear regression over a number of measurements just make sure to get a good approximation near the equilibrium point). What is the optimal equilibrium voltage of y? 4. To determine K i (N/A): (a) (b) (c) (d) (e) Position the ball at x = 0 (half shade on photo resistor) using the z-stage and weighing scale. To adjust the current through the coil, change the voltage to the current amplifier s ref+ pin. You can determine the amplifier s output current from the voltage at the current monitor pin (to convert from voltage to current, multiply by the factor 20 3 A V. Do not confuse this number with the amplifier gain K a ). Set the current so that the ball is almost weightless ( 0.5 g) and record I 0. Hint: The magnetic field will have an effect on the reading of the scale. Make sure to tare the scale every time when the magnetic field is modified. Decrease voltage to the current amplifier so that ball gets slightly heavier. Record a few current/weight pairs. If you are careful you may also be able to slightly increase the voltage, so long as the ball does not lift off and stick to the electromagnet. Remember, the scale can never measure a negative weight. Any negative readings you get on the scale is not reasonable. Using Matlab, plot the weight of the ball as a function of the deviation δi from the equilibrium point I 0. How does this relationship compare to the voltage/displacement relationship from part 3b? In particular, how accurate is a linear approximation in either case? What do you think the reason for this is? Compute K i from the recorded values. Again, make sure to get a good approximation around the equilibrium point I 0. 5. To determine K x (N/m): (a) (b) (c) Position the ball at x = 0 (half shade on photo resistor) using the z-stage and weighing scale. As before, to adjust the current through the coil you adjust the voltage to the current amplifier ref+ pin. Set the current so that the ball is weightless and record I 0. Make sure to tare the scale with the current on! (as the magnetic field influences scale reading). Decrease the ball height in small steps and record the new height/weight pairs. (d) Plot the weight of the ball as a function of the deviation δx from the equilibrium point x = 0. Discuss this relationship in comparison to the other two you have already determined. (e) Compute K x from the recorded values. Again, make sure to get a good approximation around the equilibrium point x 0. October 6, 2017 6 of 7

6. Let us analyze the DC gain of your system (from y to current out). The ball s position is first sensed, then passed through your controller, and then converted to a current that is sent through the coils of the electromagnet. So the DC gain is the sensor gain multiplied by the DC gain of your controller (K c ) multiplied by the gain of the current amplifier (K a ). In variables: DC gain = a K c K a (10) Now, we want the DC gain of our circuit to be 1000 A/m. Assume K a = 2 A/V and then use this along with the value of a determined in part 3b to calculate K c. 7. If your group finished the above process early, familiarize the process a couple more times. (Try to change the direction of the LED a littie bit and you will be surprised how much it affect the parameter.) You might need to re-identify these parameters in the lab next week. 5.3 Building up the OpAmp Circuit For the second part of this lab, you will build an op amp circuit so that you can get used to debug op amp circuits, which you will build in the next week. For this lab, you need to build Desired Position/Output Offset Circuitry in Figure 3. Since we do not connect the photoresistor to the circuit this week, for the voltage y, please use the power supply. 1. Build Desired Position/Output Offset Circuitry in Figure 3 (For the op amp, please look at Figure 4) 2. Supply any voltage combination (less than 4V) for y ref and y and measure/record the corresponding voltage y 1 (Repeat this process for at least 5 different combinations of voltage y ref and y) 3. Using an equation 3 from Prelab, calculate the voltage y 1 4. Compare your recorded and calculated voltages of y 1 and check if they are similar OUT1 1 8 V+ IN1 2 7 OUT2 +IN1 3 6 IN2 V 4 AD822 5 +IN2 Figure 4: Connection Diagram AD822 OpAmp. 5.4 Lab Report Your group will hand in a mini report for lab 5a and a full-length report for lab 5b. In your report for this lab, describe the linearization method you used and how you found the constants for the model. Be sure to write out the full linearized equations with the values for your identified system parameters. Also, write down all 5 different combinations of y ref, y, recorded and calculated y 1 in your mini report. The report should only be a paragraph or two (and 1 table for the Lab 5.3). October 6, 2017 7 of 7