ANFIS Control for Brushless DC Motors
ANFIS Control for Brushless DC Motors
$ (&)
= " #$ (&)( , " = )
101 110
$ (&)
(4)
S
(0 < & ≤ )
Fig. 1: Phase to Phase back EMF of BLDC motor.
3 ,
of phase a and may be expressed as follows in one period:
⎧ , 3
R L
⎪ 1 ( <&≤ )
+ ea
, 7,
a -
⎪ 3 3
L
$ (&) =
3 7, <,
b + eb - N
⎨ , 3 3
(5)
⎪−1 ( <&≤ )
L
<, ==,
R
c + ec -
⎪ 3
3 3
0 0
TABLE I: THE SEQUENCE OF HALL EFFECT AND INVERTER SIGNALS
= 0 0 + +
Electrical PHASE
0 0
(1) Degree
H1 H2 H3 S1 S2 S3 S4 S5 S6
A B C
=
⋅ ⋅ ⋅
0-60 0 1 0 0 + - 0 1 1 0 0 0
= + +
(2) 60-120 0 0 1 - 0 + 0 0 0 1 1 0
!
120-180 0 1 1 - + 0 0 1 0 0 1 0
(3)
180-240 1 0 1 0 - + 1 0 0 1 0 0
Where: 240-300 1 1 0 + 0 - 0 0 1 0 0 1
, , : three-phase voltages, 300-360 1 0 0 + - 0 1 0 0 0 0 1
, , : three-phase currents,
is composed of five interconnected network layers, and includes
four key components: fuzzification, knowledge base, neural
T T2 T3 network, and defuzzification. The fuzzy system in ANFIS has
49 rules and is structured with two inputs (x and y) and one
A
output (z). These inputs are defined as the error input (x) and the
Vcc V1 B
V2 C ratio of error variations (y). The rule base in ANFIS contains
V3
T T5 T6 fuzzy if-then rules of the Takagi and Sugeno type 2, which are
used to make inferences [14].
Desired The data was generated and fed into the neuro-fuzzy designer
AC
speed e BLDC during the evaluation of the behavior of the motor. FIS was
Controlle
DC Motor developed using a grid-based partition, and its two inputs are
ERROR and error rate of change. The optimization technique
Measured speed
used to train the FIS data was the hybrid method with zero error
tolerance and epoch 100. In this approach, 131 nodes were used
Fig. 4: Control diagram of the brushless DC motor
to implement the ANFIS, and a total of 49 linear and 28 non-
A. PID controller : linear parameters were used. then, the 49 fuzzy rules were
Proportional, Integral, and Derivative, or PID, refers to the three verified and the input rules were corrected to obtain the best
operations it carries out. A PID controller is a feedback control result. Based on the above factors, The structure of five layers
system that maps the difference between a value that is observed ANFIS is shown in Fig. 5.
and one that is wanted which repensents the error, in order to Layer 4
Input- Layer 1 Layer 2 Layer 3 Layer 5
apply corrective action to the process. the PID controller's Layer
e[
transfer function is showing by the following equation. Fig.5
A1
dipicts the controller’s diagram [11]. To tune the PID controller
\
^^^^_
………
\
^^^^_ `V
e
@(A) = B + D + F A
C
Nichols (Z-N) or by trail and error [12]. Ⅱ N
E
(6)
….……..
……….
Aj ………..
Where : ∑
c V `V
a = b\
B1
^\
^^^] `V
Kp :the proportional gain,
[
………
W
Fig. 6: The structure of five layers ANFIS
Z(W)
Plant
UX
R(S)
Layer 1 : The node function for each adaptive node in this layer,
Proportional P node is provided as follows:
UY W =, = GH ( ) $IJ = 1,2, … (5)
=, = GL ( ) $IJ = 1,2, …
Where H (or L ) is a linguistic label connected to this node, and
Derivative D
c =
illustrated in Fig. 4, Table 2 lists the model's parameters.
=e
fD
-, hS
According to the simulation, we shall assess the examined
∑Dij fD
(8)
controller’s effectiveness.
^^^l $ = e
=e ^^^l (m +n +J)
R Stator resistance 0.2 Ω
k, (9) L Inductance 0.85 mH
2000
1500
Speed(rpm)
1000
500
0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
Fig. 11: Stator back EMF ea with laod of 5Nm
Time(seconds)
Fig. 8: Motor Speed (No load)
Fig.13 shows the variation of the back EMF by increasing
the speed, the back EMF changes its value to 146V due to the
100
rising speed from 1500 rpm to 2000rpm.
Therefore, the overall result show that ANFIS controller is
better than PID.
50
Stator Back EMF(V)
-50
-100
-
-150
-
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 Fig. 12: Motor speed (from 1500 to 2000 rpm)
Time(seconds)
Fig. 9: Stator back EMF ea(No load)
Fig. 13: Stator back EMF ea (speed from 1500 rpm to 2000 rpm)
For the second stage of the simulation, the controllers were
tested on the condition of changing the speed from 1500 to 2000 V. CONCLUSION
rpm in 5s. The PID controller has an overshoot of up to 45% In this article, a speed controller was investigated for the
and large oscillations, the speed provided by the ANFIS brushless DC motor by means of PID (Proportional, Integral,
controller has an overshoot of about 1%, and it follows the and derivative) controller and Adaptive fuzzy inference system
desired speed smoothly as it is shown in fig 12. ANFIS. a comparison between the conventional PID controller
and the ANFIS controller was implemented for the BLDC
motor on MATLAB/SIMULINK. The simulation demonstrates Systems, Jeju Island, South Korea: IEEE, août 2009, p. 367‑372. doi:
10.1109/FUZZY.2009.5277194.
that the ANFIS controller is more performant than the PID
[15] I. F. Davoudkhani et M. Akbari, « Adaptive speed control of brushless
without load or with load, in addition to that, the intelligent DC (BLDC) motor based on interval type-2 fuzzy logic », in 2016 24th
controller proves its efficiency in different speed. the main Iranian Conference on Electrical Engineering (ICEE), Shiraz, Iran:
advantages of The ANFIS are its high computing efficiency and IEEE, mai 2016, p. 1119‑1124. doi: 10.1109/IranianCEE.2016.7585689.
compatibility with linear, optimization, and adaptive
approaches. the made controls Utilizing some interface cards
like the dSPACE, data gathering cards, and maybe easy to use
in real-time applications, the technique is not only
straightforward but also robust.
REFERENCES
[1] H. Maghfiroh, M. Ahmad, A. Ramelan, et F. Adriyanto, « Fuzzy-PID in
BLDC Motor Speed Control Using MATLAB/Simulink », Journal of
Robotics and Control, vol. 3, no 1, p. 8‑13, juin 2021, doi:
10.18196/jrc.v3i1.10964.
[2] O. Ammari, K. E. Majdoub, R. Baz, et A. Taouni, « Longitudinal
modelling of Electric Vehicle driven by a BLDC In-Wheel Motor based
on Pacejka tire model », in 2021 International Conference on Electrical,
Communication, and Computer Engineering (ICECCE), Kuala Lumpur,
Malaysia: IEEE, juin 2021, p. 1‑6. doi:
10.1109/ICECCE52056.2021.9514238.
[3] M. Schwenzer, M. Ay, T. Bergs, et D. Abel, « Review on model
predictive control: an engineering perspective », Int J Adv Manuf
Technol, vol. 117, no 5, p. 1327‑1349, nov. 2021, doi: 10.1007/s00170-
021-07682-3.
[4] « Metaheuristic algorithms for PID controller parameters tuning: review,
approaches and open problems | Elsevier Enhanced Reader ». doi:
10.1016/[Link]. 2022.e09399.
[5] M. N. M. Salleh, N. Talpur, et K. Hussain, « Adaptive Neuro-Fuzzy
Inference System: Overview, Strengths, Limitations, and Solutions », in
Data Mining and Big Data, Y. Tan, H. Takagi, et Y. Shi, Éd., in Lecture
Notes in Computer Science, vol. 10387. Cham: Springer International
Publishing, 2017, p. 527‑535. doi: 10.1007/978-3-319-61845-6_52.
[6] M. R. Faieghi et S. M. Azimi, « Design an Optimized PID Controller for
Brushless DC Motor by Using PSO and Based on NARMAX Identified
Model with ANFIS », in 2010 12th International Conference on
Computer Modelling and Simulation, Cambridge, United Kingdom:
IEEE, 2010, p. 16‑21. doi: 10.1109/UKSIM.2010.12.
[7] Varatharaju, « Adaptive Controllers for Permanent Magnet Brushless DC
Motor Drive System using Adaptive-Network-based Fuzzy Interference
System », American Journal of Applied Sciences, vol. 8, no 8, p. 810‑815,
août 2011, doi: 10.3844/ajassp.2011.810.815.
[8] G. Deying et Z. Jinquan, « Speed control of BLDCM based on
compensated fuzzy neural network », in The 26th Chinese Control and
Decision Conference (2014 CCDC), Changsha, China: IEEE, mai 2014,
p. 4541‑4544. doi: 10.1109/CCDC.2014.6852982.
[9] R. Baz, K. E. Majdoub, F. Giri, et A. Taouni, « Self-tuning fuzzy PID
speed controller for quarter electric vehicle driven by In-wheel BLDC
motor and Pacejka’s tire model », IFAC-PapersOnLine, vol. 55, no 12, p.
598‑603, 2022, doi: 10.1016/[Link].2022.07.377.
[10] O. Ammari, E. M. Khalid, et F. Giri, « Modeling and control of a half
electric vehicle including an inverter, an in-wheel BLDC motor and
Pacejka’s tire model », IFAC-PapersOnLine, vol. 55, p. 604‑609, janv.
2022, doi: 10.1016/[Link].2022.07.378.
[11] C. B. Kadu et C. Y. Patil, « Design and Implementation of Stable PID
Controller for Interacting Level Control System », Procedia Computer
Science, vol. 79, p. 737‑746, 2016, doi: 10.1016/[Link].2016.03.097.
[12] F. Salih Mahdi Alkhafaji, W. Zuha Wan Hasan, N. Sulaiman, et M.
Mohd. Isa, « A Novel PID Robotic for Speed Controller Using
Optimization Based Tune Technique », in Computational Optimization
Techniques and Applications, M. Sarfraz et S. Ariffin Abdul Karim, Éd.,
IntechOpen, 2021. doi: 10.5772/intechopen.95892.
[13] M. Mashrei et A. M. Mahdi, « An Adaptive Neuro-Fuzzy Inference
Model to Predict Punching Shear Strength of Flat Concrete Slabs »,
Applied Sciences, vol. 9, p. 809, févr. 2019, doi: 10.3390/app9040809.
[14] W. L. Tung et C. Quek, « A mamdani-takagi-sugeno based linguistic
neural-fuzzy inference system for improved interpretability-accuracy
representation », in 2009 IEEE International Conference on Fuzzy