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

Similar documents
DC Motor Speed Control for a Plant Based On PID Controller

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

Cantonment, Dhaka-1216, BANGLADESH

International Journal of Innovations in Engineering and Science

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

Position Control of DC Motor by Compensating Strategies

Experiment 9. PID Controller

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

Module 08 Controller Designs: Compensators and PIDs

Analytical study and Designing of a I-PD controller (a practical Modified PID controller) for a third order system using MATLAB simulation

Introduction to PID Control

CHAPTER 4 PID CONTROLLER BASED SPEED CONTROL OF THREE PHASE INDUCTION MOTOR

Automatic Control Systems 2017 Spring Semester

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

International Journal of Research in Advent Technology Available Online at:

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

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

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

DC MOTOR SPEED CONTROL USING PID CONTROLLER. Fatiha Loucif

MAGNETIC LEVITATION SUSPENSION CONTROL SYSTEM FOR REACTION WHEEL

Spacecraft Pitch PID Controller Tunning using Ziegler Nichols Method


Procidia Control Solutions Dead Time Compensation

Motomatic Servo Control

DC SERVO MOTOR CONTROL SYSTEM

DC Motor Speed Control using PID Controllers

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

Optimal Control System Design

Motor Modeling and Position Control Lab 3 MAE 334

Penn State Erie, The Behrend College School of Engineering

Digital Control of MS-150 Modular Position Servo System

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

SPEED CONTROL OF BRUSHLESS DC MOTOR USING FUZZY BASED CONTROLLERS

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

Position Control of Servo Systems using PID Controller Tuning with Soft Computing Optimization Techniques

Tuning Methods of PID Controller for DC Motor Speed Control

ADVANCED DC-DC CONVERTER CONTROLLED SPEED REGULATION OF INDUCTION MOTOR USING PI CONTROLLER

MM7 Practical Issues Using PID Controllers

MEM380 Applied Autonomous Robots I Winter Feedback Control USARSim

Speed control of a DC motor using Controllers

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

Some Tuning Methods of PID Controller For Different Processes

Effective Teaching Learning Process for PID Controller Based on Experimental Setup with LabVIEW

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

MEM 01 DC MOTOR-BASED SERVOMECHANISM WITH TACHOMETER FEEDBACK

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor

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

Modeling of Electro Mechanical Actuator with Inner Loop controller

Fundamentals of Servo Motion Control

SYLLABUS. osmania university CHAPTER - 1 : CONTROL SYSTEMS CLASSIFICATION

Chapter 4 PID Design Example

SECTION 6: ROOT LOCUS DESIGN

DESIGN AND ANALYSIS OF TUNING TECHNIQUES USING DIFFERENT CONTROLLERS OF A SECOND ORDER PROCESS

II. PROPOSED CLOSED LOOP SPEED CONTROL OF PMSM BLOCK DIAGRAM

Speed Control of Brushless DC Motor Using Fuzzy Based Controllers

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

Closed-loop System, PID Controller

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

Electro-hydraulic Servo Valve Systems

Linear Control Systems Lectures #5 - PID Controller. Guillaume Drion Academic year

A Differential Steering Control with Proportional Controller for An Autonomous Mobile Robot

A Brushless DC Motor Speed Control By Fuzzy PID Controller

Understanding PID Control

THE SINUSOIDAL WAVEFORM

Comparisons of Different Controller for Position Tracking of DC Servo Motor

Step vs. Servo Selecting the Best

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

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

SIMULATION AND IMPLEMENTATION OF PID-ANN CONTROLLER FOR CHOPPER FED EMBEDDED PMDC MOTOR

F. Greg Shinskey. "PID Control." Copyright 2000 CRC Press LLC. <

PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON SCIENCE AND ENGINEERING

Controlling of Permanent Magnet Brushless DC Motor using Instrumentation Technique

Different Controller Terms

ECE 5670/ Lab 5. Closed-Loop Control of a Stepper Motor. Objectives

Modified ultimate cycle method relay auto-tuning

EC CONTROL SYSTEMS ENGINEERING

2.7.3 Measurement noise. Signal variance

DC motor position control using fuzzy proportional-derivative controllers with different defuzzification methods

UG Student, Department of Electrical Engineering, Gurunanak Institute of Engineering & Technology, Nagpur

UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab Experiment no.1 DC Servo Motor

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

Simulink Based Model for Analysing the Ziegler Nichols Tuning Algorithm as applied on Speed Control of DC Motor

Advanced Servo Tuning

LECTURE 2: PD, PID, and Feedback Compensation. ( ) = + We consider various settings for Zc when compensating the system with the following RL:

PROCESS DYNAMICS AND CONTROL

MODEL BASED CONTROL FOR INTERACTING AND NON-INTERACTING LEVEL PROCESS USING LABVIEW

A Rule Based Design Methodology for the Control of Non Self-Regulating Processes

Simulation of BLDC motor control with Reduced Order Model of the System with Observer State using SMC technique

MEM01: DC-Motor Servomechanism

VARIABLE STRUCTURE CONTROL DESIGN OF PROCESS PLANT BASED ON SLIDING MODE APPROACH

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

Comparative Analysis of PID, SMC, SMC with PID Controller for Speed Control of DC Motor

Performance Analysis of Fuzzy Logic And PID Controller for PM DC Motor Drive Khalid Al-Mutib 1, N. M. Adamali Shah 2, Ebrahim Mattar 3

Generalized Theory Of Electrical Machines

A Comparison And Evaluation of common Pid Tuning Methods

Basic Tuning for the SERVOSTAR 400/600

Brushed DC Motor System

THE general rules of the sampling period selection in

Design of PI controller for Positive Output Super- Lift LUO Converter

Analysis and Design of Conventional Controller for Speed Control of DC Motor -A MATLAB Approach

Transcription:

An Introduction to Proportional- Integral-Derivative (PID) Controllers Stan Żak School of Electrical and Computer Engineering ECE 680 Fall 2017 1

Motivation Growing gap between real world control problems and the theory for analysis and design of linear control systems Design techniques based on linear system theory have difficulties with accommodating nonlinear effects and modeling uncertainties Increasing complexity of industrial process as well as household appliances Effective control strategies are required to achieve high performance for uncertain dynamic systems 2

Usefulness of PID Controls Most useful when a mathematical model of the plant is not available Many different PID tuning rules available Our sources K. Ogata, Modern Control Engineering, Fifth Edition, Prentice Hall, 2010, Chapter 8 IEEE Control Systems Magazine, Feb. 2006, Special issue on PID control Proportional-integral-derivative (PID) control framework is a method to control uncertain systems 3

Type A PID Control Transfer function of PID controller G PID ( s) ( s) 1 ( ) = K 1+ + p s d T s i U = T s E The three term control signal U ( s) = K E( s) K E( s) K se( s) 1 + + p i s d 4

PID-Controlled System PID controller in forward path 5

PID Tuning Controller tuning---the process of selecting the controller parameters to meet given performance specifications PID tuning rules---selecting controller parameter values based on experimental step responses of the controlled plant The first PID tuning rules proposed by Ziegler and Nichols in 1942 Our exposition based on K. Ogata, Modern Control Engineering, Prentice Hall, Fourth Edition, 2002, Chapter 10 6

PID Tuning---First Method Start with obtaining the step response 7

The S-shaped Step Response Parameters of the S-shaped step response 8

Transfer Function of System With S-Shaped Step Response The S-shaped curve may be characterized by two parameters: delay time L and time constant T The transfer function of such a plant may be approximated by a first-order system with a transport delay C U ( s) Ke Ls = ( s) Ts + 1 9

PID Tuning---First Method 10

Transfer Function of PID Controller Tuned Using the First Method 11

Ziegler-Nichols PID Tuning---Second Method Use the proportional controller to force sustained oscillations 12

PID Tuning---Second Method Measure the period of sustained oscillation 13

PID Tuning Rules---Second Method 14

Transfer Function of PID Controller Tuned Using the Second Method 15

Example 1---PID Controller for DC Motor Plant---Armature-controlled DC motor; MOTOMATIC system produced by Electro- Craft Corporation Design a Type A PID controller and simulate the behavior of the closed-loop system; plot the closed-loop system step response Fine tune the controller parameters so that the max overshoot is 25% or less 16

Armature-Controlled DC Motor Modeling 17

Physics---The Magnetic Field Oersted (1820): A current in a wire can produce magnetic effects; it can change the orientation of a compass needle 18

Force Acting on a Moving Charge in a Magnetic Field Force F = q v 0 B Magnitude The unit of B (flux density)---1tesla, where 1 Tesla F = q vb sinθ 0 = 1Weber 1m 2 = 10 4 Gauss 19

Torque on a Current Loop F 4 The force has the same magnitude as but points in the opposite direction F 2 20

An End View of the Current Loop F 1 The common magnitude of and is F 3 iab 21

Building a Motor From a Current Loop 22

DC Motor Construction To keep the torque in the same direction as the loop rotates, change the direction of the current in the loop---do this using slip rings at 0 and π (pi) or - π The brushes are fixed and the slip rings are connected to the current loop with electrical contact made by the loop s slip rings sliding against the brushes 23

Modeling Equations Kirchhoff s Voltage Law to the armature circuit U s = Ls+ R I s + E s ( ) ( ) ( ) ( ) a a a b Back-emf (equivalent to an electrical friction ) E s = K ω s ( ) ( ) b b m Torque developed by the motor T s = J s + B s Θ s = J s+ B ω s ( ) ( 2 ) ( ) ( ) ( ) m m m m m m m Electromechanical coupling T s = m ( ) K I ( s) t a 24

25 Relationship between and Mechanical power developed in the motor armature (in watts) Mechanical power can also be expressed as Combine t K b K ( ) ( ) t i t e p a b = ( ) ( ) t t T p m m ω = t m m b a b m m K T K i e T p ω = = ω =

In SI Units K = K t b The back-emf and the motor torque constants are equal in the SI unit system Kt V rad / sec = Kb ( N m / A) 26

Transfer Function of the DC Motor System Transfer function of the DC motor G p ( s) ( ) 0.1464 7 3 4 2 ( ) Y s = = U s 7.89 10 s + 8.25 10 s + 0.00172s where Y(s) is the angular displacement of the motor shaft and U(s) is the armature voltage 27

Tuning the Controller Using the Second Method of Ziegler and Nichols Use the Routh-Hurwitz stability test; see e.g. Section 5-6 of Ogata (2010) Determine K cr Determine P cr Compute the controller parameters 28

Generating the Step Response t=0:0.00005:.017; K_cr=12.28; P_cr=135; K=0.075*K_cr*P_cr; a=4/p_cr; num1=k*[1 2*a a^2]; den1=[0 1 0]; tf1=tf(num1,den1); num2=[0 0 0 0.1464]; den2=[7.89e-007 8.25e-004 0.00172 0]; tf2=tf(num2,den2); tf3=tf1*tf2; sys=feedback(tf3,1); y=step(sys,t); m=max(y); 29

Closed-Loop System Performance 30

Example 2 (Based on Ex. 10-3 in Ogata, 2002) Use a computational approach to generate an optimal set of the DC motor PID controller s parameters ( s a) 2 ( ) + G s = K c s Generate the step response of the closedloop system 31

Optimizing PID Parameters t=0:0.0002:0.02; font=14; for K=5:-0.2:2%Outer loop to vary the values of %the gain K for a=1:-0.01:0.01;%outer loop to vary the %values of the parameter a num1=k*[1 2*a a^2]; den1=[0 1 0]; tf1=tf(num1,den1); num2=[0 0 0 0.1464]; den2=[7.89e-007 8.25e-004 0.00172 0]; tf2=tf(num2,den2); tf3=tf1*tf2; sys=feedback(tf3,1); y=step(sys,t); m=max(y); 32

Finishing the Optimizing Program if m<1.1 & m>1.05; plot(t,y);grid;set(gca,'fontsize',font) sol=[k;a;m] break % Breaks the inner loop end end if m<1.1 & m>1.05; break; %Breaks the outer loop end end 33

Closed-Loop System Performance 34

Modified PID Control Schemes If the reference input is a step, then because of the presence of the derivative term, the controller output will involve an impulse function The derivative term also amplifies higher frequency sensor noise Replace the pure derivative term with a derivative filter---pidf controller Set-Point Kick---for step reference the PIDF output will involve a sharp pulse function rather than an impulse function 35

The Derivative Term Derivative action is useful for providing a phase lead, to offset phase lag caused by integration term Differentiation increases the highfrequency gain Pure differentiator is not proper or causal 80% of PID controllers in use have the derivative part switched off Proper use of the derivative action can increase stability and help maximize the integral gain for better performance 36

Remedies for Derivative Action---PIDF Controller Pure differentiator approximation γ Ts d γ Ts+ 1 d where is a small parameter, for example, 0.1 Pure differentiator cascaded with a firstorder low-pass filter 37

The Set-Point Kick Phenomenon If the reference input is a step function, the derivative term will produce an impulse (delta) function in the controller action Possible remedy---operate the derivative action only in the feedback path; thus differentiation occurs only on the feedback signal and not on the reference signal 38

Eliminating the Set-Point Kick PID controller revisited 39

Eliminating the Set-Point Kick--- Finding the source of trouble More detailed view of the PID controller 40

Eliminating the Set-Point Kick---PI-D Control or Type B PID Operate derivative action only in the feedback 41

I-PD---Moving Proportional and Derivative Action to the Feedback I-PD control or Type C PID 42

I-PD Equivalent to PID With Input Filter (No Noise) Closed-loop transfer function Y(s)/R(s) of the I- PD-controlled system Y s ( ) R s ( ) = K p G p Ts i ( ) 1 1+ Kp 1+ + Ts d Gp s Ts i s ( ) 43

PID-Controlled System Closed-loop transfer function Y(s)/R(s) of the PIDcontrolled system with input filter 1 K 1 ( ) ( ) p + + Ts d Gp s Y s 1 Ts i = ( ) 2 R s 1 + Ts i + TT i ds 1 1+ Kp 1+ + Ts d Gp s Ts i ( ) After manipulations it is the same as the transfer function of the I-PD-controlled closed-loop system 44

PID, PI-D and I-PD Closed-Loop Transfer Function---No Ref or Noise In the absence of the reference input and noise signals, the closed-loop transfer function between the disturbance input and the system output is the same for the three types of PID control Y ( s) ( ) D s = 1+ K p G p G p ( s) 1 ( s) 1+ + T s d T s i 45

The Three Terms of Proportional- Integral-Derivative (PID) Control Proportional term responds immediately to the current tracking error; it cannot achieve the desired setpoint accuracy without an unacceptably large gain. Needs the other terms Derivative action reduces transient errors Integral term yields zero steady-state error in tracking a constant setpoint. It also rejects constant disturbances Proportional-Integral-Derivative (PID) control provides an efficient solution to many real-world control problems 46

Summary PID control---most widely used control strategy today Over 90% of control loops employ PID control, often the derivative gain set to zero (PI control) The three terms are intuitive---a nonspecialist can grasp the essentials of the PID controller s action. It does not require the operator to be familiar with advanced math to use PID controllers Engineers prefer PID controls over untested solutions 47