Real-Time DC Motor Position Control by Fuzzy Logic and PID Controllers Using Labview
Real-Time DC Motor Position Control by Fuzzy Logic and PID Controllers Using Labview
Using Labview
Abstract – This paper presents the position control of a DC rules are especially based on the knowledge of the system
motor using Fuzzy Logic and PID Control algorithms. Fuzzy behavior and the experience of the control engineer, the
Logic and PID controllers are designed based on labview FLC requires less complex mathematical modeling than
program, and the real - time position control of the DC motor classical controller does. However, to achieve high
was realized by using DAQ device. The experimental results
demonstrate that the responses of DC motor with FLC show a
performance FLCs need an effective turns scheme [1]
satisfactory, well damped control performance.
There are many types of dc servo motors used in the A labview-based servo control system was built in
industries in which rotor inertia is can be very small, and order to run fuzzy and PID algorithms and also to analyze
in this result, motors with very high torque – to – inertia their works. The control system’s aims are;
ratios are commercially available [1]. Servo systems are
generally controlled by conventional Proportional –
Integral – Derivative (PID) controllers, since they designed • %0,5 or less overshot,
easily, have low cost, inexpensive maintenance and • no steady state error,
effectiveness [2]. It is necessary to know system’s • Minimum settling time,
mathematical model or to make some experiments for • Minimum rising time,
tuning PID parameters. However, it has been known that
conventional PID controllers generally do not work well
for non-linear systems, and particularly complex and vague Labview Program was used in order to develop the system
systems that have no precise mathematical models. To software. All the changes in control system can be
overcome these difficulties, various types of modified observed in real time and also user commands can be
conventional PID controllers such as auto-tuning and accepted during the process [6], [7].
adaptive PID controllers were developed lately [3], [4], [5].
Also Fuzzy Logic Controller (FLC) can be used for this
kind of problems. When compared to the conventional
controller, the main advantage of fuzzy logic is that no
mathematical modeling is required. Since the controller
In the control system, Pittman’s DC servo motor HP-HEDS-5310 incremental encoder has been
was used. This DC motor has the following parameters ; accoupled on dc servo motor’s rotor. However this
encoder resolution (500p/r – 0.72°) is not enough to
Torque Constant (KT) : 45.9 x 10-3Nm/A fulfill our control performance. Hence we used
Back EMF constant (KE):45.9 x 10-3V/rad/s HCTL2016 quadrature encoder interface to increase
Resistance (RT):4.62Ω resolution (2000p/r – 0.18°).
Inductance (L): 3.97mH
No – load Current (INL): 0.13A III. ANALYSIS OF PID CONTROLLER
Peak Current (IP):6.55A
Rotor inertia (J) : 5.98 x 10-4oz-in/sec2 (with encoder) Proportional – Integral – Derivative is the most
common control algorithm used in industry. We can
After neglecting frictions, system mathematical model simply express the PID Control algorithm in continuous
was obtained as follows [8] time with this equation
θ (s) KT 1
t
de
= (1) U (t ) = K C (e + ∫ edt + Td ) (2)
V (s) s ( JLs + JRs + K E KT )
2
Ti 0 dt
During the process there are some effects of noise.
B. DAQ Device Specifications Therefore we used variable filter for minimizing the
effects of noise.
National instrument PCI-1200 DAQ is a low – cost
and a multifunctional I/O device. This device allows up
to 100ks/s, 12 bit performance on 8 single-ended analog
PV f = 0.5PV + 0.25 PV (k − 1)
(3)
inputs. Besides it has the features of digital triggering + 0.175 PV (k − 2) + 0.075PV (k − 3)
capability as well as three 16-bit, 8 MHz counter/timers;
two 12-bit analog outputs; and 24 digital I/O lines.
Fig. 5a. Membership functions of the position error ( e ) Fig. 5c. Membership functions of the control signal ( u )
e& / e NB NM NS Z PS PM PB
NB NB NB NB NB NS PS PB
NM NB NB NM NM Z PS PB
NS NB NB NS NS Z PM PB
Z NB NB NS Z PS PB PB
PS NB NM Z PS PS PB PB
PM NB NS Z PM PM PB PB
PB NB NS PS PB PB PB PB
Fig. 5b. Membership functions of position error’s Table 1. Rule base
change( e& )
V. EXPERIMENTAL RESULTS
VII. REFERENCES