 Research
 Open Access
 Published:
Practical interval type2 fuzzy selftuning of PID controller to servo permanent magnet synchronous motor
Journal of Electrical Systems and Information Technology volume 7, Article number: 1 (2020)
Abstract
This paper implements a practical interval type2 fuzzy selftuning (IT2FST) of optimal PID (OPID) controller to servo permanent magnet synchronous motor (SPMSM). The proposed method IT2FST updates the OPID controller gains in an online manner to drive the SPMSM with better speed response during variable load and parameter uncertainty occurrence. In this work, the industrial SPMSM system comprises threephase PMSM with internal break, drive and mechanical parts. Due to the incomplete real information of the SPMSM, nonlinear least square algorithm has been utilized for its model identification. A comparative analysis in a real time of the SPMSM with an OPID, type1 fuzzy selftuning and IT2FST for OPID controllers under the influence of parameter uncertainties and external load disturbances has been carried out. The realtime practical implementation results illustrated that the proposed IT2FST of OPID controller gives a simple opportunity to enhance the speed performance of the SPMSM than the other controllers.
Introduction
The permanent magnet synchronous motors (PMSMs) have many applications in industries due to their compact structure, high efficiency, high power density and hightorquetoinertia ratio [1]. The PI/PID controller is unquestionably the most commonly used control algorithm in the process control of industrial servo motor system [2]. The main reason for this usage is its relatively simple structure, which can be easily understood and implemented in practice. In spite of its widespread use, there exists no generally accepted design method for the controller. PI and PID controllers have traditionally been tuned empirically, e.g., by the method described in Ziegler and Nichols [3]. This method has the great advantage of requiring very little information about the process. There is, however, a significant disadvantage because the method inherently gives very poor damping [3, 4]. The tuning of electric drive controller is a complex problem due to the many nonlinearities of the machines and power converter. Therefore, many tuning rules have been proposed for this type of controller. During the last three decades, one of the main focuses of research in control engineering has been devoted to providing automatic tuning of such controllers.
Selftuning PI control technique based on neural network was executed in [5]. A comparative study of three popular evolutionary algorithms: genetic algorithms, particle swarm optimization and differential evolution, for optimal tuning of PI speed controller for PMSM drives is given in [6].
It was mostly observed that a combination of fuzzy selftuning mechanism and PID controller is used to improve and enhance the transient system performance. In this case, the fuzzy selftuning was used to tune the PID gains [7]. These studies only focus on the ordinary T1FST of PID controllers [7,8,9]. It has been shown in various works that the T1FST of PID controllers might not be able to fully handle the high levels of uncertainties associated with control applications. On the other hand, the interval type2 fuzzy sets (IT2 FSs) might be able to handle such uncertainties to produce a better control performance [10, 11]. The uncertainties are generally coming from the noise in the measurements and the parameter changing due to the environmental and operating conditions [13]. It has been shown that IT2FPIDs achieve better control performances because of the additional degree of freedom provided by the footprint of uncertainty (FOU) in their antecedent MFs [14, 15]. Nevertheless, a systematic design for type2 fuzzy controllers is still a challenging problem due to the main difficulty in determining the IT2 FSs and rule base [16].
This paper proposes IT2FST of OPID, which was firstly proposed as a T1FST of OPID controller to PMSM servo system [17].
The simulation results and practical implementation for speed control of SPMSM system are based on MATLAB/Simulink toolbox. The benefit of this approach is examined via various practical studies performed on SPMSM system under load changing and influence of parameter uncertainties. The results clearly show that the proposed controller IT2FST OPID has better dynamic response, in the form of minimum overshoot and settling time in comparison with the OPID and T1FST of OPID controllers.
Servo motor system and experimental setup
The experimental platform is shown in Fig. 1. The experimental setup is designed for the theoretical and practical investigation studies of the proposed PMSM controllers. The experimental setup consists of six parts [17]:
 1.
SEW synchronous threephase permanent magnet servo motor.
 2.
SEW MOVIDRIVEB to drive the motor.
 3.
Mechanical load.
 4.
PC used to perform the control algorithms.
 5.
Interface adapter option USB11A.
 6.
A data acquisition card (DAQ) NI USB6008.
The description of the main components of the SPMSM is illustrated in Fig. 2.
Motor It is a SEW synchronous threephase permanent magnate servo motor with internal break.
Load The mechanical load in this case is a variable to study variable inertia. Load is cylinder shaped.
Coupling It transfers motion from motor shaft to the load shaft.
Multifunctional data acquisition (DAQ) It represents the terminal parts for sending and receiving identification signals. It can take a continuous signal, and it can be sampled at evenly spaced interval to produce a series of discrete values that represent the original signal. In addition, DAQ is used to transmit the analog signal that represents the speed from the drive to the computer.
Drive It transfers motion from motor shaft to the load shaft, receives a command signal from a control system, amplifies the signal and transmits electric current to the motor in order to produce motion proportional to the command signal.
Bearing It reduces friction between moving parts and bearing with housing is used to fix the load.
Servo motor model identification
In the experimental setup of PMSM system, the motor parameters were given in [17]. Precisely, the incomplete SPMSM real information for its components described in Fig. 2 made nonlinear least square algorithm (NLSA) is used for system model identification. System identification MATLAB toolbox is employed for this aim. Figure 3 shows the block diagram for servo system description.
Model parameter identification
The identification is to define a system among a specific category of models based upon input/output information which is equivalent to the system [17,18,19]. Generally, there are two major categories of identification: system identification and parameter identification. In the case of system identification, the equations of the system are usually unknown or vary during the process time. The target is to find a mathematical model describing the system, by giving appropriate inputs and observing the outputs. The system identification steps can be summarized as follows:
 1.
Data collection
 2.
Estimation of the parameters
 3.
Validation of the obtained model
 4.
Choice of the model structure
Based on the above, the identification input signal is an input voltage v. The output signal is represented by a voltage corresponding to the measured speed ω of motor. Figure 4 illustrates the construction of DAQ and its simulation in the Simulink toolbox [17]. The input/output signals using chirp function are illustrated in Fig. 5.
Different types of order of PMSM identification models are performed to get the bestfit model. The system identification is based on the nonlinear least square technique. The validation of the threefit (tf3, tf6 and tf7) models by using different types of input signals (step, square and Sin) was performed to ensure the sustainability of the model response as shown in Fig. 6.
Based on the model validation of the experiential of the PMSM, the identified linear second order was the best selection as given [17].
The second order is selected as a model structure for describing the system according to wide range survey and many experimental trials (model tf3). The approximate transfer function of the proposed servo system may be written as follows:
where ω(s), rotor speed; ν(s), controlled voltage; and k, a, b, c, the transfer function parameters.
The transfer function representing the angular velocity ω of motor and the input motor voltage ν obtained from the system identification process could be expressed as [17]:
Ant system optimization for PID controller and type2 fuzzy system
The equation of the PID transfer function is given in (3):
where K_{p}, K_{i} and K_{d} are the proportional, integral and differential gains, respectively. Ant colony optimization (ACO) is used to obtain optima PID gains. Using the ant colony optimization process to find the optimal parameters of the controller such that to minimize or maximize a given cost function of the closed loop system consisting of an ant based PID controller and an unknown plant [17] the effectiveness of the PID based ant colony was investigated by the following parameters variation test [20, 21]. The performance criteria of the system were given in [17], and the optimal gains of the PID controllers were K_{p} = 60, K_{i} = 20 and K_{d} = 3.
Type2 fuzzy logic systems
There are two different approaches for FLSs design: type1 FLSs (T1FLSs) and type2 FLSs (T2FLSs). The latter is proposed as an extension of the former. While designing a T1FLSs, expertise and knowledge are needed to decide both the MFs and fuzzy rules. The T1FLSs, whose MFs are type1 fuzzy sets, are unable to directly handle rule uncertainties [12, 21]. To deal with this problem, the concept of type2 fuzzy sets was introduced by Zadeh as an extension of T1FLSs with the intention of being able to model the uncertainties that invariably exist in the rule base of the system [22].
Type2 fuzzy sets (T2 FSs)
A T2 FS, denoted \( \tilde{A} \), is characterized by a type2 MF \( \mu_{{\tilde{A}}} = \left( {x, \, u} \right) \), where x ∈ X and \( u \in Jx \subseteq [0,1],\;{\text{i}} . {\text{e}}., \)
in which \( 0 \le \mu_{\ A} \left( {x, u} \right) \le 1. \) \( \tilde{A} \) can also be expressed as
where \( {\iint } \) denotes union over all admissible x and u. For discrete universes of discourse, \( \int\nolimits \) is replaced by \( \sum \) [12, 21].
Interval type2 fuzzy sets
When all \( \mu_{{\tilde{A}}} \left( {x, u} \right) = 1 \), \( \tilde{A} \) is an interval T2 FS (IT2 FS). Although the third dimension of the general T2 FS is no longer needed because it conveys no new information about the IT2 FS, the IT2 FS can still be expressed as a special case of the general T2 FS in (5), as [22]:
where x, called the primary variable, has domain \( D_{{\tilde{X}}} :u \in \left[ {0,1} \right] \), called the secondary variable, has domain \( J_{x} \subseteq \left[ {0,1} \right] \) at each \( x \in D_{{\tilde{X}}} ;J_{x} \) is also called the primary membership of x and the amplitude of \( \mu_{{\tilde{x}}} \left( {x,u} \right) \), called a secondary grade of \( \tilde{A} \), equals 1 for \( \forall x \in D_{{\tilde{X}}} \) and for \( \forall u \in J_{x} \subseteq [0,1 \)].
The upper membership function (UMF) and lower membership function (LMF) of \( \tilde{A} \) are two T1 membership functions that bound the footprint of uncertainty (FOU) as shown in Fig. 7. The UMF of \( \tilde{A} \) is the upper bound of the FOU \( ( {\tilde{A}} ) \) and denoted as \( \bar{\mu }_{{\tilde{x}}} \left( x \right)\forall x \in X \), and the LMF is the lower bound of the FOU \( ( {\tilde{A}} ) \) and denoted as \( \underline{\mu }_{{\tilde{x}}} \left( x \right)\forall x \in X \). The UMF and LMF can be characterized as follows [23, 24]:
The computations of fuzzification and inference for IT2FLC were given and discussed in [12, 22,23,24]. For this operation, type reduction to convert IT2FLC into a T1FLC is performed [23, 24]. There are several methods of type reduction. In this paper, the “centerofsets” type reduction is used. The calculations of this method were done and given in [23]. In addition, the defuzzification method is determined to convert typereduced set to crisp output of an IT2FLS [23, 24].
Online interval type2 fuzzy selftuning for the OPID controller
Figure 8 shows the block diagram of an IT2FPID controller for SPMSM. For the system under study, the universe of discourse for both e(t) and Δe(t) for K_{p2}, K_{i2} and K_{d2} is normalized with [− 0.9, 0], [− 0.01, 0] and [− 0.1, 0], respectively, while the universe of discourse for each K_{p2}, K_{i2} and K_{d2} is normalized from [0, 5.5], [0, 10] and [0, 0.4], respectively. The linguistic labels are {negative big, negative medium, negative small, zero, positive small, positive medium, positive big}, and the linguistic labels of the outputs are {zero, medium small, small, medium, big, medium big, very big}. The IT2 of membership function for e(t) and Δe(t) and for the output K_{p2} is shown in Figs. 9 and 10, respectively. The membership functions for e(t) and Δe(t) and for K_{i2} and K_{d2} are similar to Figs. 9 and 10, respectively, but with different universes of discourse values.
The control rules used for T1FST of OPID controller for determining the output gains from fuzzy controller were given [7, 17].
This general equation of the PID can be written as:
This equation of the PID after fuzzy effect can be written as:
where
K_{p2}, K_{i2} and K_{d2} are the output gains from fuzzy controller of IT2FST, where K_{ei} error input normalizing gain, i = 1, 2, 3; K_{∆ei}, ∆error input normalizing gain, i = 1, 2, 3.
Simulation and practical results
Combination between MATLAB/Simulink toolbox and multifunctional DAQ with synchronous threephase servo motor permanent magnet as shown in Figs. 1 and 2 is used to show the effectiveness of the proposed IT2FST of OPID. The speed to volt and volt to speed transformation are given in Figs. 11 and 12, respectively. In addition, IT2FST of OPID controller is shown in Fig. 13. The desired speed is equivalent to 2 V under normal load torque. Three tests of practical implementation are carried out.
Test 1
Uncertainty in the identified SPMSM model under normal load torque with step disturbance speed (rpm) = 2v.
In this situation, a nominal value of K given by Eq. (1) is maintained constant for 0 ≤ t ≥ 0.4, 15% of K is decreased for 0.4 ≤ t ≥ 1 and 5% of K is increased from nominal value for 1 ≤ t ≥ 1.2 and maintained constant for 1.2 ≤ t ≥ 2. The system uncertainties are applied to the system driven by each of the three controllers.
The effect of uncertainty in parameter K is illustrated in Fig. 14. It is noted that T1FST of OPID produces better performance in the rise time and the steadystate error, settling time than OPID. Also, it is clear that IT2FST of OPID shows close response to the T1FST of OPID but slightly better. However, OPID shows the worst response (longer rise and settling times).
Test 2
Under load torque and step disturbance speed (rpm) = 2v.
To test the effectiveness of the proposed IT2FST of OPID controller, a sudden increase in the speed by 0.5 v at time (1.5 s) is observed. This leads to a decrease in the load torque. The real practical responses of T1FST of OPID and OPID are compared with their respective simulation results and given in Fig. 15. The time responses of the controller outputs are displayed in Fig. 16. It is clear that the speed time responses have a lower overshoot and smaller settling time is seen using T1FST of OPID than the OPID. The controller output of T1FST of OPID for practical simulation has a small overshoot, but it gives better response at this point for speed regulation.
Finally in this test, the controlled system of SPMSM is practical implemented using two types of IT2FST and T1FST of OPID controllers. For each controller as shown in Fig. 17, the practical and simulation responses show close and very near response of IT2FST and T1FST of OPID. In terms with better performance in control, damping the speed response of IT2FST is rapidly driven back to speed desired when compared with the other two controller (T1FST of OPID and OPID) responses. The controller output of IT2FST of OPID for practical simulation has a large value compared to the other controllers, but within permissible range of SPMSM operation as shown in Fig. 18.
Test 3
Over load torque and step disturbance speed (rpm) = 2v.
Effectiveness of the proposed IT2FST of OPID controller is verified through a sudden decrease in the speed by 0.5 v at time (1.5 s). This causes increasing the load torque, and consequently, the speed decreases. In this test, firstly, real practical implementation for OPID and T1FS of OPID can be performed and compared to the desired speed. Similarly, T1FS of OPID produces better performance in the rise time and the steadystate error and settling time than OPID as depicted in Fig. 19. The time response of the controller outputs is displayed in Fig. 20. The controller output of IT2FST of OPID for practical simulation has overshoot but the value of the controller output steel with acceptable range gives better response for corresponding speed regulation.
Secondly, real practical implementation for IT2FST and T1FST of OPID controllers is performed. From results in Fig. 21, it is clear that the IT2FST of OPID has better overall performance compared to T1FST of OPID. This improvement is patent in terms of reduction, disturbances and smaller overshoot, which finally yields a much improved overall performance. The outputs of the controllers are illustrated in Fig. 22, and each one of them is within allowable practical range for operation.
Conclusion
In this study, a performance comparison between type1 and type2 fuzzy selftuning of optimal PID is offered. The optimal PID controller is determined using ant colon optimization (ACO). The proposed controllers are used for speed control of industrial SPMSM system. The nonlinear least squares method successfully identified the SPMSM model. The experimental results show that using IT2FST of OPID in realworld applications can be a good option since this type of system is more suitable system to manage levels of uncertainty compared to a conventional type1 FST controller. The proposed technique is easy to implement the practical design of system controls with external disturbances.
Availability of data and materials
The data that support the findings of this study are available from the corresponding author [M. A. Abdel Ghany], upon reasonable request.
Abbreviations
 ω(s):

Rotor speed
 ν(s):

Controlled voltage
 k, a, b and c :

Transfer function parameters
 K _{p}, K _{i} and K _{d} :

Proportional, integral and differential gains
 K _{ei} :

Error input normalizing gain, i = 1, 2, 3
 K _{∆ei} :

∆error input normalizing gain, i = 1, 2, 3
References
Liu H, Li S (2012) Speed control for PMSM servo system using predictive functional control and extended state observer. IEEE Trans Ind Electron 59(2):71–83
SeokBeom L (2006) Closedloop estimation of permanent magnet synchronous motor parameters by PI controller gain tuning. IEEE Trans Energy Convers 21(4):63–70
Zhuang M, Atherton DP (1993) Automatic tuning of optimum PID controllers. IEE Proc D 140(3):216–224
Astrom KJ, Hagglund T, Zhang CC, Ho WK (1993) Automatic tuning and adaptation for PID controllers—a survey. IFAC J Control Eng Pract 1(4):699–714
Jianguang Z, Zhifeng Z, Renyuan T (2008) IEEE selftuning PI controller based on neural network for permanent magnet synchronous motor. In: Fourth international conference on natural computation, pp 532–537
ChunYu D, GwoRuey Y (2007) Optimal PI control of a permanent magnet synchronous motor using particle swarm optimization. In: IEEE ICIC’07 second international conference, pp 255–258
Algreer MMF, Kuraz YRM (2008) Design fuzzy self tuning of PID controller for chopperfed DC motor drive. AlRafidain Eng J 16(2):54–66
Abdel Ghany MA, Bahgat ME, Refaey WM, Hassan FN (2017) Design of fuzzy self tuning PID load frequency controller for the Egyptian power system. J Azhar Univ Eng Sect 12(42):77–89
El Zoghbyand HM, Abdel Ghany AM (2014) Transient fault ridethrough of a multigenerators wind farm using a selftuning fuzzy PID controller. In: The international middleeast power systems conferenceMEPCON’2014 Ain Shams University, Cairo, Egypt, December 23–25, 2014
Mendel JM (2001) On the importance of interval sets in type2 fuzzy logic systems. In: Proceedings of the joint 9th IFSA world congress 20th NAFIPS international conference, Vancouver, BC, Canada, 25–28 July, 2001, pp 1647–1652
Mendel JM, John RIB (2002) Type2 fuzzy sets made simple. IEEE Trans Fuzzy Syst 10(2):117–127
Mende JM, John RI, Liu F (2006) Interval type2 fuzzy logic systems made simple. IEEE Trans Fuzzy Syst 14(6):808–821
Mendel JM, John RIB (2002) Footprint of uncertainty and its importance to type2 fuzzy sets. In: Proceeding of 6th IASTED international conference on artificial intelligence and soft computing, Banff, Canada, July 2002, pp 587–592
ElNagar AM, ElBardini M (2014) Derivation and stability analysis of the analytical structures of the interval type2 fuzzy PID controller. Appl Soft Comput 24:704–716
ElBardini M, ElNagar AM (2014) Interval type2 fuzzy PID controller: analytical structures and stability analysis. Arab J Sci Eng 39:7443–7458
Ahmad M. ElNagar and Mohammad ElBardini,” Practical Implementation for the interval type2 fuzzy PID controller using a low cost microcontroller” Ain Shams Engineering Journal 2014 5, 475–487
Abdel Ghany MA, Abdel Magid H, Abdullah Eissa M, Bahgat ME, Bassuiny A, Sharaf S (2017) Practical implementation for fuzzy self tuning of optimal PID controller to servo permanent magnet synchronous motor. J AlAzhar Univ Eng Sect 12:1371–1385
Boileau T, Leboeuf N, NahidMobarakeh B (2011) Online identification of PMSM parameters: parameter identifiability and estimator comparative study. IEEE Trans Ind Electron 47(4):44–57
Wang K, Chiasson J, Bodson M, Tolbert LM (2004) A nonlinear leastsquares approach for identification of the induction motor parameters. In: 43rd IEEE conference on decision and control, December 14–17, Atlantis, Paradise Island, Bahamas, pp 3856–3861
Abdel Ghany MA, Bahgat ME, Refaey WM, Hassan FN (2014) Ant colony optimum tuning of PID load frequency controller for the egyptian power system. In: Sixteenth international Middle East power systems conference (MEPCON’14), Ain Shams University, Egypt
Zeng Q, Tan G (2007) Optimal design of PID controller using modified ant colony system algorithm. In: IEEE, 3rd international conference on natural computation (ICNC)
Mendel JM (2007) Type2 fuzzy sets and systems: an overview. IEEE Comput Intell Mag 2:20–29
Mendel JM, Wu H (2007) New results about the centroid of an interval type2 fuzzy set, including the centroid of a fuzzy granule. Inf Sci 177:360–377
Wu H, Mendel JM (2001) Introduction to uncertainty bounds and their use in the design of interval type2 fuzzy logic systems. In: 2001 IEEE international fuzzy systems conference, pp 662–665
Acknowledgements
I would like to express my deepest appreciation to all those who provided me the possibility to complete this research.
Funding
Research support from author's affiliations.
Author information
Authors and Affiliations
Contributions
MAAG was involved in design and control implementation; MEB reviewed the simulation results; WMR reviewed the paper; and SS reviewed the paper. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
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
Abdel Ghany, M.A., Bahgat, M.E., Refaey, W.M. et al. Practical interval type2 fuzzy selftuning of PID controller to servo permanent magnet synchronous motor. Journal of Electrical Systems and Inf Technol 7, 1 (2020). https://doi.org/10.1186/s430670190008x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s430670190008x
Keywords
 Permanent magnet synchronous motor
 Identification
 Interval type2 fuzzy selftuning for PID control