Chapter 3 FLC
Chapter 3 FLC
Chapter 3 FLC
Chapter 3 Objectives
To understand several fuzzy logic control applications.
2
Chapter 3 Contents
3.1 Fuzzy control of an inverted pendulum
3.2 Fuzzy control of a water bath
3.3 Fuzzy control of traffic lights
3.4 Intelligent Diagnosis of Power Transformers
3.5 Several issues in the application of fuzzy logic for
real-time control
3.6 Industrial/Commercial examples of fuzzy logic
control
3.6.1 Fuzzy washing machine
3.6.2 Canons fuzzy auto-focus camera
3.6.3 Minoltas fuzzy camera
3.6.4 Sendais fuzzy subway train
3.7 Summary of Chapter 3
Case Study #1
4
Study the system
Vertical line + v
Fuzzy Logic Motor
Controller v
6
Quantize the fuzzy variables
Membership Functions
For simplicity lets choose triangular membership functions for
each of the fuzzy subsets of the three fuzzy variables.
m
NM NS ZE PS PM
1
0
0 Pendulum Angle,
m
NM NS ZE PS PM
1
0
0 Angular Velocity,
mv
NM NS ZE PS PM
1
0
0 Motor Velocity, v
8
Designing the Inference Engine
= PS
= ZE
If pendulum angle is about zero
and the angular velocity is about zero
then motor velocity should be about zero
v = ZE
10
Rule Base
Antecedents
Pendulum Angle,
NM NS ZE PS PM
NM PM Consequent
NS PS ZE
ZE PM PS ZE NS NM
PS ZE NS
Steady-state rule
PM NM
11
12
Choice of Encoding or Inference Techniques
e e u
Correlation-minimum-inference procedure
IF e is PL AND e is ZE THEN u is PL
me me mu
e e u
Correlation-product-inference procedure
13
Defuzzification Techniques
There are several defuzzification techniques.
Suppose the centroid defuzzification is used the following will be observed.
0 0 0
IF e=ZE AND e=ZE THEN u = ZE
me m e m u
ZE ZE
ZE
0 0 0
PS
m u
Value of e Value of e
at instant t at instant t ZE
m u
Fuzzy centroid, u
14
Test run the fuzzy controller
When the control system has been configured, we can test the
system.
Run your controller.
If results not satisfactory then make minor modifications or
adjustments to the following:
(1). Scaling factors
(2). Overlap of membership functions
(3). Check if rules are correct
(4). Increase rules if necessary
(5). Increase quantization if necessary
Re-run the system.
15
Main objective
To design a Fuzzy Logic Controller to balance the
inverted pendulum at a specific orientation
within a limited range.
HARDWARE
REQUIREMENTS
The Micro-controller board
UC96-SD version 2.0
KRi Inverted pendulum
model PP-300
rotary inverted
pendulum structure
servo drive unit
power supply
FUZZY LOGIC CONTROL SYSTEM
DESIGN METHODOLOGY
Start
Fuzzification
-quantize the input and output
variables
-define the membership
function
Inference Mechanism
-derive fuzzy control rules-
based
-define fuzzy inference engine
Defuzzification
-choose defuzzification
method
Fuzzy Controller
Parameters Tuning
Operation
-mapping of
-Fuzzification
membership function
-Fuzzy Inference
-fuzzy inference rules
-Defuzzification
No
Performance
OK ?
Yes
End
FUZZY LOGIC CONTROL
SYSTEM BLOCK DIAGRAM
DYNAMIC EQUATIONS OF
THE INVERTED PENDULUM
J o + m 1 L o 2 + 1 2 sin 2
1 m 1 1 L o cos 1 o
+
m 1 1 L 0 cos 1 J 1 + m 1 1 2 1
C o + 12 m 1 1 2 sin 2 1 1 - m 1 1 L o sin 1 + 1
2
m 1 1 2 sin 2 1 1 o
1 +
- 2 m 1 1 sin 2 1o 1
2
C1
0
- m 1 1 g 1 sin 1 0
o
0
1 0 0
0
- dg *
o
o
0 de - bg - bi df - bd
o
o
1 =
0
bc - ad bc - ad bc - ad o bc - ad
+
1 1 0
u~ y 0 0 1 0
0 0
1
1 ag - ce ai ah - cf 1 cg *
0 bc - ad bc - ad bc - ad
bc - ad
1
REAL TIME FUZZY LOGIC
CONTROLLER DESCRIPTION
NM NS ZE PS PM NM NS ZE PS PM
1 1
0 err 0 derr
-5.4o -2.7o 0 2.7o 5.4o -5.4o -2.7o 0 2.7o 5.4o
err \ derr NM NS ZE PS PM
NM -698 -539 -425 -250 -155
NS -74 -94 -72 -233 -477 Second Fuzzy
ZE 47 43 12 -41 -52 Controller
PS 200 192 254 517 675
PM 226 243 259 396 699
300
Pendulum
500
Position
300
100
100
-100 -100
-300
-300
-500
-500
1
92
183
274
365
456
547
638
729
820
911
1002
94
187
280
373
466
559
652
745
838
931
500 500
Pendulum
300
A rm V elocity
300
Velocity
100
100
-100
-300 -100
-500 -300
-500
105
209
313
417
521
625
729
833
937
1
1 103 205 307 409 511 613 715 817 919 1021
Number of Sample Number of Sample
EXPERIMENTAL RESULT AFTER DISTURBANCE IS
ADDED
Pendululm Position Vs Number Arm Position Vs Number of
of Sample Sample
500
Pendulum
500
Position
Arm Position
300 300
100 100
-100 -100
-300 -300
1
101
201
301
401
501
601
701
801
901
1001
-500
1 134 267 400 533 666 799 932
Number of Sample Number of Sample
Arm Velocity
Pendulum
500
Velocity
500
300 300
100 100
-100 -100
-300 -300
-500 -500
1
109
217
325
433
541
649
757
865
973
103
205
307
409
511
613
715
817
919
1021
Number of Sample Number of Sample
500 500
A rm P osition
Position
300 300
100
-100 100
-300 -100
-500 -300
115
229
343
457
571
685
799
913
1
-500
1 131 261 391 521 651 781 911
Number of Sample
Number of Sample
ANALYSIS OF RESULTS
Water-Bath Temperature
Control System
31
32
Schematic diagram of the Water-
bath temperature control system
Control Signal
Sensor
Stirrer
AC ~
Coil
(Heater)
33
Disturbance
Reference + Output
Fuzzy Logic Water Bath
(Desired Temp.) Temp.
Controller
-
Sensor
34
Some Facts on the System
Math-model of system:
36
Configuration of the fuzzy controller
Error
e
Change in
FLC Control Signal
u
Derivative
of Error
e
37
For simplicity the 3 fuzzy variables can be broken into 3 fuzzy subsets
and the membership functions can be overlapped as follows:
e, e, and u N Z P
e
Linguistic Term Label
Negative N e
Zero Z N Z P
Positive P e
e
u
N Z P
The universe for the 3 variables can be
set accordingly through observation.
38
Scaling the universes of discourse
We need to quantify each universe of discourse correctly within
the range of the respective variables.
Scaling factors can be used to scale the universes of discourse.
They act like gain control.
Ge
Error
e Change in
Gu Control Signal
FLC
Derivative u
of Error
e Ge
39
40
Determining the rules
Error, e
N Z P
Derivative N
of Error, e
Z
41
42
Defuzzification
c
Defuzzification is required to produce the actual
signal that the plant can use. Z
Thus, the fuzzy output value need to be
defuzzified.
The output of the fuzzy controller is usually the
change in the control signal.
The actual control signal to the plant is thus:
Max defuzzification
Example 3.2
44
P, Z; P Z, P; P
e N Z P N Z P
e
0.75
0.8
e e
e N Z P N P
e Z
0.3 0.4
e
e
u N Z P
u N Z P
0.3
0.4
u
u at P =0.3 u at P =0.4 u
45
46
P, N; Z N, P; Z
N Z P e
e N Z P
1.0
0.5
e e
e N Z P N P
e Z
0.6
0.4
e e
u N Z P
u N Z P
0.5
0.4
u u
u at Z =0.5 u at Z =0.4
47
consequent Z at Z =0.5. u
u at Z =0.5
The centroid defuzzification
algorithm will calculate the crisp
value of u from the following u N Z P
equation: (k ).k
u
u
u
(k )
u
where k is the sample number across Crisp value of u
the universe for u.
48
Exercise Based on Simulations
49
(continued)
Supposing the controller is designed using the
max-min inference algorithm, show in the graph
the firing angles of all the consequents based on
the rules fired. Plot the resultant waveform at this
sampling interval on a graph paper.
50
Membership Function Table of e, e and u
of Water Bath Fuzzy Controller
e N Z P
1.0
0.5
0.5
0.5
-5 -2.5 0 +2.5 +5 u
51
52
Answer the following questions:
(a). Using engineering common sense, write down the most
appropriate fuzzy control rules in matrix form for this system.
(4 marks)
(b). Based on your rules in 1(a) above, write down all the rules that
would fire and also compute the consequent firing angle for the
following cases:
(i). E= 30.0 and DE= 40.0
(ii). E= 10.0 and DE= 20.0
(iii). E= -5.0 and DE= -10.0
(c). For the case of (b) (iii), sketch the resultant waveform of
the consequents.
(3 marks)
(d). For the case of (b) (iii) also and using Table 1, calculate
the actual output of the fuzzy controller using a discrete
sample of 1 for the universe.
(4 marks)
(e). Try part (c) and (d) again using the max-dot (alg.
product) inference procedure with a discrete sample of
2.
54
Table 1
Antecedents
E,DE
N Z P
1.0
0.8
0.6
0.4
0.2
0
-10 -8 -6 -4 -2 0 2 4 6 8 10 E, DE
Consequent
DU Z
N P
1.0
0.8
0.6
0.4
0.2
0
-10 -8 -6 -4 -2 0 2 4 6 8 10 DU
55
Case Study #3
56
Fuzzy Traffic Lights Control
Simulation Objectives
Understanding fuzzy logic application for traffic
lights control
Understanding the components of a fuzzy logic
controller
Able to set up rules for controlling traffic
conditions
Able to compare and understand the advantages
of fuzzy logic controller over fixed-time
controller of traffic lights
Control Objectives
To control traffic flow optimally at an isolated
junction
To minimise waiting time
To reduce fuel costs
To reduce waste of man-hours
57
58
Fuzzy Traffic Lights Control
Control signal
Sensor Readings
Fuzzy Logic Relays/ Traffic
Traffic Flow Controller Switches Lights
Traffic Condition
(Arrival) Lights
R
FLC Switches A
G
(Queue)
Traffic Condition
59
Traffic
Lights
Sensors
State
Machine
Traffic
Counter
Light
- Queue -
Arrival
FLC Interface
60
Fuzzy Traffic Lights Control
61
LinguisticTerm Label
Longer L
Medium M
Short S
Zero Z
62
Membership Functions
Arrival ARRIVAL
For simplicity, triangular F MY TMY
AN
membership functions are
used for each variable.
In this case, the cardinals for No. of Cars
the universes of discourse are Queue QUEUE
integers.
VS S M L
The membership functions are
overlapped by about 25% to
allow smooth transition from 1 No. of Cars
fuzzy subset to another.
E.Time EXTENSION TIME (Green)
Z S M L
63
S
Fill up the rule base matrix as shown: Queue
In this application the centroid defuzzification is used. M
64
Simulation procedure for Traffic Lights Simulation
65
66
Example of Previous PSM Project
67
68
69
70
Intelligent Elevator
Control using Fuzzy
Logic
Research Objectives
72
Hall Call
Group Controller States of Each Car
Car Position
Command Car Calls
Direction etc.
Car Call
Actuator Actuator Actuator
Evaluation Criteria of
System Performance
Examples of Rules in
Fuzzy Elevator System
IF (a new hall call in the high-zone is registered)
AND (the number of cars which are ascending to the
high-zone is large)
AND (the number of free cars is small)
THEN (select cars except free cars in the group as
candidates)
AND (select one assigned car from among the
candidates by using evaluation function.)
76
Destination Oriented Elevator
n n
w i u i c iSi w ju jc jS j
i1 j1
y
n n
w i u iSi w ju jS j
i1 j1
where
0 0
Waiting Time Riding Time
0 0
Traveling Distance
No. of Passengers
Elevator System Inputs
Far Middle Close Middle Far
1
0
New Hall Call Area-weight (HC)
Far Middle Close Middle Far
1
0
New Hall Dest. Area-weight (HD)
Elevator System Output
Small Medium Big
1
0
0 0.5 1 Priority
Short Big
IF Waiting Time is Medium THEN Priority is Medium
Long Small
Short Big
IF Riding Time is Medium THEN Priority is Medium
Long Small
Small Big
IF Loading is Medium THEN Priority is Medium
Big Small
Fuzzy Inference Rules
Close Big
IF Area_weight Middle THEN Priority is Medium
(HC) is Far Small
Area_Weight Area_Weight(
(Hall Call) Hall Dest.)
Simulation
Newspaper
Report
6th February 2000
90
8th March 2000
91
New Transformer
Blast
New Sunday Times
23rd July 2000
93
Project Overview
Phase 1 Development
of a Database ADAPT
Software
Phase 2
Automatic
Interpretation AI
using Fuzzy Techniques
Logic
Benefits - Immediate impacts
Use of Advanced Technology and local expertise
within Malaysia for solving complex industrial
problems
Increased efficiency and reduced operational
costs for power transformers maintenance
Early detection of abnormalities helps prevent
unscheduled outages, equipment damage, and
safety hazards.
DGA
Key Gas Method
Roger Ratio Method
Purpose :
To identify fault type base on the
dissolve gases in oil
Gases are produced by degradation of the oil as a result of elevated
temperatures which can be cause by :
lighting
severe overloading
switching transients
chemical decomposition of oil or insulation
overheated areas of the windings
bad connections which have a high contact resistance
Oil sample
from
Transformer
Diagnostic Method
Test Result
DGA
20 0 199
18 0
16 0
Test Value
14 0 150
12 0 123
10 0
95
80 82
60 69 65
40 45
M
M eth
e th aa n
n ee S
Statis
tatis ti
ticc ss
0 1 /0 1 /1 9 97 0 6/0 6/1 9 9 7 0 1/0 9/ 1 9 97 2 5/ 1 2/1 9 97 0 1/0 1/1 9 9 8 0 1 /0 6/ 1 9 98 11 /0 9/1 9 98 11 /1 1/1 9 98
S a m p li n g D a te
450
436
400
350
300
Test Value
250
200
150
100
50 54
37 33 34 41
0 22 21
E
E thy
thy le
le n
n ee S
S ta
ta ti
tistic
stic ss
01 /01 /199 7 06 /06 /19 97 01 /09 /19 97 25 /12 /19 97 0 1/0 1/1 998 0 1/0 6/1 998 1 1/0 9/1 998 1 1/1 1/1 998
Sa m p l in g D a te
70 0
651
60 0
50 0 500
Test Value
4 65
40 0
30 0 3 23 322
0 12 14
0 1/01 /199 7 06/ 06/1 997 0 1/09 /199 7 25/1 2/19 97 0 1/01 /199 8 01/0 6/1 998 1 1/09 /199 8 11/1 1/1 998
S a m p l in g D a t e
Automatic
Interpretatio
n using
Fuzzy Logic
Transformer Condition
Good
Normal FUZZY
INTERPRETATION
Bad
Reports
&
Graphs
3.5 Several issues in the application
of fuzzy logic for real-time control
Knowledge required:
Scope of work/project
Whether viable to use fuzzy logic control
Variables that can be measured
Type of actuators
Sensors to be used
PC operating environment
High/Low level programming languages
Hardware knowledge of microchips
Development systems of microchips
Knowledge regarding the process
Digital control theory
Electronics/ Digital electronics
Fuzzy logic control theory
Others
105
Simulation Exercises
106
Application using a personal computer
Interface Card
(Adclone, NS, etc.)
Sensor
Personal
Computer
Process
Actuator High-level
Languages
(C++, Pascal,
Visual Basic, etc.)
107
Fuzzy control
Personal development
Computer system or LLL
(Download)
Sensor Micro-
A/D
Process Controller
(DSP, Fuzzy Chip,
D/A
MC68HC11, etc.)
Actuator
108
3.5.1 Applications of Fuzzy Micro-Controller (AL220)
Objective:
To use a fuzzy logic micro-controller AL220 in
practical applications.
Analog Micro-Controller
Programmable Analog IC (PAIC)
On-chip A/D and D/A converters
Four 8 bits Analog Inputs and Outputs
EEPROM / ROM versions
Minimum sampling rate up to 0.1 msec
Program directly from INSiGHT IIe Development System
Servo Motor Control Using AL220 micro-
controller
Coupling Shaft
Flywheel Motor
Generator Drive
Feedback
Control
y (s) u (s) Signal
Controller
Servo System
Output
Setpoint e Fuzzy Logic 0.96
+
_ Controller 0.8s+1
de
Fuzzy Inputs Variable
NL NS ZR PS PL
1
0
0 Error
NL NS ZR PS PL
1
0
0 Delta Error
Error
NL NS ZR PS PL
NL -5 -3 -2 -1 0
Delta NS -3 -2 -1 0 +1
Error ZR -2 -1 0 +1 +2
PS -1 0 +1 +2 +3
PL 0 +1 +2 +3 +5
5000
4000
3000
Volt (mV)
2000
1000
0
100 200 300 400 500 600 700
Number of Sampling (100 msec)
5000
4000
Volt (mV)
3000
2000
1000
0
100 200 300 400 500 600 700
Number of Sampling (100 msec)
2500
2000
1500
1000
500
0
100 200 300 400 500 600 700 800
Number of Sampling (100 msec)
3.6 Industrial/Commercial Examples
of Fuzzy Logic Systems
117
Commercial Example #1
118
Example of a fuzzy
logic washing machine
Samsung SW-5AI(S)
119
120
Principle of the fuzzy washing machine
The fuzzy logic washing machine
operates based on the principle of
laundering :
When dirt has been removed, then
washing is stopped
121
122
The wash sensor consists of an infrared light-emitting diode
(LED) and a photo-transistor.
123
124
This is because muddy dirt is removed easily by the mechanical
force of the water flow produced by the rotation of the pulsator,
while oily dirt is not adequately removed until the detergent effect
takes place.
When most of the dirt in the clothes has been removed, the
transmittance of the wash water approaches a state of saturation.
The transmittance at saturation becomes lower when the clothes
are dirtier, and the transmittance becomes higher when the
clothes are less dirty.
125
126
Using fuzzy inference, linguistic rules can be used to solve the washing
problem and the nonlinear property of the relation is approximated by an
interpolation function of the fuzzy inference
In order to provide the inference 2 inputs are suitable:
saturation time, Ts
light transmittance, Vs
and 1 output
Washing time, Wt
Saturation time is chosen because it is related to the quality of the dirt and
light transmittance is chosen because it is related to the amount of dirt and
example of the membership functions are given as follows:
127
When most of dirt has been washed away the washing machine
approaches a state of saturation:
Lower transmittance (heavy dirt)
Higher transmittance (light dirt)
Fuzzy Vs
rule base Low Middle High
Short T1 T2 T3
Ts
Long T4 T5 T6
128
Examples of rules (2 rules are given here). A table of rules can be set
as shown.
If transmittance (Vs) is Low and Saturation time (Ts) is Long
Then Wash time (Wt) is Longer
129
130
The Fuzzy Rice Cooker
131
General Overview
A Rice Cooker is an everyday used electrical
appliance which is an excellent example of a
temperature control system.
132
Historical Overview
The rice cooker is a simple device began with a trivial
on-off switch in the 1960s, then evolved to power
control, electric timer, induction heating, and now a
neuro-fuzzy controller in which the heat application
is finely controlled, with the temperature at each
stage of the cooking process and period of time at
each stage controlled by information such as the
preferred rice stiffness, amount of cooked rice
(deduced from the temperature rise and the power
consumption).
133
134
Fuzzy Rice Cookers in the Market
135
136
Components of a Fuzzy Rice
Cooker
137
138
Input/Output Variables
139
140
Fuzzification
(Membership Functions of the I/O Variables)
0.8
0.6 LOW
MEDIUM
0.4 HIGH
0.2
Amount of Rice
in Container
141
0.8
0.6 LOW
MEDIUM
0.4 HIGH
0.2
0
Temperature in
Container
Rate of Heating (Change in the control signal) (Output)
LOW MEDIUM HIGH
1
0.8
0.6 LOW
MEDIUM
0.4 HIGH
0.2
Rate of
0
Heating 142
Design of Fuzzy Control Rules
143
L M H
Temperature
of L M H H
Rice
Container
M M M M
H L L M
144
When is the Rice Cooked?
145
148
Conclusions
Although a fuzzy rice cooker is more
expensive then conventional models, the
features and benefits provided by it will
still worth the price.
149
References
Fuzzy Logic Control - Module 2 & 3 (Prof.
Marzuki Bin Khalid)
http://www.sanyo.com/
http://www.howstuffworks.com/
http://www.amazon.com/
http://www.millionbuy.com/
http://www.appliancesource.com/
150
FUZZY VACUUM CLEANERS
151
INTRODUCTION
Many products designed to make life and work easier emerged from the
(American) Industrial Revolution. Vacuum cleaner is one of the product.
Vacuum cleaner is a mechanical device using a draft of air to re move dust, loose
dirt, or other particulate matter from dry surfaces.
A vacuum cleaner that is able to do the cleaning based on different characteristics
of floor surfaces will be very desired for todays market.
This new requirement actually represents the first and most visible group of the
next generation of consumer products based on a new control-fuzzy logic.
Fuzzy logic is a relatively new technology that enables machines and products to
operate more efficiently and independently by processing information similar to
the way people do.
For many years, fuzzy logic has been an attractive idea to designers of industrial,
consumer and automotive products.
Fuzzy logic vacuum cleaner makes both easier holding and efficient cleaning
possible.
152
THE EARLY VACUUM CLEANER
It was made in France at the beginning of the 20th century.
The trade mark is ATOM, produced by S. Mestitz & Fils, Raudnitz
Bokime.
The first vacuum cleaner had to be operated manually. Two
persons were needed for this: one to operate the bellows and the
other to move the mouthpiece over the floor. The dust was blown
into the air.
It consists of a round red metal cask, a sucker with a bar
attached to a kind of crankshaft, and a driving wheel. It had very
few accessories! THE FIRST
VACUUM CLEANER
This principle was the basis of a machine with a pair of bellows
that was operated by hand.
Vacuum cleaners became successful after the application of
small electric motors, which were used to drive a fan.
153
GENERAL FUNCTION
OF
A VACUUM CLEANER
Typical connection
scheme with ST52
Copyright 2001
STMicroelectronics
155
157
158
DUST SENSOR : CONTROL CIRCUIT
Control circuit
159
The dust sensor is inside the pipe handle on which the controls are
located. A photo transistor is mounted opposite a light emitting diode. When
dust passes through, some infrared rays are cut off causing the amount that
reach the photo transistor to decrease. The varying component is extracted and
amplified, then a waveform is formed and converted to pulses. The amount of
dust is judged by counting these pulses. If the surface of the dust sensor
becomes dirty, the transmissivity of infrared rays will decrease, but by detecting
the differentiated change the measurement can be made insensitive to the dust.
In addition, the sensor has the configuration described below so that no
problems arise in practice.
The air path where the dust sensor is installed is partially restricted to change
the air flow so that less dust will adhere to the sensor
The light emitting diode and photo transistor are encased in hard transparent
acryl holders to protect them from scratching
The dust sensor is installed near an opening so that it can be cleaned
160
DUST SENSOR : OPERATION
The time variation of dust amount that can be detected by this dust sensor
is shown in diagram below.
As cleaning proceeds the amount of dust decreases, but whereas this decrease is
fast in the case of a tatami mat or wooden floor, it is slow in the case of a wool
carpet. This is because it is easy for dust to be picked up off a tatami mat or
wooden floor but hard for it to be picked up off of a wool carpet. Thus, by
measuring the time variation of the rate at which dust is picked up., the floor
surface material can be judged.
161
Fuzzy Inference
162
FUZZY INFERENCE : RULE BASE
Inference is performed with 15 rules such as the following.
If there is a great deal of dust and the floor surface has the properties of
a wool carpet, make the suction power very strong.
The fuzzy rule table is shown in the figure on the right. P1 to P15 in the figure
are levels of suction power.
163
Membership functions
164
FUZZY INFERENCE :INPUT OUTPUT
GRAPH
o Simplified fuzzy inference, with real
number type operation parts is used in
order to simplify the inference
operations, reduce the amount of
memory used and simplify the parameter
tuning
o Rule creation and parameter tuning are
done by cut and try based on data
from monitoring in ordinary households
and the developers cleaning know-how
o A diagram of input / output
characteristics, showing the results of
fuzzy inference after tuning is shown
beside
165
CHARACTERISTICS OF A FUZZY
VACUUM CLEANER
166
FUZZY VACUUM CLEANER DIFFER
FROM CONVENTIONAL TECHIQUE
167
energy saving
169
REFERENCES
1) http://e-w.motorola.com/brdata/PDFDB/docs/AN1843.pdf
2) http://www.aptronix.com/fide/whatfuzzy.htm
3) http://www.aptronix.com/fide/howfuzzy.htm
4) http://staff.ncst.ernet.in/~sasi/fuzzy/main.html#method
5) http://www.aptronix.com/fide/howdofuzzy.htm#Fide%20helps%20you%20boost%20y
our
170
A FUZZY AIR-CONDITIONER
171
172
Introduction to the Fuzzy Air-
Conditioner System
Air
Fuzzy Air-cond ROOM
2 Inputs 3 Outputs
174
Component Function in the Design
175
Error
Fuzzy Controller
Output Air from
Cooling Valve
the Fuzzy Air-
Defuzzification
Air Supply +
Fuzzification
temperature
Sensors
humidity
176
Fuzzy Logic Control System
HUMIDITY
low
medium
high
The fuzzy system outputs the optimal air circulation level by adjusting the
cooling valve, heating valve and humidifying valve in the air conditioner. The
combined results are sent to the fan to be propagated to the environment.The
amount of the valves openings depends on these output variables:
zero
low
medium
high
177
Membership Functions
TEMPERATURE
t
cold cool warm hot
Area weather
condition
h HUMIDITY
low med high
Area weather
condition
178
Rule Base System
179
IF temperature is cold AND humidity is med THEN CV is zero AND HV is high AND UV is med
IF temperature is cool AND humidity is med THEN CV is low AND HV is med AND UV is med
IF temperature is warm AND humidity is med THEN CV is med AND HV is low AND UV is med
IF temperature is hot AND humidity is med THEN CV is high AND HV is zero AND UV is med
IF temperature is cold AND humidity is low THEN CV is zero AND HV is high AND UV is high
IF temperature is cool AND humidity is low THEN CV is low AND HV is med AND UV is high
IF temperature is warm AND humidity is low THEN CV is med AND HV is low AND UV is high
IF temperature is hot AND humidity is low THEN CV is high AND HV is zero AND UV is high
180
Rule Base System
temperature
cold cool warm hot
low zero low med high
humidity medium zero low med high
high zero low med high
temperature temperature
cold cool warm hot cold cool warm hot
low high med low zero low low low low low
humidity medium high medium med
med low zero med med med
high high med low zero high high high high high
181
OPERATION
182
RULES
INTERFERENCE
184
COMPOSITIONS
185
DEFUZZIFICATION
186
DIFFERENCES
CONVENTIONAL
CONVENTIAL METHOD FUZZY FUZZY
METHODLOGIC
A less flexible control method An alternative design methodology which is
simpler & faster
non-linearity Reduces the design development cycle
Does not result in the satisfactory temperature A better alternative solution to non-linear
control control
Improves control performances
Simplifies implementation
187
ADVANTAGES
HANDY TOOL
CUT TIME
188
Temperature control in an automobile passenger environment is more
complex than that of a static room in a building.
The strength of sunshine radiation and the automobile speed must also
be factored in.
Commercial Example #2
190
Range of
the Canon
family of
cameras
191
192
Example of 5 rules for the
Canon Autofocus camera
193
194
Conclusion
The performance of this method has been evaluated by using 288 pictures
taken by 8 persons.
The percentage of correctly focused pictures, with and without fuzzy rules are
given in the Table below.
195
Commercial Example #3
Minolta Camera Co. Ltd., Japan uses fuzzy logic to combine the 3
mechanisms of focusing, zooming and deciding exposure
automatically in its cameras since the early 1990s.
The figure in the next slide shows the mechanism of a typical Minolta
fuzzy camera with the above facilities.
196
Auto-focus, auto-exposure and auto-zooming
mechanism of a Minolta Camera, Japan.
FS= Fuzzy
logic module
197
Auto-Focus Module
The fuzzy auto-focusing mode has 6 distance distributions to do the
fuzzy reasoning to locate the main subject, which are obtained by pre-
processing the outputs of 4 auto-focus sensors, lens information and
1 sensor that detects the camera position.
198
Auto-Exposure Module
To implement auto-exposure, fuzzy reasoning is used to determine
exposure value and the best combination of shutter speed and
aperture, depending on the type of scene being photographed.
The first fuzzy module uses the difference in brightness between the
main subject and the background to give an output which is a
measure of the amount of back-lighting present.
199
The third fuzzy module uses the outputs of these two fuzzy modules;
weighs 3 measures of exposure i.e. at average, at center and at the
main subject, and then it outputs the final exposure value.
201
Antecedents
KEY
L= Large, S = small, B=Big Consequents
202
Blood Pressure Meter
203
working.
Abnormal blood pressure can indicate a number of
illnesses such as:
Cardiovascular problems
Hypertensions
Diabetes
Liver disorder
Blood pressure will be higher than usual when:
Excited or tense
Taking a bath
Exercising
Cold
Immediately after eating
Smoking tobacco, drinking coffee
Blood pressure will be lower than usual when
After drinking alcohol
After taking a bath
205
Pressure
Pressure Time
Fuzzy Inference
208
Industrial Example #4
209
Traceability
Comfort
Safety
Running Time Margin
Stopping Accuracy
Membership functions
210
211
Each component has its own fuzzy inference and rule base.
Rules are developed based on the following procedures:
Step 1 : Provide a description of the typical operating
methods used by the operators
Step 2 : Define the performance indices of the system
Step 3 : Define a model for predicting
Step 4 : Convert expert human operating methods into control rules
212
Example of the fuzzy rules
213
214
Comparison of the Stop Gap Measure of
the fuzzy controller and the PID controller
215
217
218
3.7 Summary of Module 3
219