Speed Control of Direct Current Motor Using ANFIS
Speed Control of Direct Current Motor Using ANFIS
fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.
Digital Object Identifier 10.1109/ACCESS.2017.Doi Number
INDEX TERMS ANFIS, direct current motor, PID, PI, PD, feedforward data and algorithm
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
advanced technique for tuning scale factor of Fuzzy PD-I suggested controller showed its feasibility and suitability
model combined with anti-windup was developed to avoid under different situation[22].
the overall gain of the model and limiting of the oscillatory in Having considered the points outlined above, various studies
the controlled variables [11]. Model-reference adaptive fuzzy on the control of the speed of DC motors have been
was recommended for the control of the DC motor’s speed; conducted. The studies demonstrate how fuzzy logic control
the controller required a reference model for training FIS, and ANFIS control can provide suitable methodologies to
and an oscillation appeared in the speed response[12]. On the determine the best control. Meanwhile, DC motor speed
other hand, due to the rapid development in the application, could be regulated using several techniques. In this regard,
several studies have used fuzzy logic combined with ANFIS most of the previous studies have some drawbacks. For
to improve control efficiency. In[13], fuzzy-based PID online instance, their main goal is to minimize the transient response
supervised adaptive network FIS based was introduced for parameters, but there are often deviations from this goal, and
controlling the DC motor speed, obtained results using there are significant similarities in most techniques used. In
Simulink toolkits showed perfect performance in transient order to avoid these inefficiencies; this work presents the
response characteristics. ANFIS has been used to regulate speed control of the DC motor by controlling the armature
the speed of the DC motor, and the efficiency was compared voltage. In this method, the control is done using ANFIS
to the traditional PI controller and fuzzy-based PID control based on several PIDs forms as a controller for the DC
[14]. Although the controllers used in the comparison motor. The PID model design is used as a basis to prepare
showed excellent performance in settling time and rise time, training data of the proposed controllers. For comparison
there was a significant overshoot and small steady-state error. purposes, the DC motor model was operated using designed
ANFIS, as a modern technique, has replaced traditional controllers. Furthermore, the simulation model was
methods in many applications. In order to decrease the performed repeatedly to meet different conditions, including
transient response parameters such as the overshoot, rise time sudden change of the speed values or change in the input
and settling time for SEDC motor, an intelligent control signal characteristics. The efficiency of the suggested
based ANFIS has been proposed. Simulation results have controllers were validated using various kinds of speed
demonstrated suitable rise time and sustainable overshoot signals. This study aims at implementing cascade and dual
with oscillation before reaching the steady-state[14]. On the block to control the DC motor speed.
other hand, different researchers have applied trained This paper is organized as follows: The second section
feedforward of ANFIS based on several algorithms. describes the mathematical model of the DC motor, and all
Premkumar introduced ANFIS online-based GA-PSO relevant mathematical equations have been detailed. Part
optimized BLDC motor speed control has been by using a three of this paper discusses the introduced controllers, while
hybrid algorithm [15], while other studies [16, 17] part four illustrates the results and curves attained by
introduced ANFIS based rotor position control for DC motor. introduced controllers using Matlab toolkits. Finally, the
A novel bacterial Foraging PSO and BAT, ANFIS conclusions drawn from this study are shown in part five.
Optimization Algorithms based speed control has been II. MOTOR MODEL
introduced to (MC)-fed brushless dc motor, where the results DC motor used for this study is separately-excited and has
proved superior performance to other techniques under the ability to separately control over the speed and torque by
various operation conditions[18]. regulating the field current and armature current. According
Generating data for training ANFIS is an essential aspect of to figure 1, the developed torque is illustrated using equation
designing the ANFIS controller[19]. In[20] fractional-order 1 and 2, where the armature current is I (t), angular speed is
PID was designed with the GA algorithm to train ANFIS Ꙍ, interior friction is J; the friction coefficient is β, and
data where three ANFIS configurations were formed using torque constant is ka. Armature voltage e (t) is given by
training data to tune the parameters during the operation. In equation 3, where Kb Back emf constant, an applied voltage
other studies, speed control based ANFIS was developed is symbolized by V (t) and can be calculated using equation
using three layers backpropagation algorithm [22]. In this 4. L represents the Armature inductance, whereas R
model, the parameters measured only focused on the rise represents resistance. Equation 5 explains the motor transfer
time and the settling time, which both showed high values for function. Table1 describes the parameters of the dc motor.
the designed controller and controllers introduced for
comparing the performance [22]. Moreover, ANFIS based
PSO and recursive-least-square has been used for DC motor
speed controller as multi-level ANFIS, and the method
provides optimal performance[21]. For the ANFIS and PI-
based MPPT algorithm controllers presented for control
BLDC motor speed, the performance of the designed method
was evaluated by comparing to the observed method. The
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
FIGURE 2: The model used to produce training data for the dual
controller.
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
number of parameters was 16 linear parameters and 24 =(Ak ꓵBk )). Sk was used to set out the symmetric difference
nonlinear parameters. The number of data pairs were then among the two data sets, and it was represented in the
checked using the 16 fuzzy rules, and by adjusting the inputs algorithm as Sk={ j:( j Є Ak )or (j Є Bk ). The variable Rk was
rules to get an optimal response. used to carry the union of the two data items (Rk =Uk ꓴ Sk).
The numerical entities were loaded in FIS to track the I/O for The counter k increased until the completion of the criterion.
the provided data, and on-line was performed to identify the In this controller, ANFIS are extracted using models
objects during the operation, which needs the neuron network explained previously in tables II, III and IV, where the
structure suitable for the learning strategy. The most double controller has implemented previously and as PIPD
important factor is the speed of the learning mechanism, and and proved a good performance[28].In the ANFIS process,
if the configuration is too complicated it could affect the firstly the training data is loaded from the model used to
adapting speed, making it difficult to trace the objects. For all generate it. It is secondly converting this training data to
the suggested controllers, an FIS based Takagi-Sugeno model fuzzy set form based on suitable member function; this step
performed an ANFIS configuration with two inputs, where called fuzzification and membership function selection. Then
one output was later utilized as a control signal[23]. creating a fuzzy rule frame(if-the-else)corresponding to the
Design of (ANFIS) controller is the most approved intelligent fuzzified input weight. Fourth, updating the parameters using
controls strategies [24]. ANFIS is a combination of Fuzzy the training data algorithm based on error tolerance. In the
logic, and neural network, both of them have some final step, which is a defuzzification step, the fuzzified data
components and objectives. Both techniques attempt to figure will be reorganized as numerical data to run as an ANFIS
out the functioning of human knowledge. In both methods, model.
the theorem is to store the expert’s knowledge to make a By considering a fuzzy inference system with two inputs (x,
suitable decision. In essence, adaptive neural fuzzy is a kind y), and one output (f), The rule base should be created with
of fuzzy logic enhanced by a neural network to develop the two Takagi–Sugeno fuzzy rules type [22].ANFIS rules form
performance of the control [25].ANFIS is fuzzy rules based on Takagi–Sugeno is given as in equations below,
enhanced by a neural network to carry out the system
behavior based on I/O data. The combination of these Rule 1: If X is A1 and y is B1 , then
intelligent strategies hybridizes the Takagi–Sugeno with the
learning capabilities. The learning process role is to regulate f1 p1 x q1 y r1 ;
the fuzzy inference system parameters.
The main objective of ANFIS is to implement the
configuration of a neural network to develop the process of Rule 2: If X is A2 and y is B2 , then
fuzzy parameters to represent the neuron’s weight..
Therefore, ANFIS can automatically recognize by regulating f2 p 2 x q2 y r2 ;
the MF and modifying the neural-network weight using a
suitable algorithm. As a consequence, the neural network Where fuzzy antecedent sets A1,A2,B1 and B2 are the
architecture can be optimizing the membership function, consequent crisp function. Fz is the output resulted by rule
since the fuzzy configuration built based three parts, fuzzy z,pz,qz and rz are the parameters resulted by rule z. Layer1
input, inference mechanism, which is known as fuzzy rules has N nodes; these nodes numbers are equal to the variables
and the output of the system, where several techniques can number of that transmitted data to each node of the next
implement all these parts. Usually, ANFIS uses Takagi– layer. Each neuron in this layer uses its transfer function to
Sugeno, where it is applicable in controlling and modelling calculate a certain degree of a specific fuzzy subset. In this
complicated process. In this design of this controller as layer executing the fuzzification strategy to carry out the
presented in figure 2, this structure mainly contains five output according to the equation below,
layers which are rule base, database, decision unit,
fuzzification and defuzzification unit. ANFIS’s every layer is
1
corresponding to the Takagi Sugeno FIS[26, 27]. oi1 A1 ( ) b1
The flowchart of the algorithm, as in figure 4, is describing x c 2
1
a1
all steps of manipulating data generated to train the ANFIS 1
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
wi A1 ( )* B 1 ( y)
The normalization of the relation between the fuzzy inputs
and realizing of fuzzy operation it is the responsibility of the
third layer.
wi
wi (i 1, 2)
w1 w2
In the fourth layer, the nodes compensate for the operation
and execute the rules of the fuzzy system. The output of this
layer has explained in equation bellow.
oi4 wi * fi wi *( p1 x q1 y r )
The defuzzification process is performed in the fifth layer,
where all input signals summation are summed in this layer
as explained in the equation below.
w * f i i
o w i * fi
5
i
w
i
i ii
i FIGURE 4:The algorithm of convergence and divergence.
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
TABLE III
THE TRANSFER FUNCTIONS OF SUGGESTED CONTROLLERS.
Configuration Cascade configuration
transfer
function
PI 3.888 s + 0.8321
FIGURE 6:dual PID training data for ANFIS. ----------------
s
PD 1.893 s + 169.3
---------------
s + 100
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
FIGURE 11: The step response of the dc motor function without control.
In this study, the error for each controller was measured and
the motor behavior observed in order to return the controller
FIGURE 8: The parameters of the first configuration and generate suitable data for training ANFIS and
subsequently ensuring optimal performance. For ANFIS
based PI1 and PID1, a significant error was observed because
the controllers adjusted to maximum performance and were
capable of working with the second controller. For the
ANFIS based PD1 reaction, the controller showed minimum
error. The error response of the three controllers is illustrated
in figure 12.
:
FIGURE 9 The parameters of the cascade configuration
FIGURE 12: The error rate of three ANFIS configurations based PI1, PD1,
and PID1
:
FIGURE 10 The parameters of the dual configuration
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
The second PID2 controller showed the error produced by the FIGURE 16: The speed response of the ANFIS controller-based PI1, PD1,
PID2 without the master PID (Figure 14). and PID1.
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
FIGURE 19: Speed response using ANFIS based dual PI, PD and PID
FIGURE 18: Speed response using ANFIS based PI2 and PD2
Finally, the two controllers, i.e. the master and cascade were
merged. For ANFIS based dual PID. The controller showed
high performance. The ANFIS based dual PID controller was
performed to generate data for training ANFIS to solve the
problem of the response speed. The data generated was too
large; thus, it was reduced to the least possible amount to
increase the controller speed response, which subsequently
resulted in high performance. The results of the controller
response using ANFIS based dual PID controller was
illustrated in figure 19. The transient parameters of the
ANFIS based dual PID controller was listed in table V and
figure 22. For the designing of the ANFIS based dual PI FIGURE 20: Speed response using ANFIS based dual PD and PID in the
controller, the controller showed varied response for speed range 0.1 second
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2020.3007615, IEEE Access
[22] A. A. Hepzibah and K. Premkumar, "ANFIS current–voltage of China Association of popular science writers, and standing director of
controlled MPPT algorithm for solar powered brushless DC material Committee of World 3D Printing Association. She has presided
motor based water pump," Electrical Engineering, pp. 1-15, over more than 20 projects of NSFC, published more than 150 papers, and
2019. obtained 8 authorized invention patents and 30 utility models. She presided
[23] M. R. Faieghi and S. M. Azimi, "Design an Optimized PID over four provincial teaching reform projects and won three provincial
Controller for Brushless DC Motor by Using PSO and Based awards as the first adult. In the research and development of new 3D
on NARMAX Identified Model with ANFIS," in 2010 12th printing equipment and CNC system of special machine tools, he has many
International Conference on Computer Modelling and research results. It is proposed that biomass composite materials are used
Simulation, 2010, pp. 16-21. as 3D printing consumables, which are successfully used in laser sintering
[24] H. Bevrani and S. Shokoohi, "An Intelligent Droop Control for additive manufacturing raw materials. It is called the fourth kind of
Simultaneous Voltage and Frequency Regulation in Islanded additive manufacturing materials besides metal, inorganic non-metal and
Microgrids," IEEE Transactions on Smart Grid, vol. 4, no. 3, polymer materials by the industry and domestic and foreign media.
pp. 1505-1513, 2013.
[25] S. S. Chong, A. A. B. A. Raman, S. W. Harun, and H. Arof, SECOND A. MOHAMED ELHAJ AHMED
"Dye Concentrations Measurement Using Mach–Zehner MOHAMED. (M’74) received the B.S. degree in
Interferometer Sensor and Modeled by ANFIS," IEEE Sensors computer engineering from technologic and
Journal, vol. 16, no. 22, pp. 8044-8050, 2016. Science University, Khartoum, Sudan, in 2002 and
[26] A. Senthilkumar and P. A.-D.-V. Raj, "ANFIS and MRAS-PI the M.S. degree in computer and network
controllers based adaptive-UPQC for power quality engineering from the department of electrical
enhancement application," Electric Power Systems Research, engineering, Khartoum University, Sudan, in
vol. 126, pp. 1-11, 2015. 2007. He is currently pursuing the PhD degree in
[27] K. Premkumar and B. Manikandan, "Adaptive neuro-fuzzy mechatronic engineering at Northeast Forestry
inference system based speed controller for brushless DC University, School of mechanical and electrical
motor," Neurocomputing, vol. 138, pp. 260-270, 2014. engineering-Harbin –china.
[28] M. Elhaj, A. Mohamed, and G. Yanling, "Study on the extent of From 2002 to 2006, he was an Assistant teacher and labs director at
the impact of data set type on the performance of anfis for Krrary University, Khartoum, Sudan. From 2006-2014, he worked as
controlling the speed of DC motor," Journal of Engineering lecturer in the department of electrical and electronic engineering, Karrary
and Technological Sciences, vol. 51, no. 1, pp. 83-102, 2019. University, Sudan. Mr. Mohamed’s research interest includes the
development of control of dc motor and applying intelligent control
techniques using developed special algorithms.
Mr. MOHAMED. Won china government scholarship, he has also
received an award for the best performance in Chinese language, and has
published a few articles in developing dc motor control and electrical
vehicles motor control.
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/.