Inverted Pendulum System

Similar documents
Belt Tension Clamp. Drive Motor. Friction Brake. Load. Encoder 2. Drive. (4000 lines/rev incremental) Encoder 1. (4000 lines/rev incremental)

Rectilinear System. Introduction. Hardware

Industrial Servo System

Industrial Servo System

Torsion Experiment. Encoder #3 ( 3 ) Third encoder/disk for Model 205a only. Figure 1: ECP Torsion Experiment

HB Coupled Pendulums Lab Coupled Pendulums

Physics 2310 Lab #3 Driven Harmonic Oscillator

SRV02-Series Rotary Experiment # 7. Rotary Inverted Pendulum. Student Handout

Double Inverted Pendulum (DBIP)

PHYSICS 211 LAB #8: Periodic Motion

Simple Harmonic Motion - MBL

PreLab 2 - Simple Harmonic Motion: Pendulum (adapted from PASCO- PS-2826 Manual)

Physics 1020 Experiment 6. Equilibrium of a Rigid Body

Experiment IV. To find the velocity of waves on a string by measuring the wavelength and frequency of standing waves.

Rotary Motion Servo Plant: SRV02. Rotary Experiment #01: Modeling. SRV02 Modeling using QuaRC. Student Manual

Lab 10: Harmonic Motion and the Pendulum

Circular Motion and Centripetal Force

2: SIMPLE HARMONIC MOTION

Driven Harmonic Oscillator

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

Laboratory 3: Acceleration due to gravity

Experiment P30: Centripetal Force on a Pendulum (Force Sensor, Photogate)

A SHORT INTRODUCTION TO ADAMS

Lab 10 - Harmonic Motion and the Pendulum

Lab 10 Circular Motion and Centripetal Acceleration

The University of Hong Kong Department of Physics. Physics Laboratory PHYS3350 Classical Mechanics Experiment No The Physical Pendulum Name:

EXPERIMENTALLY DETERMINING THE TRANSFER FUNCTION OF A SPRING- MASS SYSTEM

Pre-Lab Exercise Full Name:

Hands-on Lab. Damped Compound Pendulum System ID (Experimental and Simulation) L Bar length m d Pivot to CG distance m m Mass of pendulum kg

Sensor Accessories. Rotary Motion Accessory Pack. Pendulum Rod with two masses, Angular Momentum disc set and Linear Rack with mini c-clamp

SHM Simple Harmonic Motion revised May 23, 2017

Human Arm. 1 Purpose. 2 Theory. 2.1 Equation of Motion for a Rotating Rigid Body

Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring

EXPERIMENT 7: ANGULAR KINEMATICS AND TORQUE (V_3)

PHY 123 Lab 4 - Conservation of Energy

MAE106 Laboratory Exercises Lab # 6 - Vibrating systems

EE 468 Control System Laboratory Supporting Materials and Experiments

Physical Pendulum Torsion Pendulum

Laboratory handouts, ME 340

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

PHY 123 Lab 8 - Standing Waves

EE 4443/5329. LAB 3: Control of Industrial Systems. Simulation and Hardware Control (PID Design) The Torsion Disks. (ECP Systems-Model: 205)

Flexible Pendulum (FLEXPEN)

LAB 3: WORK AND ENERGY

Physical Pendulum, Torsion Pendulum

PHY 123 Lab 10-Simple Harmonic Motion

Physics Labs with Computers, Vol. 1 P14: Simple Harmonic Motion - Mass on a Spring A

Lab 10: Ballistic Pendulum

Physics Spring 2006 Experiment 4. Centripetal Force. For a mass M in uniform circular motion with tangential speed v at radius R, the required

Lab Partner(s) TA Initials (on completion) EXPERIMENT 7: ANGULAR KINEMATICS AND TORQUE

Updated 2013 (Mathematica Version) M1.1. Lab M1: The Simple Pendulum

PHY221 Lab 2 - Experiencing Acceleration: Motion with constant acceleration; Logger Pro fits to displacement-time graphs

Activity P15: Simple Harmonic Oscillation (Force Sensor, Photogate)

2: SIMPLE HARMONIC MOTION

Motion on a linear air track

The Ballistic Pendulum

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

PHY 123 Lab 9 Simple Harmonic Motion

Newton s Third Law and Conservation of Momentum 1 Fall 2017

Experiments in Physics

Dynamics Track. Magnetic Force Impulse and Momentum

a. Follow the Start-Up Procedure in the laboratory manual. Note the safety rules.

Hooke s Law. Equipment. Introduction and Theory

M61 1 M61.1 PC COMPUTER ASSISTED DETERMINATION OF ANGULAR ACCELERATION USING TORQUE AND MOMENT OF INERTIA

Experiment 5. Simple Harmonic Motion

Ballistic Pendulum. Equipment. Introduction. Setup

PHY 123 Lab 6 - Angular Momentum

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

Physics 4C Simple Harmonic Motion PhET Lab

Unit 7: Oscillations

Rotational Motion. 1 Purpose. 2 Theory 2.1 Equation of Motion for a Rotating Rigid Body

General Physics I Lab. M1 The Atwood Machine

Rotational Dynamics. Goals and Introduction

A SHORT INTRODUCTION TO ADAMS

QNET Experiment #04: Inverted Pendulum Control. Rotary Pendulum (ROTPEN) Inverted Pendulum Trainer. Instructor Manual

Activity P20: Conservation of Mechanical Energy (Force Sensor, Photogate)

for MiLAB Desktop Experiments in Physics imagine explore learn

Laboratory handout 5 Mode shapes and resonance

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department

LAST TIME: Simple Pendulum:

1 M62 M62.1 CONSERVATION OF ANGULAR MOMENTUM FOR AN INELASTIC COLLISION

Project 3: Pendulum. Physics 2300 Spring 2018 Lab partner

18-Dec-12 PHYS Simple Pendulum. To investigate the fundamental physical properties of a simple pendulum.

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

Hands-on Lab 3. System Identification with Experimentally Acquired Data

Oscillations. The Force. The Motion

Magnetic Fields. Experiment 1. Magnetic Field of a Straight Current-Carrying Conductor

FEEDBACK CONTROL SYSTEMS

Lab 6a: Pole Placement for the Inverted Pendulum

NOTE To improve the TA to class ratio, two groups will perform this experiment at one time. Group times are listed on the class website.

Torsional Control System

PHYSICS 211 LAB #3: Frictional Forces

THE CONSERVATION OF ENERGY - PENDULUM -

Lab 9. Rotational Dynamics

LAB 10: HARMONIC MOTION AND THE PENDULUM

Newton s Second Law of Motion

PHYSICS LAB Experiment 9 Fall 2004 THE TORSION PENDULUM

Dynamics. Newton s First Two Laws of Motion. A Core Learning Goals Activity for Science and Mathematics

Rotational Motion. Variable Translational Motion Rotational Motion Position x θ Velocity v dx/dt ω dθ/dt Acceleration a dv/dt α dω/dt

Lab 8: Centripetal Acceleration

Transcription:

Introduction Inverted Pendulum System This lab experiment consists of two experimental procedures, each with sub parts. Experiment 1 is used to determine the system parameters needed to implement a controller. Part A finds the hardware gains in each direction of motion. Part B requires calculation of system parameters such as the inertia, and experimental verification of the calculations. Experiment 2 then implements a controller. Part A tests the system without the controller activated. Part B then activates the controller and compares the stability to Part A. Part C then has a series of increasing step responses to determine the controller s ability to track the desired output. Finally Part D has an increasing frequency input into the system to determine the system s frequency response. Hardware Figure 1 shows the Inverted Pendulum Experiment. It consists of a pendulum rod which supports the sliding balance rod. The balance rod is driven by a belt and pulley which in turn is driven by a drive shaft connected to a DC servo motor below the pendulum rod. There are two series of weights included that affect the physical plant: brass counter weights connected underneath the pivot plate with adjustable height and weight and brass donut weights attached to both ends of the balance rod. Figure 1: Model 505 ECP Inverted Pendulum Apparatus 1

Safety - Be careful on the step where students are asked to physically turning the equipment upside-down. Make sure the device is not on the edge of the table after it is inverted. - Make sure the pendulum, when released, will not hit anyone or anything. - Be sure to stay clear of the mechanism when turning on the controller or implementing an input. Selecting Implement Algorithm immediately implements the specified controller. If there is an instability or large control signal, immediately abort the control. If the system appears stable after implementing the controller, first displace the disk with a light, non-sharp object (e.g. a plastic ruler) to verify stability prior to touching plant. Hardware/Software Equipment Check Before starting the lab, make sure that the equipment is working correctly using the following steps: Step 1: Enter the ECP program (Note, there is an ECP USR Program as well. Do not use this program). You should see the Background Screen. Gently move the sliding and pendulum rods back and forth. You should observe some following errors and changes in encoder counts. The Control Loop Status should indicate "OPEN" and the Controller Status should indicate OK or LIMIT EXCEEDED. Step 2: Make sure that you can rotate the rods freely. Now press the black "ON" button to turn on the power to the Control Box. You should notice the green power indicator LED lit, but the motor should remain in a disabled state. Do not touch the mechanism whenever power is applied to the Control Box since there is a potential for uncontrolled motion of the rods unless the controller has been safety checked. 2

Experiment 1: System Identification In this initial stage, the physical parameters needed to implement a controller such as inertia and damping are calculated and found experimentally. Table 1-1. Mass Property Values Parameter Value Description lo 0.330 (m) Distance from pendulum-rod pivot to the sliding rod T section m 1 TBD (kg) Mass of the sliding rod including the donut weights. m 1o 0.103 (kg) Mass of the sliding rod assembly without the "donut" weights m w1 0.110 (kg) Total mass of the "donut" weights mounted on the sliding rod m 2 TBD (kg) Mass of the assembly without the sliding rod part m w2 1.000 (kg) Total mass of two brass balance weights mounted on the pendulum rod m 2o 0.785 (kg) Mass of the pendulum rod alone l co 0.071 (m) Position of c.g. of the pendulum rod J o * TBD (kg-m 2 ) Moment of inertia of the pendulum rod about its rotating pivot To be determined From the definitions in Table 1-1 above, we have: m 1 = m 1o + m w1 (Equation 1-1) m 2 = m 2o + m w2 (Equation 1-2) Define the following parameter: lw2 = signed distance from pivot to c.g. of balance mass (m w2 ) It can be adjusted by the user and is readily measured. Referring to Figure 1-1 next page, l w2 = - t+l t+l b 2 (Equation 1-3) In this experiment, we set lb = 14 cm (t and lt can be measured from Fig. 1-1) 3

Figure 1-1 Definition of l w2 Define four other parameters: J oe = moment of inertia of complete assembly about the pendulum-rod pivot J * = moment of inertia of the assembly without the sliding rod part l c = c.g. of the assembly without the sliding rod part l cr = c.g. of the assembly without the balance weights on pendulum The parameters relate to other system parameters by the following three equations: J oe = J o * + m l l o 2 + m w2 l w2 2 J * = J oe -m 1 l o 2 (Equation 1-4) (Equation 1-5) l l c = m w2l w2 +m 20 l co m 2 (Equation 1-6) m l + m l 1 0 2o co cr = (Equation 1-7) m1 + m2o 4

Experiment 1a. Follow the procedure below to determine ka and kx. 1. Turn OFF the control box. Position the pendulum rod to the right and the sliding rod to the far right at the limit of travel. Enter the ECP program. 2. Click Zero Position in the Utility menu. You should see the position of Encoder 1 and Encoder 2 change to be approximately zero. 3 Hold on to the pendulum rod and push the sliding rod from one end to another. Record the number of counts moved by encoder 2 on the Background Screen. With a ruler, measure the distance in meters that the sliding rod has traveled. The ratio of the two is the value of k x. 4. Move the pendulum rod in the anti-clockwise direction from the 20 degree mark to the other 20 degree mark. Record the number of counts moved by encoder 1. Convert the angle of rotation in radians. The ratio of the two is the value of k a. The final report is expected to include: Calculations showing how you found the following values along with units: - ka - kx Experiment 1b: Follow the procedure below to determine the value of J o * defined in Table 1-1, from which J oe and J * can then be obtained via Equations 1-1 through 1-7. 1. Remove the threaded rod attached to brass balance weights from the pendulum rod. Next, use a rubber band to restrain the sliding rod to the pendulum rod in its center of travel position as shown in Figure 1-2. Use rubber band to restrain sliding rod in center position Figure 1-2. Securing Sliding rod For J o * Measurement via Pendulum Frequency 5

2. Power off the control box. Carefully position the entire pendulum mechanism up-side down on two coplanar flat surfaces such that the pendulum rod is free to rotate as a regular pendulum. (E.g. two tables side-by-side with approx. 8 in. gap between.) 3. Power up the control box. Enter the Control Algorithm box via the Set-up menu and set T s = 0.00442 s. Set all gain values to zero and select continuous time. Set up Data Acquisition in the Data menu and select Encoder 1 as data to acquire and specify data sampling every 2 servo cycles (i.e. every 2 T s 's). Select OK to exit. With the pendulum hanging freely under gravity, select Zero Position from the Utility menu to zero the encoder positions. 4. Now select Trajectory in the Command menu. Enter the Step dialog box and click on setup. Choosing Open loop Step, input a step size of 0 (zero), a duration of 3000 ms and repetition of 1. Exit to the Background Screen by consecutively selecting OK. This puts the controller in a mode for acquiring 6 sec of data on command but without driving the actuator. This procedure may be repeated and the duration adjusted to vary the data acquisition period. 5. Select Execute from the Command menu. Manually displace the pendulum rod approximately 20 degrees from vertical. Release it and click run immediately after. The pendulum rod will oscillate and slowly attenuate while the encoder data is collected to record this response. Select OK after data is uploaded. Plot Encoder 1 position on screen to see the pendulum motion. 6. Export the data to save in a file using export raw data in the data menu. Use the matlab program, plotdata.m, on the class website to plot Encoder 1 position vs. time (plot key iplot=1). Clearly label the plots. 7a. Use matlab Data Curser tool to determine the period of oscillation, T, in seconds by taking the time for completion of several cycles divided by the number of cycles. Convert this to the natural frequency of the system in rad/s. Confirm that the period is fairly close to 1.25 seconds. 7b. Use the following equation for the natural frequency of a free vibration (ME370) to determine the inertia J of the tested pendulum in terms of the measured T and other parameters given in Table 1-1: where mgl ω n = (Equation 1-8) J ω n = natural frequency of the tested pendulum, rad/s m = mass of the tested pendulum, kg l = c.g. of the tested pendulum to the pivot of rotation, m (use eq. 1-7) Jo = moment of inertia of pendulum about the pivot of rotation, kg-m 2. o 6

G = gravitational constant, m/s 2 8. Calculate the values of m and l cr for the test case and hence obtain J. (Note J here is the moment of inertia of the assembly without the balance weights on the pendulum rod). Now determine J o * by J-m 1 l o 2. Verify your determined J o * is fairly close to 0.0246 kg-m 2 (consult with TA if not). Calculate two other inertias, Joe and J* defined in Eqs. (1-4) and (1-5). 9. Now, carefully take your test pendulum back to its original inverted position on the working bench. The final report is expected to include: One MATLAB Plot of the pendulum swing with title, labels and Data Cursor Points used to determine T. Calculations showing how you found - Period of oscillation, T - Natural frequency, ωn - Mass of tested system, m - c.g. of the tested assembly, lcr - Moment of inertia of the tested assembly, J - Moment of inertia of the pendulum rod alone, J o * - Moment of inertia of the fully assembled pendulum, Joe - Moment of inertia of the system without the sliding-rod part, J*. For all the items highlighted, the questions should be copied and pasted into your lab report and answered immediately thereafter. 7

Experiment 2: System stabilization and control We will study the stabilization and control of the unstable inverted pendulum system with a close-loop control system. Experiment 2a. Hardware set up: Set up the pendulum in its original inverted configuration. Insert and fasten (with a nut) the balance-weight rod into the base plate of the pendulum. Mount and fasten (by tightening against each other) two counter weights to the rod at the free end of the rod so that lb shown in Fig. 1-1 is 14 cm. Also, the sliding rod with its two donut weights should be mounted in the system. Make sure it can be driven by the motor by manually turning the knob back and forth. Also, make sure the belt is not too loose and tighten it if so. Adjust the pendulum and the sliding rod position to reach an equilibrium position upright. Displace the pendulum gently in both directions to see if it can return to its original upright position. If so, record the range of angles. Can the pendulum return to its upright position? If yes, estimated the range of angles for which this is possible. You may estimate the angle by reading off the counts of Encoder #1 displayed on the monitor and then convert to degrees using the gain measurements you did in the previous experiments. Experiment 2b. Controller set up and stabilization: Position the pendulum at the upright equilibrium position and then reset it to zero position via the utility menu. Power up the controller. Enter the Control Algorithm box via the Setup menu. Set the sampling period to be Ts = 0.00884 s (note: not 0.000884). Select Discrete Time and then select General Form. You may click Setup Algorithm to check if the algorithm has been set up. If not, use the reference in the last page to set up. Click Implement Algorithm and then Ok to close the menu window. Gently push away the pendulum from the equilibrium position back and forth. You should see the motor actuates the sliding rod accordingly to stabilize the system so that you can displace the pendulum to a large angle while it can return to its upright position upon release. If you don t get this stabilizing response, ask course instructor or TA to reset the controller for you. With this stabilization controller at work, displace the pendulum gently in both directions to exam its ability to return to it upright position. Can the pendulum return to its upright position when displaced away by its maximum o measurable angles of ± 20? If no, what is the range of angles? 8

Experiment 2c. Step response: With the pendulum in its upright equilibrium position and with the controller engaged and sensor positions zeroed, enter a step input via the Command menu and Trajectory Configuration. Select Step and then click Setup. Select Closed Loop Step and input a step size of 500 counts, a duration of 5000 ms and 1 repetition. Exit to the Background Screen by consecutively clicking Ok. This will command the system with a 500 counts step move forward and back with a 5.0 seconds dwell. If a step size of 500 exceeds the limits of the system, figure out a smaller value that works for you and still gives large enough system dynamics. State the size of command you use in your lab report. Execute the controlled motion via Command and Execute. You should see a stable pendulum response to the step input you specified. Click Data Acquisition menu. Select encoder 1, encoder 2 and commanded position to collect data at every sampling period (every Ts). Zero the sensor position and re-run the experiment to collect data. Plot on screen encoder 1 (pendulum swing) and commanded positions on one axis and encoder 2 position (rod displacement) on the other.* Export the data to matlab and generate the same plot using program plotdata.m with plot key iplot=3. Next, conduct a sequence of experiments starting with a step size of 100 counts and an increment of 50 counts until the step size reaches 500 or its maximum value for stable operation. For each run, record the pendulum swing position (encoder 1) at steady-state as a function of the commanded position in an excel file for later plotting; if the plot oscillates up and down, estimate an average value for it. Plot the results in either excel or matlab.** The final report is expected to include: Plots illustrating the responses above along with titles and labels Plot of the step response described in paragraph * Plot of pendulum swing vs. size of step command described in paragraph ** Based on your results, briefly describe the system s ability to respond to the command as the size of the command increases. For all the questions highlighted, the questions should be copied and pasted into your lab report and answered immediately thereafter. 9

Experiment 2d: Frequency response: Conduct a series of experiments with sinusoidal inputs. Enter a sinusoidal input similar to what you did for the step input above. Select an amplitude of 200 counts and 6 cycles. You may use a different amplitude value you see fit and state it in your report. Conduct a sequence of experiments starting with a frequency of 0.5 Hz and then increase by 0.5 Hz in subsequent runs. In each run, observe how the system follows the command (encoder 1 vs. commanded position), which may be characterized by estimating the steady-state amplitude (in ratio to command) and phase lag (in deg) of the response from your plot. Record this result in an excel file for each frequency of the input for later plotting. Terminate the sequence at the frequency at which the system can no longer follow the command, which can be easily seen from the plotted command and response curves (should be larger than 5Hz). The final report is expected to include: Two plots along with titles and labels Plot of response amplitude (ratio) as function of frequency Plot of response phase lag (deg) as function of frequency The frequency at which the system loses tracking Based on your results, briefly describe the system tracking behavior as the frequency increases. 10

Reference: Controller Settings Choose General Form and click Setup Algorithm. Make sure your controller parameters are set as the following. 11