You are on page 1of 5

Rajshahi University of Engineering & Technology

Department of Mechatronics Engineering


Course NO: MTE 3102
Course Name: Control System Sessional
Experiment No: 07
Experiment name: Design a Fuzzy Logic Controller for a Given
System.

Submitted to,
Md. Faisal Rahman Badal
Lecturer
Department of Mechatronics Engineering
Rajshahi University of Engineering & Technology

Submitted by,
Md. Naimur Asif Borno
1808009
Department of Mechatronics Engineering
Rajshahi University of Engineering & Technology
Experiment No.: 07
Experiment Name: Design a Fuzzy Logic Controller for a Given System.
Objectives:
• • To understand fuzzy logic.
• To gain knowledge of how fuzzy logic functions in systems.

Theory: A fuzzy controller essentially carries out the following three tasks: fuzzification,
inference, and defuzzification. The inputs are converted into a fuzzy style of description in the first
operation using precisely measured inputs. The range of possible numerical values for each input
signal is changed using membership functions (fuzzy sets) to linguistic descriptors like "little,"
"medium," "large," etc. The design of membership functions can take a number of different forms.
As a result, each input signal is transformed into a description that includes two or more degrees
of membership (truth values between zero and one) that indicate how much the given value belongs
to each fuzzy set. A fuzzy description of how the output is to be used is produced by the inference
process based on this description using linguistic rules of the IF-THEN type. This approach isn't
necessarily the best one, though. Each rule's IF portion is made up of logic functions (basically
AND, OR) that must be assessed for the THEN portion to decide on the fuzzy output description.
In order to develop this description, fuzzy sets and degrees of membership were used. The process
of defuzzification entails transforming the output's fuzzy membership function description into a
precise numerical number. Defuzzification can be accomplished using a variety of techniques.
Several questions are still open currently and are the subject of additional research. Stability,
methodical design methods, the impact of the placements and shapes of membership functions,
how to create an efficient, believable, and minimal collection of rules, are a few examples.
Fuzzy Inputs:
Crisp Input Range Fuzzy Variable
0-20 XLD
15-45 LD
30-70 MD
55-85 HD
70-100 XHD
Figure 1. Fuzzy Membership function of Dirt

Crisp Input Range Fuzzy Variable


0-20 XLG
15-45 LG
30-70 MG
55-85 HG
70-100 XHG

Fig: Fuzzy Membership function of Greeze


Crisp Input Range Fuzzy Variable
0-12 VL
10-25 L
20-40 M
35-50 H
45-60 VH

Fig: Fuzzy Membership function of Wash Time


Fuzzy Rules:

Dirt/Greeze XLD LD MD HD XHD

XLG VL VL L L M

LG VL L M M H

MG L M M H VH

HG L M H VH VH

XHG M H VH VH VH

Output:
Fig: Defuzzification Output
Discussion & Conclusion:
There will be a discrepancy between the results of the two types of calculations since the program
uses a graphical technique to determine the final result that is more accurate than numerical
calculations. The entire process was completed using fuzzy inference. As an output, membership
functions are employed. The entire process was meticulously carried out, and the rules were
checked twice.

You might also like