Introduction to PID Control

Similar documents
Figure 1: Unity Feedback System. The transfer function of the PID controller looks like the following:

STABILITY IMPROVEMENT OF POWER SYSTEM BY USING PSS WITH PID AVR CONTROLLER IN THE HIGH DAM POWER STATION ASWAN EGYPT

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING BANGLADESH UNIVERSITY OF ENGINEERING & TECHNOLOGY EEE 402 : CONTROL SYSTEMS SESSIONAL

Comparative Analysis of P, PI, PD, PID Controller for Mass Spring Damper System using Matlab Simulink.

VECTOR CONTROL SCHEME FOR INDUCTION MOTOR WITH DIFFERENT CONTROLLERS FOR NEGLECTING THE END EFFECTS IN HEV APPLICATIONS

Frequency Response Analysis and Design Tutorial

1. Consider the closed loop system shown in the figure below. Select the appropriate option to implement the system shown in dotted lines using

EEL2216 Control Theory CT2: Frequency Response Analysis

GE420 Laboratory Assignment 8 Positioning Control of a Motor Using PD, PID, and Hybrid Control

SECTION 6: ROOT LOCUS DESIGN


CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

Rectilinear System. Introduction. Hardware

6.270 Lecture. Control Systems

ME 375 System Modeling and Analysis

Lab-Report Control Engineering. Real Water tank

OPTIMAL AND PID CONTROLLER FOR CONTROLLING CAMERA S POSITION IN UNMANNED AERIAL VEHICLES

Hands-on Lab. PID Closed-Loop Control

Comparative Analysis of a PID Controller using Ziegler- Nichols and Auto Turning Method

An Introduction to Proportional- Integral-Derivative (PID) Controllers

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

Lecture 7:Examples using compensators

PYKC 7 March 2019 EA2.3 Electronics 2 Lecture 18-1

AN EXPERIMENTAL INVESTIGATION OF THE PERFORMANCE OF A PID CONTROLLED VOLTAGE STABILIZER

AC : A STUDENT-ORIENTED CONTROL LABORATORY US- ING PROGRAM CC

DC MOTOR SPEED CONTROL USING PID CONTROLLER. Fatiha Loucif

(1) Identify individual entries in a Control Loop Diagram. (2) Sketch Bode Plots by hand (when we could have used a computer

DC Motor Speed Control for a Plant Based On PID Controller

Cantonment, Dhaka-1216, BANGLADESH

PID, I-PD and PD-PI Controller Design for the Ball and Beam System: A Comparative Study

Designing PID for Disturbance Rejection

International Journal of Research in Advent Technology Available Online at:

CDS 101/110: Lecture 8.2 PID Control

Motor Modeling and Position Control Lab 3 MAE 334

MEM01: DC-Motor Servomechanism

Embedded Control Project -Iterative learning control for

TODO add: PID material from Pont slides Some inverted pendulum videos Model-based control and other more sophisticated

Fundamentals of Servo Motion Control

SINGLE SENSOR LINE FOLLOWER

Performance Analysis of Conventional Controllers for Automatic Voltage Regulator (AVR)

ME451: Control Systems. Course roadmap

Performance Comparison of P, PI and PID for Speed Control of Switched Reluctance Motor using Genetic Algorith

Modelling for Temperature Non-Isothermal Continuous Stirred Tank Reactor Using Fuzzy Logic

Load Frequency Control of Multi-Area Power Systems Using PI, PID, and Fuzzy Logic Controlling Techniques

Application of SDGM to Digital PID and Performance Comparison with Analog PID Controller

MATLAB and Simulink in Mechatronics Education*

Hydraulic Actuator Control Using an Multi-Purpose Electronic Interface Card

Figure 1.1: Quanser Driving Simulator

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

Implementation of Proportional and Derivative Controller in a Ball and Beam System

Experiment 9. PID Controller

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Electrical Drives I. Week 4-5-6: Solid state dc drives- closed loop control of phase controlled DC drives

IJESRT. Scientific Journal Impact Factor: (ISRA), Impact Factor: 1.852

Generator Operation with Speed and Voltage Regulation

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

Lab 11. Speed Control of a D.C. motor. Motor Characterization

EE 370/L Feedback and Control Systems Lab Section Post-Lab Report. EE 370L Feedback and Control Systems Lab

MAE106 Laboratory Exercises Lab # 5 - PD Control of DC motor position

Design Of PID Controller In Automatic Voltage Regulator (AVR) System Using PSO Technique

MATLAB Simulink Based Load Frequency Control Using Conventional Techniques

Digital Control of MS-150 Modular Position Servo System

Elmo HARmonica Hands-on Tuning Guide

7 Lab: Motor control for orientation and angular speed

-binary sensors and actuators (such as an on/off controller) are generally more reliable and less expensive

Simulation and Numerical Analysis and Comparative Study of a PID Controller Based on Ziegler-Nichols and Auto Turning Method

ECE317 : Feedback and Control

Automatic Voltage Control For Power System Stability Using Pid And Fuzzy Logic Controller

A Comparison And Evaluation of common Pid Tuning Methods

EVALUATION ALGORITHM- BASED ON PID CONTROLLER DESIGN FOR THE UNSTABLE SYSTEMS

Rotary Motion Servo Plant: SRV02. Rotary Experiment #02: Position Control. SRV02 Position Control using QuaRC. Student Manual

Comparative Study of PID and FOPID Controller Response for Automatic Voltage Regulation

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

QuickBuilder PID Reference

EE 308 Spring Preparation for Final Lab Project Simple Motor Control. Motor Control

Design of an Intelligent Pressure Control System Based on the Fuzzy Self-tuning PID Controller

Design and Simulation of a Hybrid Controller for a Multi-Input Multi-Output Magnetic Suspension System

Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Observer-based Engine Cooling Control System (OBCOOL) Project Proposal. Students: Andrew Fouts & Kurtis Liggett. Advisor: Dr.

Implementation and Simulation of Digital Control Compensators from Continuous Compensators Using MATLAB Software

CHAPTER 3 WAVELET TRANSFORM BASED CONTROLLER FOR INDUCTION MOTOR DRIVES

Design of Different Controller for Cruise Control System

Dr Ian R. Manchester Dr Ian R. Manchester Amme 3500 : Root Locus Design

Matlab source code for pid controller

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

The Discussion of this exercise covers the following points: Angular position control block diagram and fundamentals. Power amplifier 0.

Another Compensator Design Example

Switch Mode Power Conversion Prof. L. Umanand Department of Electronics System Engineering Indian Institute of Science, Bangalore

A Comparative Study on Speed Control of D.C. Motor using Intelligence Techniques

15EI303L- CONTROL SYSTEMS ENGINEERING LABORATORY

Position Control of DC Motor by Compensating Strategies

This manuscript was the basis for the article A Refresher Course in Control Theory printed in Machine Design, September 9, 1999.

Experiment Of Speed Control for an Electric Trishaw Based on PID Control Algorithm

Design of Compensator for Dynamical System

Dynamic Vibration Absorber

EMPIRICAL MODEL IDENTIFICATION AND PID CONTROLLER TUNING FOR A FLOW PROCESS

Comparative Study of PID and Fuzzy Controllers for Speed Control of DC Motor

Designing PID controllers with Matlab using frequency response methodology

COMPARISON OF TUNING METHODS OF PID CONTROLLER USING VARIOUS TUNING TECHNIQUES WITH GENETIC ALGORITHM

Project Advisor : Dr. Abdulla Ismail

Transcription:

Introduction to PID Control Introduction This introduction will show you the characteristics of the each of proportional (P), the integral (I), and the derivative (D) controls, and how to use them to obtain a desired response. In this tutorial, we will consider the following unity feedback system: Plant: A system to be controlled Controller: Provides the excitation for the plant; Designed to control the overall system behavior The three-term controller The transfer function of the PID controller looks like the following: Kp = Proportional gain KI = Integral gain Kd = Derivative gain First, let's take a look at how the PID controller works in a closed-loop system using the schematic shown above. The variable (e) represents the tracking error, the difference between the desired input value (R) and the actual output (Y). This error signal (e) will be sent to the PID controller, and the controller computes both the derivative and the integral of this error signal. The signal (u) just past the controller is now equal to the proportional gain (Kp) times the magnitude of the error plus the integral gain (Ki) times the integral of the error plus the derivative gain (Kd) times the derivative of the error.

This signal (u) will be sent to the plant, and the new output (Y) will be obtained. This new output (Y) will be sent back to the sensor again to find the new error signal (e). The controller takes this new error signal and computes its derivative and its integral again. This process goes on and on. The characteristics of P, I, and D controllers A proportional controller (Kp) will have the effect of reducing the rise time and will reduce,but never eliminate, the steady-state error. An integral control (Ki) will have the effect of eliminating the steady-state error, but it may make the transient response worse. A derivative control (Kd) will have the effect of increasing the stability of the system, reducing the overshoot, and improving the transient response. Effects of each of controllers Kp, Kd, and Ki on a closed-loop system are summarized in the table shown below. CL RESPONSE RISE TIME OVERSHOOT SETTLING TIME S-S ERROR Kp Decrease Increase Small Change Decrease Ki Decrease Increase Increase Eliminate Kd Small Change Decrease Decrease Small Change Note that these correlations may not be exactly accurate, because Kp, Ki, and Kd are dependent of each other. In fact, changing one of these variables can change the effect of the other two. For this reason, the table should only be used as a reference when you are determining the values for Ki, Kp and Kd. Example Problem Suppose we have a simple mass, spring, and damper problem.

The modeling equation of this system is (1) Taking the Laplace transform of the modeling equation (1) The transfer function between the displacement X(s) and the input F(s) then becomes Let M = 1kg b = 10 N.s/m k = 20 N/m F(s) = 1 Plug these values into the above transfer function The goal of this problem is to show you how each of Kp, Ki and Kd contributes to obtain Fast rise time Minimum overshoot No steady-state error Open-loop step response Let's first view the open-loop step response. Create a new m-file and add in the following code: num=1; den=[1 10 20]; step (num,den) Running this m-file in the Matlab command window should give you the plot shown below.

The DC gain of the plant transfer function is 1/20, so 0.05 is the final value of the output to an unit step input. This corresponds to the steady-state error of 0.95, quite large indeed. Furthermore, the rise time is about one second, and the settling time is about 1.5 seconds. Let's design a controller that will reduce the rise time, reduce the settling time, and eliminates the steady-state error. Proportional control From the table shown above, we see that the proportional controller (Kp) reduces the rise time, increases the overshoot, and reduces the steady-state error. The closed-loop transfer function of the above system with a proportional controller is: Let the proportional gain (Kp) equals 300 and change the m-file to the following: Kp=300; num=[kp]; den=[1 10 20+Kp]; step (num,den,t) Running this m-file in the Matlab command window should gives you the following plot.

Note: The Matlab function called cloop can be used to obtain a closed-loop transfer function directly from the open-loop transfer function (instead of obtaining closed-loop transfer function by hand). The following m-file uses the cloop command that should give you the identical plot as the one shown above. num=1; den=[1 10 20]; Kp=300; [numcl,dencl]=cloop(kp*num,den); step (numcl, dencl,t) The above plot shows that the proportional controller reduced both the rise time and the steady-state error, increased the overshoot, and decreased the settling time by small amount. Proportional-Derivative control Now, let's take a look at a PD control. From the table shown above, we see that the derivative controller (Kd) reduces both the overshoot and the settling time. The closed-loop transfer function of the given system with a PD controller is: Let Kp equals to 300 as before and let Kd equals 10. Enter the following commands into an m-file and run it in the Matlab command window. Kp=300;

Kd=10; num=[kd Kp]; den=[1 10+Kd 20+Kp]; step (num,den,t) This plot shows that the derivative controller reduced both the overshoot and the settling time, and had small effect on the rise time and the steady-state error. Proportional-Integral control Before going into a PID control, let's take a look at a PI control. From the table, we see that an integral controller (Ki) decreases the rise time, increases both the overshoot and the settling time, and eliminates the steady-state error. For the given system, the closedloop transfer function with a PI control is: Let's reduce the Kp to 30, and let Ki equals to 70. Create an new m- file and enter the following commands. Kp=30; Ki=70; num=[kp Ki]; den=[1 10 20+Kp Ki]; step (num,den,t) Run this m-file in the Matlab command window, and you should get the following plot.

We have reduced the proportional gain (Kp) because the integral controller also reduces the rise time and increases the overshoot as the proportional controller does (double effect). The above response shows that the integral controller eliminated the steady-state error. Proportional-Integral-Derivative control Now, let's take a look at a PID controller. The closed-loop transfer function of the given system with a PID controller is: After several trial and error runs, the gains Kp=350, Ki=300, and Kd=50 provided the desired response. To confirm, enter the following commands to an m-file and run it in the command window. You should get the following step response. Kp=350; Ki=300; Kd=50; num=[kd Kp Ki]; den=[1 10+Kd 20+Kp Ki]; step (num,den,t)

Now, we have obtained the system with no overshoot, fast rise time, and no steady-state error. General tips for designing a PID controller When you are designing a PID controller for a given system, follow the steps shown below to obtain a desired response. 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 can always refer to the table shown in this document to find out which controller controls what characteristics. Lastly, please keep in mind that you do not need to implement all three controllers (proportional, derivative, and integral) into a single system, if not necessary. For example, if a PI controller gives a good enough response (like the above example), then you don't need to implement derivative controller to the system. Keep the controller as simple as possible.