Control Engineering Project - PID Control of a DC Motor

Similar documents
EE 402 RECITATION #13 REPORT

PID Controller Tuning: A Short Tutorial

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

Controller Design using the Maple Professional Math Toolbox for LabVIEW

Dr. Yeffry Handoko Putra, S.T., M.T

Matlab and Simulink. Matlab and Simulink for Control

SAMPLE CHAPTERS UNESCO EOLSS PID CONTROL. Araki M. Kyoto University, Japan

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

System Modeling and Control for Mechanical Engineers

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

ECE 3510 Final given: Spring 11

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

Controller Design in Frequency Domain

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

MATLAB Control System Toolbox Root Locus Design GUI

EECE 460 : Control System Design

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

ELECTRICAL ENGINEERING

Enhancing Classical Controls Education via Interactive GUI Design

DCMS DC MOTOR SYSTEM User Manual

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

Introduction to SMPS Control Techniques

Ziegler-Nichols-Based Intelligent Fuzzy PID Controller Design for Antenna Tracking System

Control System Definition

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

PID, LQR and LQR-PID on a Quadcopter Platform

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

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

Modeling and Simulation of a Three Degree of Freedom Longitudinal Aero plane System. Figure 1: Boeing 777 and example of a two engine business jet

Non Linear Control of a Distributed Solar Field

ECE 516: System Control Engineering

1. s to Z-Domain Transfer Function

A Study of Speed Control of PMDC Motor Using Auto-tuning of PID Controller through LabVIEW

Optimal Tuning of PID Controller Using Meta Heuristic Approach

Chapter 3: Analysis of closed-loop systems

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

A simple method to determine control valve performance and its impacts on control loop performance

Laboratory 4: Feedback and Compensation

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

Design of a TL431-Based Controller for a Flyback Converter

The Calculation of G rms

TEACHING AUTOMATIC CONTROL IN NON-SPECIALIST ENGINEERING SCHOOLS

TwinCAT NC Configuration

Introduction. Chapter The Motivation

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

ALL DIGITAL DESIGN AND IMPLEMENTAION OF PROPORTIONAL- INTEGRAL-DERIVATIVE (PID) CONTROLLER

Chapter 9: Controller design

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

stable response to load disturbances, e.g., an exothermic reaction.

Positive Feedback and Oscillators

Stabilizing a Gimbal Platform using Self-Tuning Fuzzy PID Controller

PID Control. Chapter 10

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

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

Loop Analysis. Chapter Introduction

POTENTIAL OF STATE-FEEDBACK CONTROL FOR MACHINE TOOLS DRIVES

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

Process Control Primer

Advantages of Auto-tuning for Servo-motors

Dynamic Process Modeling. Process Dynamics and Control

PID Control. 6.1 Introduction

Understanding Poles and Zeros

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

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

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

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

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

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

Confidence Intervals for One Standard Deviation Using Standard Deviation

Improving proposal evaluation process with the help of vendor performance feedback and stochastic optimal control

Quadcopter Dynamics, Simulation, and Control Introduction

19 LINEAR QUADRATIC REGULATOR

Chapter Eight Root Locus Control Design. 8.3 Common Dynamic Controllers

Cancellation of Load-Regulation in Low Drop-Out Regulators

Optimal Design of α-β-(γ) Filters

PC BASED PID TEMPERATURE CONTROLLER

Formulations of Model Predictive Control. Dipartimento di Elettronica e Informazione

Abstract. Cycle Domain Simulator for Phase-Locked Loops

Auto-Tuning Using Fourier Coefficients

Technical Guide No High Performance Drives -- speed and torque regulation

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

Roots of Equations (Chapters 5 and 6)

Oscillations. Vern Lindberg. June 10, 2010

Performance Analysis of Speed Control of Direct Current (DC) Motor using Traditional Tuning Controller

Hi4aSP051001FME1. Hyundai Robot Function Manual Servo Parameter

Spacecraft Dynamics and Control. An Introduction

Application Report SLVA051

Understanding Power Impedance Supply for Optimum Decoupling

APPLICATION BULLETIN

Students Manual for the Exam. General Engineering and Electrical Civil Engineering Discipline

G(s) = Y (s)/u(s) In this representation, the output is always the Transfer function times the input. Y (s) = G(s)U(s).

SGN-1158 Introduction to Signal Processing Test. Solutions

Manufacturing Equipment Modeling

Industrial Plant and Process Control

TEACHING AGGREGATE PLANNING IN AN OPERATIONS MANAGEMENT COURSE

3.1 State Space Models

Transcription:

Control Engineering Project - PID Control of a DC Motor Introduction A PID controller comprises three kinds of controller, namely proportional (P), integral (I), and derivative(d). In control system, designing a PID controller is mostly used when the mathematical representation of a plant (system to be controlled) is unknown. Therefore, PID controllers are mostly set and tuned on the field (Ogata 2002, p.681) for practical reason. The mathematical representation (transfer function) of a PID controller itself is given below: ( ) ( ) For the tuning process, Ziegler-Nichols tuning method gives a comfort in providing a place to start. There are two Ziegler-Nichols methods, namely the first and the second method. In the first method, the main focus is the response of the system to a unit step input. On the other hand, the second method is based on the two characteristic variables of the system examined: critical gain (Kcr) and critical period (Pcr). Kcr is based on the first value of Kp that results in a sustained oscillation as its output, while Pcr is defined as the period of the oscillation. The second method of Ziegler-Nichols tuning coefficients for P, PI, and PID controllers are given in table 1. Type of Controller P 0.5Kcr 0 PI 0.45Kcr Pcr 0 PID 0.6Kcr 0.5Pcr 0.125Pcr Table 1 Ziegler-Nichols second method tuning rules Another method that is similar to Ziegler-Nichols is the Tyreus-Luyben method. The tuning rules for this method is given in table 2. Type of Controller PI Kcr 2.2Pcr 0 PID Kcr 2.2Pcr Pcr Table 2 Tyreus-Luyben method tuning rules In this report, both methods aforementioned will be discussed and compared. Apart from that, the manual tuning of P-I-D coefficients will also be employed and compared with the result from the second method of Ziegler-Nichols tuning rules. Results Ziegler-Nichols Tuning Rules The system examined in this report is a DC motor. The physical form of a DC motor is shown in Figure 1, while the complete mathematical representation of a control system is given in Figure 2. 1

Figure 1 A DC motor Figure 2 A DC motor control system The dynamics of the DC motor is given below: ( ) ( )( ) where the motor time constants (ω and ω m ) are given in table 3. No 1 2 3 4 5 6 7 8 9 10 ω 10 ω m 1.2π 0.9π π 1.08π 1.06π 1.04π 1.13π 1.12π 1.03π 1.01π Table 3 DC motor time constants The G(s) equation above can be written as the following in terms of the DC motor time constants: ( ) ( )( ) Therefore, the plant transfer functions for the extreme values (ω m = 1.2π and ω m = 0.9π) are given in the table 4. ω m 1.2π Dc Motor Transfer Function 0.9π Table 4 The complete transfer function of the DC motor based on each time constant For the analysis in this report, only those systems with ω m = 1.2π (system 1) and ω m = 0.9π (system 2) will be discussed. The value of Kcr and Pcr of both systems are shown in table 5. Kcr 13.7699 12.8274 Pcr 1.0233 1.1816 Table 5 The Kcr and Pcr of each system The resulting Kp, Ti and Td based on the Ziegler-Nichols rules of the respective system are: 2

P PI PID 6.8850 6.4137 0 0 6.1965 5.7723 0.8528 0.9847 0 0 8.2619 7.6965 0.5117 0.5908 0.1279 0.1477 Table 6 The Kp, Ti and Td of each P, PI, and PID controller based on Ziegler-Nichols tuning rules Thus the resulting Gc(s) and the closed loop system are shown in table 7 and table 8 respectively. System 1 6.8850 System 2 6.4137 Gc(s) P PI PID Table 7 The resulting Gc(s) based on Kp, Ti, and Td acquired in Table 6 P PI PID Table 8 The resulting closed loop transfer function of each system based on the controller used Closed loop poles -12.4173, -0.6763 + 4.5217i -0.6763-4.5217i -11.7349, -0.5463 + 3.8929i -0.5463-3.8929i Phase Margin 18.8751 17.4496 Gain Margin 2.0000 2.0000 Rise Time (s) 0.2754 0.3141 Overshoot (%) 58.3886 60.7761 Delay Time (s) 0.316 0.358 Settling Time (s) 4.3522 5.1205 (input1: step) 0.001 0.001 0.3 0.32 (input2: ) (input3: ) 3.002 3.002 Table 9a The time and frequency response characteristics for closed loop system 1 and system 2 with P controller 3

Closed loop poles -12.0950, -0.1708 + 4.1179i -0.1708-4.1179i, -1.3334-11.4937, -0.0999 + 3.5649i -0.0999-3.5649i, -1.1338 Phase Margin 4.6549 3.1483 Gain Margin 1.2704 1.1982 Rise Time (s) 0.2598 0.2966 Overshoot (%) 98.3318 100.8808 Delay Time (s) 0.313 0.367 Settling Time (s) 17.7048 30.1253 (input1: step) 0.001 0.002 0.006 0.15 (input2: ) (input3: ) 0.3 0.38 Table 9b The time and frequency response characteristics for closed loop system 1 and system 2 with PI controller Closed loop poles -1.2218 + 4.4558i, -1.2218-4.4558i, -7.5486, -3.7776-7.9309, -0.9809 + 3.8553i -0.9809-3.8553i, -2.9346 Phase Margin 24.1096 23.2321 Gain Margin 0 0 Rise Time (s) 0.2155 0.2465 Overshoot (%) 60.0980 60.8240 Delay Time (s) 0.194 0.22 Settling Time (s) 2.2890 3.2681 (input1: step) 0 0 0 0 (input2: ) (input3: ) 0.1 0.15 Table 9c The time and frequency response characteristics for closed loop system 1 and system 2 with PID controller Figure 3 Input1, input2, and input3 response of the closed loop system 1 with P controller 4

Figure 4 Input1, input2, and input3 response of the closed loop system 1 with PI controller Figure 5 Input1, input2, and input3 response of the closed loop system 1 with PID controller Simulation Using Different Sampling Periods The simulation will be in three different sampling periods (Ts): 0.5s, 0.25s and 0.025s. The system examined is System 1 (ω m = 1.2π) with PID controllers. The results are shown below in figure 6. Figure 6 System 1 with PID controller sampled at different Ts From the results it can be seen that the smaller the sampling period is, the better. It is stated in the sampling theorem of Nyquist and Shannon that for the signals to be accurately reconstructed from samples, it must have no frequency component greater than half the sample rate ( ). In this case, the sampling rate has to be at least half the Pcr in order to avoid aliasing (Franklin 2010, p.578). Fine Tuning the Controllers System specification is as following: - Overshoot less than 10% - Shortest rise time 5

The controller used here is PID controller. The fine tuning method itself relies on Matlab program using iteration. The iteration will calculate the best value of gain (K) which will meet the system specification. The tuning variables is set not far from the Ziegler-Nichols setting point for PID controller. The resulting Kcr and Pcr are 11.7767 and 3.1082 respectively. The controller transfer function is therefore can be defined as below: ( ) The result for the new control system and the comparison found before are shown in figure 7 and table 10. Figure 7 Input1, input2, and input3 response of the closed loop system 1 with fine-tuned PID controller Fine Tuning Ziegler-Nichols Closed loop poles -5.7973 + 8.9926i, -5.7973-8.9926i -1.0877 + 0.5606i, -1.0877-0.5606i -1.2218 + 4.4558i, -1.2218-4.4558i, -7.5486, -3.7776 Phase Margin 59.9494 24.1096 Gain Margin 0 0 Rise Time (s) 0.1763 0.2155 Overshoot (%) 9.5219 60.0980 Delay Time (s) 0.131 0.194 Settling Time (s) 1.8012 2.2890 Table 10 The characteristic of the new control system as a result of fine-tuning with Kcr and Pcr of 11.7767 and 3.1082 respectively. System specification is met. Comparison of the Ziegler-Nichols and the Fine-Tuned Results From table 9 and table 10 we can conclude that: - The fine-tuned system has been able to meet the performance specification, that is the overshoot of maximum 10% with the minimum rise time. - The fine-tuned system has a bigger phase margin than the corresponding Ziegler-Nichols. This corresponds to the theory that the for satisfactory performance, the phase margin should be between 30 and 60 (Ogata 2002, p.565). - From the tuning experience gained in this experiment, the value of Kcr mostly affects the settling and rise time, and the phase margin of the system s response to unit step. The bigger Kcr is, the less settling time and rise time, and the lower the phase margin is. The 6

value of Pcr influences also the phase margin and the overshoot it gives. The bigger the Pcr is, the lower the phase margin and the overshoot are. - Ziegler-Nichols theory gives a good starting point in designing a controller. The results shows that only with a little tweak on the system parameters, the system performance specification can be met with ease. The Relation between Relative Stability Properties and the Performance The stability properties are desribed from the following characteristics: 1. The closed loop poles 2. Phase margin 3. Gain margin On the other hand, the performance of a system is characterized by the following: 1. Rise time 2. Overshoot (%) 3. Delay time 4. Settling time 5. Steady-state error (position, velocity, and accelaration) Stability and performance of a system are the most important aspect of a system and the main focus of every engineer s mind when it comes to designing a controller. These properties, however, can be described by the type of the system described by its open loop transfer function with unity feedback as shown in figure 11. Figure 11 A control system with unity feedback Regarding the results obtained in this report, it is going to be seen from a few angles: 1) Steady state error. The type of a system is described by N at the open loop transfer function in the form of: It is stated that the higher the type of a system, the better the accuracy is. However, this comes at the expense of the stability of the system (Ogata 2002, p.288). This theory is based on the steadystate error coeficents of a system (Kp, Kv, Ka) exposed to unit step, unit ramp and unit parabolic inputs which can be seen in table 12. Further, it is going to be shown that the results obtained in the previous section of this report correspond to this theory. 7

As a sample case, system 1 will be discussed here. Table 12 Steady-state error of a control system The results obtained from the Ziegler-Nichols tuning rules shows that system 1 open loop transfer function is: ( ) It can be seen that the system is of type 2. And from tabel 12, the steady-state error of the system is 0 for both step and ramp input, but for acceleration input. This explains the steady-state error shown before in table 9c. 2) Phase and gain margin. From the result in table 10. It can be seen that the fine tuning of the controller caused a shift in phase margin. This corresponds well with the usual trade-off in the real system, that is with the better performance, sometimes it is at the expense of the stability of the system. It is said that the phase margin of a system with satisfactory performance should be between 30 and 60. The fine tuned system got it to the limit of the range, but it has increased the perfomance of the system by a lot. The Bode plot of the open loop system is given in figure 8. Figure 8 The Bode plots of system 1 based on Ziegler-Nichols (left) and after being fine-tuned (right) 3) Root locus analysis. The root locus plots of the open loop system with and without the controller can be seen in figure 9. 8

Figure 9 The root locus of the open loop system with (left) and without the controller (right) From the figure above, it is obvious that the trajectory of the poles and zeros of the system has changed to the better with the existance of the controller in a way that with the increment in gain, the system will not render to instability. Tyreus-Luyben Method Another alternative of tuning method is Tyerus-Luyben method. This method uses the coeficients Kp, Ti, and Td as described in table 13 and the results can be seen in table 14. Controller Kp Ti Td PI 2.2Pcr 0 PID 2.2Pcr Table 13 The Tyreus-Luyben tuning rules method Closed loop poles -7.6193, -2.8129 + 4.2777i, -2.8129-4.2777i, -0.5248-7.8214, -2.2776 + 3.5777i -2.2776-3.5777i, -0.4508 Phase Margin 48.4483 47.2594 Gain Margin 0 0 Rise Time (s) 0.2720 0.3101 Overshoot (%) 24.6146 26.0433 Delay Time (s) 0.215 0.245 Settling Time (s) 1.1856 1.3573 (input: step) 0.004 0.004 (input: ) 0.002 0.002 (input: ) 0.7 0.8 Table 14 The characteristic of the response using Tyreus-Luyben method 9

Figure 10 Input1, input2, and input3 response of the closed loop system 1 (ω m = 1.2π) with PID controller according to Tyreus-Luyben method Figure 11 Input1, input2, and input3 response of the closed loop system 2 (ω m = 0.9π) with PID controller according to Tyreus-Luyben method From the results above, it can be drawn some comparisons to the Ziegler-Nichols results obtained before: - The Tyreus-Luyben method gives higher rise time, delay time, phase margin, and steady state error to acceleration input than Ziegler-Nichols method. This gives the Ziegler-Nichols a preference if a fast response system is needed. But on the other hand, the overshoot is a lot higher with Ziegler-Nichols method compared to the Tyreus-Luyben by a third. Conclusion Ziegler-Nichols tuning rules are mostly useful when the plant s mathematical representation cannot be obtained. It gives the engineers a tuning process starting point with ease. However, these tuning rules are also applicable for those systems with known mathematical models. As stated before, the Ziegler-Nichols method gives the starting point for the tuning process. Nevertheless, it is critical that an engineer can take it up from there and further tune it (based on experience) so the system can meet the performance specification wanted. Reference list [1] Katsuhiko Ogata, Modern Control Engineering, Upper Saddle River, NJ, Prentice Hall, 2002. [2] Gene F. Franklin, J. David Powell, and Abbas Emami-Naeini, Feedback Control of Dynamic Systems, Upper Saddle River, NJ, Prentice Hall, 2010 10