SPEED CONTROL OF DC MOTOR USING PI CONTROLLER MOHD AZRI BIN ABD MUTALIB

Similar documents
PID Controller Tuning: A Short Tutorial

HELP DESK SYSTEM IZZAT HAFIFI BIN AHMAD ARIZA

DEVELOP AND DESIGN SHEMATIC DIAGRAM AND MECHANISM ON ONE SEATER DRAG BUGGY MUHAMMAD IBRAHIM B MD NUJID

PRODUCTIVITY IMPROVEMENT VIA SIMULATION METHOD (MANUFACTURING INDUSTRY) HASBULLAH BIN MAT ISA

MODELING AND SIMULATION OF SINGLE PHASE INVERTER WITH PWM USING MATLAB/SIMULINK AZUAN BIN ALIAS

Car Rental Management System (CRMS) Lee Chen Yong

TABLE OF CONTENTS. SUPERVISOR S DECLARATION ii STUDENT S DECLARATION iii DEDICATION ACKNOWLEDGEMENTS v ABSTRACT LIST OF TABLES

Motors and Generators

STRESS EFFECT STUDY ON 6 DIFFERENT PATTERN OF TYRES FOR SIZE 175/70 R13 SYAHRIL AZEEM ONG BIN HAJI MALIKI ONG. for the award of the degree of

AC generator theory. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

DEVELOPING AN ISP FOR HOTEL INDUSTRY: A CASE STUDY ON PUTRA PALACE HOTEL

A STUDY OF SECURITY LIMITATIONS IN VIRTUAL LOCAL AREA NETWORK IMPLEMENTATION

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

EE 402 RECITATION #13 REPORT

PID CONTROLLER DESIGN FOR CONTROLLING DC MOTOR SPEED USING MATLAB APPLICATION MOHAMED FARID BIN MOHAMED FARUQ UNIVERSITI MALAYSIA PAHANG

CLIENT SERVER APPLICATION FOR SERVER FARM PERFORMANCE MONITORING ABDIRASHID HASSAN ABDI

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

Chen. Vibration Motor. Application note

SPAM FILTERING USING BAYESIAN TECHNIQUE BASED ON INDEPENDENT FEATURE SELECTION MASURAH BINTI MOHAMAD

IMPROVING SERVICE REUSABILITY USING ENTERPRISE SERVICE BUS AND BUSINESS PROCESS EXECUTION LANGUAGE AKO ABUBAKR JAAFAR

BISKUT RAYA INVENTORY MANAGEMENT SYSTEM (BRIMS) NURUL AMIRAH BINTI ROSLAN THESIS SUBMITTED IN FULFILLMENT OF THE DEGREE OF COMPUTER SCIENCE

A Design of a PID Self-Tuning Controller Using LabVIEW

Motor Fundamentals. DC Motor

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

Matlab and Simulink. Matlab and Simulink for Control

RFID BASED SYSTEMATIC STUDENT S ATTENDANCE MANAGEMENT SYSTEM HANISAH BINTI HAMID. Faculty of Electrical and Electronic Engineering

LIGHTNING AS A NEW RENEWABLE ENERGY SOURCE SARAVANA KUMAR A/L ARPUTHASAMY UNIVERSITI TEKNOLOGI MALAYSIA

Simple Analysis for Brushless DC Motors Case Study: Razor Scooter Wheel Motor

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

DIRECT CURRENT GENERATORS

EECE 460 : Control System Design

13 ELECTRIC MOTORS Basic Relations

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

Keywords: System Identification, Least Square Method, RC circuits. Kata kunci : Sistem Identifikasi, Least Square Method, Litar RC

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

DCMS DC MOTOR SYSTEM User Manual

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

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

DC Motor control Reversing

ELECTRICAL ENGINEERING

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

Equipment: Power Supply, DAI, Synchronous motor (8241), Electrodynamometer (8960), Tachometer, Timing belt.

Control System Definition

INTEGRATING CONSUMER TRUST IN BUILDING AN E-COMMERCE WEBSITE NUR ZAILAN BIN OTHMAN

EE 1202 Experiment #4 Capacitors, Inductors, and Transient Circuits

DC GENERATOR THEORY. LIST the three conditions necessary to induce a voltage into a conductor.

MATLAB Control System Toolbox Root Locus Design GUI

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

MASTER S PROJECT REPORT SUMMARY

WEB-BASED PROPERTY MANAGEMENT SYSTEM SAFURA ADEELA BINTI SUKIMAN

Application Information

EXPERIMENTAL ANALYSIS OF PASSIVE BANDWIDTH ESTIMATION TOOL FOR MULTIPLE HOP WIRELESS NETWORKS NURUL AMIRAH BINTI ABDULLAH

Principles of Adjustable Frequency Drives

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

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

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

Lab 8: DC generators: shunt, series, and compounded.

SWAY REDUCTION ON GANTRY CRANE SYSTEM USING DELAYED FEEDBACK SIGNAL (DFS) NORASHID BIN IDRUS

Mini-Lab Projects in the Undergraduate Classical Controls Course

PID Control. Chapter 10

INDUCTION MOTOR PERFORMANCE TESTING WITH AN INVERTER POWER SUPPLY, PART 2

DEVELOPMENT OF DATA ACQUISITION SOFTWARE FOR CENTRALIZED RADIATION MONITORING SYSTEM

TRANSFORMATIONAL PROJECT MANAGER: AN ENABLER OF AN ENTERPRISE RESOURCE PLANNING (ERP) IMPLEMENTATION SUCCESS JOHN ONYEKACHI OKUGO

JOB AGENT MANAGEMENT SYSTEM LU CHUN LING. A thesis submitted in partial fulfillment of. the requirements for the award of the degree of

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI TEKNOLOGI MAKLUMAT DAN KOMUNIKASI

VOLTAGE REGULATOR AND PARALLEL OPERATION

NECOCAR. International CATIA Project

ANT COLONY OPTIMIZATION (ACO) ALGORITHM FOR CNC ROUTE PROBLEM WAN NUR FARHANAR BT WAN ZAKARTA

DC motors: dynamic model and control techniques

DEVELOPMENT OF STATISTICAL PROCESS CONTROL (SPC) MATLAB- BASED SOFTWARE FOR AUTOMOTIVE INDUSTRIES APPLICATION SITI HAZLINA BINTI MOKHTAR

Chapter 11. Inductors ISU EE. C.Y. Lee

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

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

Modelling, Simulation and Performance Analysis of A Variable Frequency Drive in Speed Control Of Induction Motor

Inductance. Motors. Generators

Speed Control Methods of Various Types of Speed Control Motors. Kazuya SHIRAHATA

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

SPEED CONTROL OF INDUCTION MACHINE WITH REDUCTION IN TORQUE RIPPLE USING ROBUST SPACE-VECTOR MODULATION DTC SCHEME

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

HOME AUTOMATION SYSTEM USING POWER LINE COMMUNICATION DARLENE BINTI MOHAMAD DOUGLAS

ELECTRICAL ENGINEERING

Online Tuning of Artificial Neural Networks for Induction Motor Control

Lesson 3 DIRECT AND ALTERNATING CURRENTS. Task. The skills and knowledge taught in this lesson are common to all missile repairer tasks.

STUDENT S DECLARATION

Active Vibration Isolation of an Unbalanced Machine Spindle

Lab 14: 3-phase alternator.

Basics of Electricity

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

ONLINE DATA VISUALIZATION FOR UMP STRATEGIC PLAN DASHBOARD ANDY PUE ZENFOONG TECHNICAL SUBMITTED IN FULFILMENT OF THE DEGREE OF COMPUTER SCIENCE

THE RELATIONSHIP BETWEEN HUMAN RESOURCE INFORMATION SYSTEM (HRIS) AND HUMAN RESOURCE MANAGEMENT (HRM) ALFRED PUN KHEE SEONG

Power Quality Paper #3

INSTRUMENTATION AND CONTROL TUTORIAL 2 ELECTRIC ACTUATORS

Simulation and Analysis of PWM Inverter Fed Induction Motor Drive

Objectives. Capacitors 262 CHAPTER 5 ENERGY

SECTION 4 ELECTRIC MOTORS UNIT 17: TYPES OF ELECTRIC MOTORS

DIRECT CURRENT MOTOR CONTROL LED BY MICROCONTROLLER CREATED PWM THINESH A/L KUNASEGERAN. Thesis submitted in fulfillment of the requirements

Magnetic electro-mechanical machines

HOME SECURITY SENSOR SYSTEM USING ATMEL AVR MICROCONTROLLER LIM BOON HOI

STUDY OF F1 CAR AERODYNAMIC REAR WING USING COMPUTATIONAL FLUID DYNAMIC (CFD) MOHD SHAHMAL BIN MOHD SHAHID

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

Transcription:

20 SPEED CONTROL OF DC MOTOR USING PI CONTROLLER MOHD AZRI BIN ABD MUTALIB A report submitted in partial fulfillment of the requirements for the award of the degree of Bachelor of Electrical Engineering Faculty of Electrical Engineering Universiti Malaysia Pahang MAY, 2008

23 ACKNOWLEDGEMENT First of all I am grateful to ALLAH S.W.T for blessing me in finishing my final year project (PSM) with success in achieving my objectives to complete this project. Secondly, I want to thank my family for giving morale support and encouragement in completing my project and also throughout my study in Universiti Malaysia Pahang (UMP) as they are my inspiration to success. I also would like to thank my supervisor Mr Mohd Syakirin Bin Ramli for guiding and supervising my final year project. He has been very helpful to me in finishing my project and I appreciate every advice that he gave me in correcting my mistakes. I apologize my supervisor if any mistakes and things that I done wrong while doing my project. The credit also goes to Assiociate Prof. Nasir B Shaikh Abd Rahman as the dean of Electrical Engineering Faculty and Mr Reza Ezuan Bin Samin as the coordinator of final year project with their cooperation and guide about my final year project from the beginning. Last but not least, I want to thank all my friends that have gave me advice and encouragement in completing my project. Thank you very much to all and May ALLAH bless you.

24 ABSTRACT The development of technologies affects the demands of industries at the present time. Thus, automatic control has played a vital role in the advance of engineering and science. In today s industries, control of DC motors is a common practice. Therefore, implementation of DC motor controller is required. There are many types of controller that can be used to implement the elegant and effective output. One of them is by using a PI controller. PI stands for Proportional and Integral Controllers which are designed to eliminate the need for continuous operator attention thus provide automatic control to the system. Cruise control in a car and a house thermostat are common examples of how controllers are used to automatically adjust some variable to hold the measurement (or process variable) at the set-point. This project is focusing on implementing PI controller to control speed of a dc motor. The overall project is divided into two parts. The first part is concern on the simulation using MATLAB simulink where the dc motor is modeled and PI controller is tuned using Ziegler-Nichols rules and software tuning. The second part is implementing the simulation. This part is divided into another two parts, Graphical User Interface (GUI) development and hardware interfacing. GUI is built using National Instrument LabVIEW software with implementation of PI controller. An oscilloscope also had been build there. Hardware interfacing part is built with Mitsumi dc mini-motors M31E-1 Series, speed sensor and analog to digital converter, DAC8032. As the result, PI controller is capable to control the speed of dc motor followed the result from simulation.

25 ABSTRAK Perkembangan teknologi masa kini telah memberikan tekanan kepada industri. Maka, sistem kawalan automatik telah memainkan peranan yang penting sejajar dengan kemajuaan sains dan kejuruteraan. Dalam era pembangunan industri masa kini, kawalan dc motor adalah amalan biasa dilakukan. Oleh yang demikian, perlaksanaan sistem kawalan dc motor amatlah diperlukan. Terdapat pelbagai jenis sistem kawalan dc motor yang boleh digunakan dalam mendapatkan keluaran (output) yang mantap dan efektif. Antaranya termasuklah PI Controller. PI adalah singkatan dari Proportional dan Integral Controller. Sistem kawalan ini dibangunkan untuk memenuhi keperluan sistem kawalan tanpa henti. Kawalan Cruise dan thermostat di rumah adalah contoh yang biasa digunakan dalam menunjukan bagaimana sistem kawalan digunakan untuk mengawal secara automatik pembolehubah yang tertentu untuk mengekalkan nilai tetapannya. Projek ini memberi penekanan kepada perlaksanaan sistem kawalan PI dalam mengawal kelajuan dc motor. Secara keseluruhannya, projek ini terbahagi kepada dua. Bahagian yang pertama menceritakan mengenai proses simulasi menggunakan perisian MATLAB simulink di mana dc motor telah dimodelkan dan sistem kawalan PI dilaras mengikut prinsip Ziegler-Nichols dan disusuli dengan larasan secara perisian. Bahagian yang kedua adalah melaksanakan simulasi tersebut. Bahagian ini juga terbahagi kepada dua bahagian iaitu membangunkan Graphical User Interface (GUI) dan litar elektronik. GUI dibangunkan dengan menggunakan perisian National Instrument LabVIEW dengan melaksanakan sistem kawalan PI. Osiloskop juga turut dibangunkan disini. Pembangunan litar elektronik pula dijalankan dengan Mitsumi dc mini-motors, siri M31E-1, sensor kelajuan dan penukar nilai digital kepada analog, DAC8032. Sebagai keputusannya, sistem kawalan PI adalah mampu untuk mengawal kelajuan dc motor mengikut keputusan simulasi.

26 TABLE OF CONTENTS CHAPTER TITLE PAGE TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST OF TABLES LIST OF FIGURES LIST OF ABBREVIATIONS LIST OF SYMBOLS LIST OF APPENDICES i ii iii iv v vi vii ix x xii xiii xv 1 INTRODUCTION 1.1 Background 1 1.2 Project objective 2 1.3 Project scope 2 2 LITERATURE REVIEW 2.1 PI Controller 3 2.1.1 Proportional Band (P) 3 2.1.2 Integral (I) 3 2.1.3 The two-term controller 4 2.1.4 The characteristics of P and I controllers 5

27 2.1.5 Tuning Rules Of PI Controller 6 2.2 Dc Motor 11 2.2.1 History of Dc Motor (Plant) 11 2.2.2 Principles of operation. 12 2.3 Graphical User Interface (GUI) 15 2.4 Summary 16 3 METHODOLOGY 3.0 Introduction 17 3.1 Develop a mathematical model of Dc motor and PI 19 controller. 3.1.1 Build Dc Motor Mathematical model. 19 3.1.2 Build PI Controller Mathematical model. 23 3.2 MATLAB simulation 24 3.3 Built a GUI with LabVIEW software. 26 3.4 Hardware interfacing (6V Dc motor) 28 4 RESULTS AND DISCUSSIONS 4.1 Introduction 29 4.2 Simulation Result 29 4.3 Implementation Result 32 4.4 Summary 34 5 CONCLUSION AND RECOMMENDATIONS 5.1 Conclusions 35 5.2 Recommendations 35 REFERENCES 36 APPENDICES A H 37-75

28 LIST OF TABLES TABLE NO. TITLE PAGE 2.1 Effect of Kp and Ki 5 2.2 Ziegler and Nichols setting value for KP and Ki 8 2.3 Second method of Zeigler-Nichols rules 10 3.1 The specifications of the Dc motor 24 3.2 Digital input code and Vout 26

29 LIST OF FIGURES FIGURE NO. TITLE PAGE 2.1 Load Step Time Response 4 2.2 Position Control System 6 2.3 Response to a unit-step input 7 2.4 Response with tangent line 8 2.5 Second Method Control System 9 2.6 Position of Pcr 10 2.7 Electromechanical energy conversion 12 2.8 Rotor movement of a three-pole design motor 13 3.1 Four main phases for the research 18 3.2 Position of PI controller 19 3.3 Electrical representation of a dc motor 20 3.4 Block diagram from transfer function of PI controller 24 3.5 Open loop dc motor block diagram 25 3.6 Close loop with unity feedback 25 3.7 PI controller for speed control was implemented 25 3.8 DAC 0832 wiring connection 26 3.9 Front panel of GUI 27

30 3.10 LM2907 wiring connection 28 4.1 Open loop system 30 4.2 Close loop system 30 4.3 PI controller with Ziegler and Nichols tuning calculation 31 4.4 Further tuning result 31 4.5 LED as output indicator from DAQ Card 32 4.6 Wiring of DAC 0832 33 4.7 Waveform Chart of Pulse Detection 33 4.8 Oscilloscope 34

31 LIST OF ABBREVIATIONS PI - Proportional Integral DAC - Digital to Analog Converter DAQ - Data Acquisition dc - Direct Current GUI - Graphical User Interface LabVIEW - Laboratory Virtual Instrument Engineering Workbench GND - Ground OSC - Oscillator LED - Light Emitting Diode MSB - Most Significant Bit LSB - Least Significant Bit PC - Personal Computer

32 LIST OF SYMBOLS µ - Micro k - Kilo V - Volts Ω - Ohm mh - MiliHenry N - Newton m - Meter rad - Radian S - Second dc - Direct Current K p - Proportional gain K I - Integral gain R - Desired Input Value Y - Actual Output e - Error Signal u - Signal L - Delay Time T - Time Constant - Infinity Kcr - Critical Gain Pcr - Corresponding Period % - Percent Va - Voltage Source La - Inductance emf - Electromotive Force

33 LIST OF APPENDICES APPENDIX TITLE PAGE A DC Mini Motors M31E-1 Series 37 B Data Sheet of DAC0830/DAC0832 38 8-Bit µp Compatible, Double-Buffered D to A Converters C User s Manual of RE08A Rotary Encoder Kit 54 D Data Sheet of LM2907/LM2917 Frequency to Voltage 60 Converter E Block Diagram of GUI 72 F DAQ Card Terminal Block 73 G Hardware 74 H Calculation 75

34 CHAPTER 1 INTRODUCTION 1.1 Background Dc motors have long been the primary means of Electrical Traction. DC motor is considered as a SISO system having torque/speed characteristics compatible with most mechanical loads [1]. Hence, dc motors are always a good proving ground for advanced control algorithm because the theory is extendable to other types of motors. Normally closed loop operation with PI controllers in the inner current loop and the outer speed loop is employed for speed control; the design of PI controller is generally carried out using time/frequency domain analysis. The speed response of the drive with PI controllers designed with the above techniques may be satisfactory but not necessarily be the best, since they do not pose any constraint on settling time, overshoot / undershoot etc. In any classical PID control problem, the required controller parameters should be optimally designed. Despite the method of Zeigler- Nichols ultimate cycle tuning scheme, these parameters can be optimally obtained via Genetic Algorithms. Genetic Algorithm s are general purpose optimization techniques which use a direct analogy of natural evolution where stronger individuals would likely be the winners in a competing environment [2]. Application of genetic algorithm in Electrical Machines anti control systems is quite new. This paper explains the

35 application of genetic algorithm for the design of a PI Controller for speed control DC motor. 1.2 Project objective The objective of this project is to design PI controller, develop Graphical User Interface (GUI) with implementing PI controller and compare the result from simulation and experiment in controlling speed of dc motor. 1.3 Project scope This project is to design and construct a PI controller which is performing to control a speed of DC motor. As a machine s performance is a vital factor for a big production line, this project will examine the efficiency and performance of a Dc motor with and without controller methodology. Thus, the focuses of this project are as stated below: i) Create the flow diagram of project ii) Do the offline simulation to get the expected result with and without controller. iii) Design a Graphical User Interface (GUI) with implementing PI controller. iv) Do the online simulation and compare the result to offline simulation before. v) Result analysis.

36 CHAPTER 2 LITERATURE REVIEW 2.1 PI Controller 2.1.1 Proportional Band (P) With proportional band, the controller output is proportional to the error or a change in measurement (depending on the controller). Controller output = (error)*100/ (proportional band) (2.1) With a proportional controller offset (deviation from set-point) is present. Increasing the controller gain will make the loop go unstable. Integral action was included in controllers to eliminate this offset [3]. 2.1.2 Integral (I) With integral action, the controller output is proportional to the amount of time the error is present. Integral action eliminates offset. Controller output = (1/intergeral) (Integral of) e(t) d(t) (2.2)

37 Figure 2.1: Load Step Time Response In Figure 2.1, notice that the offset (deviation from set-point) in the time response plots is now gone. This is done for integral action which eliminated the offset. The response is somewhat oscillatory and can be stabilized by adding derivative action [3]. Integral action gives the controller a large gain at low frequencies that results in eliminating offset and "beating down" load disturbances. The controller phase starts out at 90 degrees and increases to near 0 degrees at the break frequency. This additional phase lag is what you give up by adding integral action. 2.1.3 The two-term controller The transfer function of the PI controller looks like the following: K p = Proportional gain K I = Integral gain (2.3)

38 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 PI controller, and the controller computes 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 error [2]. (2.4) 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 it s integral again. This process goes on and on. 2.1.4 The characteristics of P and I controllers A proportional controller (K p ) will have the effect of reducing the rise time and will reduce, but never eliminate, the steady-state error. An integral control (K i ) will have the effect of eliminating the steady-state error, but it may make the transient response worse. Effects of each of controllers K p and K i on a closed-loop system are summarized in the table shown in Table 2.1. Table 2.1: Effect of K p and K i Controller respond Rise Time Overshot Settling Time S-S error Kp Decrease Increase Small Change Decrease Ki Decrease Increase Increase Eliminate Note that these correlations may not be exactly accurate, because K p and K i 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 K p and K i [4].

39 2.1.5 Tuning Rules Of PI Controller Figure 2.2: Position Control System Figure 2.2 shows the position of PI controller in dc motor speed control system. If the mathematical model of the plant (dc motor) can be derived, then it is possible to apply various design techniques for determine parameters of the controller that will meet the transient and steady-state specification of the close loop system. The process of selecting controller parameter to meet given performance specification is known as controller tuning. Ziegler and Nichols suggested rules for tuning PI controller (mean to set the values of K p and K i ) based on the experimental step response or based on the value of K p that result is marginal stability when only proportional control action is used [5]. Ziegler-Nichols rules, which are briefly presented in the following, are useful when mathematical models of plans are not known. These rules can, of course, be applied to design of system with known mathematical models. Such rules suggest a set of values of K p and K i that will give a stabile operation of the system. However, the resulting system may exhibit a large maximum overshoot in step response, which is unacceptable. In such a case, we need series of fine tunings until an acceptable result is obtained. In fact, the Ziegler- Nichols tuning rules give an educated guess for parameter values and provide a stating point for fine tuning, rather then giving the final settings for K p and K i in a single shot.

40 Ziegler and Nichols proposed rules for determining values of proportional gain, K p and integral time, K i based on the transient response characteristics of given plant. Such determination of the parameter of PI controller or tuning of PI controller can be made by engineers on-site by experiments on the plants. Numerous tuning rules for PI controllers have been proposed since the Ziegler-Nichols proposal. They are available in the literature and from the manufactures of such controllers. There are two methods called Ziegler-Nichols tuning rules; the first method and the second method. First method Figure 2.3: Response to a unit-step input In the first method, we obtain experimentally the response of the plant to a unit-step input, as shown in figure 2.3. If the plant involves neither integrator(s) nor dominant complex-conjugate poles, then such a unit-step response curve may look S- shape as shown in figure. This method applies if a response to a step input exhibit an S-shaped curve. Such step-response curves may be generated experimentally of from dynamic simulation of the plant [2].

41 Figure 2.4: Response with tangent line The S-shape curve may be characterized by two constants, delay time L and time constant T. The delay time and constant time are determined by drawing a tangent line (Figure 2.4) at the inflection point of the S-shaped curve and determining the intersections of the tangent line with the time axis and line c(t) = K as shown in figure. The transfer function C(s) /U(s) may then be approximated by fist-order system with transport lag as follows; C(s) = Ke -Ls _ U(s) Ts + 1 (2.5) Ziegler and Nichols suggested setting the value of K p and K i according to the formula shown in Table 2.2: Table 2.2: Ziegler and Nichols setting value for KP and Ki

42 Notice that the PI controller tune by the first method of Ziegler-Nichols rules gives G(s) = Kp ( 1 + _1 ) (2.6) KiS = 0.9 T (1 + _1_ ) L L/0.3 = 0.9 T (1 + _0.3_ ) L L The first method explains about how to tune the PI controller in the first order system only. But this project is about second order close loop system. A study need to be done to tune the second order system in the second method. Second Method Figure 2.5: Second Method Control System In the second method, K i = was set. Using the proportional control action only (see figure), increase K p from 0 to a critical value Kcr at which the output first exhibits sustained oscillations. (If the output does not exhibit sustained oscillations for whatever value of K p may take, then this method does not apply) Thus, the critical gain Kcr and the corresponding period Pcr are experimentally determined (see figure). Zeigler and Nichols suggested that we set the value of the parameters K p and K i according to the formula shown in the Table 2.3.

43 Figure 2.6: Position of Pcr Table 2.3: Second method of Zeigler-Nichols rules Type Of Kp Ki Controller P 0.5Kcr PI 0.45Kcr _1_Pcr 1.2 Notice that the PI controller tuned by the second method of Zeigler-Nichols rules in Table 2.3 gives. G c (s) = Kp ( 1 + _1 ) KiS = 0.45 Kcr (1 + 1_ ) 1.2 Pcr S

44 2.2 Dc Motor 2.2.1 History of Dc Motor (Plant) Electric motors exist to convert electrical energy into mechanical energy. This is done by two interacting magnetic fields; one stationary and another attached to a part that can move [7]. DC motors have the potential for very high torque capabilities; although this is generally a function of the physical size of the motor, are easy to miniaturize, and can be "throttled" via adjusting their supply voltage. DC motors are also not only the simplest, but the oldest electric motors. The basic principles of electromagnetic induction were discovered in the early 1800's by Oersted, Gauss, and Faraday. In 1819, Hans Christian Oersted and Andie Marie Ampere discovered that an electric current produces a magnetic field. The next 15 years saw a flurry of cross-atlantic experimentation and innovation, leading finally to a simple DC rotary motor [8]. Because of the work of these people, DC machines are one of the most commonly used machines for electromechanical energy conversion. Converters which are used continuously to convert electrical input to mechanical output or vice versa are called electric machines as shown in Figure 2.7. An electric machine is therefore a link between an electrical system and a mechanical system. In these machines, the conversion is reversible. If the conversion is from mechanical to electrical, the machine is said to act as a generator. If the conversion is from electrical to mechanical, the machine is said to act as a motor. Therefore, the same electric machine can be made to operate as a generator as well as a motor.

45 Figure 2.7: Electromechanical energy conversion DC machines may also work as brakes. The brake mode is a generator action but with the electrical power either regenerated or dissipated within the machine system, thus developing a mechanical braking effect. It also converts some electrical or mechanical energy to heat, but this is undesired. The major advantages of DC machines are easy speed and torque regulation. The major parts of any machine are the stationary component, the stator, and the rotating component, the rotor. 2.2.2 Principles of operation. In any electric motor, operation is based on simple electromagnetism [9]. A current carrying conductor generates a magnetic field which when placed in an external magnetic field; it will experience a force proportional to the current in the conductor and to the strength of the external magnetic field. The internal configuration of a DC motor is designed to harness the magnetic interaction between a current-carrying conductor and an external magnetic field to generate rotational motion. The geometry of the brushes, commutator contacts, and rotor windings are such that when power is applied, the polarities of the energized winding and the stator magnet(s) are misaligned, and the rotor will rotate until it is almost aligned with the stator's field magnets. As the rotor reaches alignment, the brushes move to the next commutator contacts, and energize the next winding.