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

Similar documents
Introduction to PID Control

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

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

7 Lab: Motor control for orientation and angular speed

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

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

Cantonment, Dhaka-1216, BANGLADESH

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

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

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

Digital Control Lab Exp#8: PID CONTROLLER

DC MOTOR SPEED CONTROL USING PID CONTROLLER. Fatiha Loucif

Rectilinear System. Introduction. Hardware


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

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

Frequency Response Analysis and Design Tutorial

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

Optimal Control System Design

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

Automatic Control Systems 2017 Spring Semester

6.270 Lecture. Control Systems

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

5 Lab 5: Position Control Systems - Week 2

Embedded Control Project -Iterative learning control for

DC Motor Speed Control for a Plant Based On PID Controller

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

Penn State Erie, The Behrend College School of Engineering

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

Hands-on Lab. PID Closed-Loop Control

Figure 1.1: Quanser Driving Simulator

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

Fundamentals of Servo Motion Control

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

MEM01: DC-Motor Servomechanism

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

DC Motor Speed Control: A Case between PID Controller and Fuzzy Logic Controller

DC SERVO MOTOR CONTROL SYSTEM

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

Design of PID Control System Assisted using LabVIEW in Biomedical Application

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

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

A Searching Analyses for Best PID Tuning Method for CNC Servo Drive

Teaching Mechanical Students to Build and Analyze Motor Controllers

Position Control of DC Motor by Compensating Strategies

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

CHAPTER 6. CALCULATION OF TUNING PARAMETERS FOR VIBRATION CONTROL USING LabVIEW

Ball Balancing on a Beam

Characterizing the Frequency Response of a Damped, Forced Two-Mass Mechanical Oscillator

ME 375 System Modeling and Analysis

Hydraulic Actuator Control Using an Multi-Purpose Electronic Interface Card

IJITKM Special Issue (ICFTEM-2014) May 2014 pp (ISSN )

University of California, Berkeley EE128, Fall Lab 7 A Microcontroller Based Position/Speed Controller

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

Lab-Report Control Engineering. Real Water tank

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

PI Control of Boost Converter Controlled DC Motor

CHAPTER 3 WAVELET TRANSFORM BASED CONTROLLER FOR INDUCTION MOTOR DRIVES

Sensors and Sensing Motors, Encoders and Motor Control

Ver. 4/5/2002, 1:11 PM 1

Digital Control of MS-150 Modular Position Servo System

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

CDS 101/110: Lecture 8.2 PID Control

A PID Controlled Real Time Analysis of DC Motor

HIL Simulation Lab Work

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

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

QuickBuilder PID Reference

Tuning Methods of PID Controller for DC Motor Speed Control

Application Note #2442

EE 4314 Lab 3 Handout Speed Control of the DC Motor System Using a PID Controller Fall Lab Information

CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System

SRV02-Series Rotary Experiment # 3. Ball & Beam. Student Handout

Lab 2: Quanser Hardware and Proportional Control

EEL2216 Control Theory CT2: Frequency Response Analysis

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

Robust Control Design for Rotary Inverted Pendulum Balance

Elmo HARmonica Hands-on Tuning Guide

SINGLE SENSOR LINE FOLLOWER

Comparative study of PID and Fuzzy tuned PID controller for speed control of DC motor

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

Phys Lecture 5. Motors

University of Tennessee at Chattanooga. Stead State Operating Curve Report. Engr 3280L/Week 3. William Disterdick. Brown Team

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

Generator Operation with Speed and Voltage Regulation

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

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

Position Control of AC Servomotor Using Internal Model Control Strategy

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

SECTION 6: ROOT LOCUS DESIGN

ANTI-WINDUP SCHEME FOR PRACTICAL CONTROL OF POSITIONING SYSTEMS

Servo Closed Loop Speed Control Transient Characteristics and Disturbances

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

MANUEL EDUARDO FLORES MORAN ARTIFICIAL INTELLIGENCE APPLIED TO THE DC MOTOR

Design of Compensator for Dynamical System

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

DEGREE: Biomedical Engineering YEAR: TERM: 1

EXPERIMENT 1 Control System Using Simulink

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

Transcription:

Islamic University of Gaza Faculty of Engineering Electrical Engineering department Control Systems Design Lab Eng. Mohammed S. Jouda Eng. Ola M. Skeik Experiment 3 PID Controller Overview This experiment shows the characteristics of the proportional (P), the integral (I), and the derivative (D) controls, and how to use them to obtain a desired response. This tutorial uses the LabVIEW Control Design and Simulation Module. Consider the following unity feedback system Figure 1: Unity Feedback System Plant: A system to be controlled Controller: Provides the excitation for the plant; Designed to control the overall system behavior 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. Note that these correlations may not be exactly accurate, because Kp, Ki, and Kd are dependent on 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 Figure 3: Mass, Spring, and Damper

The modeling equation of this system is: Taking the Laplace transform of the modeling equation, we get: 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, and F(s) = 1. If we use these values in the above transfer function, the result is: The goal of this problem is to show you how each of Kp, Ki and Kd contributes to obtain fast rise time, minimum overshoot, and no steady-state error. Open-Loop Step Response Let's first view the open-loop step response. LabVIEW Graphical Approach Create a new blank VI, and insert the CD Construct Transfer Function Model VI and the CD Draw Transfer Function Equation VI, from the Model Construction section of the Control Design palette. Create controls for the Numerator and Denominator terminals of the CD Construct Transfer Function Model VI. Connect the Transfer Function Model output from this VI to the input terminal of the CD Draw Transfer Function Equation VI. Finally, create an indicator from the Equation terminal of the CD Draw Transfer Function VI. Create a While Loop around this code, and create a control for the Loop Condition terminal. Next, add the CD Step Response VI to the block diagram. Connect the Transfer Function Model output from the CD Construct Transfer Function Model VI to the Transfer Function Model input of the CD Step Response VI. Create an indicator from the Step Response Graph output of the CD Step Response VI.

Result Running the VI from Figure 4 should return the plot shown below in Figure 5. Figure 5: Step Response Graph The DC gain of the plant transfer function is 1/20, so 0.05 is the final value of the output to a 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 in Figure 2, 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:

LabVIEW Graphical Approach Change the CD Construct Transfer Function Model VI to SISO (Symbolic) to allow for variables to be used. The resulting block diagram is shown in Figure 6. Now enter in the closed-loop transfer function of the system with a proportional controller. Let the proportional gain (Kp) equal 300. Result The LabVIEW approach should yield the graph shown below in Figure 7. Figure 7: Proportional Control

The graph 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 in Figure 3, 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 equal 300 as before and let Kd equal 10. LabVIEW Graphical Approach Using the VI from Figure 6, modify the input terms on the front panel to add the derivative element to the system. Result The LabVIEW approach should yield the graph shown below in Figure 8. Figure 8: Proportional-Derivative Control Compare the graph in Figure 8 to the graph in Figure 7. The step response plot shows that the derivative controller reduced both the overshoot and the settling time, and had a 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 closed-loop transfer function with a PI control is: Let's reduce the Kp to 30, and let Ki equal 70. LabVIEW Graphical Approach Using the VI from Figure 6, modify the input terms on the front panel to add the derivative element to the system. Result The LabVIEW approach should yield the graph shown below in Figure 9. Figure 9: Proportional-Integral Control 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 in Figure 9 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 Result The LabVIEW approach should yield the graph shown below in Figure 10. Figure 10: Proportional-Integral-Derivative Control Now, we have obtained a closed-loop 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. 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 a derivative controller on the system. Keep the controller as simple as possible.

Exercise: A common actuator in control systems is the DC motor. It directly provides rotary motion and, coupled with wheels or drums and cables, can provide transitional motion. The electric circuit of the armature and the free body diagram of the rotor are shown in the following figure: Figure 11: DC Motor Circuit and Free Body Diagram Transfer Function Using Laplace Transforms, the above equations can be expressed in terms of s: These equations can also be represented in state-space form. If we choose motor position, motor speed, and armature current as our state variables, we can write the equations as follows:

moment of inertia of the rotor (J) = 3.2284E-6 kg.m^2/s^2 damping ratio of the mechanical system (b) = 3.5077E-6 Nms electromotive force constant (K=Ke=Kt) = 0.0274 Nm/Amp electric resistance (R) = 4 ohm electric inductance (L) = 2.75E-6 H 1. Construct and display State-Space Model and This should result in a front panel that looks like this: 2. Construct and display Transfer Function Equation and This should result in a front panel that looks like this:

For the original problem setup and the derivation of the above equations, please refer to the Modeling DC Motor Position page. With a 1 rad/sec step reference, the design criteria are: Settling time less than 0.04 seconds. Overshoot less than 16%. No steady-state error.