1 Introduction

Permanent magnet synchronous motors (PMSMs), as the crucial and heart ingredients of complex electromechanical systems, have been comprehensively applied in urban rail vehicles, ship propulsion, high-speed elevators, and wind power generations, because of the strengths of fast dynamic torque response, high overload capability, and wide speed range [1,2,3]. PMSM is a typical nonlinear control system in that the nonlinear factors are usually ignored when the control accuracy is not demanded. The cascaded proportional-integral (PI) controller can generally tend to address the above problem [4, 5]. However, high precision control is necessarily desired in some areas such as numerical control machine tools and servo systems that the traditional PI control cannot solve the nonlinear characteristics of PMSM and thus the PMSM's nonlinearity elements must be considered to enhance control performance [6].

To attain a more effective analysis and control of the nonlinearity of the PMSM system, some relevant research has been investigated. In [7], Uddin and Lau used the Back-Stepping method for online parametric self-tuning speed control of PMSM, which appropriately demonstrates the system has good robustness. In [8], nonlinear optimal controller and observer schemes based on a θ-D approximation approach were proposed to averagely solve the problem of controlling the large initial states and excessive online computations. In [9], one improved nonlinear flux observer is studied for sensorless control of PMSM to validly eliminate the issues including dc offset and harmonics compared with the conventional rotor flux estimation method. In [10], a novel nonlinear feedback control based on the dragonfly swarm learning process(D-SLP) algorithm indicates that it can preferably enhance the performance, stability, and robustness of designing the nonlinear system controller. In [11], a novel adaptive super-twisting nonlinear Fractional-order PID sliding mode approach has been achieved to acquire a better speed control performance of PMSM. In [12], a multi-objective integrative control scenario is developed to simultaneously address the load’s vibration and torque ripple satisfactorily in a unitary nonlinear control framework. In [13], a method of robust anti-interference control for the angular position tracking control of a PMSM servo system is presented, it could inhibit the influence of uncertain disturbances in the drive control of permanent magnet synchronous machines, containing the parameter uncertainties and load disturbance. In [14], a kind of predictive control (PC) for PMSM control is introduced to achieve more stable and rapid performances as compared to other PCs. And for greatly analyzing the stability and stabilization problem of the nonlinear system of PMSM, an interval type-2 fuzzy-based sampled-data controller for nonlinear systems using novel fuzzy Lyapunov functional has been designed in [15]. For becomingly optimizing the dynamic performance of the PMSM speed regulation system, [16] develops an acceptable nonlinear speed-control algorithm utilizing slide-mode control. In [17], a precise two-axis flux linkage model for PMSMs is proposed to offer a better depiction of the relationship between the flux linkages and corresponding currents for a more exact analysis of saturation and cross-coupling effects that have a significant impact on the magnetic behavior for PMSM. Besides, [18] has studied a methodology, namely the nonlinear finite-element model (FEM), to quantify the effects and assess the relevance of geometric and material uncertainty for performance evaluation on PMSM. In [19], one method utilizing a reverse matrix converter, under variable generator input conditions, has acquired a suitable constant-speed control at low speed for PMSM.

Throughout the above studies, most of them are diffusely concentrated on the control performance optimization of PMSM and simulation analysis, while neglecting the speed ripple when PMSM operates at comparatively high speed and not emphasizing the validation of specific experiments, which has limited its application in high precision position and speed control systems. Therefore, a more appropriate control strategy is urgently demanded to be heightened and the necessity of experimental support is equally valuable. Feedback linearization is a control method for nonlinear systems using a differential geometric framework, which is mainly applied to affine nonlinear systems with feedback linearization. Diffeomorphism transformation and nonlinear state feedback are the core theory of feedback linearization control [20]. It converts algebraic nonlinear system dynamics to linear dynamics, so linear control techniques can be directly applied to nonlinear systems with linearized feedback. Moreover, unlike conventional approximate linearization method (e.g., Jacobi linearization, Taylor series expansion), feedback linearization is achieved through exact state transformations and input–output feedback.

In this article, the most widely used PMSM is taken as the research object, and the input–output precise feedback linearization (PFL [17]) control in nonlinear control theory is adopted as the control strategy to analyze the problem of converting the nonlinear system of PMSM and its converter into a linear system, optimize the corresponding control performance of the system and improve the operation stability of the system [21]. This article is organized as follows. In Sect. 2, the basic model of PMSM is introduced and the affine nonlinear system form of the motor is given. In Sect. 3, the APFL control method is discussed and the corresponding controller is designed. In Sects. 4 and 5, numerical simulation and experimental verification are performed. Finally, Sect. 6 concludes this article.

2 Mathematical Model of PMSM

In the analysis, the following assumptions are adopted: ignoring the leakage flux, disregarding magnetic saturation, eddy current loss, and hysteresis loss, presuming the three-phase symmetry, zero permeability of the permanent magnet material, and sinusoidal distribution of the rotor magnetic chain in the air gap. Then the equation of state for PMSM is as follows [22]:

$$\left[ {\begin{array}{*{20}c} {\mathop {i_{d} }\limits^{ \cdot } } \\ {\mathop {i_{q} }\limits^{ \cdot } } \\ {\mathop {\omega_{r} }\limits^{ \cdot } } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - \frac{{R_{s} i_{d} }}{{L_{d} }} + \frac{{\omega_{r} L_{q} i_{q} }}{{L_{q} }}} \\ {\frac{{R_{s} i_{q} }}{{L_{q} }} + \frac{{\omega_{r} L_{d} i_{d} }}{{L_{q} }} + \frac{{\omega_{r} \varphi_{f} }}{{L_{q} }}} \\ {\frac{{3n_{p} \varphi_{f} i_{q} + 3n_{p} \left( {L_{d} - L_{q} } \right)i_{d} i_{q} }}{2J} - \frac{{T_{L} }}{J}} \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {\frac{1}{{L_{d} }}} & 0 \\ 0 & {\frac{1}{{L_{q} }}} \\ 0 & 0 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {u_{d} } \\ {u_{q} } \\ \end{array} } \right]$$
(1)

where ud, uq represent the d-axis and q-axis components of the stator voltage; id, iq represent the d-axis and q-axis of the stator current; Ld, Lq represent the d-axis and q-axis elements of the stator inductances; Rs represents the stator resistance; ωr represents the mechanical angular speed of the rotor; np represents the number of pole pairs; J represents the moment of inertia; ψf represents the rotor flux; TL represents the load torque.

In the PMSM system studied in this article: Ld = Lq = L then the Eq. (1) is expressed in the standard form of the affine nonlinear system as follows:

$$\left\{ {\begin{array}{*{20}c} {\mathop x\limits^{ \cdot } = f\left( x \right) + g\left( x \right)u} \\ {y_{1} = h_{1} \left( x \right)} \\ {y_{2} = h_{2} \left( x \right)} \\ \end{array} } \right.$$
(2)

where

$$x = \left( {\begin{array}{*{20}c} {x_{1} } \\ {x_{2} } \\ {x_{3} } \\ \end{array} } \right) = \left( {\begin{array}{*{20}c} {i_{d} } \\ {i_{q} } \\ {\omega_{r} } \\ \end{array} } \right),g = \left[ {\begin{array}{*{20}c} {g_{1} } & 0 \\ 0 & {g_{2} } \\ 0 & 0 \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} \frac{1}{L} & 0 \\ 0 & \frac{1}{L} \\ 0 & 0 \\ \end{array} } \right],u = \left[ {\begin{array}{*{20}c} {u_{d} } \\ {u_{q} } \\ \end{array} } \right],f\left( x \right) = \left( {\begin{array}{*{20}c} {f_{1} \left( x \right)} \\ {f_{2} \left( x \right)} \\ {f_{3} \left( x \right)} \\ \end{array} } \right) = \left( {\begin{array}{*{20}c} { - \frac{{R_{s} i_{d} }}{L} + \omega_{r} i_{q} } \\ {\frac{{R_{s} i_{q} }}{L} + \omega_{r} i_{d} + \frac{{\omega_{r} \varphi_{f} }}{L}} \\ {\frac{{3n_{p} \varphi_{f} i_{q} }}{2J} - \frac{{T_{L} }}{J}} \\ \end{array} } \right)$$

where h1(x), h2(x) represent the scalar function.

3 Control Methods of PMSM System

3.1 Traditional PI Controlss

The state-equation of the PMSM in synchronous rotation d-q coordinates is [23–24]

$$\left\{ {\begin{array}{*{20}c} {u_{d} = L\frac{{di_{d} }}{dt} + R_{s} i_{d} - \omega_{e} Li_{q} } \\ {u_{q} = L\frac{{di_{q} }}{dt} + R_{s} i_{q} + \omega_{e} Li_{q} + \omega_{e} \varphi_{f} } \\ \end{array} } \right.$$
(3)

where ωe represents the electric angular speed and ωe = ωrnp.

From Eq. (3), it can be seen that there exists coupling in the d-q axis voltage, and usually, the coupling term is processed using feedforward compensation, i.e., the PI output is required for coupling offset during PI control. The feedforward compensation voltage [22] is given by

$$\left\{ {\begin{array}{*{20}c} {e_{d} = - \omega_{e} Li_{q} } \\ {e_{q} = \omega_{e} Li_{d} + \omega_{e} \varphi_{f} } \\ \end{array} } \right.$$
(4)

Substituting Eq. (4) into Eq. (3), the feedforward decoupling is

$$\left\{ {\begin{array}{*{20}c} {u_{d} = L\frac{{di_{d} }}{dt} + R_{s} i_{d} + e_{d} } \\ {u_{q} = L\frac{{di_{q} }}{dt} + R_{s} i_{q} + e_{q} } \\ \end{array} } \right.$$
(5)

The block diagram of SVPWM-based PMSM double-closed-loop PI control can be indicated as shown in Fig. 1.

Fig. 1
figure 1

Block diagram of double closed-loop control of PMSM

3.2 Advanced Precise Feedback Linearization Control of PMSM

To achieve APFL control of PMSM, the affine nonlinear mathematical model of PMSM is employed to complete the linearization theory. The specific implementation is to design the controller on a mathematical model with linearized feedback. In this section, the input–output feedback of PMSM is linearized by adequate feedback transformations, thus converting the complex nonlinear system synthesis problem into a comprehensively linear solution.

From Eqs. (1) and (2), we know that

$$\left\{ {\begin{array}{*{20}c} {\mathop {i_{d} }\limits^{ \cdot } = - \frac{{R_{s} i_{d} }}{L} + \omega_{r} i_{q} + \frac{{u_{d} }}{L}} \\ {\mathop {\omega_{r} }\limits^{ \cdot } = \frac{{3n_{p} \varphi_{f} i_{q} }}{2J} - \frac{{T_{L} }}{J}} \\ \end{array} } \right.$$
(6)

Since does not contain the actual control quantity, we perform a second-order derivative of ωr to obtain

$$\mathop {\omega_{r} }\limits^{ \cdot \cdot } = \frac{{3n_{p} \varphi_{f} \mathop {i_{q} }\limits^{ \cdot } }}{2J} - \frac{{\mathop {T_{L} }\limits^{ \cdot } }}{J} = \frac{{3n_{p} \varphi_{f} }}{2JL}\left( {R_{s} i_{q} + L\omega_{r} i_{d} + \omega_{r} \varphi_{f} + u_{q} } \right) - \frac{{\mathop {T_{L} }\limits^{ \cdot } }}{J}$$
(7)

At this point, a new pair of linear control input is introduced. According to Eqs. (6) and (7), we get

$$\left\{ {\begin{array}{*{20}c} {u_{d} = L\left( {v_{1} + \frac{{R_{s} i_{d} }}{L} - \omega_{r} i_{q} } \right)} \\ {u_{q} = \frac{2JL}{{3n_{p} \varphi_{f} }}\left( {v_{2} + \frac{{\mathop {T_{L} }\limits^{ \cdot } }}{J}} \right) - R_{s} i_{q} - L\omega_{r} i_{d} - \omega_{r} \varphi_{f} } \\ \end{array} } \right.$$
(8)

where \(v_{1} = \mathop {i_{d} }\limits^{ \cdot }\), \(v_{2} = \mathop {\omega_{r} }\limits^{ \cdot \cdot }\).

After the PFL of the PMSM is completed, the controller design can be performed according to the classical linear control principle and Eq. (8). This article designs the controller by adopting the pole configuration method. Assuming that providing a controlled system, then its state feedback law is

$$u = - Kx + \gamma$$
(9)

where γ is the input quantity of reference value, and K is the status feedback gain matrix. Equation (9) can satisfy the following equation of state

$$x = \left( {A - BK} \right)x + Bu$$
(10)

where matrix A = f(x), B = f(x) the poles are {λ1*, λ2*, λ3*, … λn*}. In turn, the following equation can be derived

$$\lambda_{i} = \left( {A - BK} \right) = \lambda_{i}^{*} i = 1,2, \ldots ,n$$
(11)

Therefore, there exists \(v_{1} = \mathop {i_{d} }\limits^{ \cdot } = - k_{1} i_{d} + \alpha i_{d}^{ * }\). The coefficients α = k1, k1 = 1/T0 are obtained from the definition of the closed-loop transfer function of the first order. So we have the following equation

$$\left\{ {\begin{array}{*{20}c} {v_{1} = - k_{1} i_{d} + k_{1} i_{d}^{*} = k_{1} \left( {i_{d}^{*} - i_{d} } \right)} \\ {v_{2} = - k_{2} \omega_{r} - k_{3} \mathop {\omega_{r} }\limits^{ \cdot } + \beta \omega_{r}^{*} = k_{2} \left( {\omega_{r}^{*} - \omega_{r} } \right) - k_{3} \omega_{r} } \\ \end{array} } \right.$$
(12)

To acquire a fast response, the system regulation time is taken to be a smaller value, i.e. ts = 2 ms, From the knowledge of the automatic control principle, ts = 3.5T0, thus T0 = 4/7 ms.

Similarly, β = k2 = ωn2, k3 = 2ξωn is obtained. Taking the damping ratio, ξ = 0.707, ts = 10ts, and owing to ts = 3.5/ξωn, thus ξωn = 175. Correspondingly, the undamped natural frequency ωn≈247.53, and k2 = ωn2 = 61,271, k3 = 2ξωn = 350, we get

$$\left\{ {\begin{array}{*{20}c} {v_{1} = 1750\left( {i_{d}^{*} - i_{d} } \right)} \\ {v_{2} = 61271\left( {\omega_{r}^{*} - \omega_{r} } \right) - 350\mathop {\omega_{r} }\limits^{ \cdot } } \\ \end{array} } \right.$$
(13)

Equations (13) and the values of each parameter are substituted into Eq. (11). Since the values of some terms are very small and have little impact on the whole system, after simplification with \(i_{d}^{*} = 0\), Eq. (8) turns out to be a simplified one with APFL.

$$\left\{ {\begin{array}{*{20}c} {u_{d} = - 1750Li_{d} } \\ {u_{q} = 61271 \cdot \frac{2JL}{{3n_{p} \varphi_{f} }}\left( {\omega_{r}^{*} - \omega_{r} } \right)} \\ \end{array} } \right.$$
(14)

The APFL control block diagram of PMSM is shown in Fig. 2.

Fig. 2
figure 2

The APFL control block diagram of PMSM

4 Simulation and Analysis of Results

In an attempt to verify the effectiveness of the above theoretical control, the PI control method based on SVPWM and the proposed PFL control were respectively used for comparison. Simulation models were built in Matlab/Simulink for both control systems.

Meanwhile, the identical speed command is set to ensure PI control and PFL control simulation runs under the equivalent conditions. Figure 3 shows the same load torque input for the PMSM system for both PFL control and APFL control. Figure 4(a) and 4(b) show the speed tracking process of PMSM under these two controls, which presents a slower rise-time because of the existence of the differential term in Eq. (14) under APFL control.

Fig. 3
figure 3

The input of torque load

Fig. 4
figure 4figure 4

Rotating speed and electromagnetic torque of PMSM under inputting load. aThe load is 4N•m when nref = 1120r/min. b The load is 8N•m when nref = 1120r/min. c The load is 4N•m when nref = 1618r/min. d The load is 8N•m when nref = 1618r/min

Under the input load torque shown in Fig. 3, the output magnitude of electromagnetic torque in the two approaches is shown in Figs.4(c) and (d). It can be revealed that the output torque fluctuation of feedback linearized control is narrower than PFL controller, the efficiency of torque regulation is increased, and the motor control performance is well improved.

Moreover, selecting one cycle that is after 0.30 s, the FFT analysis of the A-phase current at a carrier frequency of 20 kHz and a fundamental frequency of 100 Hz is performed. The results are shown in Figs.5, which have represented that the THD (total harmonic distortion) of PFL control and APFL control is 52.00% and 39.08%, respectively, thus the THD of APFL control is reduced. Through the simulation results’ analysis, it can be known that the APFL control has good control performance.

Fig. 5
figure 5

FFT analysis of phase current in PMSM. a The THD of PFL controller b The THD of APFL controller

5 Experiments and Analysis of Results

This section presents experimental verification of the PMSM control system based on APFL of input–output the experimental platform is depicted in Fig. 6.

Fig. 6
figure 6

The experimental platform of PMSM

First, the low-medium speed experiment was conducted, and the torque is taken as disturbance and the load torque is selected as 4 N·m and 8 N·m, and its effect on the motor speed and current is shown in Fig. 7.The Δn% is the error of the control speed. Although 8 N·m exceeds the maximum load torque of the motor, the excess is small and the time is short, which is significant to examine the stability of the motor with APFL control. Figure 7(a) shows the Δn% is 4.20% for a load torque of 4 N·m, and Fig. 7(b) shows the Δn% is 12.50% for a load torque of 8 N·m.

Fig. 7
figure 7

Speed test of input load torque for PMSM. a Input load torque of 4 N·m(1120 r/min). b Input load torque of 8 N·m(1120 r/min)

Second, based on the above, to test the control effect of the proposed APFL control method at higher speeds, experiments were conducted at the measured currents of 1618r/min and 1835r/min to observe the stability of the speeds. The PMSM speed and current variation are respectively displayed in Fig. 8, in which input load torque is 4 N·m (the input torque inertia of 8 N·m is removed in this case). From Fig. 8, it can be seen that the Δn% is 4.64% at a speed of 1618 r/min, and the Δn% is 4.90% at a speed of 1835 r/min.

Fig. 8
figure 8

Speed test of input load torque for comparatively high speed of PMSM. a Input load torque of 4 N·m (1618 r/min). b Input load torque of 4 N·m (1835 r/min)

Then we analyze the experimental results from a microscopic perspective. Firstly, the three-phase stationary coordinate system is transformed into a two-phase rotating coordinate system by Clark transform and Park transforms, that is, the current ia, ib, ic is changed into id, iq, and the speed n is changed into ω, where ω is the electrical rotor angular speed. After that, the system time-domain diagram and phase diagram are drawn, taking Fig. 7(a) and Fig. 8(b) as examples. From Fig. 9 and Fig. 10, it can be seen that before and after adding the load torque, when the motor is running at low-medium speed and higher speed, the variables all always move irregularly within a certain range around two stable speed points [25]. The above content reflects the effectiveness of APFL control in PMSM.

Fig. 9
figure 9

Time-domain diagram and three-dimensional phase diagram of Fig. 7(a). aTime-domain diagram. b Phase diagram of id-iq-ω

Fig. 10
figure 10

Time-domain diagram and three-dimensional phase diagram in Fig. 8(b). aTime-domain diagram. b Phase diagram of id-iq-ω

s show that the Δn% of PMSM at 1120 r/min are 4.20% and 12.50%, respectively. When the input load torque is 4 N·m, the experimental results show that the Δn% of PMSM at 1618 r/min and 1835 r/min are 4.64% and 4.90%, respectively. In addition, the three-dimensional phase diagram also shows that the entire trajectory of the variables is within a certain range. Through the above experimental results’ analysis, it can be known that the APFL control achieves a better control effect.

6 Conclusion

In this article, the APFL strategy of input and output is improved to obtain a more accurate speed tracking effect for the shortcomings of low control accuracy and poor stability of the traditional control method of PMSM. Furthermore, The APFL with differential homeomorphism transformation and nonlinear system feedback linearization is simplified on the basis of PFL. Simulation and experiment show that the APFL effectively improves the speed stability and speed control accuracy of PMSM with drawing the corresponding phase diagram. It is proved that the APFL control method is more effective than the PFL control. It also can ensure stable speed tracking even when the motor is running at a higher speed. The control performance of PMSM is also improved with the advantages of small static error, strong robustness and high control accuracy when the APFL is adopted. Meanwhile, the treatment of differential terms, disturbance terms, and viscosity coefficients of the PMSM system will be deeply studied in the future to further optimize the performance of input–output APFL control for PMSM. In conclusion, the modified APFL control for PMSM has excellent dynamicity and stability.