Supplementary Material for PID Controllers

Similar documents
Matlab and Simulink. Matlab and Simulink for Control

PID Controller Tuning: A Short Tutorial

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

Control System Definition

TEACHING AUTOMATIC CONTROL IN NON-SPECIALIST ENGINEERING SCHOOLS

System Modeling and Control for Mechanical Engineers

MATLAB Control System Toolbox Root Locus Design GUI

EE 402 RECITATION #13 REPORT

Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller

Laboratory 4: Feedback and Compensation

Mini-Lab Projects in the Undergraduate Classical Controls Course

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

ECE 3510 Final given: Spring 11

Motor Modeling and Position Control Lab Week 3: Closed Loop Control

Stabilizing a Gimbal Platform using Self-Tuning Fuzzy PID Controller

Manufacturing Equipment Modeling

Implementation of Fuzzy and PID Controller to Water Level System using LabView

Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics

THE EDUCATIONAL IMPACT OF A GANTRY CRANE PROJECT IN AN UNDERGRADUATE CONTROLS CLASS

Active Vibration Isolation of an Unbalanced Machine Spindle

Figure 1. The Ball and Beam System.

Controller Design using the Maple Professional Math Toolbox for LabVIEW

VCO K 0 /S K 0 is tho slope of the oscillator frequency to voltage characteristic in rads per sec. per volt.

Controller and Platform Design for a Three Degree of Freedom Ship Motion Simulator

Microcontroller-based experiments for a control systems course in electrical engineering technology

Introduction to Process Control Actuators

Controller Design in Frequency Domain

Chapter 9: Controller design

Simple Harmonic Motion Experiment. 1 f

MAS.836 HOW TO BIAS AN OP-AMP

IPB-IB ELECTRIC ACTUATORS FOR INDUSTRIAL PROCESS CONTROL INDUSTRIAL STEAM BOILERS. BECK VIDEO Scan w/ Smartphone

QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT)

Σ _. Feedback Amplifiers: One and Two Pole cases. Negative Feedback:

PID Control. Chapter 10

Root Locus. E(s) K. R(s) C(s) 1 s(s+a) Consider the closed loop transfer function:

DCMS DC MOTOR SYSTEM User Manual

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

EECE 460 : Control System Design

PC BASED PID TEMPERATURE CONTROLLER

How to Turn an AC Induction Motor Into a DC Motor (A Matter of Perspective) Steve Bowling Application Segments Engineer Microchip Technology, Inc.

Connecting to a Pittman 4400-Series Brushless Motor using MBA-6-60

E x p e r i m e n t 5 DC Motor Speed Control

Study of Effect of P, PI Controller on Car Cruise Control System and Security

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Understanding Power Impedance Supply for Optimum Decoupling

AP Physics C. Oscillations/SHM Review Packet

Soil Dynamics Prof. Deepankar Choudhury Department of Civil Engineering Indian Institute of Technology, Bombay

Practice Test SHM with Answers

FAST METHODS FOR SLOW LOOPS: TUNE YOUR TEMPERATURE CONTROLS IN 15 MINUTES

Dynamic Process Modeling. Process Dynamics and Control

CHAPTER 11: Flip Flops

Systeem en Regeltechniek FMT / Mechatronica. Toepassing: : PID regelaarontwerp

Process Control Primer

Proceeding of 5th International Mechanical Engineering Forum 2012 June 20th 2012 June 22nd 2012, Prague, Czech Republic

AC : MATHEMATICAL MODELING AND SIMULATION US- ING LABVIEW AND LABVIEW MATHSCRIPT

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

Enhancing Classical Controls Education via Interactive GUI Design

99.37, 99.38, 99.38, 99.39, 99.39, 99.39, 99.39, 99.40, 99.41, cm

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Degree programme in Automation Engineering

On MSC Adams Vehicle Modeling and its Applications to Dynamics Performance Evaluation

See Horenstein 4.3 and 4.4

(Refer Slide Time: 2:03)

Reactive Power Control of an Alternator with Static Excitation System Connected to a Network

Determination of Acceleration due to Gravity

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

Chapter 6 Work and Energy

Motor Control. Suppose we wish to use a microprocessor to control a motor - (or to control the load attached to the motor!) Power supply.

Operating instructions Diffuse reflection sensor. OJ50xx / / 2004

Energy transformations

Non Linear Control of a Distributed Solar Field

POTENTIAL OF STATE-FEEDBACK CONTROL FOR MACHINE TOOLS DRIVES

Imag Axis Real Axis

Industrial Process Controllers

Industrial Plant and Process Control

Parametric variation analysis of CUK converter for constant voltage applications

226 Chapter 15: OSCILLATIONS

Lab 7: Operational Amplifiers Part I

First, we show how to use known design specifications to determine filter order and 3dB cut-off

Introduction to programming moway

ELECTRICAL ENGINEERING

Keywords: Fuzzy Logic, Control, Refrigeration Systems and Electronic Expansion Valves.

The self-starting solar-powered Stirling engine

Parameter identification of a linear single track vehicle model

CORRECTION OF DYNAMIC WHEEL FORCES MEASURED ON ROAD SIMULATORS

Precision Diode Rectifiers

Vi, fi input. Vphi output VCO. Vosc, fosc. voltage-controlled oscillator

Vibration Suppression R&D at University of British Columbia. Tom Mattison UBC

Coefficient of Friction Using a Force Sensor and a Motion Sensor

FUZZY Based PID Controller for Speed Control of D.C. Motor Using LabVIEW

Sample lab procedure and report. The Simple Pendulum

Introduction to SMPS Control Techniques

Analysis of free reed attack transients

Brushless DC Motor Speed Control using both PI Controller and Fuzzy PI Controller

PHYS 2425 Engineering Physics I EXPERIMENT 9 SIMPLE HARMONIC MOTION

Input Shaping for Sway Control in Gantry Cranes

AC Kinetics Variable Frequency Drive Comparative Transient Inertial Testing. This document was prepared by Advanced Energy.

Tamura Closed Loop Hall Effect Current Sensors

Chapter 11 SERVO VALVES. Fluid Power Circuits and Controls, John S.Cundiff, 2001

TwinCAT NC Configuration

Transcription:

Supplementary Material for PID Controllers MEEN 364 AGP Even though more detailed material on Proportional-Integral-Derivative (PID) controllers will be discussed in the MEEN 364 lectures, you will need some introductory overview to complete several of the lab assignments. Attached is a Tutorial document on PID obtained from the University of Michigan web site. Please, read through before you come to the lab so that you can understand what you need to do when you conduct the laboratory experiments. Additionally, it is strongly suggested that you visit the site below http://www.clabberhead.com/pidtutorial.html and go through an interactive tutorial on PIDs. This will make it easier for you to understand the concepts involved. 1

Page 1 of 9 Introduction The three-term controller The characteristics of P, I, and D controllers Example Problem Open-loop step response Proportional control Proportional-Derivative control Proportional-Integral control Proportional-Integral-Derivative control General tips for designing a PID controller PID Tutorial Key Matlab Commands used in this tutorial are: step cloop Note: Matlab commands from the control system toolbox are highlighted in red. Introduction This tutorial 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:

Page 2 of 9 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 steadystate 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.

Page 3 of 9 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)

Page 4 of 9 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]; t=0:0.01:2; step(num,den,t) Running this m-file in the Matlab command window should gives you the following plot.

Page 5 of 9 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); t=0:0.01:2; 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]; t=0:0.01:2; step(num,den,t)

Page 6 of 9 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]; t=0:0.01:2; step(num,den,t) Run this m-file in the Matlab command window, and you should get the following plot.

Page 7 of 9 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]; t=0:0.01:2; step(num,den,t)

Page 8 of 9 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 "PID Tutorial" page 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. User Feedback We would like to hear about difficulties you had with the tutorials, suggestions you have for improvement, errors that you found, or any other comments that you have. This feedback is anonymous; include your email address if you want a reply. Submit Feedback Reset PID Examples Cruise Control Motor Speed Motor Position Bus Suspension Inverted Pendulum

Page 9 of 9 Pitch Controller Ball and Beam Tutorials Basics Modeling PID Root Locus Frequency Response State Space Digital Control Examples 8/26/97 DK