Speed Control of DC Motor On Load Using Fuzzy Logic Controller (A Case Study of Emergency Lube Oil Pump Motor of H25 Hitachi Turbine Generator)
Speed Control of DC Motor On Load Using Fuzzy Logic Controller (A Case Study of Emergency Lube Oil Pump Motor of H25 Hitachi Turbine Generator)
ABSTRACT
This paper presents the development of a fuzzy logic controller for the driver DC motor in the lube oil system of the H25
Hitachi gas turbine generator. The turbine generator is required to run at an operating pressure of 1.5bar with the low
and the high pressure trip points being 0.78 bar and 1.9 bar respectively. However, the driver DC motor speed drifted
from the desired speed of 1450 revolutions per minutes (rpm) to as low as 1414 rpm. It is against this backdrop, that this
project work was envisaged to design a controller capable of controlling the speed of the DC motor in order to achieve the
desired speed rating of 1450 rpm. In modelling the motor, the transfer function method was used to develop a linear
approximation to the actual motor. After computing the total inertia of the motor shaft, the motor model was simulated
for the speed response in MATLAB and Simulink environment, and the response showed that the motor attained an
actual maximum speed of 1414 rpm at settling time of 0.3 seconds. Based on expert knowledge of the lube oil system, a
fuzzy logic controller was designed and this resulted in the issuance of a control action to correct the actual speed of the
motor from 1414 rpm to the desired speed of 1450 rpm.
Keywords: dc motor, fuzzy logic controller, modelling, membership function, speed of response
Figure 3: Block Diagram of Field-Controlled DC Motor for Driving Lube Oil Pump
Taking Laplace transform of equation (10), rearranging pump (m), is acceleration due to gravity g =9.81ms−
equation 6 and combining these, the result is written and is the pump efficiency.
from [3] as: Equations 13 and 14 were used to estimate the mass
inertia of the pump impeller, depending on the
parameter given by the pump manufacturer.
Therefore the transfer function of the motor-pump load
combination, with is: 2.2.4 Design and Modelling of Fuzzy Logic Controller
The success of any designed FLC is based on heuristic
[( ) ] and expert knowledge of the system that is to be
The block diagram of the field-controlled DC motor is controlled [9]. Typically, a fuzzy logic controller has at
shown in Figure 3. least two inputs and one output. A fuzzy inference
system (FIS) maps given inputs to outputs using fuzzy
2.2.3 Estimation of Lube Oil Pump Inertia logic membership functions. A membership function
The pump torque was dependent on the inertia of the (MF) is a shape that defines how each point in the input
pump impeller directly coupled to the motor shaft and space is mapped to a membership value (or degree of
the angular speed of the drive shaft. Hence, it was membership) between 0 and 1. The input space is
necessary to accurately determine this parameter as the sometimes referred to as the universe of discourse which
motor torque requirement is greatly associated with it. needs to be specified by the designer. There are two
However, the inertia of a pump impeller is its resistance styles of FIS used in fuzzy logic controllers and these are
to changes in angular velocity as it rotates about its shaft. Mamdani and Sugeno styles. Mamdani's fuzzy inference
This accounts for the rotational mass of the impeller and method is the most commonly used methodology and
is typically 10-15% of the motor inertia. Accurate values can make do with different membership functions in its
of the pump impeller inertia are usually available from inputs and outputs [10].
the vendor and can be used where possible [1].During For this design, the input and output is defined as
transient analysis it is often most conservative to follows: since FLC requires at least two inputs and one
underestimate the pump moment of inertia, particularly output, the first input will be the speed error while
for fluids with high vapour pressures. Pumps with a the second is the changein error of the speed . The
lower moment of inertia will spin down faster, more DC motor shaft rotational speed is the output , and the
abruptly slowing the fluid at the pump outlet while fluid equations relating these are written in equations 15, 16
further down the pipe line continues to flow due to and 17.
momentum. While it is advisable to always obtain inertia −
data from vendors, it is not always readily available. In − −
these circumstances the pump moment of inertia was − −
estimated using equation 13. where, is the time factor, is the actual
speed achieved by the motor, is the desired
( ) speed required by the lube oil pump to provide the
Where, P is pump power (kW) and is pump speed optimum oil pressure for the turbine.
(rpm).
The shaft power of the pump was calculated from 2.2.5 Membership Function Definition and Rules
equation 14 as shown below Formulation
However, one needs to define all the linguistic terms that
would be used for specifying our membership functions -
Where is density of lube oil (kg/m3), is the MF. These terms formed the sets of antecedents and
volumetric flow rate (m /s), is differential head of the
3 consequents in the fuzzy rule-based table which are
employed in quantifying the input and output values or (output fuzzy set) is defuzzified into crisp value using the
degree of membership in the fuzzy sets. Table 1 shows centre of gravity method. Moreover, FIS mapped given
the linguistic term for MF. inputs to outputs using fuzzy logic rules via the
There were two MF used for modelling the FLC, and membership functions.
these include the triangular and the trapezoidal. The
membership functions types used for the DC motor of the 2.2.6 Modelling and Simulation of Lube Oil Pump DC
lube oil pump has universe of discourse of , and as Motor and FLC
− , − and − respectively. Table 2 The mathematical models of the lube oil pump DC motor
now shows the initial rules formulated for this FLC and the fuzzy logic controller developed were simulated
design. in MATLAB and Simulink environment. MATLAB as a
The rules were actually formed in fuzzy logic toolbox and high-level technical computing language and interactive
translated into the table above. In Table 2, the grey environment was employed for algorithm development,
coloured row and column represent the linguistic terms modelling, simulation, data visualization and analysis.
that constitute the antecedents of fuzzy rules with
respect to the heuristic variables, speed error and change Table 1: Membership Function Terms
in speed error. The middle section of the table with a MF Terms Description
clear background is actually the consequents of the rules. NL Negative Large
The shapes of the membership functions used are NM Negative Medium
presented in Figure 4. The triangular and trapezoidal NS Negative Small
membership functions are often used because these Z Zero
curves make it flexible and easy to represent the PS Positive Small
proposed ideas and facts of the model, and with less PM Positive Medium
computational time requirement. Then in order to obtain PL Positive Large
the output of the FLC, the rotational speed of the motor
It essentially offers the platform on which the behaviour 1414rpm. A very short settling time of 0.3 sec is
of the system could be investigated under different evident from the plot above. This speed
operating conditions. is lower than the optimum speed (
1450rpm) needed to supply the required lubrication oil
2.2.7 Modelling and Simulation of Lube Oil Pump DC pressure to the turbine during idling.
Motor and Fuzzy Logic Controller. Therefore, it would be necessary to model a controller to
The mathematical models of the lube oil pump DC motor enable the optimal speed for the motor to be achieved.
and the fuzzy logic controller were actually simulated in Also, figure 7below illustrates the angular position of the
MATLAB and Simulink environment. In order to model motor shaft in radians which is directly tied to the
the DC motor, its parameters are obtained from the case rotational speed of the motor. The angular position
study industry using the Lube-Oil Pump Motor of the increases linearly with time and recorded an
H25 Hitachi Turbine Generator at Bonny Oil and Gas approximate value of in 1 sec. This implies a
Terminal. Appendix I shows the required parameters for total angle of revolution of the shaft of
the field-controlled DC motor while Appendix II shows which is about . Hence, the motor
the lube oil pump parameter for computing impeller shaft would certainly climb as high as 1414 rev in 60 sec.
inertia
Using equation (12), the lube oil pump motor was 3.2 Model Evaluation Criteria
modelled in Simulink environment and shown in Figure There are many performance indices used in control
5. Before simulating the model for the speed response, engineering design for evaluating how well a designed
the total inertia on the motor shaft must be computed. system would perform in practice. In this work, only time
First, from Equations (13) and (14), the pump impeller domain response indices are used. Figure 8 shows the
inertia was calculated and substituted in Equation (9) to response of the system to a standard test input. In
obtain the total inertia on the motor shaft. This was done computing the system step response, Simulink software
by writing MATLAB code in a script which detailed all the first linearizes the nonlinear mathematical relationship
parameters of the model. However, the final transfer in equation 18 about the input and output points of the
function in equation (12) for the motor is evaluated and model shown in Figure 5.
presented in equation (18). The system has a rapid and smooth response to step
input. The overshoot of % indicated that the
system step response is not chaotic. This is because the
system has no complex poles and no zeros, a pointer to
3. RESULTS AND ANALYSIS the fact that there are virtually no internal delays. Table
3.1 Model Simulation Results 3 summarizes all the performance indices for the step
The model was simulated for period of 1 second and the response. The transient response disappears beyond the
DC motor speed and angular position responses are rise time of and finally gives way to the steady-
depicted in Figures 6 and 7. The speed response showed state response at the settling time of .
that the motor attained an actual maximum speed of
60/(2*pi) motor_speed
Motor
rad/s-rpm
Speed
E(t)
225.68 e(t) w(t) speed_f uzz
w speed
reference
speed dE(t) Speed
Fuzzy Logic DC Motor
Controller
du/dt
Derivative
Figure 10: Speed Response of DC Motor with FLC for Running an Emergency Lube Oil Pump in H25 Hitachi Gas Turbine
Generator
Figure 11: Adjusted Triangular and Trapezoidal inputs and Output Membership Functions.
Figure 12: Speed Response of DC Motor with Adjusted FLC for Running an Emergency Lube Oil Pump in H25 Hitachi
Gas Turbine Generator
The adjusted FLC was reintroduced into the Simulink 5.5KW, H25 Hitachi Turbine Generator at Bonny Oil and
model of the DC motor loop and simulated for a period of Gas Terminal, has been presented. The results from the
1 sec. the speed response plot in figure 12 above shows motor modelled and simulated indicated that based on
that the controller still maintains the speed at industry parameters, the motor attained a maximum
but with a much faster response. Consequently, the speed of . However, the developed FLC was
model performance indices earlier described are equally introduced into the control loop to correct the speed of
affected as shown in Table 4.A linear model is first the DC motor to the required operating speed of
computed from the nonlinear Simulink model of the FLC for the lube oil pump. The simulation results
before the linear response is plotted. During simulation, were obtained using MATLAB/Simulink. The results
the software linearizes the portion of the model between showed that the overshoot, settling time, peak time and
specified linearization inputs and outputs, and plots the control performance improved greatly by using fuzzy
response of the linear system. logic controller. Time domain performance indices such
as peak time, rise time, settling time and steady state
Table 4: Performance Indices of DC Motor with Adjusted error showed that the FLC enabled the DC motor to
FLC perform faster and better when the shapes of the
Performance Indices Values Units membership functions of the controller were adjusted
Peak Amplitude accordingly.
Peak Time
Rise Time
Settling Time 5. REFERENCES
Overshoot [1] Byington, C. “Intelligent Monitoring of Gas Turbine
Steady State Error − n in Lub i tion y t ” Association of
Research Libraries, Vol. 98, Number 10, 1998, pp 23-
It is clear from Table 4 that there is an improvement in 28.
the performance of the DC motor and the fuzzy logic [2] Marks, R. J. II (Ed.), ”Fuzzy Logic Technology and
controller except for a slight increase in system A li tion ” IEEE Technology Update Series, Vol.
overshoot. This is because FLC is inherently robust and 19, Number 26, 1994, pp 19-24.
nonlinear with elements of uncertainties in its structure. [3] Chandra, R. and Kumar, M. ”Speed Control of S.E.D.C.
Motor by Using PI and Fuzzy Lo i Cont oll ”
4. CONCLUSION International Journal of Soft Computing
The modelling of Fuzzy Logic Controller (FLC) for and Engineering, Vol. 3, Number 2, 2013, pp 143-
controlling the speed of a field-controlled DC motor of an 153.
emergency lube oil pump, during idling operation of a