UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab Experiment no.2 Introduction to Fuzzy Logic Control

Similar documents
Simulation of Optimal Speed Control for a DC Motor Using Conventional PID Controller and Fuzzy Logic Controller

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

Closed-Loop Speed Control, Proportional-Plus-Integral-Plus-Derivative Mode

Comparative Analysis of Room Temperature Controller Using Fuzzy Logic & PID

A Fuzzy Knowledge-Based Controller to Tune PID Parameters

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

Position Control of a Servopneumatic Actuator using Fuzzy Compensation

CHAPTER 4 FUZZY LOGIC CONTROLLER

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

Exercise 6. Open-Loop Speed Control EXERCISE OBJECTIVE

Resistance Furnace Temperature Control System Based on OPC and MATLAB

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

Controller Algorithms and Tuning

Closed-Loop Position Control, Proportional Mode

Design of Different Controller for Cruise Control System

Fuzzy Based Control Using Lab view For Temperature Process

ADVANCES in NATURAL and APPLIED SCIENCES

PID Control Technical Notes

International Journal of Research in Advent Technology Available Online at:

CHAPTER 6 NEURO-FUZZY CONTROL OF TWO-STAGE KY BOOST CONVERTER

Fuzzy Based Control Using Lab view For Temperature Process

Performance Analysis of Boost Converter Using Fuzzy Logic and PID Controller

A PID Controller Design for an Air Blower System

A Brushless DC Motor Speed Control By Fuzzy PID Controller

Simulation of Synchronous Machine in Stability Study for Power System: Garri Station as a Case Study

GE 320: Introduction to Control Systems

PID-control and open-loop control

Lab Exercise 9: Stepper and Servo Motors

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

CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System

Figure 1.1: Quanser Driving Simulator

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

Putting it all Together

Load Frequency Control of Multi Area Hybrid Power System Using Intelligent Controller Based on Fuzzy Logic

Project Advisor : Dr. Abdulla Ismail

Ver. 4/5/2002, 1:11 PM 1

On-site Safety Management Using Image Processing and Fuzzy Inference

Introduction. ELCT903, Sensor Technology Electronics and Electrical Engineering Department 1. Dr.-Eng. Hisham El-Sherif

Fuzzy Controller Algorithm for 3D Printer Heaters

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

TEMPERATURE PROCESS CONTROL MANUAL. Penn State Chemical Engineering

TWO AREA CONTROL OF AGC USING PI & PID CONTROL BY FUZZY LOGIC

Bi-Directional Dc-Dc converter Drive with PI and Fuzzy Logic Controller

ADVANCES in NATURAL and APPLIED SCIENCES

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

Feb. 1, 2013 TEC controller design experts offer tips to lower the cost and simplify the design of the devices, and to increase their ease of use.

Digital Control of MS-150 Modular Position Servo System

Sensors and Sensing Motors, Encoders and Motor Control

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

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

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

Comparative Study of PID Controller tuning methods using ASPEN HYSYS

DC SERVO MOTOR CONTROL SYSTEM

EVALUATION ALGORITHM- BASED ON PID CONTROLLER DESIGN FOR THE UNSTABLE SYSTEMS

CONTROLLER TUNING FOR NONLINEAR HOPPER PROCESS TANK A REAL TIME ANALYSIS

The software developed for DC motor speed control system provides the user interface to

Fuzzy Adapting PID Based Boiler Drum Water Level Controller

DC Motor Speed Control using PID Controllers

EE 3TP4: Signals and Systems Lab 5: Control of a Servomechanism

Fuzzy Logic Based Speed Control System Comparative Study

INTEGRATED PID BASED INTELLIGENT CONTROL FOR THREE TANK SYSTEM

Comparison Effectiveness of PID, Self-Tuning and Fuzzy Logic Controller in Heat Exchanger

Logic Developer Process Edition Function Blocks

PROCESS MODELS FOR A NEW CONTROL EDUCATION LABORATORY

Adaptive Fault Tolerant Control of an unstable Continuous Stirred Tank Reactor (CSTR)

Comparative Analysis Between Fuzzy and PID Control for Load Frequency Controlled Power

EVALUATION AND SELF-TUNING OF ROBUST ADAPTIVE PID CONTROLLER & FUZZY LOGIC CONTROLLER FOR NON-LINEAR SYSTEM-SIMULATION STUDY

Evolved Design of a Nonlinear Proportional Integral Derivative (NPID) Controller

Glossary of terms. Short explanation

QuickBuilder PID Reference

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

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

Design Of PID Controller In Automatic Voltage Regulator (AVR) System Using PSO Technique


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

Relay Feedback based PID Controller for Nonlinear Process

Speed Control of BLDC Motor-A Fuzzy Logic Approach

Lecture 5 Introduction to control

Robust Control Design for Rotary Inverted Pendulum Balance

The Effect of Fuzzy Logic Controller on Power System Stability; a Comparison between Fuzzy Logic Gain Scheduling PID and Conventional PID Controller

AC : REAL-TIME CONTROL IMPLEMENTATION OF SIMPLE MECHATRONIC DEVICES USING MATLAB/SIMULINK/RTW PLATFORM

Design of Model Based PID Controller Tuning for Pressure Process

-binary sensors and actuators (such as an on/off controller) are generally more reliable and less expensive

EVOLUTIONARY ALGORITHM BASED CONTROLLER FOR HEAT EXCHANGER

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

Experiment 9. PID Controller

Performance Analysis of PSO Optimized Fuzzy PI/PID Controller for a Interconnected Power System

Class 5. Competency Exam Round 1. The Process Designer s Process. Process Control Preliminaries. On/Off Control The Simplest Controller

AC : DEVELOPING A MATLAB/SIMULINK RTWT BASED HYDRAULIC SERVO CONTROL DESIGN EXPERIMENT

IMPLEMENTATION OF FUZZY LOGIC SPEED CONTROLLED INDUCTION MOTOR USING PIC MICROCONTROLLER

Online Tuning of Two Conical Tank Interacting Level Process

Advanced Methodology for Precisely Simulating RTD Sensor Types

MEM 01 DC MOTOR-BASED SERVOMECHANISM WITH TACHOMETER FEEDBACK

EXPERIMENT NO. 4 EXPERIMENTS ON LADDER PROGRAMMING FOR MECHATRONICS SYSTEM

Types of control systems:

Model Reference Adaptive Controller Design Based on Fuzzy Inference System

Embedded Type-2 FLC for the Speed Control of Marine and Traction Diesel Engines

DESIGN OF INTELLIGENT PID CONTROLLER BASED ON PARTICLE SWARM OPTIMIZATION IN FPGA

DC Circuits. (a) You drag an element by clicking on the body of the element and dragging it.

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING BANGLADESH UNIVERSITY OF ENGINEERING & TECHNOLOGY EEE 402 : CONTROL SYSTEMS SESSIONAL

Transcription:

Introduction UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab. 0908448 Experiment no.2 Introduction to Fuzzy Logic Control Traditional logic is based upon the idea that problems can reduced to a series of statements which are either true or false. However, many everyday situations are not suited to this logical form. Many questions exist where the answer is neither 'yes' nor 'no', but somewhere an in-between answer is required. For example, on a pleasant summer's day, the statement 'the temperature is too high' is neither true nor false. The response to the question requires us to grade the response to indicate that the temperature is neither too hot nor too cold. Common sense tells us that there are grades of meaning or qualified responses to most problems. Philosophers and mathematicians have considered forms of logic for this situation by introducing concepts such as 'vagueness' and multi-valued logic. The topic of fuzzy logic is one way of dealing with things where there is vagueness, by allowing degrees of certainty to be associated with the answer to a question. Fuzzy Control The most useful application of fuzzy logic is in the control of events where precise regulation of a process variable is not a primary requirement. As such, the most suitable applications are where there are qualitative requirements for a satisfactory control action. Specifically, these qualitative requirements can be easily stated as fuzzy logic rules and then embedded in a fuzzy logic control algorithm. In this connection, fuzzy logic controllers are widely used to operate the automatic functions of washing machines, video recorders, compact disk players, air conditioning systems, cameras and so on. It is also possible to use fuzzy logic in industrial feedback control problems that are conventionally solves using experienced human operators who have manual control over a complex process. The procedure followed is to put the operator's control procedure into a fuzzy rule set and hence develop a fuzzy control system. Specifically, the fuzzy logic designer notes the heuristic actions of a human operator when they control a process and writes down the corresponding fuzzy rule. By careful observations of a skilled operator, a complete set of fuzzy rules is obtained which hopefully will reproduce the best performance of the human operator. The result is an 'intelligent' control system which is obtained without reference to control systems theory. This is a simplified view of how fuzzy controller is prepared, but the basic idea is that intuition and common sense ideas are used. The intuitive nature of such control systems has a great appeal to many users. Unfortunately, the set of rules for such a system may be very large indeed and must be carefully checked because human operators are often very subtle in their actions and it can be difficult to translate their nuances into fuzzy logical statements. Depending upon the complexity of the process to be controlled, the construction if the fuzzy rules can be time consuming and involve much fine tuning. The most effective industrial applications have been on processes which are inherently stable and the control actions are for keeping process variables within operational bounds, rather than accurate regulation or servo following. A further popular application is the control of simple loops of the kind usually controlled using three-term (PID) controllers. The use of fuzzy logic here is to emulate the PID action, often with some modifications to accommodate non-linear plant behavior. Figure 1 shows how a fuzzy logic system replaces the conventional controller in this form of application. Note that the fuzzy interference engine in the diagram will consist of a set of fuzzy rules. Page 1 of 9

Figure 1: Fuzzy Controller Main Apparatus: CE124 Fuzzy Logic Trainer (figure 2). CE103 Thermal Control Process apparatus (figure 3). CE105 Coupled Tanks apparatus (figure 4). Figure 3: CE103 Thermal Control Process Apparatus Figure 2: CE124 Fuzzy Logic Trainer Page 2 of 9

Figure 4: CE105 Coupled Tanks Apparatus Part 1: Fundamentals of Fuzzy Logic The objective of this part is to investigate the basic principles of fuzzy logic including the following: How signals and voltages are converted or classified into fuzzy variables by fuzzifier blocks. How fuzzy variables are converted back into real signals by a defuzzifier block. The actions of the fuzzy logic operators: AND, OR and NOT. A. Fuzzy Membership - Connect the equipment as shown in figure 5. - With a potentiometer output of -10 V, measure the classifier outputs using the fuzzy variable meter connected to the outputs LP (large positive), MP (medium positive), S (small), MN (medium negative) and LN (large negative). - Increase the potentiometer output and repeat the above procedure for different values of potentiometer output. - Record your results in table 1and draw a block diagram for the experimental setup. Input Voltage V LP Degree of MP Degree of Table 1 S Degree of MN Degree of LN Degree of Page 3 of 9

Figure 5: Fuzzy Membership B. Defuzzification - Connect the equipment as shown in figure 6, including the dotted connection. - Set the fuzzy variable potentiometer fv1 to zero (fully anticlockwise) and the fuzzy variable potentiometer fv2 to one (fully clockwise). - Check that the fuzzy variable fv2 is connected to defuzzifier input MP (this is the dotted connection in figure 6). Increase the fuzzy variable fv1 from o to 1, while decrease the fuzzy variable fv2 from 1 to 0 by step of o.2, then record the readings. - Try to repeat the previous step to the rest of the defuzzifier inputs if you have free time! Table 2 FV1 FV2 Output Page 4 of 9

Figure 6: Defuzzification C. Fuzzy Logic Operators: AND, OR and NOT - Connect the apparatus as shown in figure 7 using the solid connection only. - Set each of the fuzzy variables to a certain value from (0-1), and record it in table 3. Note the reading of the fuzzy variable at the output of the fuzzy AND block and record it. - Insert the output of the fuzzy AND block to a fuzzy NOT block (shown as shadow connections in figure 7). Note its effect on the fuzzy voltmeter value compared with the previous results. - Repeat the previous procedure for the fuzzy OR block by altering the connection of fv1 and fv2 to the fuzzy OR block. - Use your results to write relations that define the fuzzy AND, OR and NOT operations. Table 3 Operation FV1 FV2 Output Output with not AND OR Page 5 of 9

Figure 7: Fuzzy Logic Operator Part 2: Proportional Control of the Thermal Control Process The object of this exercise is to investigate fuzzy logic control applied to the thermal control process. The control is based on a fuzzy form of proportional (P) algorithm. The potentiometer P1 will be used to provide the reference (set-point) signal. The defuzzier output u is the control signal which is sent to the system input (the heater). The control signal is defuzzified from the fuzzy control law according to the classification: a) Large negative control=-10 V b) Medium negative control=-5 V c) Small control=0 V d) Medium positive control=5 V e) Large positive control=10 V Complete the following rule set so that it operate in a similar manner to a conventional proportional controller: { Rule 1: If {error LN} THEN {control { Rule 2: If {error MN} THEN {control { Rule 3: If {error S} THEN {control { Rule 4: If {error MP} THEN {control { Rule 5: If {error LP} THEN {control The abbreviations used in this rule set are LN= large negative, LP=large positive, S=small, MN=medium negative, and MP= medium positive. Page 6 of 9

Connect the apparatus as shown in figure 8 and complete the second half of connection to represent the fuzzy rule set written above, and then connect the output of the defuzzifier to the heater input on CE103. Figure 8: Fuzzy Control Wiring Diagram 1 - Apply the following initial settings: Set potentiometer P1 to 4 V and P2 to 3 V. Pre-process gain Kp set to 10. Output shutter of CE103 fully open. With P1 producing a set point (or reference) of 4 V, record the temperature output T2. After the temperature has settled to the desired value, increase the set point to 6 V and again record the output. After the temperature has settled to the desired value, decrease the set point to 4 V and again record the output. Observe the output of the fuzzy controller and compare it with what you expect from a conventional controller. Vary the gain Kp and monitor the effect upon the system response. Page 7 of 9

Sketch a block diagram of the fuzzy control system which is used in this part. Compare the results from the fuzzy control system and what you would expect from a conventional proportional system. Part 3: Proportional Control of the Coupled Tanks Apparatus In this part of experiment a fuzzy logic controller is set up which applies a simple fuzzy proportional controller to the coupled tanks apparatus. The fuzzy rules are selected to insure that the controller output signal generates voltages which are inside the working range (0 V to 10 V) of the pump. The working range is 0 V to 10 V because: The pump cannot suck water out of the tanks hence the input voltage should not be less than o V. Since the pump maximum speed is achieved with a voltage of 10 V, the control signal should not be greater than 10 V. Figure 9: Fuzzy Control Wiring Diagram 2 Page 8 of 9

The potentiometer P1 will be used to produce the reference (set-point) signal. The defuzzifier output u is the control signal which is sent to the system input. The control signal is defuzzified from the fuzzy control law according to the classification mentioned in part 2. - Connect the apparatus as shown in figure 9 and apply the following initial settings: Set potentiometer P1 to 3 V. Pre-processor gain Kp set to 10 which is included so that additional amplification of the error signal may be applied. CE105 Coupled Tank Apparatus: valve A set to 5, valve B closed, valve C set to between 3 and 4. - Use the error and control signal to write a fuzzy logic rule set to provide a proportional positive control when error is positive taking in consideration that the minimum pump input is 0 V. - Apply the fuzzy rule set written above on your connection and then connect the control signal to CE105 pump input. - With P1 producing a set point (or reference) of 3 V, record the level in tank 1 using the voltmeter. After the level has settled to the desired value, increase the set point to 6 V and again record the output. After the level has settled to the desired value, decrease the set point to 3 V and again record the output. Observe the output of the fuzzy controller and compare it with what you would expect from a conventional controller. - Vary the gain Kp and observe the effect upon the system response. Page 9 of 9