i Level control (Tank 1) of Coupled Tank Liquid Level System Using Integral Control State Feedback Controller AHMAD SYAUQI BIN ADNAN 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) MEI, 2009
ii All the trademark and copyright use herein are property of their respective owner. Reference of information from other sources is quoted accordingly; otherwise the information presented in this report is solely work of the author. Signature : Author : AHMAD SYAUQI BIN ADNAN Date :
iii Specially dedicated to My beloved family Thanks For all their support, motivation and caring During the course of this project
iv ACKNOWLEDGEMENT Firstly, thank to God throughout all His Almighty kindness and loveliness for letting me to finish my final year project. Secondly, I wish to hand a million thank to this final year project supervisor Mr. Mohd Syakirin Bin Ramli for his encouragement, guidance and consistent supports in finishing this project. I am also very thankful to my academic advisor Mr. Syahrulnaim Bin Mohammad Nawi for guidance and motivation. I would like to extend my thank to UMP associates that contribute in the project progress either directly or indirectly. Also, thank to Mr Salmizan because help me to obtain all components was needed for the project. My great thanks to my family especially my beloved father and mother who give a very good support to me to complete the project. For all of that, I am very thankful to the cooperation and contributions from everyone that has driven me to accomplished of this project especially my friend. To wrap it, thank you for everything. May Allah bless you all.
v ABSTRACT This paper presents the design and modeling for coupled tank Liquid level system using Integral Control State Feedback Controller (ICSF). The ICSF have found wide acceptance and applications in the industries for the past few decades. ICSF controllers are proven to be sufficient for many practical control problems. The modeling for couple tank system, CTS-001 will be done before the designing controller begins. These coupled tank liquid level systems are in second order system. The ICSF Controller will be designed to control the liquid level at tank 1 and design techniques of the ICSF Controller is derived by using pole placement method that are conducted based on developed model. SIMULINK/MATLAB has been used to simulate and verified the mathematical model of the controller. Visual Basic 6 has been used to implement the graphic user interface (GUI) and implementation issues for the controller s algorithms will also be discussed. The DAQ card has been used to interfacing between hardware and software. Finally, the simulated result will be compared with the implemented result.
vi ABSTRAK Projek ini memaparkan cara-cara untuk mereka dan membina pengawal Integral Control State Feedback Controller (ICSF) untuk mengawal paras cecair di dalam sistem tangki berkembar pada amnya dan mengawal paras cecair pada tangki 1 secara khususnya. Sistem pengawal ICSF ini diguna pakai secara meluas dalam industri di masa kini, Sistem pengawal ini telah di buktikan kebolehannya secara praktikal untuk mengawal pelbagai masalah sistem pengawal. Sebelum sistem ini pengawal ICSF dibina, ciri-ciri dan diskripsi sistem tangki air berkembar CTS-001 haruslah dikenal pasti terlebih dahulu. Model matematik sistem pengawal ini didapati dengan menggunakan teknik Pole Placement berdasarkan model yang dikehendaki. Perisian SIMULINK/MATLAB digunakan untuk menjalankan simulasi dan mengesahkan model matematik pengawal ICSF ini. Perisian Visual Basic 6 digunakan untuk mengaplikasikan sistem pengguna berkomunikasi dengan computer (GUI) dan melaksanakan isu model matematik sistem pengawal ICSF akan dibincangkan. Kad DAQ di gunakan sebagai penghubung antara perisian dengan perkakasan. Akhirnya, hasil keputusan antara simulasi dan eksperimen akan dibandingkan.
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 i ii iii iv v vi vii xi xii xiii xiv
viii 1 INTRODUCTION 1 1.1 Background of project 1 1.2 Problem Statement 2 1.3 Objective 3 1.4 Scope of Project 3 1.5 Summary 4 2 LITERATURE REVIEW 5 2.1 Overview 5 2.2 Article 5 2.2 Summary 7 3 METHODOLOGY 8 3.1 Overview 8 3.2 Project Flow Chart 10 3.3 Modeling of Coupled Tank System 12 3.4 Controller Design 16 3.5 MATLAB 20 3.6 Visual Basic 6 22 3.6 DAQ card 26 3.6 Summary 27 4 RESULT, ANALYSIS AND DISCUSSION 28 4.1 Overview 28 4.2 MATLAB Simulation result 28 4.3 Real Time Result 30
ix 4.4 Comparison between simulation and 32 real time experiments with controller 4.4 Summary 32 5 CONCLUSION AND FUTURE 33 RECOMMENDATION 5.1 Conclusion 33 5.2 Future Recommendation 34 5.3 Costing and commercialization 35 REFERENCE 36 APPENDIX A 37 APPENDIX B 38 APPENDIX C 45
x APPENDIX D 55 APPENDIX E 56
xi LIST OF FIGURE FIGURE TITLE PAGE 3.1 Overall flow chart work of progress 7 3.2 Flow chart for software and hardware development 10 3.3 Block Diagram of integral control feedback controller combines with Plant 20 3.4 Integral Control Feedback Controller 20 3.5 The first GUI 23 3.6 The second GUI 24 3.7 The third GUI 24 3.8 Advantech USB DAQ 4716 card 26 3.9 Advantech USB DAQ 4716 card connection between computer and plant 26 4.1 MATLAB simulink model 28 4.2 Output for tank 1 30
xii LIST OF TABLE TABLE TITLE PAGE 3.1 Parameter Values 14 3.2 Parameter Values 15 5.1 Total estimation cost 36
xiii LIST OF ABBREVIATIONS PID - Proportional-Integral-Derivative DAQ - Data acquisition GUI - Graphic User Interface CTS-001 - Coupled Tank Liquid Level System V - Voltage USB - Universal Serial Bus RC - Resistor-Capacitor Circuit VB - Visual Basic PSM - Projek Sarjana Muda
xiv LIST OF APPENDICES APPENDIX TITLE PAGE A M-file coding 37 B First GUI coding 38 C Second GUI coding 46 D Third GUI coding 55 E DAQ card Datasheet 56
1 Chapter 1 Introduction 1.1 Background of project Coupled tank water level system consists of double tank mounted on a reservoir for water storage. In the centre of the double tank placed a baffle to divide it into two different small tanks. At the base of each tank there are a flow valve connected to reservoir. Each of the small tanks has water pump to pump water from reservoir. Capacitance sensor is used to detect the level of the water and as visual a scale placed in front of the tank. This equipment widely use in the food processing and chemical industries. Using State Feedback control system to control the level of the water return to the reservoir as wanted. State feedback will control the water pump so that water in tank 1 in is maintained as required. The DAQ card is used as the interface between the controller and the coupled tank system. As suggestion, use software such as Visual Basic 6 and MATLAB/SIMULINK has been used as graphic user interface and as simulation.
2 1.2 Problem Statement Nowadays, many of countries in this world facing the same problem because of the world economy are down. So to overcome this problem, many of factories must cut cost in term of workforce to maintain the same price or to reduce the price of their product. The thing that can overtake human responsibility is a computer. But the computer cannot working itself without human setting the suitable program for it, so the program that been used is called controller. All equipment in this world wanted to be automatically operated without human observation. To do this, we use a controller, so that the machine or equipment can run itself according to what we want. To do this we must have a medium to control so that it can run automatically. Normally controller such as PID and Fuzzy Logic are widely used to control many of the instrument or machines, but in this project the controller that have been used is the Integral Control State Feedback Controller. The Integral Control State Feedback Controller will control the liquid level at tank 1 at real time. This plant system are in second order system and the Integral Control State Feedback Controller will be derived directly from the plant using pole placement method, by using this method we can not manipulate anything of the controller value that we get. It is different between PID or LQR controller because it can simply be tuned to get the result as desired. We need continuous data from the plant as the feedback. Therefore, to overcome this problem, an Advantech DAQ card has been used as the interfacing between the hardware and software.
3 1.3 Objectives There are several objectives that must be achieved in order to make this project successful: i. To control Coupled Tank liquid Level (Tank 1) Using Integral Control State Feedback Controller. ii. To compare result between experiment and simulation 1.4 Scope of The Project i. To design Integral Control State Feedback Controller ii. To analyze system performance using MATLAB/SIMULINK iii. To use MATLAB to verify modeling. iv. To develop GUI using Microsoft Visual Basic 6 v. To Implement controller using VB on couple tank water level system vi. To assemble the coupled tank until it working.
4 1.5 Summary This section provides insight of the overall project and explains the objectives and the scope of the project.
5 CHAPTER 2 LITERATURE REVIEW 2.1 Overview 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. 2.2 Articles [1] Elke Laubwald., Coupled Tank System, Control System Principles.Co.uk This is one of series of papers on modeling, analysis and control to give insight into important principle and process [2] Seçil Aydın1 Sezai Tokat1 Sliding Mode Control of a Coupled Tank Systemwith a State Varying Sliding Surface Parameter, 1Computer Engineering Department, Pamukkale University, 20017, Denizli, Turkey This paper presents a special purpose approach with a state dependent moving algorithm for the control of the coupled tank system where the state variables are defined as the liquid levels of the tanks.
6 [3] Hugues Bersini ADAPTIVE FUZZY CONTROLLER FOR STATE-FEEDBACK OPTIMAL CONTROL, ADAPTIVE FUZZY CONTROLLER FOR STATE-FEEDBACK OPTIMAL CONTROL This paper first discusses how to provide fuzzy models with the capacity to automatically self-tune their parameters by using wellknown gradientbased algorithms. Then the temporal extension of the gradient-based method which allows the automatic tuning of the fuzzy controller parameters over a temporal horizon will be presented and illustrated for an optimal control and a time-minimization simple problems.
7 2.3 Summary Literature reviews discuss about usage of this controller at different system or plant and also same system or plant with different controller. This chapter is also 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.
8 CHAPTER 3: METODHOLOGY 3.1 OVERVIEW To help this project run smoothly, the draft of work has been organized so that this project will finish on time. There are several part work progress can be divided. The PSM flow chart showed the flows of this from the study case until it finish with demo and summit final report. The Project flow chart at sub-section 3.3 shown about how the progress works between software and hardware is done.
9 PSM FLOW CHART. Figure 3.1 Overall flow chart work of progress.
10 3.2 PROJECT FLOW CHART Figure 1.2 Flow chart for software and hardware development
11 Figure 3.2 show about the overall progress for both software and hardware development that will be discuss later. For the software part, modeling for the controller must be obtain and verify it with MATLAB before it can be implemented in Visual Basic 6 as GUI. MATLAB also has been used to run this plant simulation. A simple communication must be done between plant and computer using DAQ card, the DAQ card itself must be analyzed to make the interfacing easier. Both operations at this point need to refer to their respective manual. After make sure that both part software and hardware do not have problem, both of them must be integrated in order to test the designed controller. At this point, the simulation result that has been tested using MATLAB must be compared with the real time result. If there are some errors or miscalculation, troubleshooting was performed to obtain better result.