DC Motor Speed Control Using Fuzzy Logic Based On LabVIEW
DC Motor Speed Control Using Fuzzy Logic Based On LabVIEW
Abstract: This paper presents implement in speed control of a separately excited DC motor using fuzzy logic control
(FLC) based on LabVIEW (Laboratory Virtual Instrument Engineering Workbench) program. LabVIEW, is a graphical
programming environment suited for high-level or system-level design. Therefore, the principle that are data flow
model, different from text-base programming and a sequential model. The user-friendly interface and toolbox design are
shown the high level of suitableness and stability of LabVIEW and fuzzy logic on speed control of DC motor. The
fuzzy logic controller designed to applies the required control voltage that sent to dc motor based on fuzzy rule base
of motor speed error ( e ) and change of speed error ( ce ). The results show the control as a FLC that do the comparison
with PI and PID Controller.
Keywords: LabVIEW; DC Motor; Fuzzy Logic; Speed Control.
1. INTRODUCTION 2. DESIGN
Classic Control has proven for a long time to be good 2.1 Motor Model
enough to handle control tasks on system control, The resistance of the field winding and its inductance
however his implementation relies on an exact of the motor used in this study are represented by Rf
mathematical model of the plan to be controller and not
simple mathematical operations. and La respectively in dynamic model. Armature
The fuzzy logic, unlike conventional logic system, is reactions effects are ignored in the description of the
able to model inaccurate or imprecise models. The motor. This negligence is justifiable to minimize the
fuzzy logic approach offers a simpler, quicker and more effects of armature reaction since the motor used has
reliable solution that is clear advantages over either interpoles or compensating winding. The fixed
conventional techniques. Fuzzy logic may be viewed as
form of set theory [1]. voltage Vf is applied to the field and the field current
At the present time, LabVIEW simplifies the settles down to a constant value.
scientific computation, process control, research, A linear model of a simple DC motor consists of a
industrial application and measurement applications. mechanical equation and electrical equation as
Because LabVIEW has the flexibility of a programming determined in the following equations (1) (2).
-
T (loac,
damping
3618
~ . r ,_ I
B. Defining membership functions and rules:
System speed comes to reference value by means of
the defined rules. For example, first rule on Table 1
determines, 'if (e) is NL and (ce) is NL than (ca)
is PL'. According to this rule, if error value is negative
large and change of error value is negative large than
output, change of alpha will be positive large.
To be calculated FLC output value, the inputs and
outputs must be converted from 'crisp' value into
linguistic form. Fuzzy membership functions are used to
perform this conversion. In this paper, all membership
functions are defined between -1 and 1 interval by
means of input scaling factors K1E and K2CE, and
output scaling factor K3c. Thus, since simple Fig. 5 Fuzzy Set Editor of LabVIEW.
numbers are now processed in controller after scaling,
fuzzy computation is performed in a shorter time. 4. EXPERIMENTAL RESULT
The system descriptions of the proposed speed
Table 1 The Rule database. controlled system are show in Fig. 6.
NL NM NS Z PS PM PL _%WW
NL PL PL PL PL NM Z Z
NM PL PL PL PM PS Z Z DAQ Card
NS PL PM PS PS PS Z Z PCI-6024E
Z PL PM PS Z NS NM NL
PS Z Z NM NS NS NM NL PC-Base Fuzzy Logic Controller
Using LabVIEW
PM Z Z NS NM NL NL NL
PL Z Z NM NL NL NL NL
3. SOFTWARE DESIGN
The operation of a FLC is based on heuristic Fig. 6 Demonstration plant of dc motor.
knowledge and linguistic description to perform a task.
The performance of the FLC is then improved by The experimental results of the proposed speed
adjusting the rules and membership function. The controlled system as a FLC that do the comparison with
designed FLC consists of three components. PI and PID Controller. In order to compare the satisfied
results thus obtained. It can observe that overshoot of
* Fuzzification of input values the propose speed controlled system is not the
* Fuzzy inference overshoot.
* Defuzzification of fuzzy output In this study, the speed response of a DC motor was
operated for a required reference speed under loaded
Fuzzification block transforms crisp input signal to and unloaded operating conditions are shown in Figs. 7
linguistic variable, fuzzy inference handles the rules to to 11.
infer the output contributed from each rule and
defuzzification block transforms linguistic output to
crisp output signal.
FLC designed in LabVIEW is based on mamdani
fuzzy type. The details of the designed controller are,
Two Input: Error and Change of Error
One Output: Change of Alfa (Duty cycle)
And Method: minimum Fig. 7 Sub VI for Measurement Torque and Spe.r
Or Method: maximum
Implication Method: minimum
Aggregation Method: maximum
Defuzzification Method: Center of Gravity
In this FLC, the triangle membership functions are used Fig 7 Su VI fo Mau Emn ToqeadSed
to subdivide the input and output universes and to
define the degree of membership.
3619
Fig. 8 Speed response with P Controller. Fig. 11 Speed response with Fuzzy Logic Controller.
5. CONCLUSIONS
The results of experiment on the real plant
demonstrate that the proposed fuzzy logic controller is
able to sensitiveness to variation of the reference speed
attention. The results of the control are as follows.
1. The speed control of dc motor showed the proposed
controller gains optimal performance. 2. The proposed
controller achieved to overcome the disadvantage of the
use conventional control sensitiveness to inertia
variation and sensitiveness to variation of the speed with
drive system of dc motor.
ACKNOWLEDGMENT
REFERENCES
[1] J. Yan, M. Ryan and J. Power, Using fuzzy logic
toward intelligent system, Prentice Hall, New York,
1994.
[2] [Online]. Available: www.ni.com/labview
[3] E. Nesimi, LabVIEW of electric circuits,
machines, drives, and laboratories, Prentice Hall,
New Jersey, 2002.
[4] J.Klir, George, Yuan, Bo. : "Fuzzy Sets and Fuzzy
Logic Theory and Applications"
[5] L. A. Zadeh, "Fuzzy Sets" informat Control, vol.8,
pp 338-353, 1965.
Fig. 10 Speed response with PID Controller. [6] L. A. Zadeh, "Outline of a new approach to the
analysis complex systems and decision processes"
IEEE Trans. Syst. Man Cybem, vol.SMC-3, PP.
28-44, 1973.
[7] Y. Tipsuwan, Y. Chow, "Fuzzy Logic
Microcontroller Implementation for DC Motor
Speed Control", IEEE, 1999.
3620