Inverted Pendulum. Objectives

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

ECE-320: Linear Control Systems Homework 8. 1) For one of the rectilinear systems in lab, I found the following state variable representations:

Topic # Feedback Control Systems

Stabilizing the dual inverted pendulum

R10 JNTUWORLD B 1 M 1 K 2 M 2. f(t) Figure 1

Lab 5a: Pole Placement for the Inverted Pendulum

Lab 6a: Pole Placement for the Inverted Pendulum

Root Locus Design Example #4

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

Classical Dual-Inverted-Pendulum Control

Feedback Control of Linear SISO systems. Process Dynamics and Control

Lab 6d: Self-Erecting Inverted Pendulum (SEIP)

R a) Compare open loop and closed loop control systems. b) Clearly bring out, from basics, Force-current and Force-Voltage analogies.

ECEn 483 / ME 431 Case Studies. Randal W. Beard Brigham Young University

ECE317 : Feedback and Control

θ + mgl θ = 0 or θ + ω 2 θ = 0 (2) ω 2 = I θ = mgl sinθ (1) + Ml 2 I = I CM mgl Kater s Pendulum The Compound Pendulum

Digital Control Systems

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

Unit 11 - Week 7: Quantitative feedback theory (Part 1/2)

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory

MEAM 510 Fall 2011 Bruce D. Kothmann

Nyquist Stability Criteria

Systems Analysis and Control

Chapter 2 SDOF Vibration Control 2.1 Transfer Function

1 An Overview and Brief History of Feedback Control 1. 2 Dynamic Models 23. Contents. Preface. xiii

MEAM 510 Fall 2012 Bruce D. Kothmann

MAE143a: Signals & Systems (& Control) Final Exam (2011) solutions

Computer Aided Control Design

Implementation Issues for the Virtual Spring

(b) A unity feedback system is characterized by the transfer function. Design a suitable compensator to meet the following specifications:

Last week: analysis of pinion-rack w velocity feedback

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

Lab 3: Quanser Hardware and Proportional Control

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

Example: DC Motor Speed Modeling

Matlab-Based Tools for Analysis and Control of Inverted Pendula Systems

Inverted Pendulum System

Systems Analysis and Control

CONTROL SYSTEMS ENGINEERING Sixth Edition International Student Version

Application Note #3413

IMPROVED TECHNIQUE OF MULTI-STAGE COMPENSATION. K. M. Yanev A. Obok Opok

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Guzzella 9.1-3, Emilio Frazzoli

Digital Pendulum Control Experiments

MAE 143B - Homework 7

EE C128 / ME C134 Final Exam Fall 2014

Lecture 4 Stabilization

MAE 143B - Homework 9

Lab 3: Model based Position Control of a Cart

Linear Control Systems Lecture #3 - Frequency Domain Analysis. Guillaume Drion Academic year

Chapter 2. Classical Control System Design. Dutch Institute of Systems and Control

System simulation using Matlab, state plane plots

EEE 184 Project: Option 1

CONTROL * ~ SYSTEMS ENGINEERING

Outline. Classical Control. Lecture 5

State Feedback MAE 433 Spring 2012 Lab 7

Control Systems. EC / EE / IN. For

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

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

Different Modelling and Controlling Technique For Stabilization Of Inverted Pendulam

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

CHAPTER 1 Basic Concepts of Control System. CHAPTER 6 Hydraulic Control System

MECH 3140 Final Project

Position Control Experiment MAE171a

EECS C128/ ME C134 Final Wed. Dec. 15, am. Closed book. Two pages of formula sheets. No calculators.

A Light Weight Rotary Double Pendulum: Maximizing the Domain of Attraction

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. MSc SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2015/2016

MAS107 Control Theory Exam Solutions 2008

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #7. M.G. Lipsett & M. Mashkournia 2011

Inverted Pendulum: State-Space Methods for Controller Design

Positioning Servo Design Example

Classify a transfer function to see which order or ramp it can follow and with which expected error.

While using the input and output data fu(t)g and fy(t)g, by the methods in system identification, we can get a black-box model like (In the case where

100 (s + 10) (s + 100) e 0.5s. s 100 (s + 10) (s + 100). G(s) =

Appendix A: Exercise Problems on Classical Feedback Control Theory (Chaps. 1 and 2)

DIGITAL CONTROL OF POWER CONVERTERS. 3 Digital controller design

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

Dr Ian R. Manchester

AMME3500: System Dynamics & Control

FEEDBACK CONTROL SYSTEMS

D(s) G(s) A control system design definition

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

Automatic Control II Computer exercise 3. LQG Design

Chapter Eleven. Frequency Domain Design Sensitivity Functions

School of Engineering Faculty of Built Environment, Engineering, Technology & Design

Table of Laplacetransform

Introduction. Performance and Robustness (Chapter 1) Advanced Control Systems Spring / 31

Control Systems I Lecture 10: System Specifications

Chapter 5 HW Solution

Mechatronics Engineering. Li Wen

Let the plant and controller be described as:-

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

Systems Analysis and Control

Frequency methods for the analysis of feedback systems. Lecture 6. Loop analysis of feedback systems. Nyquist approach to study stability

Topic # Feedback Control

Systems Analysis and Control

K(s +2) s +20 K (s + 10)(s +1) 2. (c) KG(s) = K(s + 10)(s +1) (s + 100)(s +5) 3. Solution : (a) KG(s) = s +20 = K s s

Introduction to Feedback Control

Problems -X-O («) s-plane. s-plane *~8 -X -5. id) X s-plane. s-plane. -* Xtg) FIGURE P8.1. j-plane. JO) k JO)

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

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10

Transcription:

Inverted Pendulum Objectives The objective of this lab is to experiment with the stabilization of an unstable system. The inverted pendulum problem is taken as an example and the animation program gives a feel for the challenges of manual control. A stabilizing linear controller is designed using root-locus techniques, and the controller is refined to enable stabilization of the inverted pendulum at any position on the track. Introduction The inverted pendulum system is a favorite experiment in control system labs. The highly unstable nature of the plant enables an impressive demonstration of the capabilities of feedback systems. The inverted pendulum is also considered a simplified representation of rockets flying into space. Fig. 8.32 shows a diagram of the experiment. A cart rolls along a track, with its position x being controlled by a motor. A beam is attached to the cart so that it rotates freely at the point of contact with the cart. The angle of the beam with the vertical is denoted θ, and an objective is to keep the angle close to zero. Since the pendulum may be stabilized at any position on the track, a second objective is to specify the track position. However, recovery from non-zero beam angles may require significant movements of the cart along the track, and stabilization may be impossible if an insufficient range of motion remains. A model of the inverted pendulum may be derived using standard techniques. A careful derivation (H. Khalil, Nonlinear Systems, 2nd edition, Prentice Hall, Upper Saddle River, NJ, 1996) shows that (I + ml 2 ) d2 θ dt + ml x 2 cos(θ)d2 = mgl sin(θ) (8.39) dt2 where m is the mass of the beam, 2L is the length of the beam, I = ml 2 /3 is the moment of inertia of the beam around its center of gravity, and g is the acceleration of gravity. For small angles θ, it follows that 4 θ 3 Ld2 dt gθ = x 2 d2 (8.40) dt 2 and, the transfer function of the system is X(s) = s 2 (4/3)Ls 2 g (8.41) 258

θ 2L x Figure 8.32: Inverted Pendulum System The system has poles at s = ± p 3g/4L. The positive root is unstable, and instability worsens when the beam is short (as one might expect). Another tricky problem is that the system has two zeros at s = 0. This is due to the fact that an acceleration of the cart is required to impact the beam angle. On the other hand, this property makes stabilization possible for arbitrary cart positions. More complex models assume that the control variable is the force applied to the cart, rather than its position. This assumption is more realistic in many cases, but makes manual control very difficult. Instead, the simulation program of this lab represents the delay in the motion of the cart by the response of a first-order system X(s) = f s + f X com(s) (8.42) where x com is the commanded cart position, x is the cart position, and f > 0. The overall transfer function of the system is then X com (s) = fs 2 (8.43) ((4/3)Ls 2 g)(s + f) 259

or X com (s) = bs 2 (s + a)(s a)(s + f) (8.44) where a = p 3g/4L, b = 3f/4L. Manual control The simulation program resides in the file invpend.m. The program assumes that L = 1 m, and that x is limited to ±2L. The beam angle is prevented from exceeding ±30. The value of f is 5, so that the cart responds relatively fast to commands. Even with rapid position control of the cart, however, the system is difficult to control with a joystick. The program has a cheat variable that allows you to make the problem easier. The variable reduces the magnitude of the gravity constant, and the choice cheat = 6 is preset in the program (it s as if you controlled the pendulum on the moon!). Have fun trying to keep the beam balanced. If you feel comfortable with it, try to move the cart from the left line to the right line, while keeping the beam balanced. Describe in words the challenges of the control problem and your strategies for control. How close to 1 can you let the cheat variable be? For how long? You may be asked to demonstrate! Automatic control Stabilizing controller First, you will design a controller to bring the beam angle to zero at the zero track location. Try to find a stabilizing controller using root-locus techniques, and noting that the plant transfer function is P (s) = X com (s) = bs 2 (8.45) (s + a)(s a)(s + f) Explain why it is necessary to use an unstable controller, in order to have a chance at stabilizing the system. Then, consider the second-order controller (with zero reference input) C(s) = X com(s) = k (s + a)(s + f) (s a)(s + c) (8.46) Note that, with the cancellations, the closed-loop system has three poles. The controller has two parameters k and c to be adjusted. Show that it is possible to choose the parameters so that all three closed-loop poles are placed at s = a/2. Compute the parameters required for 260

the system and draw the root-locus for varying k. Verify that the closed-loop system is stable by use of the Nyquist criterion (function nyquist in Matlab). Plot the Bode plots and compute the gain and phase margins of the system (function margin in Matlab). Indicate how much the gain of the system can be increased or decreased while preserving stability. The controller must be implemented in discrete-time, assuming a sampling rate of 20Hz. Check the help files for the Matlab functions tf, c2d, andssdata to get information on how to do it (you may also look in the simulation code how the transfer function (8.41) was implemented). Use the option zoh for the discretization. Implement the controller transfer function in a file invpendc.m, with its initialization in a file invpendcinit.m. Test the response of the system by setting the initial value of the variable theta at 5 degrees (the initial value can be set at the beginning of the simulation program). Plot the responses of the beam angle and of the cart position resulting from this initial error. Check that the beam angle returns to zero within the expected time period and with the expected dynamics, given the pole locations. Tracking controller Modify the controller so that an arbitrary set-point of the cart position can be imposed. Replace X com (s) = C(s) by X com (s) =X ref (s) C(s) (8.47) Note that this is an unusual configuration for a feedback system, because the reference command is applied to the plant input rather than the controller input. Interestingly, the plant output cannot be set to an arbitrary position in this problem, but the plant input can. Generate steps of position reference alternating between 1m and 1m every 20 seconds, and plot the responses of x, x com,andθ for 60 seconds. Let the initial beam angle be zero. You should observe an overshoot in the response of the cart. Compute the transfer function from X ref (s)tox(s) and observe that there is a zero at a frequency lower than the closed-loop poles. This problem may be addressed by using a pre-filter C F (s) sothat X com (s) =C F (s)x ref (s) C(s) (8.48) where C F (s) isafirst-order filter with unity DC gain and a pole located at the same value as the low-frequency zero. Plot the responses of x, x com,andθ for 60 seconds, with steps of position reference alternating between 1m and 1m every 20 seconds. Explain the fact that the variable x com initially moves in the direction opposite to the step applied. Can this effect be eliminated by prefiltering of the reference command (as was done for the overshoot)? Test the controller for the cheat variable equal to 6, and again for the variable equal to 1. Show your code and demonstrate the real-time operation to the TA. 261

Report at a glance Be sure to include: Description of challenges and strategies for manual control. Design and evaluation of the stabilizing controller with the variable cheat=6. Include controller parameters, root-locus, Nyquist criterion, gain and phase margins, and responses to initial beam angle. Design and evaluation of the controller for set-point tracking with the variable cheat=6. Plots of responses of x, x com,andθ to step changes in set-point of the cart position. Design and evaluation of the controller for set-point tracking with the variable cheat=1. Observations and comments. Listing of invpendc.m and invpendcinit.m. 262