MOHD IZZAT BIN DZOLKAFLE

Similar documents
FINAL YEAR PROJECT REPORT TITLE: MODELING AND PSO-BASED LQR CONTROLLER DESIGN FOR COUPLED TANK SYSTEM FIONA SERINA DAUD B

PSO-TUNED PID CONTROLLER FOR COUPLED-TANK SYSTEM (CTS) VIA PRIORITY-BASED FITNESS SCHEME

SPEED CONTROL OF DC MOTOR USING PID CONTROLLER IMPLEMENTATION WITH VISUAL BASIC NURUL IZZATI BINTI PANDAK JABO

SYSTEM IDENTIFICATION AND POSITION CONTROL OF PNEUMATIC ACTUATOR USING EMBEDDED SYSTEM TAHA MOHAMMED AHMED SADEQ

STRUCTURE AND TUNING INTERNAL MODEL CONTROL FOR INTEGRATING PROCESS

TRACKING PERFORMANCE OF A HOT AIR BLOWER SYSTEM USING PID CONTROLLER WITH PSO AND HARMONIC SEARCH ALGORITHM ANDY HENG POH SENG

PID CONTROL SYSTEM IMPLEMENTATION IN EMBEDDED SYSTEM FOR DC MOTOR SPEED CONTROL ARIFF BIN CHE MOHD NOOR

Analysis of Transient Response for Coupled Tank System via Conventional and Particle Swarm Optimization (PSO) Techniques

BORANG PENGESAHAN STATUS TESIS

A PID Controller Design for an Air Blower System

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT 2 BEKU 4894

PID Control Tuning VIA Particle Swarm Optimization for Coupled Tank System

SYSTEM IDENTIFICATION AND INTELLIGENT CONTROL OF AUTOMOTIVE AIR CONDITIONING SYSTEM. MOHD FIRDAUS BIN MOHAMED

PID IMPLEMENTATION OF UMP MINI AUTOMATION PLANT PART 1 - HEATING TANK LEE MING JIE

Universiti Teknikal Malaysia Melaka (UTeM)

PERFORMANCE OF INVERSE RESPONSE PROCESS WITH VARIATION OF PROCESS PARAMETERS AND TUNING METHODS LOW YEOK CHAN

ARDUINO BASED WATER LEVEL MONITOR- ING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN TUAN ISMAIL UNIVERSITI MALAYSIA PAHANG

Design and Implementation of Self-Tuning Fuzzy-PID Controller for Process Liquid Level Control

DESIGN A WIDEBAND LOW-NOISE AMPLIFIER FOR WIRELESS COMMUNICATION USING 0.35-µm CMOS TECHNOLOGY MOHD HAFIZ BIN ABU

SYSTEM IDENTIFICATION AND CONTROL OF THE HORIZONTAL MOTION OF A TWIN ROTOR MULTI-INPUT MULTI-OUTPUT SYSTEM (TRMS) NURUL HAZIRAH BINTI ABD AZIZ

HIRZI BIN MOHD ISHAK UNIVERSITI TEKNOLOGI MALAYSIA

VALVE CONDITION MONITORING BY USING ACOUSTIC EMISSION TECHNIQUE MOHD KHAIRUL NAJMIE BIN MOHD NOR BACHELOR OF ENGINEERING UNIVERSITI MALAYSIA PAHANG

PRODUCT DESIGN IMPROVEMENT USING DESIGN FOR MANUFACTURE AND ASSEMBLY (DFMA) METHODOLOGY

ARDUINO-BASED TEMPERATURE MONITOR- ING AND CONTROL VIA CAN BUS MOHAMMAD HUZAIFAH BIN CHE MANAF UNIVERSITI MALAYSIA PAHANG

SOFTWARE PROCESS FOR INTEGRATED PATTERN ORIENTED ANALYSIS AND DESIGN (POAD) AND COMPONENT ORIENTED PROGRAMMING (COP) ON EMBEDDED REAL-TIME SYSTEMS

Signature : NOR MANIHA BINTI ABDUL GHANI

TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK

SELF-TUNING PID CONTROLLER FOR ACTIVATED SLUDGE SYSTEM HUONG PEI CHOO

COMPARATIVE STUDY OF PID AND FUZZY CONTROLLER ON EMBEDDED COMPUTER FOR WATER LEVEL CONTROL

SYSTEM IDENTIFICATION AND INTELLIGENT CONTROL OF AUTOMOTIVE AIR CONDITIONING SYSTEM. MOHD FIRDAUS BIN MOHAMED

SPEED CONTROL OF BUCK-CONVERTER DRIVEN DC MOTOR USING PD-TYPE FUZZY LOGIC CONTROLLER ZAKARIA BIN ABDUL RAHMAN

CHARACTERIZATION OF LASER BEAM INTENSITY USED FOR MACHINING MOHD SYIMIR HAZIQ BIN NOOR ZAINAL

DEVELOPMENT OF THREE PHASE INDUCTION MOTOR CONTROLLER AHMAD FAKHRUZZAMAN B M ZAWAWI. This report is submitted as partial fulfillment of the

18V TO 1000V BOOST CONVERTER BENNEDICT BALLY ANAK NAROK UNIVERSITI MALAYSIA PAHANG

NURSYAHIDA ASHIKIN BINTI NOR IZLANIN

Design of PID Control System Assisted using LabVIEW in Biomedical Application

DEVELOPMENT OF MONOPOLE SENSORS FOR RICE QUALITY CHARACTERIZATION IN MALAYSIA JAMALIAH BINTI SALLEH

OPTIMAL PROPORTIONAL INTEGRAL DERIVATIVE CONTROLLER FOR AUTOMATIC VOLTAGE REGULATOR SYSTEM USING PARTICLE SWARM OPTIMIZATION ALGORITHM

HOUMAN OMIDI. A project report submitted in partial fulfilment of the. Master of Engineering (Electrical-Power) Faculty of Electrical Engineering

POSITION TRACKING OF SLIDER CRANK MECHANISM BY USING PID CONTROLLER. MOHAMAD ZAHARUDIN BIN SARIMAN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

PATTERN AND FREQUENCY RECONFIGURABLE ANTENNA FOR WIRELESS APPLICATIONS DELPHINE ABIJURU. requirements for the award of the degree of

SPDT SWITCH DESIGN USING SWITCHABLE RESONATOR AT 5GHZ FOR WIRELESS COMMUNICATIONS MOHD HAIDIL BIN ZURAIMI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Signature. Supervisor :.. ~.~H-.~.~0~P..?.j.~H~~~.. ~.~.~ Date :...?./!!./~~ ~

STRESS DETECTION USING GALVANIC SKIN RESPONSE SHAHNAZ SAKINAH BINTI SHAIFUL BAHRI UNIVERSITI MALAYSIA PAHANG

PARTICLE SWARM OPTIMIZATION FOR MPPT : SIMULATION AND ANALYSIS NOOR DZULAIKHA BINTI DAUD UNIVERSITI TEKNOLOGI MALAYSIA

DESIGN AND SIMULATION VOLTAGE DYNAMIC RESTORER (DVR) MOHD NORFARHAN BIN MOHD MUSTAFA

DEVELOPMENT OF REMOTELY OPERATED UNDERWATER VEHICLE AFIQ FIKRI BIN HAMID UNIVERSITI MALAYSIA PAHANG

HARMONIC MODELING IN POWER DISTRIBUTION SYSTEM USING TIME SERIES SIMULATION CHE KU FARHANA BINTI CHE KU AMRAN UNIVERSITI TEKNOLOGI MALAYSIA

DETERMINATION OF LEAKAGE IN AN OIL AND GAS PIPELINE NOR AZIAN BINTI MOHIDEEN ABDUL KADIR

BORANG PENGESAHAN STATUS TESIS

UNIVERSITI TEKNOLOGI MALAYSIA

FUZZY ACTIVE VIBRATION CONTROL FOR LATHE MACHINE MUHAMAD FAISAL EZUARIE BIN DRAMAN

SLIDING MODE CONTROL FOR DC-AC CONVERTER POUYA IZADIFAR

THERMAL ANALYSIS OF H.V INSULATION OIL DURING PARTIAL DISCHARGE DETECTION RASOOL ABDELFADIL GATEA UNIVERSITI TEKNOLOGI MALAYSIA

MODELING OF IMAGE PROCESSING ALGORITHMS FOR HARDWARE-SOFTWARE CO-SIMULATION IBRAHIM ISA UNIVERSITI TEKNOLOGI MALAYSIA

MODELING, SIMULATION AND DESIGN OF AN IMPROVED HIGH POWER FACTOR BRIDGELESS SEPIC CONVERTER IZNI BINTI MUSTAFAR UNIVERSITI TEKNOLOGI MALAYSIA

SPACE VECTOR MODULATION FOR FIVE-PHASE INDUCTION SPEED DRIVE CONTROL NORAZELINA BINTI KAMISMAN. of Bachelor in Electrical Engineering

RESONANT CONTROL OF A FLEXIBLE MANIPULATOR SYSTEM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FACULTY OF ELECTRICAL ENGINEERING FINAL YEAR PROJECT II (FYP II) BEKU 4973

MAZE SOLVING BALBOT SOON CHI WEI

PINEAPPLE DISTRIBUTION CLASSIFICATION USING RGB AND FUZZY EZRIN TASNIM BIN ABDUL GANI

Online Tuning of Two Conical Tank Interacting Level Process

OPTIMIZATION OF PID PARAMETERS FOR HYDRAULIC POSITIONING SYSTEM UTILIZING VARIABLE WEIGHT GREY-TAGUCHI AND PARTICLE SWARM OPTIMIZATION

DEVELOPMENT OF A TOOL TO DESIGN AC HARMONIC FILTER FOR HVDC TRANSMISSION SYSTEM CHA KWAN HUNG. A thesis submitted in fulfillment of the

MESOPYME-IEMA SOFTWARE PROCESS EVALUATION MODEL FOR SMALL AND MEDIUM SOFTWARE INDUSTRIES IMRAN BASHA

EXPERIMENTAL AND SIMULATION STUDY OF WIND TURBINE GRID CONNECTED NURUL IZZATI YUSOP

Design of an Intelligent Pressure Control System Based on the Fuzzy Self-tuning PID Controller

PERFORMANCE STUDY OF PROXIMITY COUPLED STACKED CONFIGURATION FOR WIDEBAND MICROSTRIP ANTENNA ZULHANI BIN RASIN UNIVERSITI TEKNOLOGI MALAYSIA

INTELLIGENT HOME AUTOMATION SYSTEM (IHAS) WITH SECURITY PROTECTION NEO CHAN LOONG UNIVERSITI MALAYSIA PAHANG

FIR FILTER FOR MAKHRAJ RECOGNITION SYSTEM AIMI NADIA AZMI

CONTROLLER TUNING FOR NONLINEAR HOPPER PROCESS TANK A REAL TIME ANALYSIS

DEVELOPMENT OF DYNAMIC EQUIVALENTS FOR INTERCONNECTED POWER SYSTEMS USING IDENTIFICATION APPROACHES KOK BOON CHING UNIVERSITI TEKNOLOGI MALAYSIA

EMPIRICAL MODEL IDENTIFICATION AND PID CONTROLLER TUNING FOR A FLOW PROCESS

DEMODULATION AND MODULATION OF HIGH BIT DATA TRANSMISSION IN LOW VOLTAGE SUPPLY SYSTEM ROSMADI BIN ABDULLAH UNIVERSITI TEKNOLOGI MALAYSIA

Relay Feedback based PID Controller for Nonlinear Process

Hydraulic Actuator Control Using an Multi-Purpose Electronic Interface Card

AMIRUL NUR RASHID BIN MOHAMAD AHYAT

AC MOTOR POSITION CONTROL USING FUZZY LOGIC CONTROLLER WAN NUR AZHANI BT W.SAMSUDIN

DETERMINATION OF THE PERFORMANCE OF NEURAL PID, FUZZY PID AND CONVENTIONAL PID CONTROLLERS ON TANK LIQUID LEVEL CONTROL SYSTEMS

DEVELOPING LQR TO CONTROL SPEED MOTOR USING MATLAB GUI SHAMSUL NIZAM BIN MOHD HAMID. A report submitted in partial fulfillment of the

BORANG PENGESAHAN STATUS TESIS

THE PRE-SIZING APPROACH OF DC-DC CONVERTER AS THE APPLICATION TO DESIGN A BUCK CONVERTER FOR THE AUTOMOTIVE DOMAIN NOOR SUHADA BINTI AB RAZAK

MOTOR SPEED CONTROLLER USING FUZZY LOGIC METHOD FOR PCB DRILLING OPERATION KHAIRUL AZMIL BIN ADZMI UNIVERSITI MALAYSIA PAHANG

AN ANALYSIS OF VIVALDI RCS ANTENNA AT 6GHZ FOR SATELLITE COMMUNICATION ETTIE ATHIRA BINTI HADLIN

DRAWBOT RADZI BIN NORZAN

LINE TRACKING ROBOT USING VISION SYSTEMS CHE ROHAZLI BIN CHE MAZLAM

COMPARISON BETWEEN PIEZOELECTRIC AND CAPACITIVE SENSORS FOR PD DETECTION AND SIGNAL MONITORING IN PALM OIL

COMPUTER BASED INSTRUMENTATION SYSTEM FOR TEMPERATURE MEASUREMENT USING RTD IN MATLAB APPLICATION FAIZ BIN MOHD ZABRI

MICROCONTROLLER BASED RATIO CONTROL FOR ELECTROMECHANICAL DUAL ACTING PULLEY CONTINUOUSLY VARIABLE TRANSMISSIONS ARIES BUDIANTO

HAND GESTURE RECOGNITION SYSTEM FOR AUTOMATIC PRESENTATION SLIDE CONTROL LIM YAT NAM UNIVERSITI TEKNOLOGI MALAYSIA

TWO DIMENSIONAL DIRECT CURRENT RESISTIVITY MAPPING FOR SUBSURFACE INVESTIGATION USING COMPUTATIONAL INTELLIGENCE TECHNIQUES

AN ADAPTIVE ALGORITHM FOR THE TUNING OF TWO INPUT SHAPING METHODS NUR HAFIZAH BINTI HASSAN

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

MOHD ZUL-HILMI BIN MOHAMAD

Design of Model Based PID Controller Tuning for Pressure Process

NURUL AFIQAH BINTI AZIZ

A NOVEL METHOD OF RATIO CONTROL WITHOUT USING FLOWMETERS

MODELING AND CONTROLLER DESIGN FOR THE VVS-400 PILOT-SCALE HEATING AND VENTILATION SYSTEM NURUL ADILLA BT MOHD SUBHA

Design and Implementation of Fuzzy Controller on Embedded Computer for Water Level Control

DESIGN AND IMPLEMENTATION OF AN AUTONOMOUS SUMO ROBOT

Transcription:

IMPLEMENTATION OF PID CONTROLLER FOR CONTROLLING THE LIQUID LEVEL OF THE COUPLED TANK SYSTEM MOHD IZZAT BIN DZOLKAFLE This thesis is submitted as partial fulfillment of the requirement for the award of the Bachelor Degree of Electrical Engineering (Power Systems) Faculty of Electrical & Electronic Engineering University Malaysia Pahang (UMP) MEl, 2009

ABSTRACT The PID controllers have found wide acceptance and applications in the industries for the past few decades. In spite of their simple structures, PID controllers are proven to be sufficient for many practical control problems. This project presents the PID controller design for controlling liquid level of coupled tank system. These coupled tank liquid level systems are in second order system. The PID Controller will be designed to control the liquid level at tank 1 and design techniques of the PID Controller are then conducted based on developed model. MATLAB has been used to simulate and verified the mathematical model of the controller. Visual Basic 6 has been used to implement the graphical user interface (GUI) and implementation issues for the controller's algorithms will also be discussed. The DAQ card is used for interfacing between hardware and software. The simulated result will be compared with the implemented result.

vi ABSTRAK Pengawal PID telah diperakui penerimaan dan penggunaan yang luas dalam industri untuk beberapa dekad sebelum ini. Walaupun mempunyai struktur yang ringkas, pengawal PID telah membuktikan bahawa ia boleh menyelesaikan banyak masalah dalam kemahiran pengawalan. Projek mi memaparkan pengawal PID direka untuk mengawal paras air pada tangki herkambar. Pengawal ND dicipta untuk mengawal paras air pada tangki pertama dan teknik penciptaan bagi pengawal PID direka berdasarkan model yang dihasilkan. MATLAB digunakan untuk simulasi dan mengesahkan model matematik pengawal. Visual Basic 6 digunakan untuk mencipta GUI dan isu penciptaan kawalan masa nyata bagi pengawal juga dibincangkan. Kad DAQ digunakan sebagai penghubung antara perkakasan dan perisian. Akhirnya, keputasan bagi simulasi akan dibandingkan dengan keputusan eksperimen.

VII TABLE OF CONTENTS CHAPTER CONTENTS PAGE TITLE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST.OF FIGURES LIST OF TABLES LIST OF ABBREVIATIONS LIST OF APPENDICES iv v vi vii xiii xv xvi xvii

x INTRODUCTION LI Overview 1.2 Problem Statement 2 1.3 Objective 3 1.4 Scope of Project 3 1.5 Summary 3 2 LITERATURE REVIEW 4 2.1 Overview 2.2 Article 2.3 Summary 4 4 5 3 METHODOLOGY 6 3.1 Overview 6 3.2 Project Flow Chart 7 3.3 Mathematical Modeling of Coupled Tank System 9 3.3.1 A Simple Nonlinear Model of 9 Coupled Tank System 3.3.2 A Linearised Perturbation Model 11 3.3.3 First Order Single Input Single Output (SISO) 13 Plant

xi 3.3.4 Second Order Single Input Single Output 15 (SISO) Plant 3.4 Controller Design 18 3.5 MATLAB 20 3.6 Microsoft Visual Basic 22 3.7 DAQ card 27 3.8 Summary 27 4 RESULT, ANALYSIS AND DISCUSSION 28 4.1 Overview 28 4.2 Simulation Result without Controller 28 4.3 Simulation Result with P!D Controller 31 4.4 Real Time Result 35 4.5 Discussion for PID Controller 37 4.6 Comparison between simulation and 37 Implementation result 4.7 Summary 38

XII 5 CONCLUSION AND FUTURE 39 RECOMMENDATION 5.1 Conclusion 39 5.2 Future Recommendation 40 5.3 Costing and commercialization 41 REFERENCE 42 APPENDIX A 43 APPENDIX B 44 APPENDIX C 45 APPENDIX 52 APPENDIX 57 APPENDIX F 58

XIII LIST OF FIGURE FIGURE TITLE PAGE 1.1 Block Diagram of the coupled tank control apparatus I 3.1 Flow chart for software and hardware development 7 3.2 Schematic Diagram of coupled tank system 9 3.3 Block Diagram of Second Order Process 17 3.4 Block Diagram of PID Controller combines with plant 20 3.5 Block Diagram of inside plant system 20 3.6 Block Diagram of inside PID Controller 21 3.7 The GUI for PID Controller 23 3.8 The GUI for DAQ card detection 24 3.9 The GUI for software controller 25 3.10 The GUI for Data Collected 26 3.11 Advantech DAQ card connection 27

xiv 4.1 Coupled Tank without controller 28 4.2 Step Source Block Parameter 29 4.3 Coupled Tank Function Block Parameter 29 4.4 Plot of Liquid Level at the Coupled Tank 1 30 4.5 Plot performance of Proportional Controller 31 4.6 Plot performance of Proportional-Derivative Controller 32 4.7 Plot performance of Proportional-Integral Controller 33 4.8 Plot performance of PID Controller 34 4.9 Result at GUI for PID Controller 35 4.10 Output for Tank 1 36

xv LIST OF TABLE TABLE TITLE PAGE 3.1 Parameter Values 18 3.2 Parameter Values 19 4.1 Effects of increasing parameter 37 5.1 Total estimation cost 41

xvi LIST OF ABBREVIATIONS PID DAQ GUI CTS-001 - Proportional-Integral-Derivative - Data acquisition - Graphic User Interface - Coupled Tank Liquid Level System 5150 - Single Input Single Output PV MV SP V USB Kp Ki Kd RC - Process Variable - Manipulative Variable - Set Point - Voltage - Universal Serial Bus - Proportional Gain - Integral Gain - Derivative Gain - Resistor-Capacitor Circuit

xvii LIST OF APPENDICES APPENDIX TITLE PAGE A B C D D D M-file coding First GUI coding Second GUI coding Third GUI coding Fourth GUI coding DAQ card Datasheet 43 44 45 52 57 58

I CHAPTER 1 INTRODUCTION 1.1 Overview Industrial application of liquid level control abound, such as in food processing, nuclear power generation plant, industrial chemical processing and pharmaceutical industries. The typical actuators used in coupled tank liquid level system include of two small tanks mounted above a reservoir which functions as storage for the water [4]. Each of both small tanks has independent pumps to pump water into the top of each tank [4]. At the base of each tank have a flow valve connected to reservoir. In addition, level sensors such as capacitive-type probe to monitor the level of water in each tank, displacement float and pressure sensor provide liquid level measurement [4]. The PID Controller usually used for temperature, motion and flow controllers. It's available in analog and digital forms. PID Controller will control the water pump so that water in both tank in level as required. The DAQ card is used as the interface to connect the system and equipment. Software such as MATLAB will be used to get the simulation result of the system performance and Microsoft Visual Basic 6 to implement the designed controller by developing Graphical User Interface (GUI). Figure 1.1 shows the block diagram of the coupled tank control apparatus with controller. Disturbance put Figure 1.1: Block diagram of the couple-tank control apparatus.

2 1.2 Problem Statement The Proportional-plus-Integral-plus-Derivative (PID) controllers have found wide acceptance and applications in the industries for the past few decades. It has a simple control structure which was understood by plant operators and which they found relatively easy to tune. In spite of the simple structures, PID controllers are proven to be sufficient for many practical control problems and hence are particularly appealing to practicing engineers. An abundant amount of research work has been reported in the past on the tuning of PID controllers. Ziegler Nichols step response, Ziegler Nichols ultimate cycling, Cohen Coon, Internal model control, and error-integral criteria tuning formulae are to mention only a few [7]. 'PID" means Proportional-Integral-Derivative, referring to the three terms operating on the error signal to produce a control signal. Since many control systems using PID control have proved satisfactory, it still has a wide range of applications in industrial control. In this project, several useful PID Controller design techniques will be presented, and implementation issues for the algorithms will also be discussed. The PID Controller will be designed to control the liquid level at tank 1. In this project, the simulation of proportional, integral and derivative actions are explained in detail, and variations of the basic PID structdfe are also introduced. A graphical user interface (GUI) implementing of PID Controller tuning formulae will also be present at this project. Finally, we need continuous data from the plant as the feedback, so to overcome this problem an Advantech DAQ card have been used as the interfacing device between the hardware and software.

3 1.3 Objective There are several objectives that must be achieved in order to make this project successful; i. To develop a PID Controller for controlling the liquid level of tank one of coupled ii. tank system. To validate the result from simulation (using MATLAB) through experimental set up (implementation using Microsoft Visual Basic 6). 1.4 Scope of project This project is all about how to designed the controller and simulate it using MATLAB. Then, implement PID Controller by developing GUI using Microsoft Visual Basic 6 software on coupled tank liquid level system. After that, both results are compared. There are several software will be used, first software is MATLAB 7.1 that been used to simulate and verified the mathematical model of the controller. Second software that will be us is Microsoft Visual Basic 6 that been used to implement the graphical user interface for PID Controller. The communication between DAQ card, Visual Basic 6 and Coupled tank liquid level system will be determined, in term of address to give or receive analog or digital signal. 1.5 Summary This chapter is about the explanation for overall project. The objective and the scope of the project will be given in order to give an insight about the idea of the project. On the next chapter, the literature review for this controller but use at different system and same system but with different controller will be discussed.

4 CHAPTER 2 LITERATURE REVIEW 2.1 Overview This chapter will discuss about the article that referred for this controller but applied at different plant or different method to designing and also for different controller but applied at same plant or same method of designing. 2.2 Article [1] Jutarut Chaorai-ngern, Arjin Numsomran, Taweepol Suesut, Thanit Trisuwannawat and Vittaya Tipsuwanporn., " PID Controller Design using Characteristic Ratio Assignment Method for Coupled-Tank Process", Faculty of Engineering, King Mongkuts Institute of Technology Ladkrabang, Bangkok 10520, Thailand This paper presents the PID controller design for coupled tank process using characteristic ratio assignment (CRA).The simulation results can be illustrated the validity of their approach by MATLAB [2] Mohd Fua'ad Rahmat and Mariam MD Ghazaly.," Performanôe Comparison between PID and Fuzzy Logic Controller in Position Control System of DC Servomotor", Jurnal Teknologi, 45 (D) Dis. 2006: 1-17 This paper presents the comparison between PID controller and Fuzzy Logic Controller about their time specification performance in position control system of a DC motor. This paper included design and development of a GUI software using Microsoft Visual Basic 6 to programming real time software.

5 [3] Muhammad Rehan, Fatima Tahir, Naeem Iqbal and Ghulam., " Modelling, Simulation and Dicentralized Control of a Nonlinear Coupled Tank Systam", Department of Electrical Engineering, PlEAS, Second International Conference on Electrical Engineering 25-26 March 2008 University of Engineering and Technology, Lahore (Pakistan) This paper presents a coupled three tank system is taken as a plant and will be modeled mathematically using Bernoulli' s law, simulate with Matlab/Simulink and decentralized using control and estimation tool manager from simulink model and mathematical model 2.3 Summary This chapter is about the explanation for some article that will refer to gets the information or some knowledge that will apply to make the project run successfully. They are several articles that explain about same controller that will use in this project but applied at different plant or different method of designing, and also different controller but applied at same plant.

Me CHAPTER 3 METHODOLOGY 3.1 Overview This chapter will discuss about the method that has been used to complete this project. The coupled tank liquid level system CTS-001 will be used in this project as a plant. In this project, several useful PID Controller design techniques will be presented. The PID Controller will be designed to control the liquid level at tank one to obtain the desired level. hf this project, Advantech DAQ card have been used as the interfacing between the hardware and software.

7 3.2 Project Flow Chart start I Case Study etermination a hardware and Software Hardware confuriguration Define modelling Maflab simulation Program development L appropriate codna Checking connection :1 Interfacing circuit AqAO card) Ok No No Ok > Yes I 1e Yes - hardy i re and L_ i CôntrIUnqe s tern No Yes rii Figure 3.1: Flow chart for software and hardware development

8 Figure 3.1 shows about the overall progress for both software and hardware development that will discuss later. This project will be divided to two parts to make sure this project run smoothly. The first part is a software part, which will cover modeling the controller. The controller must be designed and simulated using MATLAB and then implemented in Visual Basic 6 as GUI. The second part will cover for the hardware part. In this part, the coupled tank liquid level system will be assembled to make sure it will run properly. Then, a communication between plant and controller must be done using DAQ card. The DAQ card must be analyzed and these operations need to refer the manual, to make the interfacing between plant and controller. After that, both parts must be integrated to test the whole system At this part, the real time result that implemented using Visual Basic 6 must be compared with the experiment result that simulated using MATLAB. Troubleshooting will be performed if some errors occurred to obtain better result.

3.3 Mathematical Modeling of Coupled Tank System Before the process of designing controller begin, it is vital to understand the mathematics of how the coupled tank system behaves. In this system, nonlinear dynamic model are observed. Four steps are taken to derive each of the corresponding linearised perturbation models from the nonlinear model [4]. These steps will be generally discussed in this topic. Figure 3.2 shows the schematic diagram of coupled tank system that been used. Jr ['l L-' U- ]\\ Figure 3.2: Schematic Diagram of Coupled Tank System 3.3.1 A Simple Nonlinear Model of Coupled Tank System A simple nonlinear model is derived based on figure 3.2. Let Hiand H2 be the fluid level in each tank, measured with respect to the corresponding outlet. Considering a simple mass balance, the rate of change of fluid volume in each tank equals the net flow of fluid into the tank. Thus for each of tank 1 and tank 2, the dynamic equation is developed as follows. dh1 A l = - Qoi - Qo3 dt (3.3.1.2) A2 = dh2 Qi2 - Qo2 - dt (3.3.1.3)

10 Where Hi, H2 = height of fluid in tank 1 and tank 2 respectively A1.A2 =cross sectional area of tank I and tank 2 respectively Qo3 flow rate of fluid between tanks Qil, Qi2 = pump flow rate into tank 1 and tank 2 respectively Qol, Qo2 = flow rate of fluid out of tank 1 and tank 2 respectively Each outlet drain can be modeled as a simple orifice. Bernoulli's equation for steady, non viscous, incompressible shows that the outlet flows in each tank is proportional to the square root of the head of water in the tank. Similarly, the flow between the two tanks is proportional to the square root of the head differential. Qoi = (3.3.1.4) Q32 = a2 -\f (3.3.1.5) Qo = ajh - H2 (3.3.1.6) Where ai, U2, U3 are proportional constants which depend on the coefficients of discharge, the cross sectional area of each orifice and the gravitational constant. Combining equation (3.3.1.4), (3.3.1.5) and (3.3.1.6) into both equation (3.3.1.2) and (3.3.1.3), a set of nonlinear state equations which describe the system dynamics of the coupled tank are derived dh1 A 1 =^ji- ai'.tht - a3vh 1 - H2 dt dh2 A2 ---- = Q2 - - a3vh 1 - H2 dt (3.3.1.7) (3.3.1.8)

I 3.3.2 A Linearised Perturbation Model Suppose that for a set of inflows Qil and Qi2, the fluid level in the tanks is at some steady state level Hi and H2. Consider a small variation in each inflow, qi in Qii and q2 in Qi2. Let the resulting perturbation in level be hi and h2 respectively. From equations (3.3.1.7) and (3.3.1.8), the equation will become: For Tank 1 d(hi-i-hl) Al dt = + i) - + h i) - a3jhl - H2 + h 1 - (3.3.2.1) For Tank 2 d(h2+h2) A2 dt = (Q12 + q) - + h2) + a3vh 1 - H2 + hl- h2 (3.3.2.2) Subtracting equations (3.3.1.7) and (3.3.1.8) from equation (3.3.2.1) and (3.3.2.2), the equations that will be obtained are, dhi Al = q 1 - a l ( /H i + h 1 - V717) - a3 (VHj - H2 + h1ji2 - NH 1 - H2) (3.3.2.3) dh2 A2--=q2 a2(fh2+h2 Vi)+a3(VHi H2+hi h2 VHi H2) (3.3.2.4)

12 For small perturbations, H1 VH 1 + h 1 =i1777(1+) (3.3.2.5) Therefore, VH1+h1 Vii j h1 21H Similarly, VH2+h2 Vi h2 2/i7 And VH2_H1±h2_h1VH2_H12yHH Simplify equation (3.32.3) and (3.3.2.4) with these approximations will become, dh 1 a1 a3 A l = q -,..h1-2vh1 - H2(1 - h2) (3.3.2.6) dh2 a2 a3 A2-- = q2 h2 + (h i - h2) TT2 2VTL H2 (3.3.2.7)