# Sliding-Mode Speed Control of PMSM with Fuzzy-Logic Chattering Minimization—Design and Implementation

^{1}

^{2}

^{3}

^{*}

Next Article in Journal

Next Article in Special Issue

Next Article in Special Issue

Previous Article in Journal

Previous Article in Special Issue

Previous Article in Special Issue

National School of Applied Sciences, Mohammed First University, Oujda BP 669, 60000, Morocco

National School of Applied Sciences, Cadi Ayyad University, Marrakech BP 575, 40000, Morocco

UMPEDAC, University of Malaya Power Energy Dedicated Advanced Centre, Kuala Lumpur 59990, Malaysia

Author to whom correspondence should be addressed.

Academic Editor: Ahmed El Oualkadi

Received: 15 June 2015
/
Revised: 15 July 2015
/
Accepted: 16 July 2015
/
Published: 28 July 2015

(This article belongs to the Special Issue Selected Papers from MedICT 2015)

In this paper a Sliding Mode Control scheme (SMC) applied to the Permanent Magnet Synchronous Motor (PMSM) speed control is designed and improved. A Fuzzy logic algorithm is added to mitigate chattering caused by discontinuous term in steady states, and to ensure good performances of the controller in transient states. The proposed Fuzzy-SMC performance is tested in simulation and experimental results are obtained using eZdsp F28335.

Numerical PMSM control drives are extremely improved by the development of calculators, especially digital signal processors (DSPs). Consequently, nonlinear control methods are introduced to improve control performances for systems with different undesirable disturbances and uncertainties i.e., adaptive control [1], robust control [2], direct torque control [3], intelligent control [4] and sliding mode control (SMC) [5]. This last technique is applied in many control fields [6,7] in addition to sensorless control.

The SMC is very attractive, and it has been recommended for many applications [8,9], compared to a conventional PI controller which is very sensitive to parameter uncertainty and variation. In [8] a sliding mode control is used to obtain a high-accuracy positioning of a six-phase induction machine in both healthy and faulted modes. In [9] an adaptive non-singular terminal sliding mode tracking control is designed to provide faster convergence and higher precision control for robotic systems. Moreover, the SMC can be combined with other non-linear approaches to ensure stability of multivariable complex system control [10].

Nevertheless, the robustness of the SMC comes at the expense of some drawbacks such as the well-known chattering phenomenon induced at steady state due to the discontinuous term in the control law. Furthermore, once implemented in PMSM speed control, associated with conventional vector control (Figure 1), it leads to a sonorous vibration and perturbs the current control loop. Subsequently, the power losses and the torque ripple increase considerably. Various methods have been proposed to overcome the charting problems, such as: reaching law method [11,12], complementary sliding-mode method [13] and high-order sliding-mode method [14,15]. The reaching law depends directly on the reaching process, since chattering is caused by the non-ideal sliding on the SM surface at the end of the reaching phase [16,17]. By making the discontinuous gain a function of the sliding-mode surface, the chattering is reduced in [12]. In [18], a novel Exponential Law based Sliding Mode Control is assumed to construct the speed and current integrated controller.

The main idea of those works is to smooth the control action across the sliding surface. They suffer, however, from a number of limitations and shortcomings such as difficulty of experimental implementation and design complexity. Additionally, the response time and the robustness of the controller near the sliding surface are degraded in the aforementioned research.

In this paper, the PI speed controller is replaced by SM controller to remove the machine parameters dependency and external disturbance effects. The controller associated problems are investigated and eliminated as well. The large gain of the discontinuous law, used in first order SMC, is the key feature to make the SM controller tolerant to model parameter uncertainty. It also makes the system response and the load disturbance rejection faster. These benefits are reached with the loss of smooth torque. Hence, a Fuzzy logic algorithm is introduced to adjust the weight of the SM gain, in such a way, it can be taken large than standard value during transient period to conserve the SMC performance.

In order to minimise the current chattering in steady state, the Fuzzy algorithm is designed to attenuate the discontinuous term in that operating condition. Consequently, less torque ripple and vibration are generated.

In order to adjust the PMSM speed, a model of this machine with an average complexity level is required. Indeed, the controllers in the control loop tolerate several modelling simplifications, such as perfect sinusoidal distribution of stator winding. In addition, the produced magneto-motive-forces and the magnitude flux linkage through the stator winding are sinusoidal.

So, the electrical model of the PMSM in the rotating reference frame $(abc)$ can be written as the following [19]:
where ${\left[{u}_{s}(t)\right]}^{abc}$ is the stator voltage vector, ${\left[{i}_{s}(t)\right]}^{abc}$ is the stator current vector, and ${\left[{\psi}_{s}(t)\right]}^{abc}$ is the stator flux vector.

$${\left[{u}_{s}(t)\right]}^{abc}=R{\left[{i}_{s}(t)\right]}^{abc}+d{\left[{\psi}_{s}(t)\right]}^{abc}/dt$$

However, the flux ${\psi}_{s}(t)$ is a result of stator windings and rotor permanent magnet flux. It can be presented in the rotating frame linked to the stator as:
where L and M are respectively, the self-inductance of the stator winding and the mutual-inductance between the windings. Ψ_{m} is the maximal amplitude of the permanent magnet flux and θ_{r} is the electrical rotor position.

$${\left[{\psi}_{s}(t)\right]}^{abc}=\left[\begin{array}{ccc}L& M& M\\ M& L& M\\ M& M& L\end{array}\right]{\left[{i}_{s}(t)\right]}^{abc}+{\mathrm{\Psi}}_{m}\left[\begin{array}{c}\mathrm{cos}({\mathrm{\theta}}_{r})\\ \mathrm{cos}({\mathrm{\theta}}_{r}-2\mathrm{\pi}/3)\\ \mathrm{cos}({\mathrm{\theta}}_{r}+2\mathrm{\pi}/3)\end{array}\right]$$

As the synchronous motor investigated in this paper is a surface mounted permanent magnet motive, the quantities L and M are constants. Consequently, the notation ${L}_{s}=L-M$ can be made to simplify modelling.

Several control methods are developed in the literature such as DTC and vector control techniques. In this work, a PMSM drive is designed using a vector control technique associated with combined PI and sliding mode controllers.

To achieve the vector control, the Park transformations from/to the rotating reference frame linked to the rotor are required. By applying Park transforms presented in [20] to Equations (1) and (2), the state-space equations of the dynamic electrical and mechanical systems can be derived [20]:
where u_{d}, u_{q} are the stator d- and q-axes voltages; i_{d}, i_{q} are the stator d- and q-axes currents; R is the stator resistance; Ω is the rotor angular velocity, P is pairs pole number; T_{ch} is the load torque; fr is the viscous friction coefficient and J is the inertia moment.

$$\{\begin{array}{c}\frac{d}{dt}\left[\begin{array}{c}{i}_{d}\\ {i}_{q}\\ \mathrm{\Omega}\end{array}\right]=\left[\begin{array}{ccc}-R/{L}_{s}& P\mathrm{\Omega}& 0\\ -P\mathrm{\Omega}& -R/{L}_{s}& -P{\mathrm{\Psi}}_{m}/{L}_{s}\\ 0& 3P{\mathrm{\Psi}}_{m}/2J& -{f}_{r}/J\end{array}\right]\left[\begin{array}{c}{i}_{d}\\ {i}_{q}\\ \mathrm{\Omega}\end{array}\right]+\left[\begin{array}{ccc}1/{L}_{s}& 0& 0\\ 0& 1/{L}_{s}& 0\\ 0& 0& 1/J\end{array}\right]\left[\begin{array}{c}{u}_{d}\\ {u}_{q}\\ {T}_{ch}\end{array}\right]\\ \mathrm{\Omega}=\left[\begin{array}{ccc}0& 0& 1\end{array}\right]{\left[\begin{array}{ccc}{i}_{d}& {i}_{d}& \mathrm{\Omega}\end{array}\right]}^{t}\end{array}$$

It is noticed from Equation (3) that the model in the rotating reference frame is coupled, and it contains nonlinear terms. Then, to achieve the vector control, the control loop presented in Figure 1 is opted. It consists of a decoupling block, a model linearization and additionally two control loops.

For speed control, two control loops have been used as mentioned previously. The inner control loop is based on PI controller and is utilized to regulate the direct and quadratic currents. To operate in the maximal torque the direct current is controlled to be zero. Indeed, the torque becomes linked to the quadratic current. On the other hand, the speed could be controlled directly by this quadratic current, which is necessarily the output of the outer control loop. In our case, the controller is a Fuzzy-SM controller.

The SMC is a nonlinear technique, insensitive to motor parameters variation and load change. However, its output law is noisy in the steady state. Basics of SMC design are introduced in the next section, followed by the proposed Fuzzy logic algorithm used for chattering minimization.

SMC has been employed to numerous applications investigated in literatures [6,7] and has been applied to several systems with various behaviours. However, to design SMC the system must be represented as state-space equations to simplify the choice of the sliding-mode surface and to construct the output control law as well. Those states are briefly explained in the following.

The SM controller is designed for Single-Input Single-Output linear systems, which have the following dynamic behaviour
where $x={\left[{x}_{1}\cdots {x}_{n}\right]}^{T}$ are system states, n is the system order and $u$ is the input.

$$\{\begin{array}{c}\begin{array}{ccc}{\dot{x}}_{1}={x}_{2}& \cdots & {\dot{x}}_{n}={\displaystyle \sum _{i=1}^{n}{a}_{i}{x}_{i}+bu}\end{array}\\ y={x}_{1}\end{array}$$

The sliding mode surface that can guarantee the asymptotic stability for such systems has been presented in [21,22] as follows:

$$S={\displaystyle \sum _{i=1}^{n}{c}_{i}{(y-{y}_{d})}^{i-1}\text{and}{c}_{n}=1}$$

In order to simplify the SMC output calculation, an ideal sliding is assumed. In addition, the system trajectory is forced toward the sliding-mode surface, furthermore the reaching law is chosen as:

$$\dot{S}=-k\mathrm{sgn}(S)$$

From the Equations (3), (5) and (6), the controller output law can be expressed as in the Equation (7). Where the load torque was estimated from the speed and the PMSM quadratic control current i_{q} based on the Equation (3) at steady state.

$${i}_{q}^{*}=2({T}_{ch}^{*}+{f}_{r}\mathrm{\Omega}-k\mathrm{sgn}(S))/3P{\mathrm{\Psi}}_{m}$$

$${T}_{ch}^{*}=3P{\mathrm{\Psi}}_{m}{i}_{q}/2-{f}_{r}\mathrm{\Omega}$$

It seems from Equation (7) that the control output law contains the discontinuous term $-2k\text{sign}\left(S\right)/3P{\mathrm{\Psi}}_{m}$. This expression ensures the stability and the sliding mode surface attraction. However, it generates torque ripples depending on the value of k, even at steady state operation. In order to attenuate this gain effect, a Fuzzy logic algorithm is adopted.

The SM controller scheme is presented in Figure 2, in which the discontinuous term is presented by ΔI and the equivalent control law is donated by I_{d-eq}.

The chattering minimization is achieved based on the calculation of a mitigation term. The concept is to multiply the discontinuous component by the mitigation term. To calculate this term, an algorithm is programmed using Sugeno Fuzzy inference technique. The Fuzzy block has two inputs, i.e., the SM surface S and the measured speed Ω. The proposed scheme together with the resulting control surface, obtained by plotting the inferred control action, is illustrated in Figure 3.

The control surface shows that the Fuzzy programmed algorithm intervenes to modify the discontinuous term amplitude appropriately. In order not to disturb the transient state, this amplitude is reduced when the system is close to the SM surface and not affected far from this surface. However, this action of the Fuzzy block is weakened by the second input at standstill and low speed to overcome static frictions.

To accomplish the required Fuzzy logic operations, three Fuzzy sets are used to describe the low speed range and five sets are exploited to present the distance between the operating point and SM surface. Three additional Fuzzy sets are introduced to define the appropriate mitigation value of the SM discontinuous term as shown in Figure 4. Furthermore, 15 input/output rules are established and arranged according to Table 1. In this way, the resulting Fuzzy logic algorithm ensure good chattering minimization in the steady stat without affecting the controller performance in transient operations.

Inputs | S-- | S- | S0 | S+ | S++ |
---|---|---|---|---|---|

Ω- | ε++ | ε+ | ε | ε+ | ε++ |

Ω | ε++ | ε+ | ε | ε+ | ε++ |

Ω+ | ε++ | ε+ | ε | ε+ | ε++ |

The proposed algorithm was validated by simulation using Matlab/Simulink^{®} (Version 2012a) linked to Plecs. The same algorithm was implemented using a test bench including 80W PMSM as shown in Figure 5. The machine parameters and PWM configuration requirement are presented in Table 2. To operate near nominal operating point, the PMSM was loaded by DC generator supplying a resistive bank. An incremental encoder was used to measure the speed and rotor position (2000 resolution). An eZdspF28335 board with 10 kHz sampling frequency was used. The control programmes are designed using rapid prototyping system in Matlab/Simulink^{®} environment. A Matlab/GUI real time interface was developed to display and make results record easily [23]. This experimental environment is illustrated in Figure 5.

Components | Values | Components | Values |
---|---|---|---|

Rated power | P = 80 W | Pole pairs | 4 |

DC-voltage | 24 V | Viscous friction | fr = 0.04 10^{-3} Kgm^{2} |

Rated speed | 4000 rpm | Rotation inertia | J = 0.5 10^{-3} Nm/rad |

Resistance and inductance | R = 0.43 Ω, L = 1.35 mH | Sampling | fs = 10 kHz |

Rated torque | 0.19 Nm | PWM frequency | F_{PWM} = 10 kHz |

The proposed Fuzzy-SM and SM controllers were tested by simulation in different operating conditions, and they had been compared to a traditional PI controller. The PI controller gains were obtained using pole compensation method providing the same response time as Fuzzy-SM and SM controllers i.e., ${K}_{P}^{\omega}=0.002,{T}_{i}^{\omega}=1.08$. In the first simulation test, the machine is operating under the same load torque for all of the three controllers. Also, the current PI controller gains were set identical as ${K}_{P}^{i-dq}=0.9,{T}_{i}^{i-dq}=0.0031$. A speed step reference is applied from 1500 rpm to 2000 rpm, and the speed response is shown in Figure 6a. These results demonstrate that the Fuzzy-SM and SM controllers have the same rising time compared to the PI.

Furthermore, when the same load disturbance is added and removed at 2000 rpm, it can be seen clearly from Figure 6c that the maximum fluctuation of the speed comes when the PI controller is adopted. Conversely, the advanced SM and Fuzzy-SM controllers are able to perform well, offering slight speed tracking errors, as well as short recovering time against disturbance.

It is apparent that the motor can recover to a constant speed quickly by using both controllers: Fuzzy-SM and SM controller. However, the weakness of the SMC is visible in the resulting noisy quadratic current supplying the PMSM, as shown in Figure 6b,d. Subsequently, the generated torque induces intense ripples and vibrations. The large current chattering in the conventional sliding-mode controller arises from the selection of large control gains.

This issue is surmounted by the Fuzzy-SMC that acts like SMC in transient state and like PI controller in steady state. One can observe, throughout Figure 6b,d, that the proposed Fuzzy-SM controller has good load disturbance rejection without producing current chattering phenomenon.

Those conclusions are confirmed by an FFT analysis of the quadratic current ripple at 2000 rpm, which is presented in Figure 6e. The results demonstrate that the quadratic current noise is considerably attenuated, when the proposed Fuzzy-SMC is used, compared to the standard SMC.

To experimentally evaluate the robustness of Fuzzy-SMC and to compare it with SMC, the same controller parameters used in simulation are used in practice. In the first experiment given in Figure 7, it can be seen that during a speed change from 1500 rpm to 2000 rpm, the speed response and steady state error are controlled. In addition, a load disturbance test is accomplished at 2000 rpm; 10% of load is added and removed and the results are shown in Figure 8. From speed curves of Figure 8a,c, it seems that SMC and Fuzzy-SMC have the same control performances. However, as mentioned in simulation, the PMSM reference and actual quadratic currents present more ripples (Figure 7b and Figure 8b). With Fuzzy-SMC the current becomes smoother as demonstrated by Figure 7d and Figure 8d.

The important feature required in PMSM speed control is less sensitivity to mechanical motor parameters and load variation. Those advantages are ensured with the developed association of SM controller and Fuzzy logic algorithm used to attenuate the current chattering. First, an SM controller is designed using the mechanical PMSM equations, and the load torque is estimated using motor quadrature current and speed. Moreover, the SM discontinues term effects that manifest in current chattering and torque oscillation, are eliminated using a fuzzy logic algorithm.

The effectiveness of the combined Fuzzy-SM Controller is validated through a series of simulation and experimental tests. The presented method is also compared to SM and conventional PI controllers. The results demonstrate that the system transient response, in closed loop with Fuzzy-SMC, is as good as an SMC. Furthermore, at the steady state, the current as well as the torque are enhanced when the proposed method is used. Indeed, the current disturbances encountered in common SMC are suppressed because the reference current chattering are avoided by the Fuzzy logic algorithm.

Fadil Hicham initiated the idea of the work. Ait Driss Youness conducted the literature review. Driss Yousfi and Mohamed Larbi Elhafyani prepared the experimental test bench. Abd Rahim Nasrudin supervised the work. All authors have read and approved the final manuscript.

The authors declare no conflict of interest.

- Abed, K. Techniques De Commande Avancees Appliquees Aux Machines De Type Asynchrone. Ph.D. Thesis, University Mentouri of Constantine, Constantine, Algeria, 22 Junuary 2010. [Google Scholar]
- Hsien, T.L.; Sun, Y.Y.; Tsai, M.C. H
_{∞}control for a sensorless permanent-magnet synchronous drive. In Proceedings of the Power Conversion Conference, Yokohama, Japan, 19–21 April 1993. - Foo, G.H.B.; Rahman, M.F. Direct torque control of an IPM synchronous motor drive at very low speed using a sliding-mode stator flux observer. IEEE Trans. Power Electron.
**2010**, 25, 933–942. [Google Scholar] [CrossRef] - Casey, B.B.; Azizur Rahman, M. Intelligent Speed Control of Interior Permanent Magnet Motor Drives Using a Single Untrained Artificial Neuron. IEEE Trans. Ind. Appl.
**2013**, 49, 1836–1843. [Google Scholar] - Fnaiech, M.A.; Betin, F.; Capolino, G.A.; Fnaiech, F. Fuzzy logic and sliding-mode controls applied to six-phase induction machine with open phases. IEEE Trans. Ind. Electron.
**2010**, 57, 354–364. [Google Scholar] [CrossRef] - Wang, L.; Chai, T.; Zhai, L. Neural-network-based terminal sliding mode control of robotic manipulators including actuator dynamics. IEEE Trans. Ind. Electron.
**2009**, 56, 3296–3304. [Google Scholar] [CrossRef] - Boubakir, A.; Boudjema, F.; Boubakir, C.; Ikhlef, N. Loi de Commande par Mode de Glissement avec Une Surface de Glissement Non Linéaire Appliquée au Système Hydraulique à Réservoirs Couplés. In Proceedings of the 4th International Conference on Computer Integrated Manufacturing, Algiers, Algeria, 3–4 November 2007.
- Fnaiech, M.A.; Betin, F.; Capolino, G.A. Sliding Mode Control applied to the Inner Loop Regulation of a Faulted Six Phase Induction Machine (6PIM). In Proceedings of the Electric Machines and Drives Conference, Miami, FL, USA, 3–6 May 2009; pp. 1305–1310.
- Lin, C.K. Nonsingular terminal sliding mode control of robot manipulators using fuzzy wavelet networks. IEEE Trans. Fuzzy Syst.
**2006**, 14, 849–859. [Google Scholar] [CrossRef] - Shaocheng, T.; Han-Xiong, L. Fuzzy adaptive sliding-mode control for MIMO nonlinear systems. IEEE Trans. Fuzzy Syst.
**2003**, 11, 354–360. [Google Scholar] [CrossRef] - Su, T.; Liaw, C.M. Adaptive positioning control for a LPMSM drive based on adapted inverse model and robust disturbance observer. IEEE Trans. Power Electron.
**2006**, 21, 505–517. [Google Scholar] - Gao, W.; Hung, J.C. Variable structure control of nonlinear systems: A new approach. IEEE Trans. Power Electron.
**1993**, 40, 45–55. [Google Scholar] - Lin, F.J.; Hwang, J.C.; Chou, P.H.; Hung, Y.C. FPGA-based intelligent-complementary sliding-mode control for PMLSM servo-drive system. IEEE Trans. Power Electron.
**2010**, 25, 2573–2587. [Google Scholar] [CrossRef] - Zhang, X.G.; Zhao, K.; Sun, L. A PMSM sliding mode control system based on a novel reaching law. In Proceedings of the International Conference on Electrical Machines and Systems, Beijing, China, 20–23 August 2011.
- Chiu, J.Y.-C.; Leung, K.K.-S.; Chung, H.S.-H. High-order switching surface in boundary control of inverters. IEEE Trans. Power Electron.
**2007**, 22, 1753–1765. [Google Scholar] [CrossRef] - Lin, C.-K.; Liu, T.-H.; Wei, M.-Y.; Fu, L.-C.; Hsiao, C.-F. Design and implementation of a chattering-free non-linear sliding-mode controller for interior permanent magnet synchronous drive systems. Electr. Power Appl.
**2012**, 6, 332–344. [Google Scholar] [CrossRef] - Mohammad, R.S.; Pooria, O.; Mohammad, H.K. Robust control strategy for electrically driven robot manipulators: Adaptive fuzzy sliding mode. Electr. Power Appl. Sci. Meas. Technol.
**2015**, 9, 322–334. [Google Scholar] - Zhao, K.; Zhang, X.G.; Sun, L.; Cheng, C. Sliding mode control of high-speed PMSM based on precision linearization control. In Proceedings of the Electrical Machines and Systems, Beijing, China, 20–23 August 2011; pp. 1–4.
- Fadil, H.; Yousfi, D.; Driss, Y.A.; Nasrudin, A.R. Synchronization techniques benchmarking of grid fault modes in single-phase systems. In Proceedings of the Renewable and Sustainable Energy Conference, Ouarzazate, Morocco, 17–19 October 2014; pp. 191–196.
- Li, S.; Zhou, M.; Yu, X. Design and Implementation of Terminal Sliding Mode Control Method for PMSM Speed Regulation System. IEEE Trans. Ind. Inform.
**2013**, 9, 1879–1891. [Google Scholar] [CrossRef] - Lopez, P.; Nouri, A.S. Théorie Elémentaire et Pratique de la Commande par les Régimes Glissants; Mathématiques & Applications 55; Springer: New York, NY, USA, 2006; pp. 25–113. [Google Scholar]
- Bartoszewicz, A. (Ed.) Sliding Mode Control; InTech: Rijeka, Croatia, 2011; pp. 25–109.
- Fadil, H.; Yousfi, D.; Elhadiyani, M.L.; Driss, Y.A.; Nasrudin, A.R. Design and Experimental Evaluation of a Fuzzy-PI Controller applied to the PMSM Speed control. In Proceedings of the Mediterranean Green Energy Forum, Marrakech, Morocco, 26–28 March 2015.

© 2015 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/4.0/).