Lab #2: Digital Simulation of Torsional Disk Systems in LabVIEW

Similar documents
Lab #3: System Identification of the Torsional Disk System

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

Modeling and Experimentation: Compound Pendulum

Position Control Experiment MAE171a

Lab 3: Model based Position Control of a Cart

University of Utah Electrical & Computer Engineering Department ECE 3510 Lab 9 Inverted Pendulum

Positioning Servo Design Example

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

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

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

Lab 6a: Pole Placement for the Inverted Pendulum

PHYSICS LAB Experiment 9 Fall 2004 THE TORSION PENDULUM

3 Lab 3: DC Motor Transfer Function Estimation by Explicit Measurement

1 Newton s 2nd and 3rd Laws

Volume vs. Diameter. Teacher Lab Discussion. Overview. Picture, Data Table, and Graph

Theory & Practice of Rotor Dynamics Prof. Rajiv Tiwari Department of Mechanical Engineering Indian Institute of Technology Guwahati

Introduction to Control (034040) lecture no. 2

Lesson 7: Classification of Solutions

Magnetic Torque Physics 2150 Experiment No. 11 University of Colorado

PRELAB: COLLISIONS Collisions, p. 1/15

Solving with Absolute Value

MA 3260 Lecture 10 - Boolean Algebras (cont.) Friday, October 19, 2018.

Modal Analysis: What it is and is not Gerrit Visser

Lab 11: Rotational Dynamics

LAB 2 - ONE DIMENSIONAL MOTION

Change & Rates of Change

Capacitors. Chapter How capacitors work Inside a capacitor

2.3 Damping, phases and all that

Coupled Oscillators. 1 Introduction. 2 Theory. PHY 300 Lab 2 Fall 2012

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15

Section 4.6 Negative Exponents

Implementation Issues for the Virtual Spring

Lab #4 - Gyroscopic Motion of a Rigid Body

Mechatronics. MANE 4490 Fall 2002 Assignment # 1

Systematic Uncertainty Max Bean John Jay College of Criminal Justice, Physics Program

Introduction to Algebra: The First Week

The Torsion Pendulum (One or two weights)

Day 1: Over + Over Again

Finish up undetermined coefficients (on the midterm, on WW3) Physics applications - mass springs (not on midterm, on WW4)

EXPERIMENT 7: ANGULAR KINEMATICS AND TORQUE (V_3)

(Refer Slide Time: 1:42)

The Torsion Pendulum

Lecture Module 5: Introduction to Attitude Stabilization and Control

Measuring the Universal Gravitational Constant, G

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics Spring Experiment 5: Faraday s Law

Lab 11 - Free, Damped, and Forced Oscillations

Inverted Pendulum System

Math 111, Introduction to the Calculus, Fall 2011 Midterm I Practice Exam 1 Solutions

Regression, part II. I. What does it all mean? A) Notice that so far all we ve done is math.

(Refer Slide Time: 00:01:30 min)

Proving languages to be nonregular

Feedback Control Systems

PH 120 Project # 2: Pendulum and chaos

Dynamics of Machines. Prof. Amitabha Ghosh. Department of Mechanical Engineering. Indian Institute of Technology, Kanpur. Module No.

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

Physics 6A Lab Experiment 6

Solving Equations. Lesson Fifteen. Aims. Context. The aim of this lesson is to enable you to: solve linear equations

LAB 3: VELOCITY AND ACCELERATION

LAB 3 - VELOCITY AND ACCELERATION

DIFFERENTIAL EQUATIONS

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual

Chapter 1 Review of Equations and Inequalities

LAB 6: WORK AND ENERGY

EAS 535 Laboratory Exercise Weather Station Setup and Verification

Math Lab 8: Electric Fields Integrating Continuous Charge Distributions II Due noon Thu. Feb. 1 in class

Lab 4. Current, Voltage, and the Circuit Construction Kit

One sided tests. An example of a two sided alternative is what we ve been using for our two sample tests:

Mathematics Algebra. It is used to describe the world around us.

Application Note #3413

Introducing Proof 1. hsn.uk.net. Contents

Math 440 Project Assignment

( )( b + c) = ab + ac, but it can also be ( )( a) = ba + ca. Let s use the distributive property on a couple of

Chapter 7 Control. Part Classical Control. Mobile Robotics - Prof Alonzo Kelly, CMU RI

!t + U " #Q. Solving Physical Problems: Pitfalls, Guidelines, and Advice

LABORATORY IV OSCILLATIONS

Lab 5: Rotational Motion II

1.053J/2.003J Dynamics and Control I Fall Final Exam 18 th December, 2007

STUDY GUIDE 4: Equilibrium, Angular Kinematics, and Dynamics

Name Date: Course number: MAKE SURE TA & TI STAMPS EVERY PAGE BEFORE YOU START. Grade: EXPERIMENT 4

Fitting a Straight Line to Data

Physics 351, Spring 2017, Homework #3. Due at start of class, Friday, February 3, 2017

Lab 4 Series and Parallel Resistors

Name Date Time to Complete

Static Equilibrium. Torque - also known as moment of force. (Serway Sec. 11.1) Rigid objects in static equilibrium. (Serway Secs. 12.1, 12.

Factoring. there exists some 1 i < j l such that x i x j (mod p). (1) p gcd(x i x j, n).

Physics 6A Lab Experiment 6

Class #12: Experiment The Exponential Function in Circuits, Pt 1

Adam Blank Spring 2017 CSE 311. Foundations of Computing I. * All slides are a combined effort between previous instructors of the course

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

MITOCW R11. Double Pendulum System

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Electricity Designing a Voltmeter c 2 testing Review. Lecture # 7 Physics 2BL Summer 2011

PHY 221 Lab 5 Diverse Forces, Springs and Friction

The basic principle to be used in mechanical systems to derive a mathematical model is Newton s law,

EE 422G - Signals and Systems Laboratory

Linear Second-Order Differential Equations LINEAR SECOND-ORDER DIFFERENTIAL EQUATIONS

The Damped Pendulum. Physics 211 Lab 3 3/18/2016

Figure 1: Doing work on a block by pushing it across the floor.

Lab #2 - Two Degrees-of-Freedom Oscillator

Transcription:

Lab #2: Digital Simulation of Torsional Disk Systems in LabVIEW Objective The purpose of this lab is to increase your familiarity with LabVIEW, increase your mechanical modeling prowess, and give you simulation models that you can use to verify your designs before testing them on hardware. The model you write today will allow you to to simulate what the Torsional Disk System (TDS) will do in response to a given input. However, this response is dependent on the value of certain parameters for the system, such as the rotational inertia of the disks, the torsional spring constants, and the dissipation due to bearings and gears. These parameter values will have to be estimated using a process called system identification. (You will do this heuristically in this lab and will do it more formally in Lab #3.) Although system identification can involve no modeling whatsoever, it is almost always easier to do it when one is only trying to estimate a finite number of parameters. Hence, it is generally better to think of modeling and system identification as being inter-dependent. Once you have a model that is reasonably accurate, you will finally be in a position to do some actual control design (which will start in Lab #4). It is worth noting that this is roughly the cycle that you would go through if you were doing an actual industrial project. This cycle is generally 1) Model, 2) Verify Model Experimentally, 3) Design Using Model, and finally 4) Test Control Design Experimentally. In general, no one would allow you to try something out experimentally until you could show that the simulations indicate it should work (or at least this is typically true). 1

Lab Overview First, you need to find a model for the torsional disk system. As you know, it has three disks with different inertias and dissipation, and a torsional rod that can be twisted to some degree, but has a linear torsional spring constant associated with it that (along with dissipation in the system) relaxes each disk back into its original orientation. It is driven by a DC motor that you can think of as directly applying a torque to the system, where the torque is scaled by some factor X. Second, you will need to show that you can create a simulation for one disk, two disks, or all three disks. You can be as clever as you want in terms of how you program this. However, I would suggest using a MathScript node in the simulation module. Recall, the MathScript block can be found in the Structures palette under Programming. Lastly, you will investigate what goes right/wrong with various feedback control approaches. This is largely intended to give you an appreciation of why we think of control design as actually being quite important! 0.1 Pre-Lab Tasks The pre-lab requirements are roughly as follows: 1. Read this entire document. 2. Prepare a model for the Torsional Disk System. This will be a 2 nd - order differential equation of three variables. Be prepared to discuss your modeling with your teammates. (It is unlikely that you will all arrive with the same model.) 3. Based on simulations, guess the parameters for the Torsional Disk System. 0.2 Tasks The torsional disk system has three disks of inertia (J 1, J 2, J 3 ) (due to the disks themselves and the masses we afix to the disks), damping coefficients c 1, c 2, c 3 (due to friction in the bearings and other components supporting the disks), a torsional rod connecting all three with torsional spring constants 2

k 1 and k 2 in between the disks, and a torque scaling constant k m that scales signals (voltage) from the FPGA to the output torque of the motor. When doing system identification, these are the parameters you will need to be able to identify in the next lab. However, in order to identify them, you need a model describing how the system behavior changes as one modifies the parameters. 0.2.1 Task #1 Mechanical Model Task: Based on what you have learned in class, find a model for this system. Let the configuration variables of the bottom disk, middle disk, and top disk be (θ 1, θ 2, θ 3 ) respectively (with their positive directions measured by the right hand rule with the z-axis going up), the moments of inertia be J 1, J 2, J 3, the viscous dissipation coefficients be c 1, c 2, c 3 (i.e., with τ = c i θi ), and the spring constants between disk 1 and 2 be k 1 (i.e., τ = k 1 (θ 1 θ 2 )) and between disk 2 and 3 be k 2 (i.e., τ = k 2 (θ 2 θ 3 )). Be sure to be careful with your sign conventions! Lastly, let the input torque from the motor be T. Task: What are the input, state, and output choices we have for this system? Task: How might you check to see if your sign conventions are correct? Task: What do you think are reasonable values of each of these values? You should be able to approximate this analytically for the inertia (for a given set of masses attached to the disk). The other parameters you will have to guess, although you should defend your answer (partially by noting whatever units you are using). As you think about defending your choice of parameters, you should think about what these choices would mean for the actual physical system that we have in the lab. For instance, try gently twisting the two disks relative to each other, so you can see that the spring constant cannot be too high. Thinking about physical units might also be helpful in considering your guesses. What else do you know? You will have a chance in a moment to update your answer based on simulations. 3 Figure 1: The ECP Torsional Disk System.

Variable J 1 J 2 J 3 c 1 c 2 c 3 k 1 k 2 Value Task: What are we not modeling? So far, we have only included rigid body effects what are other effects that might influence the behavior of the system. List three other effects you believe would most influence the system that we have not included in our mathematical description of the system. Task: Write the model both in state-space form and as a transfer function for all θ i outputs. you may wish (in fact, I highly recommend) using a symbolic software package such as Mathematica to compute the transfer function from the state space model. 0.2.2 Task #2 Simulation Task: Implement your model both as a transfer function and as a statespace system in LabVIEW s Simulation Module. You should initially use the parameters that you have guessed, but you should be prepared to change these parameters. (If you do not have a transfer function at this point, you should do the rest of the lab first using a state space model you can create and use the transfer function outside of class if necessary.) Task: Give the (open-loop!) model a unit step input. Does the model respond the way you expect it to? You may, if you wish, come up and experiment by hand with the torsional disk systems (while they are turned off). Task: Start the simulation of your model at a nontrivial initial condition (in the state-space model) to see if that tells you anything else useful. You can change the initial condition by right clicking the state-space system and choosing Configuration. Task: How can other measurements help you, such as: natural frequency of oscillation, rate at which the system response decays due to dissipation, and sluggishness of response of the system to input torque? Can you think 4

of anything else that would allow you to evaluate the correctness of your model? Task: For each case, turn in a plot that includes the relevant output of the system and the input, explaining what the result implies for your choice of parameter. Note that this part of the lab is very open-ended. It is intended to be open-ended. Don t get frustrated! Task: Now, based on your findings, choose different (or possibly the same, if you were very lucky) parameters of the system Variable J 1 J 2 J 3 c 1 c 2 c 3 k 1 k 2 Value 0.2.3 Task #3 Sensitivity to Feedback One of the main things you ll learn in this class is that feedback is a very powerful tool, with both good and bad consequences. In the case of the torsional disk system, a nominally stable system can be made unstable. Assume for the rest of the lab that you have a proportional controller of constant K. Is the system, with the parameters you have chosen, stable? Consider the following questions: Task: Write the equations of motion for just the bottom disk. (I.e., you are setting J 2 = J 3 = 0.) Using the parameter values you decided upon, design a controller K that is stable for disk 1 and has performance you find satisfactory. Task: What happens when you use this controller on the original three disk system? Try to give a physically intuitive explanation of what you observe in the simulation. Task: Can you change the parametric properties (i.e., the inertias, damping, and spring constants) of the torsional system such that you are satisfied with 5

the result? E.g., do you get a stable, fast response with little overshoot? What do such changes mean physically for the system? 0.3 Lab #2 Final Tasks Task: Simulate in LabVIEW the transfer function model of the torsional disk system, this time looking at θ 3, the top disk, as your output. Provide a simulation of the system s response to a unit step input. Task: Do your two models for θ 3 (the state-space model and the transfer function model) provide the same numerical results? Be precise! If they are different, why? If they are the same, how are you sure? Task: Write a brief overview of what you think an effective procedure would be to estimate the parameters J 1, J 2, J 3, c 1, c 2, c 3, k 1, k 2. Remember, if you get stuck on some part of the lab, ask your classmates, the TA, or myself. 6