Fuzzy Logic
Fuzzy Logic
Fuzzy Logic
\
|
a
b
R
E V
.. (3)
This is known as voltage equation of motor.
From the equations (2) and (3), back e.m.f depends among other factors, upon the
armature speed. If the speed is high,
b
E is large hence the armature current
a
I , as seen from the
equation (3) is small. If the speed is less, then
b
E is less hence more current flows which
develops motor torque. So, we find that
b
E acts as a governor.
In order to express the back e.m.f. equation in terms of voltage constant
v
K , equation
(1) is modified by Multiplying both the numerator and denominator by angular acceleration e
we get,
A
ZNP
E
b
60
o
= |
.
|
\
|
e
e
Substituting e = N t 2
18
DEPT OF EEE | NMIT
A
ZNP
E
b
60
o
=
|
.
|
\
|
N
N
t
t
2
2
=
|
.
|
\
|
|
.
|
\
|
60
2
2
t
t
o
A
ZP
In the above equation, |
.
|
\
|
A
ZP
t
o
2
is a constant called as voltage constant
v
K in volts/rad/sec.
b
E =
v
K
|
.
|
\
|
60
2t
N
where N is the armature speed in r.p.m
i.e, |
.
|
\
|
=
30
t setspeed K
E
v
b
As the supply voltage is normally constant, the back emf is almost equal to the applied
voltage during the no-load condition.
The back e.m.f under no-load condition is given by,
0 b
E = V -
a
I
a
R
Where,
0 b
E = no-load back e.m.f in volts.
V = terminal voltage in volts.
a
I = armature current in amperes.
19
DEPT OF EEE | NMIT
a
R = armature resistance in ohms.
The speed under no-load condition is related to back e.m.f as,
0
N E
bo
.. (4)
When load is applied on the motor, the armature current will increase due to which the
back emf will decrease thereby decreasing the speedof the motor normally to a value which is
not equal to the target speed.
The corresponding speed under load conditions is deduced below
1 1
N E
b
. (5)
(5)/ (4) gives
|
|
.
|
\
|
=
|
|
.
|
\
|
O bo
b
N
N
E
E
1 1
O
bo
b
N
E
E
N
|
|
.
|
\
|
=
1
1
(6)
To attain target speed we have to make the back emf sufficiently enough. The fuzzy or
crisp outputs will produce necessary values as outputs so that the back emf which is sufficiently
enough to attain target speed is obtained.
( ) t crispoutpu E E
b b
+ =
1 2
By using the back emf and speed relation to deduce relation for the target speed,
2 2
N E
b
20
DEPT OF EEE | NMIT
Where
2
N is the target speed
O bo
N E
|
|
.
|
\
|
=
|
|
.
|
\
|
bo
b
E
E
N
N
2
0
2
Therefore,
O
b
b
N
E
E
N
|
|
.
|
\
|
=
0
2
2
Hence as seen from the above equation, the target speed of the motor
2
N is obtained by
using the fuzzy or crisp outputs.
4. DESIGN OF FUZZY LOGIC
4.1 INTRODUCTION:
Design is a process of creating something new by implementing new concepts and new
arrangements. The essential part of fuzzy system design is the application of fuzzy sets and fuzzy
logic to a solution, provided in the conventional non fuzzy form.
It is generally valid that there are three sources of solutions for all kinds of problems.
These three sources also indicate three domains of knowledge representation: Natural language,
numerical data and closed form of mathematical formula.
The design challenge is to translate the knowledge given in one of these forms into fuzzy
IF-THEN rules.
21
DEPT OF EEE | NMIT
Motor
FLC
One step delay
U A
A fuzzy logic controller uses principle of fuzzy logic as a design methodology wherein a
program is written to measure the input and control the output, which can be applied in
developing linear and non-linear system for embedded control.
4.2 BLOCK DIAGRAM FOR FLC:-
Fig.4
For the system described, the output of the system is speed of the motor. Hence the
system is to be controlled in closed loop. Therefore the output speed (N) is fed as the feedback
signal for the closed loop.
FUZZY SYSTEMS:
A fuzzy inference system (or fuzzy system) basically consists of a formulation of the
mapping from a given input set to an output set using FL. This mapping process serves as basis
for which the inference or conclusion can be made. A fuzzy inference process consists of the
following five steps.
Step.1: fuzzification of input variables.
Step.2: application of fuzzy operator (AND, OR, NOT) in the IF (antecedent) part of the rule.
22
DEPT OF EEE | NMIT
Step.3: implication from the antecedent to the consequent (THEN part of the rule).
Step.4: aggregation of the consequence across the rules.
Step.5: Deffuzification.
A fuzzy system is defined as a system (mechanical, electrical) with operating principles
based on fuzzy information processing and decision-making. Designing a fuzzy system refers to
developing mechanism for fuzzy information processing and decision making within a digital
platform and soft computing environment.
4.3 IMPLEMENTATION OF FLC:-
fig.5
FUZZIFICATION:-
Fuzzification is the process of transformation of crisp control variable to corresponding
fuzzy variables.
In this project, we have selected speed (N) as the controller input variable.
23
DEPT OF EEE | NMIT
This input is used for fuzzification. In this step, fuzzifier takes the speed input and determines the
degree to which they belong (i.e. the region in the speed triangle) to each of the appropriate
fuzzy sets via membership functions. A set of membership functions is defined for five linguistic
variables negative big (NB), negative medium (NM), zero (Z), positive medium(PM), positive
big( PB).
CONSTRUCTION OF TRIANGULAR MEMBERSHIP FUNCTIONS FOR FIVE
LINGUISTIC VARIABLES:
The number of linguistic variables varies according to the application and usually an odd
number is used.
Following assumptions are made in construction of membership functions for five
linguistic variables to both input variable and control output.
1. symmetrical membership functions
2. 50% overlapping with adjacent functions
However increasing the number of linguistic variables resulting in corresponding
increases in the number of rules and also decrease the fuzzy characteristics. Adopting a
compromise the reasonable number is five. Each linguistic variable has its fuzzy membership
function. The membership function maps the crisp values into fuzzy variables. A set of
membership defined for five linguistic variables NB, NM, Z, PM, PB which stands for negative
big, negative medium, zero, positive medium, positive big respectively as shown in fig.
Assuming symmetrical membership function and 50% overlapping with adjacent function.
PROCEDURAL STEPS FOR CONSTRUCTION OF TRIANGLE ARE AS STATED
BELOW:-
Initially we require mean of the linguistic variables and is calculated by using formula.
Mean, x =
n
x x x x
n
......
3 2 1
+ + +
Where,
1
x ,
n
x x x .......... ,
3 2
are linguistic variables.
n is total number of linguistic variables.
24
DEPT OF EEE | NMIT
x is the mean of linguistic variable.
Thus the mean obtained will be used for the further calculation of deviation which is given by,
Deviation, d
1
=x
1
- x
Where,
1
x is the first data of linguistic variable .similarly deviation is calculated for all the data.
The average deviation is calculated by using formula,
D =
n
dn d d + + + ........ 2 1
D =
n
d
Where, D is the mean deviation
n
d d d ........ ,
2 1
are the deviation of the linguistic variables corresponding to
1
x ,
n
x x x .......... ,
3 2
n is total number of linguistic variables.
Finally standard deviation will be calculated as below :
25
DEPT OF EEE | NMIT
n
d d d
n
2 2
2
2
1
.......+ + +
= o =
n
d
i
2
where o = standard deviation.
The standard deviation obtained from the linguistic data s is used for construction of
triangle where in base of each triangle is 2o which gives more efficiency in fuzzy reasoning.
Thus the maximum and minimum range of speed is calculated using o 2 the formula
given below:-
X
min
= x - 2o
X
max
= x + 2o
i
26
DEPT OF EEE | NMIT
fig.6
Rule evaluation:
In general, fuzzy system maps input fuzzy sets to output fuzzy sets. Fuzzy rules are the
relation between input and output fuzzy sets. They are usually in the form of IF A THEN B.
where A is the rule antecedent and B is rule consequence. Each rule defines a fuzzy path in the
Cartesian product A x B (system space representation). The antecedents of each fuzzy rule
describe a fuzzy input region
For a system of one control variable with five linguistic variables, five rules are defined which
are as follows:
Rule 1: if speed is very low then v_set must be very high
Rule 2: if speed is low then v_set must be high.
Rule 3: if speed is set speed then v_set must be zero
Rule 4: if speed is high then v_set must be low.
Rule 5: if speed is very high then v_set must be very low
When the motor is running at the set speed (say at 1000 r.p.m), the incremental voltage to
be supplied from FLC is zero but if the speed of the motor decreases (i.e low), the incremental
voltage to be supplied is high (i.e. 6.75 V) which speeds up the motor to run at target speed.
27
DEPT OF EEE | NMIT
Fig.7
fig.8
28
DEPT OF EEE | NMIT
Implication method:-
The shaping of the consequent based on the antecedent is termed as implication. The input
for the implication process is a single number given by the antecedent, and the output is a fuzzy
set. Implication is applied for each rule.
In the implication process, two out of five rules will be activated based on the input variable.
Example;- if the speed of the motor is running at 900rpm, then N lies in the region
between SET and NM in the speed triangle hence depending on that speed two out of five rules
activated are as follows.
If speed is low then v_ set must be high.
If speed is set speed then v_ set must be zero.
AGGREGATION :( Rule grade Or Max .or Min. Inference)
The process of obtaining the overall consequent (conclusion) from the individual
consequents contributed by each rule in the rule base is known as aggregation of rules.
Aggregation operator performs either a union (OR) or an intersection (AND) among the
implication results. In aggregation process, two out of five rules which are implicated earlier are
aggregated into one fuzzy set.
An each rule activated above represents an individual output .the individual out puts
obtained are combined in to a single fuzzy set called as output fuzzy set.
DEFUZZIFICATION:
Defuzzification is a process of transforming the fuzzy values to the crisp values. The
input for the defuzzification is a fuzzy set and the output is a single crisp number.
Defuzzification is especially necessary for hardware applications, because conventional systems
operate based on crisp data exchange.
29
DEPT OF EEE | NMIT
In defuzzification process, an action will be activated for aggregated fuzzy set. Both rule
strength from the membership function and the activated action are substituted in the below
formula to get the desired crisp output.
This crisp output obtained is the controlling voltage,which is propotional to the fall in
speed which upon feeding to the armature makes the motor to run at target speed.
5. RESULTS AND DISCUSSIONS
This section discusses the results obtained from the speed control of separately excited
D.C. motor using FLC.
A separately excited motor has separate field and armature windings. The speed output of
the motor is varied by controlling the excitation on the armature winding while maintaining full
D.C. voltage on the field. The ratings of the machine used are given below
Applied voltage=220V
Armature resistance
a
R = 0.3 ohms
No-load current,
a
I =3 amps
Set speed=1000 r.p.m
( )
( )
=
=
=
N
l
N
l
rulegrade
gleton action rulegrade
crisps output
1
1
sin
) (
30
DEPT OF EEE | NMIT
When the rated voltage is applied across the motor armature it has to overcome back emf
and supply the armature ohmic drop.
a
I
a
R
V =
b
E +
a
I
a
R
This is known as voltage equation of a motor.
The armature current is given by,
a
I =
|
|
.
|
\
|
a
b
R
E V
The speed v/s armature current of separately excited D.C. motor with and without using FLC are
as shown in fig.9
fig.9
31
DEPT OF EEE | NMIT
From the characteristics curve (without using FLC) as load on motor increases, armature
current will increase and back emf decreases. As the back emf is directly proportional to speed,
speed will decrease.
From the above graph, it is observed that the speed of the drive drops with increase in load.
Hence this type of speed control is not suitable where a constant speed operation is required.
Speed control using FLC techniques have been adopted to achieve the constant speed of
operation which is shown in the characteristic curve.
For small load, the controller is less accurate to provide the incremental feed back voltage, so
that the speed is slightly greater than the target speed. Speed remains almost constant till the
magnetic saturation. Once the magnetic saturation occurs, armature reaction will increase and
speed will decrease for any value of load current.
CONCLUSION
This paper describes a simple implementation of fuzzy logic to control the speed of
dcmotor. Through the course of this project, FLC design steps and a procedure to improve the
speed characteristics are explained.
The FLC output is based on fuzzy logic, which requires some numerical parameters and
fuzzy rules to operate.
Simulation studies for different load currents with FLC based controller demonstrate its
effectiveness in maintaining almost constant speed within its operating range.
Fuzzy logic implementation techniques are conceived as a better method for sorting and
handling data which has proven to be an excellent choice in the applications of industrial drives
and control systems.
32
DEPT OF EEE | NMIT
BIBLOGRAPHY
1. Electric drives and traction
-N.A.De and P.K.Sen
2. Theory and performance of electrical machines
-J.B.Gupta
3. Just plain folks
-George Bojadziev
4. Encoder
-Steven.D Kaehler.
5. Development and Implementation of fuzzy logic based constant speed
D.C.Drive
-S.Mishra,A.K.Pradhan,P.K.Hota.
6. Applied soft computing,SOCO-2005
- Center for advanced technology,Haryana engineering
College.
7. Theory of electrical machines
-H.Cotton
8. Fuzzy system design and principles
-Riza.C.Berkow,Sheldon.L.Trubatch.
33
DEPT OF EEE | NMIT