Realization of Fuzzy Logic in Temperature Control System over PID

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

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

Optimized Fuzzy Control by Particle Swarm Optimization Technique for Control of CSTR

PC BASED PID TEMPERATURE CONTROLLER

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

Simulation of VSI-Fed Variable Speed Drive Using PI-Fuzzy based SVM-DTC Technique

Fuzzy Logic Based Reactivity Control in Nuclear Power Plants

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

J.Instrum.Soc.India 30(1)29-34 PROGRAMMABLE CONTROL OF TEMPERATURE: A SIMPLE AND VERSATILE METHOD. N. Asha Bhat and K. S. Sangunni.

Room Temperature based Fan Speed Control System using Pulse Width Modulation Technique

A Fuzzy-Based Speed Control of DC Motor Using Combined Armature Voltage and Field Current

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

Dynamic Simulation of Induction Motor Drive using Neuro Controller

Degree programme in Automation Engineering

ABSTRACT. Keyword double rotary inverted pendulum, fuzzy logic controller, nonlinear system, LQR, MATLAB software 1 PREFACE

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

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

Fuzzy Logic Based Revised Defect Rating for Software Lifecycle Performance. Prediction Using GMR

Stabilizing a Gimbal Platform using Self-Tuning Fuzzy PID Controller

DATA LOGGER AND REMOTE MONITORING SYSTEM FOR MULTIPLE PARAMETER MEASUREMENT APPLICATIONS. G.S. Nhivekar, R.R.Mudholker

A Fuzzy Controller for Blood Glucose-Insulin System

Fuzzy Candlestick Approach to Trade S&P CNX NIFTY 50 Index using Engulfing Patterns

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

ARCHITECTURE OF INDUSTRIAL AUTOMATION SYSTEMS

NEURO-FUZZY BASED POWER QUALITY IMPROVEMENTS IN A THREE PHASE FOUR WIRE DISTRIBUTION SYSTEM USING DSTATCOM

Project Management Efficiency A Fuzzy Logic Approach

TEMPERATURE CONTROL APPLICATIONS BY MEANS OF A PIC16F877 MICROCONTROLLER

DESIGN FOR MONITORING AND OPTIMIZATION OF POWER DEMAND FOR WIRELESSLY COMMUNICATING ELECTRIC LOADS

A Design of a PID Self-Tuning Controller Using LabVIEW

Process Control Primer

The Use of Hybrid Regulator in Design of Control Systems

MECE 102 Mechatronics Engineering Orientation

Problems often have a certain amount of uncertainty, possibly due to: Incompleteness of information about the environment,

Keywords: Fuzzy Logic, Control, Refrigeration Systems and Electronic Expansion Valves.

IMPLEMENTATION OF FUZZY EXPERT COOLING SYSTEM FOR CORE2DUO MICROPROCESSORS AND MAINBOARDS. Computer Education, Konya, 42075, Turkey

Study of Effect of P, PI Controller on Car Cruise Control System and Security

Modeling and Simulation of Fuzzy Logic Variable Speed Drive Controller

Fast Fuzzy Control of Warranty Claims System

Optimal Tuning of PID Controller Using Meta Heuristic Approach

DCMS DC MOTOR SYSTEM User Manual

Artificially Intelligent Home Automation System Based on Arduino as the Master Controller

APPLICATION OF ADVANCED SEARCH- METHODS FOR AUTOMOTIVE DATA-BUS SYSTEM SIGNAL INTEGRITY OPTIMIZATION

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

A Fuzzy Logic Based Approach for Selecting the Software Development Methodologies Based on Factors Affecting the Development Strategies

SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

Type-2 fuzzy logic control for a mobile robot tracking a moving target

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 3, May 2013

The Design of DSP controller based DC Servo Motor Control System

MAHMOUD OMID Department of Agricultural Machinery, Faculty of Agriculture, University of Tehran, Karaj, Iran Author s omid@ut.ac.

Innovative Practices in Optimal Utilization of Solar Energy (Solar Tracking System)

JAVA FUZZY LOGIC TOOLBOX FOR INDUSTRIAL PROCESS CONTROL

Parametric variation analysis of CUK converter for constant voltage applications

Electric Power Steering Automation for Autonomous Driving

AN2680 Application note

High Frequency Trading using Fuzzy Momentum Analysis

Introduction to Fuzzy Control

New Pulse Width Modulation Technique for Three Phase Induction Motor Drive Umesha K L, Sri Harsha J, Capt. L. Sanjeev Kumar

M.S Ramaiah School of Advanced Studies - Bangalore. On completion of this session, the delegate will understand and be able to appriciate:

Computer Aided Design of Home Medical Alert System

Study on Differential Protection of Transmission Line Using Wireless Communication

Microcontroller based speed control of three phase induction motor using v/f method

Using NTC Temperature Sensors Integrated into Power Modules

Applications of Fuzzy Logic in Control Design

Soft-Computing Models for Building Applications - A Feasibility Study (EPSRC Ref: GR/L84513)

Improved incremental conductance method for maximum power point tracking using cuk converter

Laboratory 4: Feedback and Compensation

ADVANCED FIRE ALARMING SYSTEM THROUGH MOBILE PHONE

Real time MATLAB Interface for speed control of Induction motor drive using dspic 30F4011

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

Microcontroller Based Anti-theft Security System Using GSM Networks with Text Message as Feedback

Switch Mode Power Supply Topologies

Force/position control of a robotic system for transcranial magnetic stimulation

Interfacing Analog to Digital Data Converters

MODELING, SIMULATION AND DESIGN OF CONTROL CIRCUIT FOR FLEXIBLE ENERGY SYSTEM IN MATLAB&SIMULINK

Section 3. Sensor to ADC Design Example

Welcome to this presentation on Switch Mode Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series. In this presentation we will look at:

Remote Patient Monitoring- An Implementation in ICU Ward

Sci.Int.(Lahore),26(3), ,2014 ISSN ; CODEN: SINTE

Hardware and Logic Implementation of Multiple Alarm System for GSM BTS Rooms

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

Online Tuning of Artificial Neural Networks for Induction Motor Control

EMPLOYEE PERFORMANCE APPRAISAL SYSTEM USING FUZZY LOGIC

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

R&D Engineer. equipment. the power

SIMULATION AND CONTROL OF BATCH REACTORS

Design of Prediction System for Key Performance Indicators in Balanced Scorecard

A PC-BASED TIME INTERVAL COUNTER WITH 200 PS RESOLUTION

FIELD TESTS OF FUEL EFFICIENCY MAGNETS J A CRABB JULY 1997 SWEEG REPORT 80

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

International Journal of Electronics and Computer Science Engineering 1588

From Control Loops to Software

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

FPGA Implementation of an Advanced Traffic Light Controller using Verilog HDL

Fuzzy Logic based user friendly Pico-Hydro Power generation for decentralized rural electrification

Fuzzy Irrigation Controller Using Solar Energy

Transcription:

Realization of Fuzzy Logic in Temperature Control System over PID Anil Kumar.K Jyoshna. P PG Student, Dept. of EEE Asst. Professor, Dept. of EEE Siddharth Institute Of Engg. & Technology, Puttur Siddharth Institute Of Engg. & Technology, Puttur Chittoor (Dt), Andhra Pradesh, India. Chittoor (Dt), Andhra Pradesh, India. Seshadri.G Associate professor, Dept. of EEE Siddharth Institute Of Engg. And Technology, Puttur Chittoor (Dt), Andhra Pradesh, India. Abstract This paper proposed an artificial intelligent control method for temperature control system and is suitable for low temperature applications such as laboratory equipments (e.g. ovens and incubators).since we had PID as existing system in temperature control equipment, we are going to the proposed design uses fuzzy logic as a control method that maintains the temperature of simulated heater to the desired point. In this Microcontroller based circuit is built to acquire data from sensor, actuate heat element and communicate with computer workstation. MATLAB fuzzy logic controller is designed, tested, and tuned to control the circuit. The Fuzzy Logic Controller(FLC) performance is evaluated in several situations by comparing it with conventional Proportional Integral Derivative (PID) controller in terms of speed of response to the desired setting value, overshoot in fixed set point and robustness against disturbance. FLC is fast in response to the setting with compare to PID, and more stable against external disturbance. Both of FLC and PID have neglected overshoot value and steady state error, but FLC has noticeable deviation in high set points Key terms - proportional integral-derivative (PID). Fuzzy, Control, Temperature and performance. I. INTRODUCTION The technology of control continues to grow in both applications and complexity [1]. The evolutionary changes of control systems can be summarized in three stages: firstly, On/off control is a simple control system in which the control output is either full on if there is a deviation from set point, or completely off if you are at the set point or within the hysteresis. Secondly, PID control is a control method in which the value of the control output is a linear combination of the error signal, its integral, and its derivative. Provides precise control and is used for systems that have frequent disturbances. Finally, intelligent control has been rose as an alternative to a conventional control, in it the human mind abilities in problem solving, decisions making and learning new function is imitated. One of the most popular intelligent control methods is Fuzzy Logic Control (FLC) which utilizes fuzzy logic to convert the linguistic control strategy based on expert knowledge into an automatic control strategy. Now a day s FLC has become more favourable than conventional PID control; because FLC simply represent the realization of human control strategy, where the PID control relies on the mathematical formulations. Fuzzy logic control algorithm solves problems that are difficult to address with traditional control techniques.there are two types of Fuzzy Logic Controller: Mamdani type controller and Takagi-Sugenos type controller. Temperature control is a process in which change of temperature of a space (and objects collectively there within) is measured or otherwise detected, and the passage of heat energy into or out of the space is adjusted to achieve a desired average temperature. Temperature is an essential physical quantity which is found in most application of home appliances, scientific laboratories equipments and industrial processes. Therefore the main issue in every temperature control strategy is to monitor and maintain temperature status of these facilities. In some industrial application the goal is not only precise temperature control, but also a fast heat-up and quick response to disturbances with minimal overshoot and undershoot when the set point changes. Also the chemical laboratories incubator which may contain Living creatures or Parts of organisms, so it s crucial to tightly keep the temperature inside it at required set point. In addition it s too important in rice cooker to make fine adjustments to temperature and heating time to cook perfect rice every time. II. SYSTEM OVERVIEW To present an intelligent controller approach providing best control of temperature process using fuzzy rule-based techniques and to show how FLC temperature controller can overcome the undesirable features of traditional PID controller, a simulated temperature control 1506

system consisting of a sensor; actuator and computer shown in fig. 1 should be realized as follows. The Hardware design is include the temperature sensor (LM35 Precision Celsius Temperature Sensors) to read an actual temperature of the heater to the microcontroller (μc) ADC, in voltage form which is linearly proportional to the Celsius (Centigrade) temperature and does not require any external calibration or trimming to provide typical accuracies of ±1 4 C at room temperature and ±3 4 C over a full 55 to +150 C temperature range. Low power Ceramic resister is used to simulate the heater, because it can be simply driven by Microcontroller μc output port using common power transistor. applying heating signal to actuator, the flowchart is shown in Figure 3. Fig. 1. Schematic diagram of PC Based FLC in Temperature control system Atmega32 microcontroller from Atmel is used to acquire temperature reading from sensor by its internal ADC and to provide actuating signal to the heater through its programmed PWM by varying on/off duration time and provide interface to computer workstation. Software is divided into two parts BASCOMAVR Microcontroller program to acquire a current temperature from sensor, calculate the error from stored set value, and output suitable signal to drive actuator and communicate with PC based system and FLC and PID MATLAB program using MATLAB Fuzzy Tool box to receive the temperature error signal as a crisp input, fuzzified it to simple triangular member ship function, Applying the fuzzy rule (if e is negative then decrease o/p ) on it and output the deffuzifed result. MATLAB PID controller will be implemented for performance evaluation purpose III. CIRCUIT DESIGN The microcontroller based circuit with three parts: heating element, sensing element and interfacing part is designed and tested. The circuit diagram is shown in Figure 2.The software has two parts: embedded program in microcontroller and the MATLAB program in the PC which is consist of fuzzy controller and control loop. Embedded program which is developed under BASCOM-AVR environment to acquires current temperature value from sensor, and transmit it to PC controller then receive actuating signal from PC and Fig. 2. Embedded program flowchart IV. MATLAB FLC DESIGN Ceramic resistance heat transfer characteristic and circuit behaviour is obtained by applying full heat to the heater and the experiment result plotted in Figure 4. Figure illustrates that the heat element can be heat up from 25o C (room temperature) to 52 o C as maximum and it will take 200 second. According to this the membership function will be in the range 25o C - 52 o C. and the minimum period of time the controller can provide the required heat is 200 sec. The initial FLC design is implemented by MATLAB Fuzzy Logic Tool Box, then it is studied and many cycles of enhancement are carried out to reach the final design. Fuzzification is the first block in the controller, in which the input data is converts to degrees of membership by a lookup in one or several membership functions. There is two inputs to this controller, an error which is represent "error=setting value current value" and the rate of change in error which given by " delta error = current error 1507

previous error ", and single output which represents the amount of PWM signal which is provide in percentage form. Where: GU: controller gain. GE: error gain. GDE: change of error rate gain. Which represent Proportional derivative fuzzy controller PD-fuzzy. The experiment has been done with this initial design and results can be plotted as obtained. Figure 5 illustrates the poor performance of the simple designed FLC with proportional derivative gain. The desired point is 50oC, but the controller provides 45oC as maximum, taking 3:20 minutes with 10% error and this consider big steady state error, and long rising time. So some improvement to FLC is required. The previous FLC design drawbacks studied and some modification has been implemented to improvement controller performance including the following aspects: Fig. 3. Heat up time response The maximum positive error expected is difference between lower and upper limits of range [52 25 = 27]. Initially and for simplicity random range of error and change of error, from -40 to +40 will be taken and divided to three fuzzy, also the triangular shape of membership function is selected and the percent of overlapping between the function is 50%percent. The output range is from 0 to 100%, it is divided also into three membership functions with triangular shape and 50 percent overlapping, and it illustrates MF of the output. The rule base is based on Mamdani type, using experience method. It s composed of nine rules obtained by intersection of two sets of three antecedent s results in three consequents which is shown in Table I. Fuzzification centroid method is selected to generate the output of controller (crisp data). Control loop code is written to run the simulated circuit with this controller, as flowchart explained in the Figure 4. The flowing code lines represent the core of program: A = READFIS('wall ); FUZZPWM =GU*EVALFIS([GE*ERRORGDE*DELERROR], A); These statements call fuzzy controller wall inside the control loop to process the new inputs and produce the PWM percentage as output. The multiply of the gain parameters GU, GE and GDE. Fig. 4. FLC control loop flowchart a. Input and output membership function reclassified into small five sets NEGBIG, NEGSMALL, NULL, OSSMALL and POSBIG as shows on the Figure 5. The range for ΔE is modify to (-4 to 4) and E to (-25 to 25). The membership shape is tuned and the overlap percentage between the sets is modified by trial and error. 1508

Fig. a. Initial design experiment result b. Rule base is modified and the number of rules is increase to 5x5 rules. Also it is tuned by trial and error as shown in table II Fig: b Fig:7 MATLAB Design used Temperture Control System c. Fig: c Fig. 5 (a) Enhancement Membership Function and (b) delta error and error inputs (c) psm output Control loop program is modified to be PID fuzzy controller by adding an integral gain (Ki). Fig:8 Fuzzy Logic Used in Temperature Control System Fig.6. Integral gain (Ki). Fig:9 Responses of FLC & PID Control System for Temperature 1509

PID controller: Proportional integral derivative PID controller has been designed, using MATLAB for performance evaluation with comparison to FLC: pid_integral= ki*(error+previouserror)/2; pwm = kp*error + (pid_integral+ previous_integral) + kd*(error - PreviousError); previous_integral = pid_integral; The PID controller gains parameters Kp Proportional, Kd derivative and Ki integral are tuned by trial and error. Overshoot: Both of controllers have neglect overshoot but FLC value is slightly high than PID and this due to the fast response. Response time: Fuzzy controller appears to have fast response for various setting value in comparison with conventional controller. It is recorded less rise time than PID in all set points. External disturbance: The Figures (11, 12) explain the behaviour of controllers upon the external disturbance which is made by putting wet piece of tissues for 5 seconds. As the Figure shows FLC is affected less and recover fast of disturbance than PID. Using trial and error and after doing many experiments to tune this parameter the following gains is obtained: ge = 1.75 gde = 1.50 gu = 1.75 ki = 1.75 The same steps applied to tune PID controller and getting fine parameters. Despite of many tries to adjust gains still there noticeable fixed steady state error, and continuous ripples, and this return to the surrounding weather effects. Plastic enclosure used to isolate circuit from outside undesirable effects, and then the results which are obtained for both controllers at particular set point. The Figure 5 reflects that response time is 1 minute and the steady state error is neglect able, so these results is enough to do performance evaluation to controllers. For the purpose of comparison three experiments in different set point in the range from 45oC to 53oC were done, the output of two controllers has been plotted in Figure 5. Steady state error: FLC and PID controller have slight error on steady state region for all setting points except in the highest setting value FLC has noticeable error. Let s see how would be the response of each controller with External disturbances. Fig. 11: Fuzzy response to disturbance Fig: 10 Responses of FLC Vs PID for Temperature Control System The Figures illustrate the difference behaviour of two controllers under the same situation for the specific set points: Fig:12 PID response to disturbance 1510

V. CONCLUSIONS FLC has fast response to the setting with compare to PID, and more stable against external disturbance. Both of FLC and PID have neglect overshoot value and steady state error, but FLC has noticeable deviation in high set points. The FLC is remarkably challenging to set up and tune. The challenge can be broken into the stages of learning the MATLAB toolkit for fuzzy logic, identifying the extensive tuning parameters. A great deal of time and effort has been spent in tuning the fuzzy controller. Debugging the controller is not easy due to the fact that the inner calculations of the fuzzy controller cannot be highlighted. REFERENCES [1] Srismrita Basu, Realization of Fuzzy Logic Temperature Controller, International Journal of Emerging Technology and Advanced Engineering Website: www.ijetae.com (ISSN 2250-2459, Volume 2, Issue 6, June 2012) [2] M D Hanamane, R R Mudholkar, B T Jadhav and S R Sawant, Implementation of Fuzzy Temperature Control Using Microprocessor, Scientific & Industrial Research, FEB 2006, pp.142-147. [3] G.S. Nhivekar, S.S. Nirmale, R.R. Mudholker, Implementation of fuzzy logic control algorithm in embedded microcomputers for dedicated application, International Journal of Engineering, Science and Technology, Vol. 3, No. 4, 2011, pp. 276-283 [4] Lewis, Introduction to Modern Control Theory, in: F.L, Applied Optimal Control and Estimation, Prentice-Hall, 1992. [5] Kevin M. Passino and Stephen Yurkovich, Fuzzy Control, Addison Wesley Longman, Inc., 1998, [6] Ahmad M. Ibrahim, Fuzzy logic for Embedded Systems Applications, 0-7506-7699-X. 2004. [7] Douglas S. Dewey, Fuzzy Logic, Company Tokyo-Japan, published at http://www.omega.com 2010-04-26. [8] Amit Konar, Artificial intelligence and soft computing behavioral and cognitive modeling of the human brain, CRC Press LLC 2000. [9] Lakhmi C. Jain; N.M. Martin, Fusion of neural networks, fuzzy systems and genetic algorithms: Industrial Applications, CRC Press LLC ISBN: 0849398045, 1998. [10] Jan Jantzen, Tutorial on Fuzzy Logic, Technical University of Denmark, Department of Automation, Tech. report no 98-E 868. [11] Zilouchian Mo Jamshidi, Intelligent control systems using soft computing methodologies, CRC Press LLC, 2001. [12] Randy L. Haupt and Sue Ellen Haupt, Practical Genetic Algorithms, A John Wiley & Sons, Inc., 2004. 1511