PID Control and Root Locus Method

Slides:



Advertisements
Similar presentations
Design with Root Locus Lecture 9.
Advertisements

Feedback Control Systems Dr. Basil Hamed Electrical & Computer Engineering Islamic University of Gaza.
Chapter 10: Frequency Response Techniques 1 ©2000, John Wiley & Sons, Inc. Nise/Control Systems Engineering, 3/e Chapter 10 Frequency Response Techniques.
Frequency Response Techniques
Chapter 8 Root Locus <<<4.1>>>
CHE 185 – PROCESS CONTROL AND DYNAMICS
Chapter 7 System Compensation (Linear Control System Design)
Chapter 8 Root Locus and Magnitude-phase Representation
A Typical Feedback System
Chapter 10 – The Design of Feedback Control Systems
Chapter 10 – The Design of Feedback Control Systems PID Compensation Networks.
Frequency Response Methods and Stability
Transient and steady state response (cont.)
Feedback Control Systems
Lecture 9: Compensator Design in Frequency Domain.
Modern Control Systems (MCS)
Lect. 5 Lead-Lag Control Basil Hamed
Examples of Control Systems Application. Modeling the Ball and Beam Experiment.
Design of Control Systems Cascade Root Locus Design This is the first lecture devoted to the control system design. In the previous lectures we laid the.
Professor of Electrical Engineering
f(t) m x(t) fd(t) LINEAR CONTROL C (Ns/m) k (N/m)
Chapter 7 Control Systems Design by Root-Locus Method 7.1 Introduction -The primary objective of this chapter is to present procedures for the design and.
Ch. 6 Single Variable Control
Automatic Control System
INC341 Design with Root Locus
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Loop Shaping.
Modified by Albert W.J. Hsue,
Ch6 The Root Locus Method. Main content §The Root Locus Concept §The Root Locus Procedure §Generalized root locus or Parameter RL §Parameter design by.
ME375 Handouts - Spring 2002 Root Locus Method.
INC 341PT & BP INC341 Frequency Response Method (continue) Lecture 12.
INC341 Design Using Graphical Tool (continue)
Digital Control Systems Digital Control Design via Continuous Design Emulación F,P&W Chapters 6 & 7.2.
Modern Control System EKT 308
MESB374 System Modeling and Analysis PID Controller Design
Chapter 10 Frequency Response Techniques Frequency Response Techniques.
Design via Root Locus 1. 1 Introduction The root locus graphically displayed both transient response and stability information. The locus can be sketched.
Modern Control System EKT 308 Root Locus and PID controllers.
Chapter 4 A First Analysis of Feedback Feedback Control A Feedback Control seeks to bring the measured quantity to its desired value or set-point (also.
MESB374 System Modeling and Analysis Feedback Control Design Process
Review. Feedback Terminology In Block diagrams, we use not the time domain variables, but their Laplace Transforms. Always denote Transforms by (s)!
Problem:05-01 x points: -7, -4+3i HW- 05 In the control system as shown in the figure, a) Write the MATLAB program to plot root-locus diagram for the closed.
System Time Response Characteristics
Chapter 6 Root-Locus Analysis 6.1 Introduction - In some systems simple gain adjustment may move the closed- loop poles to desired locations. Then the.
Dr. Tamer Samy Gaafar Automatic Control Theory CSE 322 Lec. 11 Root Locus.
1 Time Response. CHAPTER Poles and Zeros and System Response. Figure 3.1: (a) System showing input and output; (b) Pole-zero plot of the system;
Exercise 1 (Root Locus) Sketch the root locus for the system shown in Figure K 1 (
Modern Control System EKT 308
Overhead Controller Design Project Name Department and University Date Class Name.
Modern Control Systems (MCS) Dr. Imtiaz Hussain Assistant Professor URL :
Control Systems Lect.3 Steady State Error Basil Hamed.
SKEE 3143 Control Systems Design Chapter 2 – PID Controllers Design
BIRLA VISHWAKARMA MAHAVIDHYALAYA ELECTRONICS & TELECOMUNICATION DEPARTMENT o – ANKUR BUSA o – KHUSHBOO DESAI UNDER THE GUIDENCE.
Exercise 1 Suppose we have a simple mass, spring, and damper problem. Find The modeling equation of this system (F input, x output). The transfer function.
Page : PID Controller Chapter 3 Design of Discrete- Time control systems PID C ontroller.
Control Systems Project Basil Hamed.
Chapter 7 The Root Locus Method The root-locus method is a powerful tool for designing and analyzing feedback control systems The Root Locus Concept The.
Design via Root Locus (Textbook Ch.9).
Lecture 20: Root Locus for Design
Examples on Compensator Design Spring 2011
PID Controller.
Basic Design of PID Controller
Chapter 9 Design via Root Locus <<<4.1>>>
Chapter 9 Design via Root Locus <<<4.1>>>
Root Loci Analysis (3): Root Locus Approach to Control System Design
Compensators.
UNIVERSITI MALAYSIA PERLIS SCHOOL OF ELECTRICAL SYSTEM ENGINEERING
The Design of Feedback Control Systems
x points: -7, -4+3i HW- 05 Problem:05-01
IntroductionLecture 1: Basic Ideas & Terminology
Exercise 1 For the unit step response shown in the following figure, find the transfer function of the system. Also find rise time and settling time. Solution.
Presentation transcript:

PID Control and Root Locus Method SOEN385 Control Systems and Applications PID Control and Root Locus Method

Problem Setup A ball is placed on a beam, where it is allowed to roll with 1 degree of freedom along the length of the beam. A lever arm is attached to the beam at one end and a servo gear at the other.

Problem Setup As the servo gear turns by an angle theta, the lever changes the angle of the beam by alpha. When the angle is changed from the horizontal position, gravity causes the ball to roll along the beam. A controller is desirable for this system so that the ball's position can be manipulated.

Problem Setup We assume that the ball rolls without slipping and friction between the beam and ball is negligible. The constants and variables for this example are defined as follows: M mass of the ball 0.11 kg R radius of the ball 0.015 m D lever arm offset 0.03 m g gravitational acceleration 9.8 m/s^2 L length of the beam 1.0 m J ball's moment of inertia 9.99e-6 kgm^2 r ball position coordinate α beam angle coordinate θ servo gear angle

Transfer Function The Lagrangian equation of motion for the ball is given by: The beam angle (alpha) can be expressed in terms of the angle of the gear (theta): The open-loop transfer function of the plant is given below:

Design Criteria The system is unstable is open-loop. Therefore some method of controlling the ball's position is required. The design criteria for this problem are: Settling time less than 3 seconds Overshoot less than 5%

Closed-loop Representation The block diagram for this example with a controller and unity feedback of the ball's position is shown below: The transfer function for a PID controller is:

PID Design General tips for designing a PID controller: 1. Obtain an open-loop response and determine what needs to be improved. 2. Add a proportional control to improve the rise time. 3. Add a derivative control to improve the overshoot. 4. Add an integral control to eliminate the steady-state error. 5. Adjust each of KP, KI, and KD until you obtain a desired overall response. You do not need to implement all three controllers (proportional, derivative, and integral) into a single system. Keep the controller as simple as possible.

Proportional Control First, we will study the response of the system when a proportional controller is used (KD=0 and KI=0). Then, derivative and/or integral control will be added if necessary. The closed-loop transfer function for proportional control with a proportional gain KP equal to 1, can be modeled by the following lines of code: m = 0.111; R = 0.015; g = -9.8; L = 1.0; d = 0.03; J = 9.99e-6; K = (m*g*d)/(L*(J/R^2+m));

Proportional Control num = [-K]; den = [1 0 0]; ball = tf(num,den); kp = 1; sys_cl = feedback(kp*ball,1); Now model the system's response to a step input of 0.25: step(0.25*sys_cl);

Step Response Step response with KP equal to 1:

Step Response The addition of proportional gain does not make the system stable. Try changing the value of KP and note that the system remains unstable. Step response with KP equal to 100:

Proportional-Derivative Control Now, we add a derivative term to the controller. m = 0.111; R = 0.015; g = -9.8; L = 1.0; d = 0.03; J = 9.99e-6; K = (m*g*d)/(L*(J/R^2+m)); num = [-K]; den = [1 0 0]; ball = tf(num,den);

Proportional-Derivative Control kp = 10; kd = 10; contr = tf([kd kp],1); sys_cl = feedback(contr*ball,1); t = 0:0.01:5; step(0.25*sys_cl)

Step Response Step response with KP =10 and KD =10: Now the system is stable, but the overshoot is too high and the settling time needs to go down a bit.

Step Response By increasing KD we can lower the overshoot and decrease the settling time slightly. Therefore, we set KD to 20 and run the simulation again. The overshoot criterion is met but the settling time needs to come down a bit.

Step Response To decrease the settling time we may try increasing KP slightly. The derivative gain KD can also be increased to take off some of the overshoot that increasing KP will cause. Step response with KP =15 and KD =40: All the control objectives have been met without the use of an integral controller

Root Locus Method The main idea of the root locus design is to estimate the closed-loop response from the open-loop root locus plot. By adding zeros and/or poles to the original system (adding a compensator), the root locus and thus the closed-loop response will be modified. Let us first view the root locus for the plant in open loop: m = 0.111; R = 0.015; g = -9.8; L = 1.0; d = 0.03; J = 9.99e-6;

Root Locus Method K = (m*g*d)/(L*(J/R^2+m)); num = [-K]; den = [1 0 0]; plant=tf(num,den); rlocus(plant)

Root Locus Method The design criteria can also be plotted onto the root locus using the sgrid command. This command generates a grid of constant damping ratio and natural frequency. The damping ratio and natural frequency are found using the following equations, which relates them to our percent overshoot (PO) and settling time (Ts) requirements: From these equations, the damping ratio and natural frequency are found to be 0.7 and 1.9 respectively.

Root Locus Method sgrid(0.70, 1.9) axis([-5 5 -2 2]) The area between the two dotted diagonal lines represents locations where the percent overshoot is less than 5%. The area outside the curved line represents locations where the settling time is less than 3 seconds. Note that no region of the plot falls within the design criteria shown be these lines. To remedy this and bring the root locus into the left-hand plane for stability we will try adding a lead-compensator to the system.

Root Locus Method Lead Controller A first order lead compensator tends to shift the root locus into the left-hand plane. A lead compensator has the following form: where the magnitude of zo is less than the magnitude of po.

Root Locus Method Now we add the controller to the plant and view the root locus. We place the zero near the origin to cancel out one of the poles, and place the pole of our compensator to the left of the origin to pull the root locus further into the left-hand plane: zo = 0.01; po = 5; contr=tf([1 zo],[1 po]); rlocus(contr*plant) sgrid(0.70, 1.9)

Root Locus Method Open-loop Root-Locus with Lead Compensator: Now, the branches of root locus are within our design criteria.

Root Locus Method Selecting a Gain Now that we have moved the root locus into the left-hand plane, we may select a gain that will satisfy our design requirements. We can use the rlocfind command to help us do this: [k,poles] = rlocfind(contr*plant)

Root Locus Method Closed-loop Response The value of k can be put into the system and the closed-loop response to a step input of 0.25 m can be obtained. sys_cl=feedback(k*contr*plant,1); t=0:0.01:5; figure step(sys_cl,t)

References Control Tutorials for MATLAB and Simulink http://www.library.cmu.edu/ctms/ctms/index.htm