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

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

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

Figure 1. Block scheme of implemented system

Online Tuning of Two Conical Tank Interacting Level Process

Relay Feedback based PID Controller for Nonlinear Process

Non Linear Tank Level Control using LabVIEW Jagatis Kumaar B 1 Vinoth K 2 Vivek Vijayan C 3 P Aravind 4

Digital Control of MS-150 Modular Position Servo System

SIMULATION AND IMPLEMENTATION OF PID-ANN CONTROLLER FOR CHOPPER FED EMBEDDED PMDC MOTOR

ADVANCES in NATURAL and APPLIED SCIENCES

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

IJESRT. Scientific Journal Impact Factor: (ISRA), Impact Factor: 1.852

INTEGRATED PID BASED INTELLIGENT CONTROL FOR THREE TANK SYSTEM

DESIGN AND ANALYSIS OF TUNING TECHNIQUES USING DIFFERENT CONTROLLERS OF A SECOND ORDER PROCESS

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

Design and Implementation of PID Controller for Single Capacity Tank

EFFICIENT CONTROL OF LEVEL IN INTERACTING CONICAL TANKS USING REAL TIME CONCEPTS

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

Development of a Fuzzy Logic Controller for Industrial Conveyor Systems

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

Tuning of Controller for Electro-Hydraulic System Using Particle Swarm Optimization (PSO)

Modeling & Simulation of PMSM Drives with Fuzzy Logic Controller

Design of Self-Tuning Fuzzy PI controller in LABVIEW for Control of a Real Time Process

CONTROLLER TUNING FOR NONLINEAR HOPPER PROCESS TANK A REAL TIME ANALYSIS

Fundamentals of Industrial Control

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

PID Controller Design for Two Tanks Liquid Level Control System using Matlab

EMPIRICAL MODEL IDENTIFICATION AND PID CONTROLLER TUNING FOR A FLOW PROCESS

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

Modeling and Control of Liquid Level Non-linear Interacting and Non-interacting System

in Process Control System Presented by:

An Expert System Based PID Controller for Higher Order Process

A Performance Study of PI controller and Fuzzy logic controller in V/f Control of Three Phase Induction Motor Using Space Vector Modulation

TUNING OF PID CONTROLLERS USING PARTICLE SWARM OPTIMIZATION

Control of DC-DC Buck Boost Converter Output Voltage Using Fuzzy Logic Controller

DYNAMIC SYSTEM ANALYSIS FOR EDUCATIONAL PURPOSES: IDENTIFICATION AND CONTROL OF A THERMAL LOOP

MODEL BASED CONTROL FOR INTERACTING AND NON-INTERACTING LEVEL PROCESS USING LABVIEW

Resistance Furnace Temperature Control System Based on OPC and MATLAB

Design of Fuzzy- PID Controller for First Order Non-Linear Liquid Level System

An Implementation for Comparison of Various PID Controllers Tuning Methodologies for Heat Exchanger Model

International Journal of Advance Engineering and Research Development

Fuzzy Gain Scheduled PI Controller for a Two Tank Conical Interacting Level System

International Journal of Research in Advent Technology Available Online at:

Design of Model Based PID Controller Tuning for Pressure Process

Labview Based Gain scheduled PID Controller for a Non Linear Level Process Station

Design of PID Control System Assisted using LabVIEW in Biomedical Application

Review Paper on Comparison of various PID Controllers Tuning Methodologies for Heat Exchanger Model

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

ISSN: [Appana* et al., 5(10): October, 2016] Impact Factor: 4.116

Temperature Control of Water Tank Level System by

Simulation Analysis of Control System in an Innovative Magnetically-Saturated Controllable Reactor

Application of Fuzzy Logic Controller in UPFC to Mitigate THD in Power System

Position Control of a Hydraulic Servo System using PID Control

TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK

Embedded based Automation System for Industrial Process Parameters

6545(Print), ISSN (Online) Volume 4, Issue 2, March April (2013), IAEME & TECHNOLOGY (IJEET)

1. Governor with dynamics: Gg(s)= 1 2. Turbine with dynamics: Gt(s) = 1 3. Load and machine with dynamics: Gp(s) = 1

Fuzzy Logic Control of a Magnetic Suspension. System Using xpc Target

Application of Proposed Improved Relay Tuning. for Design of Optimum PID Control of SOPTD Model

Time Response Analysis of a DC Motor Speed Control with PI and Fuzzy Logic Using LAB View Compact RIO

Development of a Fuzzy Logic based Photovoltaic Maximum Power Point Tracking Control System using Boost Converter

PROCESS MODELS FOR A NEW CONTROL EDUCATION LABORATORY

SPEED CONTROL OF AN INDUCTION MOTOR USING FUZZY LOGIC AND PI CONTROLLER AND COMPARISON OF CONTROLLERS BASED ON SPEED

PID Control Tuning VIA Particle Swarm Optimization for Coupled Tank System

CHAPTER 6 ANFIS BASED NEURO-FUZZY CONTROLLER

A PID Controller Design for an Air Blower System

ISSN: [IDSTM-18] Impact Factor: 5.164

FUZZY ADAPTIVE PI CONTROLLER FOR SINGLE INPUT SINGLE OUTPUT NON-LINEAR SYSTEM

A PID Controlled Real Time Analysis of DC Motor

Study and Simulation for Fuzzy PID Temperature Control System based on ARM Guiling Fan1, a and Ying Liu1, b

Modelling for Temperature Non-Isothermal Continuous Stirred Tank Reactor Using Fuzzy Logic

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

Sensors and Sensing Motors, Encoders and Motor Control

Tuning Of Conventional Pid And Fuzzy Logic Controller Using Different Defuzzification Techniques

FUZZY CONTROL FOR THE KADET SENIOR RADIOCONTROLLED AIRPLANE

Using Root Locus Modeling for Proportional Controller Design for Spray Booth Pressure System

Performance Analysis of Fuzzy Logic And PID Controller for PM DC Motor Drive Khalid Al-Mutib 1, N. M. Adamali Shah 2, Ebrahim Mattar 3

Performance Analysis of Conventional Controllers for Automatic Voltage Regulator (AVR)

Md. Aftab Alam, Dr. Ramjee Parsad Gupta IJSRE Volume 4 Issue 7 July 2016 Page 5537

Governor with dynamics: Gg(s)= 1 Turbine with dynamics: Gt(s) = 1 Load and machine with dynamics: Gp(s) = 1

CHAPTER 3 APPLICATION OF THE CIRCUIT MODEL FOR PHOTOVOLTAIC ENERGY CONVERSION SYSTEM

Temperature Control in HVAC Application using PID and Self-Tuning Adaptive Controller

Design and Development of an Optimized Fuzzy Proportional-Integral-Derivative Controller using Genetic Algorithm

SIMULINK MODELING OF FUZZY CONTROLLER FOR CANE LEVEL CONTROLLING

Neural Network Predictive Controller for Pressure Control

Design of Smart Controller for Speed Control of DC Motor

Fuzzy Logic Toolbox. User s Guide Version 2. For Use with MATLAB. Computation. Visualization. Programming

Optimal Control System Design

Anfis Based Soft Switched Dc-Dc Buck Converter with Coupled Inductor

PID control. since Similarly, modern industrial

Design and Simulation of Gain Scheduled Adaptive Controller using PI Controller for Conical Tank Process

Sensors & Transducers 2015 by IFSA Publishing, S. L.

Study on Synchronous Generator Excitation Control Based on FLC

CHAPTER 4 FUZZY LOGIC CONTROLLER

Fuzzy logic control implementation in sensorless PM drive systems

Automatic Voltage Control For Power System Stability Using Pid And Fuzzy Logic Controller

II. PROPOSED CLOSED LOOP SPEED CONTROL OF PMSM BLOCK DIAGRAM

In association with International Journal Scientific Research in Science and Technology

ADVANCED DC-DC CONVERTER CONTROLLED SPEED REGULATION OF INDUCTION MOTOR USING PI CONTROLLER

A DUAL FUZZY LOGIC CONTROL METHOD FOR DIRECT TORQUE CONTROL OF AN INDUCTION MOTOR

Transcription:

COMPARATIVE STUDY OF PID AND FUZZY CONTROLLER ON EMBEDDED COMPUTER FOR WATER LEVEL CONTROL A G Suresh 1, Jyothish Kumar S Y 2, Pradipkumar Dixit 3 1 Research scholar Jain university, Associate Prof of EEE dept, BTLIT College, (India) 2 Assistant Prof of EEE dept, BTLIT College, (India) 3 Associate Prof MSRIT College,(India) ABSTRACT This study deals with one of frequently encountered tasks in process industry accurate water level control. Proportional Integral Derivative (PID) control is often used for this purpose. Since control parameters of PID controller are fixed and tank system is inherently nonlinear, PID controller should not be used on wider level range. Therefore this study analyzes the effectiveness of water level control using fuzzy controller. The fuzzy controller is implemented based on mathematical model of tank by using MATLAB Simulink. The graphical user interface (GUI) is designed by using LabVIEW software and PID and fuzzy controllers are implemented on Microcontroller board. Microcontroller board is used as an acquisition board for collecting Ultrasonic Sensor data from level of water in tank system and as a voltage generates for water pump to pump the water into the tank. Experimental results confirm that the fuzzy control system has good adaptability in comparison with PID and provided satisfying results. Keywords: Fuzzy, PID, Nonlinear System, Pump, PC, Tank, Ultrasonic Sensor, Pump Drive, Water Level Control. I. INTRODUCTION In certain industry branches like food, pharmaceutical, chemical, filtration, nuclear power generation plants, spray coating, etc the problem of water level control is very often encountered. The main objective of controller in this case is maintaining different setpoint water levels, mostly, in real time environment. The traditional approach to this problem using PID controllers is not fully convenient when it comes to dealing with nonlinearity of tank systems and their complexity in industry. These problems can be successfully dealt with using fuzzy control Based on expert knowledge and experience, control implementation is therefore simplified, and it can be achieved without complex mathematical modeling. Since the water level controller is often a part of complex control system, the controller should have a communication interface which allows it to be incorporated and integrated with centralized control system. Different communication interfaces makes it suitable for use in already existing control systems, without changing communication protocols and interfaces. Taking all this into account, this paper deals with 300 P a g e

implementation of PID and fuzzy water level controller using embedded computer(pc) and comparison of these controllers on laboratory tank mode. II. SYSTEM DESCRIPTION Figure 1 shows the block scheme of implemented control system. Fig 1. System Structure The PID and fuzzy controllers are implemented in application developed for PC, which allows user to set desired water level and to select the type of controller (PID, or fuzzy). It also displays measured water level. Regardless of controller type, controller input (or one of the inputs) is measured water level expressed in centimeters, and its output is duty cycle of pulse width modulated signal, expressed in 8 bits digital form proportional to percentage of duty cycle Both, controller input and output are exchanged with Micro processor Development Board. Micro processor is used as an acquisition input/output card for PC. Micro processor and PC are connected using USB interface. The PWM signal is used for triggering of pump driver which generates a voltage signal used for pump control. Measurement of water level is done using ultrasonic sensor and analog to digital and voltage to water level conversion on Micro processor. III. SYSTEM IDENTIFICATION AND MODELLING 3.1 Mathematical Modeling The structure of the liquid volume in horizontal tank and its geometrical parameters are shown in Figure 2 Fig 2. Single Tank Water Level System 301 P a g e

The system model is determined by relating the flow Qi into the tank to the flow Qo leaving through the valve at the tank bottom. Using a balance of flows equation on the tank, it is possible to write: dh (t) Q i (t) Q 0 (t) = A dt Where A is the cross sectional area of the tank and h is the height of the water in the tank. The Bernoulli's equation can be adapted to a streamline from the surface to the orifice as: (1) g z 1 + p1 ρ + v 1 2 /2 = g z 2 + p2 ρ +v 2 2 /2 (2) Equations (1) and (2) refer to two different points in the flow, first being upstream of second point. V is the local velocity of the water; g represents the local acceleration of gravity, p the pressure and z the vertical height of the point. If Bernoulli s equation including loss is applied to single tank system shown on Figure 3, h is calculated as: h = v2 + Δh (3) 2g Where, h represents height of the water in the tank, h = z1- z2. Loss to the system Δh can be written as Δh = v2 2g ( ξt + 2ξ k + ξ i d ) (4) Where, _ k is the local loss coefficient of the curved tube, i _is the local loss coefficient at the entrance of the tube, t _ is the resistance coefficient, l is the length of the discharge pipe and d is the diameter of the discharge pipe. Combining (3) and (4) h becomes: 1 h = v2 (1 + ξt + 2ξ 2g k + ξ i ) (5) d The flow Qo leaving through the valve at the tank bottom is given by Using (6) and (5), the flow Qo can be expressed as 1 Q o = d2 π v (6) 4 Q o = C 2gh (7) Where C = d2 π 4 1 1 + ξt + 2ξk + ξi 1 d (8) Combining equations (7) and (1), gives A dh (t) dt + C 2gh = Q i (t) (9) C is called the discharge coefficient of the valve. This coefficient takes into account all water characteristics, losses and irregularities in the system. Equation (9) represents mathematical model of system. 3.2 System Identification In this section, nonlinear system model described with (9), will be approximated by the integrator and time delay model. In order to identify the tank model, step of maximum pump voltage was applied until the water level reached 12,5 cm, starting from water level of 9,5 cm. System response is shown in Figure 3. 302 P a g e

Fig 3 System Response Identification process provided following transfer function. G ob (s) = 0.1553 s. e 0.19s (10) The transfer function of approximated system was used for simulation and tuning of PID and fuzzy controller inside Matlab/Simulink program package. IV. CONTROLLER IMPLEMENTATION 4.1 PID Controller Implementation The design of PID controller based on transfer function and approximate model was done using Matlab/Simulink. Control parameters (gain/proportional band, integral gain/reset, derivative gain/rate) were adjusted to their optimum values for the desired control response (reaching the operating point of 12.5 cm) using Ziegler-Nichols Method or auto tuning method. Simulink model shown on Fig. 4 was used for testing PID controller performance by Z-N and auto tuning method. Fig 4. Simulink Model Used for Pid Controller Testing 303 P a g e

4.2 FUZZY Controller Implementation Two Sugeno fuzzy controllers were designed based on mathematical model and approximate model was done using Matlab/Simulink. One input Simulink model shown on Fig.5 was used for testing fuzzy controller performance by FIS Fig 5. One Input Simulink Model Used for Fuzzy Controller Testing Two input Simulink model shown on fig 6 Fig 6. Two Input Simulink Model Used for Fuzzy Controller Testing Since the tank system is nonlinear and water drainage is correlated with water level, two possible inputs for fuzzy controller can be taken into account error and current water height. In order to analyze the influence of using measured water level as controller input, two types of fuzzy controller were implemented 1. One input fuzzy controller with error as input 2. Two inputs fuzzy controller with error and current water height as inputs, The Sugeno model was used, since it is computationally efficient and works well with optimization and adaptive techniques. This makes it popular for control problems, in particular for dynamic nonlinear systems. Properties of Sugeno type for both controllers are given in Table I. 304 P a g e

Table i. Fis (Fuzzy Inference System) Parameters FIS type Sugeno AND method Prod OR method Max Defuzzyfication wtaver In case of one input fuzzy controller, the error is calculated by taking the difference between referent and current water level. Chosen error memberships functions are shown on Fig. 7. Fig 7. Membership Functions of One Input Fuzzy Controller Output Membership functions represent voltage value.output values are: 0, 4, 6, 12 and 24. Output MFs are shown on Fig. 8. Fig 8. Output Membership Functions of One Input Fuzzy Controller The final output of the system is the weighted average of all rule outputs, computed as FINAL OUTPUT = N i=1 Wi Zi N i=1 Wi where N is the number of rules. In this case the number of rules N is 5. These rules are shown in Table II. (10) 305 P a g e

Table II. Rule Base for One Input Fuzzy Controller If e is VN Output voltage is 0V If e is N Output voltage is 4V If e is O Output voltage is 6V If e is P Output voltage is 12V If e is VP Output voltage is 24V Labels in Table II and Figure 7 are as follows: VN=Very Negative; N=Negative; 0=Small; P=Positive; VP=Very Positive. Inputs for two inputs fuzzy controller are current water level and error, calculated as a difference between referent and current water level. Chosen memberships functions are shown on Fig. 9. Fig 9. Membership Functions of Two Inputs Fuzzy Controller Output membership functions represent voltage value and they are shown on Fig. 10. Output values are: 0, 3, 4, 5, 6, 7, 10, 12, 13 and 24. Fig 10. Output Membership Functions of Two Inputs Fuzzy Controller 306 P a g e

The final output of the system is represented with weighted average of outputs of all rules, computed as in equation (11). In this case the number of rules N is 11. Rule mapping is shown in Table III. Table III. Rule Mapping For Two Inputs Fuzzy Controller Labels in Table III. and Figure 9 are as follows: VN=Very Negative; N=Negative; 0=Small; P=Positive; VP=Very Positive, NN=Low Height, SN=Medium Height, VN=High Height. V. GRAPHICAL USER INTERFACE Controllers were first designed using Matlab and tested using Simulink model, based on mathematical model of tank. Functions that represent controllers were then created in programming language C. For more userfriendly usage of these functions, GUI application was created. Simple GUI is designed using LABVIEW for Friendly laptop. The GUI application is shown on Figure 11. All control and measured data is collected and placed into files. Change of controllers type and set level is possible during control. 307 P a g e

VI. SIMULATION RESULTS Fig 12. System Response on Step Sequence (auto Tuning PID Controller) Fig 13. System Response on Step Sequence (Z_N Method PID Controller) Fig 14. System Response on Step Sequence (One Input Fuzzy Controller) 308 P a g e

Fig 15. System Response on Step Sequence (Two Input Fuzzy Controller) Based on experimental results, the control error and steady state error for both fuzzy controllers were smaller, compared to PID controller. The fuzzy controllers provide better results on wider ranges of water level set points. The two input fuzzy controller did not provide significant improvements compared to one input fuzzy controller, although some improvements were achieved in terms of amplitude of oscillations around stationary states. VII. CONCLUSION By implementing fuzzy and PID controllers for water level control, in form of application for Friendly ARM embedded Computer (PC), user-friendly solution was offered. This solution can be used separately or as a part of already existing control system. The use of fuzzy controller is fully justified by experimental results due to nonlinearity of tank model. REFERENCES [1]. S. M. Shariar Kabir Khan design and implementation of a neural control system and performance characterization with pid controller for water level control International Journal of Artificial Intelligence & Applications (IJAIA), Vol.2, No.2, April 2011, [2]. Farhad Aslam an implementation and comparative analysis of pid controller and their auto tuning method for three tank liquid level control International Journal of Computer Applications (0975 8887)Volume 21 No.8, May 2011, [3]. Bijay Kumar optimization of pid controller for liquid level tank system using intelligent techniques Canadian Journal on Electrical and Electronics Engineering Vol. 2, No. 11, November 2011 [4]. Senka Krivić, Muhidin Hujdur design and implementation of fuzzy controller on embedded computer for water level control MIPRO 2012, May 21-25,2012, Opatija, Croatiaa Books [5]. MATLAB documentation, Mathworks (www.mathworks.com) [6]. Jacob, J.Michael, Industrial Control Electronics, Prentice-Hall, New Jersey, 1988. 309 P a g e

[7]. Daniel Wu, Fakhreddine Karray and Insop Song, Water Level Control by Fuzzy Logic and Neural Networks, Unpublished. [8]. Passino, K.M. & Yurkovich, S., Fuzzy Control, Addison Wesley, Menlo Park, 1998 [9]. Arduino Reference, (www.arduino.cc) 310 P a g e