Most General Definition: Trust is good, control is better.

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

Introduction to Feedback Control

ECE317 : Feedback and Control

Lab 6a: Pole Placement for the Inverted Pendulum

Reglerteknik, TNG028. Lecture 1. Anna Lombardi

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

EXAMPLE: MODELING THE PT326 PROCESS TRAINER

Overview of the Seminar Topic

Designing Information Devices and Systems II Spring 2018 J. Roychowdhury and M. Maharbiz Homework 7

Nonlinear Oscillators: Free Response

Dr Ian R. Manchester

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) =

Systems Analysis and Control

System Modeling. Lecture-2. Emam Fathy Department of Electrical and Control Engineering

Northwestern CT Community College Course Syllabus. Course Title: CALCULUS-BASED PHYSICS I with Lab Course #: PHY 221

Dr. Ian R. Manchester

School of Mechanical Engineering Purdue University. ME375 Feedback Control - 1

Introduction to Control (034040) lecture no. 2

An Introduction to Control Systems

Control System. Contents

Lecture 25: Tue Nov 27, 2018

MATH4406 (Control Theory) Unit 1: Introduction Prepared by Yoni Nazarathy, July 21, 2012

CONTROL OF DIGITAL SYSTEMS

Simple Harmonic Motion

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

EE16B Designing Information Devices and Systems II

Topic # Feedback Control Systems

ME 132, Dynamic Systems and Feedback. Class Notes. Spring Instructor: Prof. A Packard

Modeling and Analysis of Dynamic Systems

Systems Analysis and Control

ECE557 Systems Control

CDS 101: Lecture 4.1 Linear Systems

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

YTÜ Mechanical Engineering Department

Lab 3: Quanser Hardware and Proportional Control

Northwestern Connecticut Community College Course Syllabus

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

12.7 Steady State Error

Introduction to Process Control

Today s goals So far Today 2.004

Control. CSC752: Autonomous Robotic Systems. Ubbo Visser. March 9, Department of Computer Science University of Miami

AP PHYSICS C SYLLABUS. Paul A. Tipler and Gene P. Mosca. Physics for Scientists and Engineers, 6 th. Course Description

Angular Momentum Conservation of Angular Momentum

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Time Response Analysis (Part II)

Introduction to Controls

MATHEMATICAL MODELING OF OPEN LOOP PMDC MOTOR USING MATLAB/SIMULINK

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

FEEDBACK CONTROL SYSTEMS

CDS 101: Lecture 5-1 Reachability and State Space Feedback

Lecture 20 Chapter 12 Angular Momentum Course website:

Important because SHM is a good model to describe vibrations of a guitar string, vibrations of atoms in molecules, etc.

Final Examination Thursday May Please initial the statement below to show that you have read it

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Alireza Mousavi Brunel University

State Space Representation

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering 2.04A Systems and Controls Spring 2013

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

CEE 271: Applied Mechanics II, Dynamics Lecture 33: Ch.19, Sec.1 2

ME 132, Fall 2017, UC Berkeley, A. Packard 317. G 1 (s) = 3 s + 6, G 2(s) = s + 2

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

Systems Engineering/Process Control L1

EE 422G - Signals and Systems Laboratory

Control of Manufacturing Processes

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

Physics 141. Lecture 18. Frank L. H. Wolfs Department of Physics and Astronomy, University of Rochester, Lecture 18, Page 1

Introduction to Systems Theory and Control Systems

Systems Engineering/Process Control L1

Double Pendulum Power Method for Extracting AC Power from a Mechanical Oscillator

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Control Lab. Thermal Plant. Chriss Grimholt

Massachusetts Institute of Technology Department of Mechanical Engineering Dynamics and Control II Design Project

Work. Work, Energy, and Power

Systems Analysis and Control

Rotary Inverted Pendulum

2.010 Fall 2000 Solution of Homework Assignment 1

EE 16B Midterm 2, March 21, Name: SID #: Discussion Section and TA: Lab Section and TA: Name of left neighbor: Name of right neighbor:

In the presence of viscous damping, a more generalized form of the Lagrange s equation of motion can be written as

ELEC4631 s Lecture 2: Dynamic Control Systems 7 March Overview of dynamic control systems

COSMOS: Making Robots and Making Robots Intelligent Lecture 6: Introduction to feedback control

Simple Harmonic Motion and Damping

6.003 Homework #6 Solutions

DO NOT DO HOMEWORK UNTIL IT IS ASSIGNED. THE ASSIGNMENTS MAY CHANGE UNTIL ANNOUNCED.

Lecture 1: Introduction to System Modeling and Control. Introduction Basic Definitions Different Model Types System Identification

THE INDIAN COMMUNITY SCHOOL,KUWAIT PHYSICS SECTION-A

Topic # Feedback Control. State-Space Systems Closed-loop control using estimators and regulators. Dynamics output feedback

State Feedback MAE 433 Spring 2012 Lab 7

Automatic Control Systems. -Lecture Note 15-

1. The accumulated net change function or area-so-far function

Solved Problems. Electric Circuits & Components. 1-1 Write the KVL equation for the circuit shown.

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Root Locus

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

ET3-7: Modelling I(V) Introduction and Objectives. Electrical, Mechanical and Thermal Systems

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

Lecture 9. Welcome back! Coming week labs: Today: Lab 16 System Identification (2 sessions)

CHAPTER 10: STABILITY &TUNING

Review: stability; Routh Hurwitz criterion Today s topic: basic properties and benefits of feedback control

Chapter 5 Oscillatory Motion

Transcription:

GOALS: To provide advanced students in mechanical engineering with a solid background in dynamic system modeling and analysis and to enable them to analyze and design linear control systems. FORMAT: Lecture: 3 credits Lab: 1 credit You must enroll in both MEG 421 and MEG 421L MEG 421: Prerequisites by Topic: 1. Electrical Circuits 2. Mathematics for Engineers. 3. Analysis of Dynamic Systems Most General Definition: To Produce a Desired Result Trust is good, control is better. 1

Definition of Automation Having the capability of starting, operating, moving, etc., independently. 1 Technical Control Systems The use of machines to perform tasks that require decision making. 2 Open Loop Control Systems Open Loop Control Systems Example: Batch Filling Block Diagram for Feedback (or Closed Loop) Control England - Eighteenth Century AD Watt Steam Engine England - Eighteenth Century AD 2

The accelerating technological change of the 19th century was reflected in literature and art. In Jacques Offenbach s opera Les contes d Hoffmann the hero falls in love with Olympia, a mechanical doll. Olympia can sing and dance. She needs rewinding every 5 minutes or so. Olympia on Youtube: http://www.youtube.com/watch?vs XK3pUdBRGA Another famous example is Mary Shelley s ever popular Frankenstein (1831). Automation Today The world around us Rapid Growth of Machine Intelligence Robots for Hazardous Areas 3

Around the House Warm And Cuddly or Cyborg Control Systems Closed-loop control. Benefits: System corrects errors (e.g. your fridge corrects for temperature variations due to door openings and other events.) Labor saving Drawbacks: More expensive and complex. Need for sensors System can become unstable Control System Example: The Problem: The cart with an inverted pendulum is "bumped" with an impulse force, F. Determine the dynamic equations of motion for the system, and find a controller to stabilize the system. Control System Example: Force analysis and system equations At right are the two Free Body Diagrams of the system. 4

Control System Example: Equation of motion for the cart: Control System Example: Without control we get the velocity response shown below, i.e. the pendulum falls to one side and the system is unstable. Equation of motion for the pendulum: The equation at right describes the four States of the system: Cart Pos. x Cart Vel x-dt Angle Phi Ang. Vel. Phi-dt Control System Example: Control System Example: Control Loop Schematic: R reference desired state K state controller Control System Example: After some mathematical analysis, the controller stabilizes the inverted pendulum: We can make the system respond faster, but it will oscillate more: Control System Example: If we drive the controller gain too high, the system will become unstable. 5

Control System Example: There is still a small problem: The cart has wandered off too far. So we add a requirement to return to (almost) where it started: I-clicker Question 1 Closed-loop control is used to (A) Read measurement data from a process (B) Keep Temperatures constant (C) Maintain a process variable as closely as possible to a desired reference. (D) Compare a process output with a reference The Future of Aviation The Airplane as Computer Peripheral No lab the first week Contact hours: MW after class HW: Submit in class I-Clicker question Topics : Closed loop definitions, Transfer function, incl. computation. Practice! The Future: More Automation. Manufacturing More Automation 6

Households and Service Industries: Repetitive Jobs will be automated. Medicine: Robodoc (Surgical Robot for hip replacement) Robotic mower for Golf courses. (Carnegie-Mellon) Medicine Prosthetics Mobility Assistance Artificial Intelligence With better brains and sensors, robots will interact better with humans, and perform more functions. Sony s Aibo Remember the poor poet who fell in love with the robot doll? Love is reality for many Aibo owners who seem to think that their robot loves them. Quoted from: NY Times, May2, 2002 DIANE wasn't well. Her owner, Harry Brattin, placed a white muffler around her neck. She sat quietly on a metal desk in the meeting room while the others scampered around the floor playing. "I get very sad when one of my dogs gets ill," said Mr. Brattin, 63, a motorcycle dealer from San Diego. "When Diane's head stopped moving I felt bad. I truly felt grief." Diane is an Aibo, a computer-controlled robot made by Sony, and D.H.S. is Droopy Head Syndrome, which is caused when a clutch wears out (it's repairable by replacing the head). Weird, perhaps, but not unusual. 7

Exploration Control Systems in Entertainment Control Systems in Entertainment Control Systems in Entertainment Control Systems in Entertainment Control Open-Loop, Benefit: Simple, always stable Widely used in welldefined situations, e.g. Batch filling Closed-Loop Maintains desired output in the presence of disturbances Can become unstable 8

Feedback Control Feedback Control Actuator Output Actuator Output Disturbance W(s) + or - R(s) Sum - Controller (Brain) Actuator Power Unit R(s) Sum - Controller (Brain) Actuator Power Unit U(s) G plant Process Y(s) Feedback Control Chapter 2: Dynamic Models Differential Equations in State-Variable Form State-Variables: Example mv& + bv + kx u x& v x is the variable that describes any arbitrary position of the system (also called system variable) x and x& are the state-variables of the system. Since x & v, the state-variables can be defined as x and v Deriving differential equations in statevariable form consists of writing them as a vector equation as follows: where State-Variable Form and u X& F X + G u y H X + J u is the output is the input 9

X is the state vector. It contains n elements for an n th -order system, which are the n statevariables of the x1 system. x2 X M x n Important Definitions X & is called state of the system. x& 1 x& X& 2 M x& n The constant J is called direct transmission term You can forget that Deriving the State Variable Form requires to specify F, G, H, J for a given X and u x& 1 f11 f12 K f1n x1 g1 x& f x g 2 21 O M 2 + 2 u M M O M M M x& n fn 1 L L fnn xn gn 1444 24443{ { F X G x1 x where y [ h h h ] 2 1 2 L n + J u 144244 3 M H xn and u is the input is the output Feedback Terminology In Block diagrams, we use not the time domain variables, but their Laplace Transforms. Always denote Transforms by (s)! I-clicker Question 1 A necessary part of any Closed-loop control is (A) Negative Feedback of the controlled variable, y (B) Positive Feedback of the controlled variable, y (C) Negative Feedback of the Disturbance, w (D) Positive Feedback of the Disturbance, w I-clicker Question 2 In a Closed-loop feedback system, the error is Each element or Block has one input and one output variable Transfer Function (A)r -y (B) y - w (C) w - r (D) y - w R(s) Sum - Controller (Brain) Actuator Output U(s) Actuator Power Unit Disturbance W(s) + or - G plant Process Y is the 'Controlled Output' Y(s) Output(s) G(s) Input(s) e.g. Y(s) U(s) Sensor Output K sensor 10

Each element or Block has one input and one output variable U(s) G plant Y(s) Transfer Function G(s) Output(s) Input(s) e.g. Y(s) U(s) For instance, the plant in the preceding block diagram can be modeled as: G plant (s) Y(s) / U(s) Transfer Function Transfer Function System with Input var. r(t), Example: Output var. y(t):. 4y + y(t) r(t) 4 *s*y(s) + Y(s) R(s) Regroup: Laplace operator: s d/dt 4 *s*y(s) + Y(s) R(s) Regroup: Y(s)*(4s+1) R(s) Regroup: Y(s) 1 R(s) 4s + 1 I-clicker Question 3 A Transfer function, T(s) is defined as (A) the initial values of a dynamic system (B) the amplification or gain of a system (C) The ratio Output/Input of the Laplace transform of an input-output differential equation (D) The Laplace transform of the reference transmitted from the input to the output. (E) The Laplace transform of the Feedback from the output to the Input I-clicker Question 4 Compare a differential equation (DE) with input u and output y, and its Transfer function, T(s): (A) T(s) can be obtained from the DE, but we cannot reconstruct the DE from T(s) (B) T(s) can be obtained from the DE, and we can reconstruct the DE from T(s) (C) we can reconstruct the DE from T(s), but we must redefine the input and output variables (D) T(s) must be inverted using Laplace transform rules. The result is the solution y(t). 11

i-clicker QUESTION 2.1 An Input-Output Diff. equ. (DE) is converted to State Variable format by (A) Choosing one state each for the input and the output. (B) Choosing as many states as the order of the DE, and writing a first order DE for each state. (C) Grouping the output variable so that the input appears as a matrix i-clicker QUESTION 2.2 The main advantage of State Variable DE s is: (A)Neater Appearance. (B) You can see the matrix symmetries better (C) Easier Solution with Computers (D)There is no advantage Satellite Altitude Control Example Assumptions: ω is the angular velocity The desired system output is θ Q: Dynamic model in state-variable form? Strategy (recommended but not required) 1. Derive the dynamic model. 2. Identify the input control variable, denoted by u. 3. Identify the output variable, denoted by y. 4. Define a state vector, X, having for elements the system variables and their first derivative. 5. Determine X & 6. Determine F and G, in manner that X & FX + 7. Determine H and J, in manner that Gu y HX + Ju Ex 1: Dynamic Model Applying Newton s law for 1-D rotational motion leads to: F d M I & θ c + D & θ F d I C + M D > (1) Given: The control input, denoted by u, is given by: u FC d + M D The output, denoted by y, is the displacement angle: y θ Assumption: The state vector, denoted by X, is defined as: θ X ω & θ ω with Example 1 (cont d) Known: The dynamic model & FC d + M D θ I (1) Required: Rewrite (1) as: & θ θ + u & ω { ω 123 { { X& where y and u F θ 123 ω [ ] + { H X G J u 12

I-clicker question 2.3 The first row of the F- matrix at left is: (A) 1 1 (B) 1 0 (C) 0 1 (D) 0 0 θ X ω & θ ω with Known: The dynamic model & FC d + M D θ I (1) Required: Rewrite (1) as: & θ θ + u & ω { ω 123 { { X& where y and u F θ 123 ω [ ] + { H X G J u I-clicker question 2.4 The bottom row of the F- matrix at left is: (A) 1 1 (B) 1 0 (C) 0 1 (D) 0 0 θ X ω & θ ω with Known: The dynamic model & FC d + M D θ I (1) Required: Rewrite (1) as: & θ θ + u & ω { ω 123 { { X& where y and u F θ 123 ω [ ] + { H X G J u Example 1 (cont d) By definition: & θ ω. Thus, Expressing the dynamic model: & FC d + M D θ (1) I & θ & ω as a function of ω and u (with u Fc d + M D ) yields: u ω& I Example 1 (cont d) Available equations: From the dynamic model: & θ ω & ω u I The output y is defined as: y θ The input u is given by: u FC d + M D Equivalent form of available eq: & θ 0 θ + 1 ω + 0 u & ω 0 θ + 0 ω + ( 1 I ) u y 1 θ + 0 ω + 0 u where u F d + C M D & θ 0 1 θ 0 + u I & ω { 0 0 ω { 1 123 { X& where y F [ 1 0] + 0{ C H X θ 123 ω and u F d + M D G J u Example 1: Dynamic Model in State-Variable Form By defining X and u as: θ X ω u F d + C M D 0 F 0 input H state-variables The state-variable form is given by: 1 0 0 G 1 I [ 1 0] J 0 Analysis in Control Systems Step 1: Derive a dynamic model Step 2: Specify the dynamic model for software by writing it either or in STATE-VARIABLE form in terms of its TRANSFER FUNCTION (see chapter 3) 13

Example 2: Cruise Control Step Response Q1: Rewrite the equation of motion in state-variable form where the output is the car velocity v? Q2: Use MATLAB to find the step response of the velocity of the car? Assume that the input jumps from being u(t) 0 N at time t 0 sec to a constant u(t) 500 N thereafter. Reminder: Strategy 1. Derive the dynamic model. 2. Identify the input control variable, denoted by u. 3. Identify the output variable, denoted by y. 4. Define a state vector, X, having for elements the system variables and their first derivative. X & 5. Determine 6. Determine F and G, in manner that 7. Determine H and J, in manner that X & FX + Gu y HX + Ju Ex 2, Clicker Q2.5:Dynamic Model Applying Newton s law for translational motion yields: (a) b x& + u mx & (b) b x& mx & + u (c) b x& + u mx & (d) b x& u mx & > Ex 2, Q1:Dynamic Model Applying Newton s law for translational motion yields: (c) b && x x& + m (2) b x& + u mx & u m Example 2, Question 1 (cont d) Given: The input ( external force applied to the system) is denoted by u The output, denoted by y, is the car s velocity: y v Assumption: The state-vector is defined as: x X with v v x& Known: The dynamic model b u && x x& + (2) m m Required: Rewrite (2) as: x& x + u v& { v 123 { { X& where y and u F X x 123 v [ ] + { H G J u The top row of the F- matrix at left is: (A) 1 1 (B) 1 0 (C) 0 1 (D) 0 0 I-clicker question 2.6 x X with v x& v Known: The dynamic model b u && x x& + (2) m m Required: Rewrite (2) as: x& x + u v& { v 123 { { X& where y and u F X x 123 v [ ] + { H G J u 14

The bottom row of the F- matrix at left is: (A) 1-1 (B) 1 0 (C) 0-1 (D) 0 0 (E) 0 1 I-clicker question 2.7 x X with v x& v Known: The dynamic model b u && x x& + (2) m m Required: Rewrite (2) as: x& x + u v& { v 123 { { X& where y and u F X x 123 v [ ] + { H G J u I-clicker question 2.8 The H-matrix (row vector) at left is: (A) 1 1 (B) 1 0 (C) 0 1 (D) 0 0 x X with v x& v The output y is defined as: y v Known: The dynamic model b u && x x& + m m x& x (2) + u v& { v 123 { { X& F X G Required: Rewrite (2) as: x where y [ ] + { u 123 v and u H J Example 2 (cont d) x & v By definition:. As a result, Expressing the dynamic model: b u && x x& + (2) m m as a function of v and u leads to: & x y& b v & v + m u m Ex 2, Q1 (cont d) Available equations: From the dynamic model: x& v b v& v m The output y is defined as: y v The input is the step function u + u m Equivalent form of available eq: x& 0 x + 1 v + 0 u b 1 v & 0 x + v + u m m y 0 x + 1 v + 0 u where Therefore: x& 0 1 x 0 + u v b m v m & { 0 { 1 14243 123 X& where y F x 123 v [ 0 1] + 0{ u H X J G Example 2, Question 1: Dynamic Model in State-Variable Form By defining X as: x X v The state-variable form results as: 0 F 0 1 b m 0 G 1 m Example 2, Question2: Step Response using MATLAB? Assumptions: m 1000 kg and b 50 N.sec/m. 0 F 0 1 0. 05 0 G 0 001. H [ 0 1] J 0 H [ 0 1] J 0 15

Ex 2, Q2: Step Response with MATLAB? The step function in MATLAB calculates the time response of a linear system to a unit step input. In the problem at hand, the input u is a step function of amplitude 500 N: u 500 * unityx & step FX function. + Gu Because the system is linear ( ): G * u (500 * G) * unity step function G * Step 0 to 500 N 500*G * Step 0 to 1 N MATLAB Statements F [0 1;0-0.05]; G [0;0.001]; H [0 1]; J 0; sys ss(f, 500*G, H, J); t 0:0.2:100; y step(sys,t); plot (t,y) % defines state variable matrices % defines system by its statespace matrices % setup time vector ( dt 0.2 sec) % computes the response to a unity step response % plots output (i.e., step response) Response of the car velocity to a step input u of amplitude 500 N 16