Abstract
A brushless DC (BLDC) motor is synchronous motor with trapezoidal/square wave counter-electromotive force, which is a typical example of highly coupled nonlinear systems. In industrial control, BLDC motor drive usually uses proportional–integral (PI) controller to control the speed, but it is very difficult to adjust the scale factors. In this study, we present a particle swarm algorithm-tuned fuzzy logic-PI (PF-PI) controller applied to the speed control system. The objective of this paper is to optimally tune the PI controller parameters to obtain the best drive response. The scale factors are optimized using particle swarm optimized-PI (P-PI) controller and PF-PI controller. The three performance indicators integral time absolute error (ITAE), integral time square error (ITSE) and integral square error (ISE) are used to measure the effectiveness of PF-PI controller optimization. The results show that the optimal torque ripple and speed response curves are obtained by using ITAE as the performance indicator. The conclusions demonstrate that the proposed method provides superior dynamic performance for BLDC motor.
Highlights
-
(1)
In terms of research content, we propose a new PF-PI controller driven control system based on the traditional BLDC speed control system, and the applicability of three performance indicators on the controller is discussed.
-
(2)
In terms of research method, we compare the no-load start, variable speed and sudden addition disturbance load start capabilities of P-PI controller and PF-PI controller, and verify the fast and robustness of PF-PI controller.
-
(3)
In the research significance, the PI controller structure is improved and the dynamic performance of BLDC speed control system is enhanced.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
A BLDC motor is controlled by electronic phase change, with simple structure, high power output and high efficiency. It is widely used in national defense, aerospace, robotics, industrial control processes, precision machine tools, automotive electronics, and household appliances [1]. At present, many studies on the control technology of BLDC motors. From the control method, the current research hotspot is the BLDC motor speed and torque ripple suppression method, which belongs to the application of advanced control strategy in order to improve the servo accuracy and expand the application range [2, 3].
The BLDC, motor control system, is a typical nonlinear, multivariable coupling system [4], and it is difficult for the traditional PI control algorithm to achieve high precision operation of the motor. Therefore, many researchers have made efforts to improve the control effect of the system and further expand the application scope of PI controller to achieve a speed control system with a wide speed regulation range, slight static difference, and superior following and anti-disturbance performance.
PI controllers produce hysteresis effects and create uncertainty problems in some practical situations of BLDC motor. To avoid these problems, fuzzy logic controllers (FLC) are developed. In [5], the fuzzy PI control algorithm is proposed to solve the problem of PI control with large overshoot and long setting time when switching speed. In [6], it was verified that the fuzzy controller system has a better response than the PI control. In [18] studied the hybrid algorithm structure of PSO-EP to generate new parameters of the fuzzy PID controller. Cui et al. [19] focused on the relationship between PSO–PID parameters using stability theory. Bouallegue et al. [20] proposed a constrained PSO algorithm for solving the scale factor optimization problem of PID-type fuzzy structures. Ghoulemallah et al. [21] improved the speed control performance using the fuzzy-PSO technique. Chang and Shih [22] presented an improved PSO algorithm for find the optimal PID controller gain. Wang and Pu [23] tuned control of complex nonlinear systems using PSO–PID. Gani et al. [24] studied the application of PID controller based on particle swarm algorithm and Z–N algorithm.
To sum up, above, the FLC is an advanced control method capable of overcoming uncertainties and nonlinear parameters [25]. Nevertheless, FLC still has no adaptive capability and no learning mechanism, so difficulties arise in redesigning and adapting when new rules are applied. PSO algorithm is a technique for finding optimal solutions through the interaction between individuals in a population. Many studies have shown that PSO algorithms can overcome getting trapped in local optima.
Initially, many conventional speed controllers and other machine learning models available, but based on their use and application, these controllers had several limitations. After that, there was always a need to use the latest techniques to further improve and perform BLDC motors with better speed control and enable the motors to be widely used. Therefore, the aim of this paper is to develop a new PF-PI based speed controller for effective control of BLDC motor.
The remaining section of this paper is structured as follows: the mathematical modeling of the BLDC motor is provided in Sect. 2. Section 3 details the controller optimization method. Section 4 selects the appropriate performance indicator as the fitness function. In the end, summarizing the simulation results and analysis.
2 Mathematical modeling
2.1 BLDC motor modeling
The original voltage equation for the armature voltage of a brushless DC (BLDC) motor is derived as follows:
where \(L\) is the armature self-inductance, \(M\) is the armature mutual inductance, \(R\) is the armature resistance of the stator phase windings, \(V_a\), \(V_b\), \(V_c\) are the terminal phase voltages, \(I_a\), \(I_b\), \(I_c\) are the input currents of the motor, and \(e_a\), \(e_b\), \(e_c\) are the trapezoidal counter-electromotive forces of the corresponding phases.
Since the three-phase current satisfies the condition by
Equation (1) can be further simplified so that the matrix form of the phase voltage equation for BLDC motors can be expressed as
In order to form a complete mathematical model of an electromechanical system, it is also necessary to introduce the motor equations of motion.
where \(J\) is inertia, \(B\) is friction coefficient and \(T_L\) is load torque.
2.2 PI controller design
The structure of a conventional PI controller is shown in Fig. 1. The parallel structure of a PI controller is expressed in Eq. 5 as
The controller processes the error signal directly. In the design phase, the controller parameters Kp, KI depend on the closed-loop feedback system, and its regulation usually relies on three ways according to the actual situation, namely critical proportionality method (Z–N), decay curve method and empirical adjustment method [26].
It is practically impossible to achieve an ideal PI controller. Therefore, by using advanced control methods and optimization algorithms, a response closer to the ideal state can be achieved.
3 The scheme of optimization
3.1 Fuzzy logic controller design
FLC design technology broadly consists of three parts: fuzzification, fuzzy rules (knowledge base and fuzzy inference), and defuzzification [27]. The fuzzy control technology has the characteristics of broad applicability and robustness to time-varying loads.
The fuzzy control has two inputs and two outputs. The two inputs are the error \(e\) and the error rate of change \(ec\). The two outputs are \(Kp\) and \(Ki\) parameters. The size of the scaling factor \(\Delta Kp\) and \(\Delta Ki\) has a great impact on the FLC control performance, which can fundamentally change the output characteristics of the system. Fuzzy logic-PI (F-PI) controller structure is shown in Fig. 2.
The \(e\) and \(ec\) can be taken as seven linguistic variables (NL, NM, NS, ZE, PS, PM, PL) corresponding to negative large, negative medium, negative small, zero, positive small, positive medium, positive large.
Fuzzy rules are derived from expert knowledge, experience, etc. It is essentially a rule lookup table in the form of “if … and … then …”, and given \(e\), \(ec\) yields 49 different outputs \(Kp\), \(Ki\). The fuzzy rule list is given in Tables 1 and 2.
The minimum operation (Mamdani), which takes the minimal value of the membership function (MF). The Mamdani method is used for fuzzy inference, and the center of gravity method is used for defuzzification. The MF using trimf, the output of \(Kp\) and \(Ki\) in NL adopts zmf, PL adopts smf. The theoretical domain of \(e\), \(ec\) can be determined as \(e \in ( - 6,\;6)\), \(ec \in ( - 6,\;6)\). The theoretical domain of \(Kp\), \(Ki\) can be set as \(Kp \in (1,\;6)\), \(Ki \in (0,\;1)\). The MF and domain of each variable are shown in Fig. 3. The surface viewer of the input and output relationship rules is shown in Fig. 4.
3.2 Particle swarm optimization technology
The PSO algorithm is a flock iterative search algorithm, proposed by Kennedy and Eberhart [28]. The PSO algorithm has the characteristics of a simple algorithm, easy to implement, and not too many parameters to be adjusted.
In the process of finding the optimal values of \(\Delta Kp\) and \(\Delta Ki\), the update rate and position solution of each particle are given by
where \(v_k\) is the velocity vector of the particle, \(x_k\) is the position of the particle, \(pbest_k\) is the optimal solution position found by the particle itself, and \(gbest_k\) is the optimal solution position currently found by the whole population. \(w\) is the inertia weight. \(c1\) and \(c2\) are two learning factors. These two factors are used to adjust the strength of \(pbes_tk\) and \(gbest_k\) on particle attraction. \(c1\) and \(c2\) are in the range of [0, 2]. \(v_k\), \(pbest_k - x_k\) and \(gbest_k - x_k\) are used as the sum of vectors, which is denoted by \(v_k + 1\). The maximum value of particle velocity in each dimension is less than \(v_max\).
Due to the PSO algorithm has fallen into a local optimal solution. Shi [29] introduced the inertia weight formula
where \(g\) generation index represents the current number of evolutionary generations, and \(G\) is predefined maximum number of generations. Here max and min are set to 1 and 100 respectively.
In this paper, the PF-PI controller with proposed method is shown in Fig. 5. PF-PI controller of BLDC motor algorithm flow chart is shown in Fig. 6. The implementation parameters of PSO are given in Table 3.
The steps of the proposed PF-PI Algorithm are as follows:
-
Step 1.
Initiate the parameters such as particle swarm size, parameters range, iterations, dimensions and factors \(w\), \(c1\) and \(c2\).
-
Step 2.
Initially, start with the random position of particles. Determine the fitness function.
-
Step 3.
Estimate each particles fitness value using @PSO_PI.
-
Step 4.
Update the position and speed of particle.
-
Step 5.
Repeat step (2) in the new position and speed.
-
Step 6.
If the required solution is obtained, go to the outcome, else return the first step.
-
Step 7.
Achieve the best optimal solution.
4 Simulation and discussions
4.1 BLDC motor modeling based on PF-PI structure controller
BLDC motor system simulation control scheme based on PF-PI structure controller is as follows.
The design of BLDC motor controller needs to consider the working environment, load characteristics, position detection method, etc. The goal is to achieve a control system with a wide speed regulation range, slight static difference, superior following and anti-disturbance performance.
The modeling is done using the dynamic system modeling toolbox in Simulink, which is completed by assembling according to the module connection relationship of each component. According to the motor circuit connection and motion relationship, the necessary modules of the system are: PWM module of HPWM-LON modulation mode, three-phase inverter, BLDC motor, signal acquisition, Hall sensor, feedback current calculation, powergui. Hall sensor is mainly applicable to 120° energized control, and every 60° to obtain a signal.
The system is built-in discrete time frame. Simulation time is set to 1 s, discrete sampling time 5e−06 s. The start-up method is load start, initial load torque is 1 N m, given speed 1500 rpm, 0.35 s increase load torque 4 N m, speed increase to 3000 rpm at 0.5 s.
The working principle of conventional control of BLDC motor is explained as follows:
First, the difference between the reference speed and the feedback speed is the speed error supplied to the speed controller. This module uses a classical PI controller, which processes the speed error and gives a loss based on the reference torque (\(Te\)), then the DC power is chopped into a PWM wave by a PWM chopper. Then a drive signal is given to the inverter based on the logical relationship between the state of the switching tubes and the presence of Hall signals. Thus, the average value of the voltage applied to both ends of the armature is changed to regulate the speed of the motor. The PWM control power switching tube modulation is used in the HPWM-LON modulation mode.
The BLDC motor simulation model of PF-PI structure controller is shown in Fig. 7. The logical relationship between the switching tube state and Hall signal is given in Table 4. Implementation parameters of the BLDC motor is given in Table 5.
4.2 Selection of performance indicators
The PI controller and F-PI controller are optimized using the PSO algorithm. The optimization factor is the scale factor, and the fitness function performance indicators are used to evaluate the model by ITAE, ITSE, and ISE. The ITAE performance indicator is finally selected.
Three performance metrics, ITAE, ITSE, and ISE, are used to verify the feasibility of PSO. These metrics are allowed to optimize the PF-PI controller for 50 generations, respectively. The PI optimization curves and the associated fitness function values are obtained. This is used to select the best performance indicator fitness function. Optimization of scale factors for PF-PI controller using ITAE, ITSE, and ISE, respectively, shown in Figs. 8 and 9. Optimization of the three performance indicators under the velocity response curve is shown in Fig. 10.
According to the following figures, the scale factor and fitness values are iteratively stabilized at 2, 27, and 33 generations when using ITAE, ITSE, and ISE metrics, respectively, and the speed response curve performance. It can be known that using ITAE as the performance indicator of PSO algorithm is the best in this model.
4.3 Analysis of experimental results with 100 iterations of the model using ITAE
After selecting ITAE as the best fitness function for this model, the P-PI controller is compared with the F-PI controller. The optimization results are shown in Figs. 11 and 12. From the results in the figure, it can be seen that the P-PI controller model has the best \(Kp = 1.76745,\) \(Ki = 0.371068,\) and the fitness value is 14.2071; the PF-PI controller model has the best \(Kp = 0.578728,\) \(Ki = 2.6598,\) and the fitness value is 7.73426.
4.4 Analysis of experimental results
The simulation results were verified for the case of variable speed with load. The speed response curve under different conditions with load is shown in Fig. 13. The torque ripple curve under different conditions with load is shown in Fig. 14.
According to the torque ripple Eq. (12), the torque ripple under the P-PI controller and PF-PI controller can be known. The speed performance comparison under different schemes is given in Table 6. The torque ripple ranges under different schemes are given in Table 7. Torque ripple equation is given by
From the speed response curve, it can be learned that the PF-PI controller model has the best speed characteristics compared to PI, P-PI, and F-PI controllers. It can be clearly seen that the overshoot, rise time and settling time of the control system under the PF-PI controller are better than the classical PI controller.
4.5 Controller performance testing and analysis
In order to verify the effect of the controller on medium and high range operation, the servo responses from stand still to 1500 rpm and from stand still to 3000 rpm were tested respectively. It is also necessary to analyze and experimentally verify the controller's operation with load and no-load conditions. Meanwhile, to demonstrate that the PF-PI controller can satisfy 4-quadrant operation, the speed and torque reverse curves of variable speed with sudden disturbance load start are given in Fig. 15. The speed response curves of sudden addition disturbance load start under different conditions are shown in Figs. 16 and 17. The torque ripple curves of no-load start under different conditions are shown in Figs. 18 and 19.
In Fig. 15, it can be seen that the PF-PI controller has symmetrical speed response and torque ripple under reverse operation. Therefore, the PF-PI controller satisfies the control conditions for 4-quadrant operation.
In Fig. 16, under sudden addition disturbance load start, the speed response curve shows that the PF-PI controller has the fastest speed response and is able to quickly stabilize to the specified speed command at 0.5 s. In Fig. 17, under no-load start, the speed response curve shows that the PF-PI controller has higher relative overshoot for medium speed 0–1500 rpm range operation, but has the best performance with no overshoot for 0–3000 rpm range operation. In general, no-load start has higher overshoot compared to load start in the medium speed 0–1500 rpm range operation.
In Figs. 18 and 19, it can be seen that the PF-PI controller has less torque ripple under no-load start and sudden addition disturbance load start conditions. The robustness of the PF-PI torque is better when subjected to sudden load addition at 0.5 s.
5 Conclusion
In this paper, the optimal PF-PI controller is proposed for the BLDC motor to achieve speed control effectively. PSO is used for scaling factor adjustment of the PF-PI controller. The presented controller is evaluated on MATLAB/Simulink platform, and the fitness function performance indicators are analyzed. From the results, it is seen that the motor is settled down faster and lower vibration. The stability analysis performance indicators viz ITAE, ITSE, ISE values are improved in this proposed method. Finally, the superiority of the proposed PF-PI controller is demonstrated. It is suitable for obtaining a smooth speed response over a wide speed range while reducing torque ripple. Also, the proposed method may give a new dimension towards the controller design field for a BLDC motor drive system.
Data availability
The author declare that Data sharing not applicable to this article as no datasets were generated or analysed during the current study.
References
Fathima A, Vijayasree G (2021) Design of BLDC motor with torque ripple reduction using spider-based controller for both sensored and sensorless approach. https://doi.org/10.1007/s13369-021-05833-y
Raja Othman RNFK, Md Zuki NA, Che Ahmad SR, Abdul Shukor FA, Mat Isa SZ, Othman MN (2017) Modelling of torque and speed characterisation of double stator slotted rotor brushless DC motor. IET Electr Power Appl 12(1):106–113. https://doi.org/10.1049/iet-epa.2017.0254
Potnuru D, Tummala A (2019) Grey wolf optimization-based improved closed-loop speed control for a BLDC motor drive. https://doi.org/10.1007/978-981-13-1921-1_14
Premkumar K, Manikandan BV (2015) Speed control of brushless DC motor using bat algorithm optimized adaptive neuro-fuzzy inference system. Appl Soft Comput 32:403–419. https://doi.org/10.1016/j.asoc.2015.04.014
Kim TO, Han SS (2020) Fuzzy PID control algorithm for improvement of BLDC motor speed response characteristics. J Inst Electron Inf Eng. https://doi.org/10.5573/ieie.2020.57.6.105
Dhandayuthapani S, Anisha K (2019) Fuzzy-logic-controlled shunt-active-filter in IEEE thirty bus system with improved-dynamic time-response. J Electr Eng Technol. https://doi.org/10.1007/s42835-019-00325-4
Jan MU, **n A, Abdelbaky MA, Rehman HU, Iqbal S (2020) Adaptive and fuzzy PI controllers design for frequency regulation of isolated microgrid integrated with electric vehicles. IEEE Access 8:87621–87632. https://doi.org/10.1109/ACCESS.2020.2993178
Tavoosi J et al (2021) A new general type-2 fuzzy predictive scheme for PID tuning. Appl Sci 11(21):10392. https://doi.org/10.3390/APP112110392
Wang X (2021) Development and simulation of fuzzy adaptive PID control for time variant and invariant systems. Int J Syst Assur Eng Manag. https://doi.org/10.1007/s13198-021-01286-6
Açikgöz H, Keçecioglu OF, Gani A, Sekkeli M (2014) Speed control of direct torque controlled induction motor by using PI, anti-windup PI and fuzzy logic controller. Int J Intell Syst Appl Eng 2(3):58–63. https://doi.org/10.18201/IJISAE.58843
Chintawar S, Ghodke S, Khatavkar V, Alset U, Mehta H (2021) Performance evaluation of speed behaviour of fuzzy-PI operated BLDC motor drive. In: 2021 International conference on computational performance evaluation (ComPE), pp 179–184. https://doi.org/10.1109/ComPE53109.2021.9752453
Tang G, Lu P, Hu X, Men S (2020) Control system research in wave compensation based on particle swarm optimization. Sci Rep. https://doi.org/10.1038/s41598-021-93973-4
Feng H, Ma W, Yin C, Cao D (2021) Trajectory control of electro-hydraulic position servo system using improved PSO–PID controller. Autom Constr 127(7):103722. https://doi.org/10.1016/j.autcon.2021.103722
Daraz A, Malik SA, Haq IU, Khan KB, Laghari GF, Zafar F (2020) Modified PID controller for automatic generation control of multi-source interconnected power system using fitness dependent optimizer algorithm. PLoS ONE. https://doi.org/10.1371/journal.pone.0242428
Ye K, Li P (2020) A new adaptive PSO–PID control strategy of hybrid energy storage system for electric vehicles. Adv Mech Eng 12(9):168781402095857. https://doi.org/10.1177/1687814020958574
Zhang J, Yang S (2016) A novel PSO algorithm based on an incremental-PID-controlled search strategy. Soft Comput 20(3):991–1005. https://doi.org/10.1007/s00500-014-1560-x
**ang Z, Ji D, Zhang H, Wu H, Li Y (2019) A simple PID-based strategy for particle swarm optimization algorithm. Inf Sci. https://doi.org/10.1016/j.ins.2019.06.042
Chiou JS, Liu MT (2009) Numerical simulation for fuzzy-PID controllers and hel** ep reproduction with PSO hybrid algorithm. Simul Model Pract Theory 17(10):1555–1565. https://doi.org/10.1016/j.simpat.2009.05.006
Cui Z, Cai X, Zeng J, Yin Y (2006) Self-adaptive PID-controlled particle swarm optimization. J Mult Valued Logic Soft Comput. https://doi.org/10.1109/CHICC.2006.4347492
Bouallegue S, Haggege J, Ayadi M, Benrejeb M (2012) PID-type fuzzy logic controller tuning based on particle swarm optimization. Eng Appl Artif Intell 25(3):484–493. https://doi.org/10.1016/j.engappai.2011.09.018
Ghoulemallah B, Sebti B, Abdesselem C, Said B, Technology FO (n.d.) Genetic algorithm and particle swarm optimization tuned fuzzy PID controller on direct torque control of dual star induction motor. https://doi.org/10.1007/s11771-019-4142-3
Chang WD, Shih SP (2010) PID controller design of nonlinear systems using an improved particle swarm optimization approach. Commun Nonlinear Sci Numer Simul 15(11):3632–3639. https://doi.org/10.1016/j.cnsns.2010.01.005
Wang DF, Pu H (n.d.) Proportional–integral–derivative chaotic system control algorithm based on particle swarm optimization. Acta Phys Sin. https://doi.org/10.1016/S1872-1508(06)60029-6
Gani A, Kilic E, Kececioglu OF, Acikgoz H, Tekin M, Sekkeli M (2017) A simulation study on controlling excitation current of synchronous motor and reactive power compensation via PSO based PID and PID controllers. In: Symposium on innovations in intelligent systems and applications, 2017. https://doi.org/10.54856/jiswa.201812035
Blanchett TP, Kember GC, Dubay R (2000) PID gain scheduling using fuzzy logic. ISA Trans 39(3):317–325. https://doi.org/10.1016/S0019-0578(00)00024-0
Meshram PM, Kanojiya RG (2012) Tuning of PID controller using Ziegler–Nichols method for speed control of DC motor. In: 2012 International conference on advances in engineering, science and management (ICAESM), 2012. IEEE
Junming X, Haiming Z, Lingyun J, Rui Z (2011) Based on Fuzzy-PID self-tuning temperature control system of the furnace. https://doi.org/10.1109/ICEICE.2011.5777814
Kennedy J, Eberhart R (n.d.) The particle swarm optimization. In: Swarm intelligence. IEEE. https://doi.org/10.1016/B978-155860595-4/50007-3
Shi Y (n.d.) A modified particle swarm optimizer. In: Proceedings of IEEE ICEC conference. https://doi.org/10.1109/ICEC.1998.699146
Funding
The authors have not disclosed any funding.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Shi, J., Mi, Q., Cao, W. et al. Optimizing BLDC motor drive performance using particle swarm algorithm-tuned fuzzy logic controller. SN Appl. Sci. 4, 293 (2022). https://doi.org/10.1007/s42452-022-05179-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s42452-022-05179-6