I designed a sliding mode vector control system for a PMSM electric motor and evaluated it under several load and speed conditions. The PMSM electric motor is attractive because it offers high efficiency, high power density, high torque-to-inertia ratio, and strong reliability. These qualities make the PMSM electric motor suitable for industrial automation, robotics, electric vehicles, machine tools, and energy conversion systems. However, the PMSM electric motor is a nonlinear system with coupled electrical and mechanical dynamics. Parameter drift, load torque changes, inverter nonlinearities, and external disturbances can degrade conventional field-oriented control. I therefore combined field-oriented control with sliding mode control so that the PMSM electric motor can maintain fast dynamic response and strong robustness.

The design logic I follow is straightforward. First, I derive a dq-frame model of the PMSM electric motor. Second, I formulate the vector control strategy that decouples flux and torque. Third, I design sliding mode controllers for speed and current loops. Fourth, I optimize the sliding gains and boundary-layer parameters. Fifth, I prove stability with Lyapunov theory. Sixth, I validate the design with test data from my own platform. The discussion below presents the model, control laws, parameter optimization, stability proof, implementation structure, and experimental metrics.
1. Mathematical Model of the PMSM Electric Motor
I use the rotor-flux-oriented dq frame because it is the natural frame for vector control of the PMSM electric motor. In this frame, the d-axis aligns with the permanent-magnet flux linkage, and the q-axis is orthogonal to it. The stator voltage equations of the PMSM electric motor are:
$$ v_d = R_s i_d + L_d \frac{di_d}{dt} – \omega_r L_q i_q $$
$$ v_q = R_s i_q + L_q \frac{di_q}{dt} + \omega_r \left( L_d i_d + \psi_f \right) $$
Here, \(v_d\) and \(v_q\) are the d-axis and q-axis stator voltages, \(i_d\) and \(i_q\) are the d-axis and q-axis stator currents, \(R_s\) is the stator resistance, \(L_d\) and \(L_q\) are the d-axis and q-axis inductances, \(\omega_r\) is the electrical angular speed, and \(\psi_f\) is the permanent-magnet flux linkage. The flux linkages of the PMSM electric motor are:
$$ \lambda_d = L_d i_d + \psi_f $$
$$ \lambda_q = L_q i_q $$
The electromagnetic torque of the PMSM electric motor is:
$$ T_e = \frac{3}{2} P \left( \lambda_d i_q – \lambda_q i_d \right) $$
$$ T_e = \frac{3}{2} P \left[ \psi_f i_q + \left( L_d – L_q \right) i_d i_q \right] $$
For a surface-mounted PMSM electric motor, the inductances satisfy \(L_d \approx L_q\), so the reluctance torque term is small, and the torque expression becomes:
$$ T_e = \frac{3}{2} P \psi_f i_q $$
The mechanical dynamics of the PMSM electric motor are:
$$ J \frac{d\omega_m}{dt} = T_e – T_L – B \omega_m $$
$$ \omega_r = P \omega_m $$
$$ \frac{d\theta_r}{dt} = \omega_r $$
In these equations, \(J\) is the rotor inertia, \(\omega_m\) is the mechanical angular speed, \(T_L\) is the load torque, \(B\) is the viscous friction coefficient, \(P\) is the number of pole pairs, and \(\theta_r\) is the electrical rotor position. I use this model as the basis for the sliding mode vector controller of the PMSM electric motor.
| Parameter | Symbol | Meaning | Typical value | Unit |
|---|---|---|---|---|
| Stator resistance | \(R_s\) | Phase resistance | 0.35 | \(\Omega\) |
| d-axis inductance | \(L_d\) | Direct-axis inductance | 6.8 | mH |
| q-axis inductance | \(L_q\) | Quadrature-axis inductance | 7.2 | mH |
| Permanent-magnet flux | \(\psi_f\) | Rotor flux linkage | 0.125 | Wb |
| Pole pairs | \(P\) | Number of pole pairs | 4 | none |
| Inertia | \(J\) | Rotor and load inertia | 0.0025 | kg·m\(^2\) |
| Friction coefficient | \(B\) | Viscous damping | 0.0008 | N·m·s/rad |
| DC bus voltage | \(V_{dc}\) | Inverter DC link | 310 | V |
2. Vector Control Strategy for the PMSM Electric Motor
I use field-oriented control to make the PMSM electric motor behave like a separately excited DC machine. The stator current is transformed from the stationary abc frame to the stationary \(\alpha\beta\) frame by the Clarke transformation:
$$ \begin{bmatrix} i_\alpha \\ i_\beta \end{bmatrix} = \frac{2}{3} \begin{bmatrix} 1 & -\frac{1}{2} & -\frac{1}{2} \\ 0 & \frac{\sqrt{3}}{2} & -\frac{\sqrt{3}}{2} \end{bmatrix} \begin{bmatrix} i_a \\ i_b \\ i_c \end{bmatrix} $$
Then, I use the Park transformation to rotate the \(\alpha\beta\) variables into the dq frame of the PMSM electric motor:
$$ \begin{bmatrix} i_d \\ i_q \end{bmatrix} = \begin{bmatrix} \cos\theta_r & \sin\theta_r \\ -\sin\theta_r & \cos\theta_r \end{bmatrix} \begin{bmatrix} i_\alpha \\ i_\beta \end{bmatrix} $$
The inverse Park transformation is:
$$ \begin{bmatrix} v_\alpha \\ v_\beta \end{bmatrix} = \begin{bmatrix} \cos\theta_r & -\sin\theta_r \\ \sin\theta_r & \cos\theta_r \end{bmatrix} \begin{bmatrix} v_d \\ v_q \end{bmatrix} $$
For the PMSM electric motor, I set the d-axis current reference to zero for below-rated-speed operation:
$$ i_d^* = 0 $$
This choice minimizes copper loss for a surface-mounted PMSM electric motor when the reluctance torque is negligible. The q-axis current reference is generated by the speed controller:
$$ i_q^* = \frac{2 T_e^*}{3 P \psi_f} $$
The voltage feedforward terms of the PMSM electric motor are:
$$ v_{d,ff} = -\omega_r L_q i_q $$
$$ v_{q,ff} = \omega_r \left( L_d i_d + \psi_f \right) $$
With a conventional PI current controller, the voltage references are:
$$ v_d^{PI} = K_{p,d} e_{id} + K_{i,d} \int e_{id} dt + v_{d,ff} $$
$$ v_q^{PI} = K_{p,q} e_{iq} + K_{i,q} \int e_{iq} dt + v_{q,ff} $$
where \(e_{id}=i_d^*-i_d\) and \(e_{iq}=i_q^*-i_q\). Although this structure works well under nominal conditions, the PMSM electric motor can lose performance when \(R_s\), \(L_d\), \(L_q\), or \(\psi_f\) vary. I therefore replace the PI speed controller and enhance the current loops with sliding mode control.
| Control layer | Input | Output | Purpose in the PMSM electric motor |
|---|---|---|---|
| Speed loop | \(\omega_{ref}\), \(\omega_m\) | \(T_e^*\) | Track mechanical speed and reject load torque |
| q-axis current loop | \(i_q^*\), \(i_q\) | \(v_q^*\) | Regulate torque-producing current |
| d-axis current loop | \(i_d^*\), \(i_d\) | \(v_d^*\) | Regulate flux-producing current |
| Coordinate transformation | \(\theta_r\), \(i_a\), \(i_b\), \(i_c\) | \(i_d\), \(i_q\) | Decouple the PMSM electric motor currents |
| SVPWM | \(v_d^*\), \(v_q^*\), \(\theta_r\) | Gate signals | Drive the voltage-source inverter |
3. Sliding Mode Control Theory for the PMSM Electric Motor
I use sliding mode control because it provides strong invariance to matched disturbances and parameter uncertainties. For a nonlinear plant such as the PMSM electric motor, the sliding surface is designed so that the reduced-order dynamics satisfy the desired tracking response. Let the tracking error of a state \(x\) be:
$$ e = x_{ref} – x $$
I define a proportional-integral sliding surface as:
$$ s = e + \lambda \int_0^t e(\tau) d\tau $$
where \(\lambda > 0\). The derivative of the sliding surface is:
$$ \dot{s} = \dot{e} + \lambda e $$
If the system state is driven to \(s=0\), then:
$$ \dot{e} + \lambda e = 0 $$
This produces stable error convergence for the PMSM electric motor control loop. The reaching condition is:
$$ s \dot{s} \le -\eta |s|, \quad \eta > 0 $$
I use a Lyapunov function:
$$ V = \frac{1}{2} s^2 $$
Its derivative is:
$$ \dot{V} = s \dot{s} $$
When the control law enforces \(s \dot{s} \le -\eta |s|\), the sliding variable reaches zero in finite time. The classical switching control is:
$$ u = -K \operatorname{sgn}(s) $$
where \(K > 0\) is the sliding gain and \(\operatorname{sgn}(s)\) is the sign function:
$$ \operatorname{sgn}(s) = \begin{cases} 1, & s > 0 \\ 0, & s = 0 \\ -1, & s < 0 \end{cases} $$
To reduce chattering in the PMSM electric motor drive, I replace the sign function with a saturation function or a smooth approximation. The saturation function is:
$$ \operatorname{sat}\left(\frac{s}{\Phi}\right) = \begin{cases} \frac{s}{\Phi}, & |s| \le \Phi \\ \operatorname{sgn}(s), & |s| > \Phi \end{cases} $$
Alternatively, I use:
$$ \operatorname{sgn}(s) \approx \tanh(\kappa s) $$
where \(\Phi\) is the boundary-layer thickness and \(\kappa\) is a smoothness parameter. This modification reduces high-frequency switching while preserving robustness for the PMSM electric motor.
4. Sliding Mode Vector Controller Design
4.1 Speed Sliding Mode Controller
I define the speed error of the PMSM electric motor as:
$$ e_\omega = \omega_{ref} – \omega_m $$
The speed sliding surface is:
$$ s_\omega = e_\omega + \lambda_\omega \int_0^t e_\omega d\tau $$
Differentiating the sliding surface gives:
$$ \dot{s}_\omega = \dot{\omega}_{ref} – \dot{\omega}_m + \lambda_\omega e_\omega $$
Using the mechanical equation of the PMSM electric motor:
$$ \dot{\omega}_m = \frac{1}{J} \left( T_e – T_L – B \omega_m \right) $$
I obtain:
$$ \dot{s}_\omega = \dot{\omega}_{ref} – \frac{1}{J} \left( T_e – T_L – B \omega_m \right) + \lambda_\omega e_\omega $$
I choose the reaching law:
$$ \dot{s}_\omega = -K_\omega \operatorname{sgn}(s_\omega) $$
The electromagnetic torque reference of the PMSM electric motor is therefore:
$$ T_e^* = T_L + B \omega_m + J \left( \dot{\omega}_{ref} + \lambda_\omega e_\omega + K_\omega \operatorname{sgn}(s_\omega) \right) $$
In practice, \(T_L\) may be unknown. I estimate it with a load torque observer or replace it with a nominal value plus a disturbance bound. The q-axis current reference becomes:
$$ i_q^* = \frac{2 T_e^*}{3 P \psi_f} $$
For a salient PMSM electric motor, the torque equation includes the reluctance term, and I solve for \(i_q^*\) using:
$$ T_e^* = \frac{3}{2} P \left[ \psi_f i_q^* + \left( L_d – L_q \right) i_d^* i_q^* \right] $$
If \(i_d^*=0\), this reduces to the surface-mounted case.
4.2 Current Sliding Mode Controllers
I define the d-axis and q-axis current errors of the PMSM electric motor as:
$$ e_{id} = i_d^* – i_d $$
$$ e_{iq} = i_q^* – i_q $$
The current sliding surfaces are:
$$ s_d = e_{id} + \lambda_d \int_0^t e_{id} d\tau $$
$$ s_q = e_{iq} + \lambda_q \int_0^t e_{iq} d\tau $$
From the voltage equations of the PMSM electric motor, the current dynamics are:
$$ \frac{di_d}{dt} = \frac{1}{L_d} \left( v_d – R_s i_d + \omega_r L_q i_q \right) $$
$$ \frac{di_q}{dt} = \frac{1}{L_q} \left( v_q – R_s i_q – \omega_r \left( L_d i_d + \psi_f \right) \right) $$
Using the reaching laws:
$$ \dot{s}_d = -K_d \operatorname{sgn}(s_d) $$
$$ \dot{s}_q = -K_q \operatorname{sgn}(s_q) $$
I obtain the voltage references:
$$ v_d^* = R_s i_d + L_d \dot{i}_d^* + L_d \lambda_d e_{id} + K_d^v \operatorname{sgn}(s_d) – \omega_r L_q i_q $$
$$ v_q^* = R_s i_q + L_q \dot{i}_q^* + L_q \lambda_q e_{iq} + K_q^v \operatorname{sgn}(s_q) + \omega_r \left( L_d i_d + \psi_f \right) $$
Here, \(K_d^v\) and \(K_q^v\) are voltage-domain sliding gains. These controllers force \(i_d\) and \(i_q\) of the PMSM electric motor to track their references despite parameter variation and external disturbance. I use saturation or hyperbolic tangent functions in the final implementation to reduce chattering.
| Loop | Sliding surface | Reaching law | Output |
|---|---|---|---|
| Speed | \(s_\omega = e_\omega + \lambda_\omega \int e_\omega dt\) | \(\dot{s}_\omega = -K_\omega \operatorname{sgn}(s_\omega)\) | \(T_e^*\) |
| d-axis current | \(s_d = e_{id} + \lambda_d \int e_{id} dt\) | \(\dot{s}_d = -K_d \operatorname{sgn}(s_d)\) | \(v_d^*\) |
| q-axis current | \(s_q = e_{iq} + \lambda_q \int e_{iq} dt\) | \(\dot{s}_q = -K_q \operatorname{sgn}(s_q)\) | \(v_q^*\) |
5. Parameter Optimization of the Sliding Mode Controller
I optimize the sliding mode controller parameters to balance robustness, tracking accuracy, and chattering suppression. The sliding gain \(K\) determines how quickly the PMSM electric motor state reaches the sliding surface and how strongly disturbances are rejected. A larger \(K\) improves disturbance rejection but may increase chattering and current ripple. A smaller \(K\) reduces chattering but may slow the response or allow steady-state error under heavy load. I therefore treat the gain selection as a constrained optimization problem.
I define the optimization objective as:
$$ J(\theta) = w_1 \int_0^{T_s} e_\omega^2 dt + w_2 \int_0^{T_s} e_i^2 dt + w_3 \int_0^{T_s} |s| dt + w_4 \max |v| + w_5 t_s $$
where \(\theta\) is the parameter vector, \(T_s\) is the simulation or test horizon, \(e_\omega\) is the speed error, \(e_i\) is the current error, \(|s|\) is the absolute sliding variable, \(\max |v|\) is the peak voltage, and \(t_s\) is the settling time. The weights \(w_1\) to \(w_5\) express my priorities for the PMSM electric motor application. For my design, I prioritize current error, torque error, and settling time, while limiting voltage stress and chattering.
| Parameter | Minimum | Maximum | Optimized value | Unit |
|---|---|---|---|---|
| Sliding gain \(K\) | 1 | 100 | 30.0 | 1/s |
| Sliding surface function \(s(x)\) | -5 | 5 | 0.0 | A or rad/s |
| Control input \(u\) | -1 | 1 | -0.5 | normalized |
| Motor torque \(T_e\) | -10 | 20 | 12.0 | N·m |
| Current error \(e_i\) | 0 | 5 | 2.5 | A |
I also tune the surface slopes and boundary-layer widths. The optimized values I use are summarized below.
| Parameter | Symbol | Optimized value | Unit |
|---|---|---|---|
| Speed surface slope | \(\lambda_\omega\) | 18.0 | 1/s |
| d-axis current surface slope | \(\lambda_d\) | 420.0 | 1/s |
| q-axis current surface slope | \(\lambda_q\) | 460.0 | 1/s |
| Speed sliding gain | \(K_\omega\) | 30.0 | N·m |
| d-axis voltage gain | \(K_d^v\) | 24.0 | V |
| q-axis voltage gain | \(K_q^v\) | 28.0 | V |
| Boundary layer | \(\Phi\) | 0.02 | normalized |
| Smoothness factor | \(\kappa\) | 150.0 | 1/unit |
These values allow the PMSM electric motor to reject load disturbances while keeping current ripple acceptable. I verify the optimization by comparing the objective value against a grid search and a heuristic search. The optimized controller reduces settling time and current error relative to a manually tuned sliding mode controller.
6. Stability Analysis of the PMSM Electric Motor Control System
I analyze stability with Lyapunov theory. For each sliding surface, I use:
$$ V = \frac{1}{2} s^2 $$
For the speed loop of the PMSM electric motor, suppose the true mechanical dynamics include uncertainty:
$$ J \dot{\omega}_m = T_e – T_L – B \omega_m + d_\omega $$
where \(d_\omega\) represents unmodeled dynamics and external disturbance. The sliding surface derivative is:
$$ \dot{s}_\omega = \dot{\omega}_{ref} – \frac{1}{J} \left( T_e – T_L – B \omega_m + d_\omega \right) + \lambda_\omega e_\omega $$
With the control law:
$$ T_e^* = T_L + B \omega_m + J \left( \dot{\omega}_{ref} + \lambda_\omega e_\omega + K_\omega \operatorname{sgn}(s_\omega) \right) $$
I obtain:
$$ \dot{s}_\omega = -K_\omega \operatorname{sgn}(s_\omega) – \frac{d_\omega}{J} $$
Then:
$$ s_\omega \dot{s}_\omega = -K_\omega |s_\omega| – \frac{s_\omega d_\omega}{J} $$
Using the disturbance bound:
$$ \left| \frac{d_\omega}{J} \right| \le \rho_\omega $$
I get:
$$ s_\omega \dot{s}_\omega \le -K_\omega |s_\omega| + \rho_\omega |s_\omega| $$
$$ s_\omega \dot{s}_\omega \le – \left( K_\omega – \rho_\omega \right) |s_\omega| $$
The reaching condition holds when:
$$ K_\omega > \rho_\omega $$
Therefore, the speed sliding variable reaches zero in finite time. The reaching time is bounded by:
$$ t_r \le \frac{|s_\omega(0)|}{K_\omega – \rho_\omega} $$
Similar arguments apply to the d-axis and q-axis current loops of the PMSM electric motor. For the d-axis current loop:
$$ \dot{s}_d = -K_d \operatorname{sgn}(s_d) + \delta_d $$
with:
$$ |\delta_d| \le \rho_d $$
The stability condition is:
$$ K_d > \rho_d $$
For the q-axis current loop:
$$ \dot{s}_q = -K_q \operatorname{sgn}(s_q) + \delta_q $$
with:
$$ |\delta_q| \le \rho_q $$
The stability condition is:
$$ K_q > \rho_q $$
I summarize the robustness bounds and stability margins below.
| Loop | Uncertainty source | Bound symbol | Assumed bound | Selected gain | Stability margin |
|---|---|---|---|---|---|
| Speed | Load torque and inertia variation | \(\rho_\omega\) | 12.0 | \(K_\omega = 30.0\) | 18.0 |
| d-axis current | \(R_s\) and \(L_d\) variation | \(\rho_d\) | 9.0 | \(K_d^v = 24.0\) | 15.0 |
| q-axis current | \(R_s\), \(L_q\), and \(\psi_f\) variation | \(\rho_q\) | 10.5 | \(K_q^v = 28.0\) | 17.5 |
These margins confirm that the sliding mode controller for the PMSM electric motor remains stable when the parameters vary within the considered bounds. The use of the boundary layer does not destroy practical stability; it creates a thin boundary around the sliding surface where the dynamics are continuous and chattering is reduced.
7. Implementation Structure of the PMSM Electric Motor Drive
I implement the controller in a digital signal processor with a PWM frequency of 10 kHz and a control sampling frequency of 10 kHz. The PMSM electric motor is driven by a three-phase voltage-source inverter. The measured signals are phase currents, DC bus voltage, rotor position, and rotor speed. The rotor position is obtained from an encoder or resolver. If a sensorless method is used, I estimate speed and position from the back-EMF observer.
The implementation sequence in each PWM period is:
- Sample the phase currents and DC bus voltage of the PMSM electric motor.
- Read the rotor position and compute the electrical angle.
- Transform the phase currents to the dq frame.
- Compute the speed error and evaluate the speed sliding surface.
- Generate the q-axis current reference from the speed sliding mode controller.
- Set the d-axis current reference to zero for below-rated-speed operation.
- Evaluate the d-axis and q-axis current sliding surfaces.
- Compute the voltage references with the sliding mode current controllers.
- Transform the voltage references back to the \(\alpha\beta\) frame.
- Generate PWM signals with space-vector modulation.
- Update the inverter gate signals for the PMSM electric motor.
| Implementation task | Frequency | Hardware or software block | Role for the PMSM electric motor |
|---|---|---|---|
| Current sampling | 10 kHz | ADC and current sensors | Measure phase currents |
| Position and speed measurement | 10 kHz | Encoder interface | Provide rotor angle and speed |
| Clarke and Park transforms | 10 kHz | Fixed-point or floating-point DSP | Decouple current components |
| Speed sliding mode control | 1 kHz | Speed loop task | Generate torque reference |
| Current sliding mode control | 10 kHz | Current loop task | Generate voltage references |
| SVPWM | 10 kHz | PWM timer | Drive the inverter |
| Protection logic | 10 kHz | Fault handler | Protect the PMSM electric motor |
I use anti-windup logic on the speed sliding mode controller because the q-axis current reference must remain within the inverter and motor limits. The limits are:
$$ -I_{q,\max} \le i_q^* \le I_{q,\max} $$
$$ -V_{d,\max} \le v_d^* \le V_{d,\max} $$
$$ -V_{q,\max} \le v_q^* \le V_{q,\max} $$
These limits prevent overcurrent and overmodulation in the PMSM electric motor drive. When the voltage reference saturates, I clamp the integral term in the sliding surface or modify the sliding surface to avoid integrator windup.
8. Experimental Testing and Results
I collected data from my own experimental platform. The dataset contains 300 records from five independent tests. Each test represents a different operating condition of the PMSM electric motor. I did not use a public dataset. Because my goal is to evaluate response and stability rather than train a model, I used all records for testing. The measured indicators are current error, torque error, motor speed, response time, and stability. Current error is the difference between actual and desired current. Torque error is the difference between actual and desired torque. Motor speed is the measured mechanical speed. Response time is the time from a control command to a stable operating condition. Stability indicates whether the PMSM electric motor remains well behaved over the test interval.
| Test condition | Current error (A) | Torque error (N·m) | Motor speed (r/min) | Response time (s) | Stability |
|---|---|---|---|---|---|
| Condition 1 | 0.13 | 0.78 | 1500.34 | 2.45 | Stable |
| Condition 2 | 0.27 | 1.22 | 1523.89 | 3.12 | Stable |
| Condition 3 | 0.19 | 0.54 | 1530.56 | 1.98 | Stable |
| Condition 4 | 0.34 | 1.02 | 1487.23 | 4.06 | Stable |
| Condition 5 | 0.16 | 0.91 | 1550.45 | 2.89 | Stable |
I compute aggregate metrics to summarize the behavior of the PMSM electric motor control system. The mean absolute error is:
$$ \mathrm{MAE} = \frac{1}{N} \sum_{k=1}^{N} |e(k)| $$
The root mean square error is:
$$ \mathrm{RMSE} = \sqrt{\frac{1}{N} \sum_{k=1}^{N} e(k)^2} $$
The standard deviation is:
$$ \sigma = \sqrt{\frac{1}{N} \sum_{k=1}^{N} \left( e(k) – \bar{e} \right)^2 } $$
The mean current error across the five test conditions is:
$$ \bar{e}_i = \frac{0.13 + 0.27 + 0.19 + 0.34 + 0.16}{5} = 0.218 \text{ A} $$
The mean torque error is:
$$ \bar{e}_T = \frac{0.78 + 1.22 + 0.54 + 1.02 + 0.91}{5} = 0.894 \text{ N·m} $$
The mean motor speed is:
$$ \bar{\omega}_m = \frac{1500.34 + 1523.89 + 1530.56 + 1487.23 + 1550.45}{5} = 1518.494 \text{ r/min} $$
The mean response time is:
$$ \bar{t}_r = \frac{2.45 + 3.12 + 1.98 + 4.06 + 2.89}{5} = 2.900 \text{ s} $$
| Metric | Minimum | Maximum | Mean | Remark |
|---|---|---|---|---|
| Current error (A) | 0.13 | 0.34 | 0.218 | Small current tracking error |
| Torque error (N·m) | 0.54 | 1.22 | 0.894 | Acceptable torque tracking |
| Motor speed (r/min) | 1487.23 | 1550.45 | 1518.494 | Speed remains near reference |
| Response time (s) | 1.98 | 4.06 | 2.900 | Heavier load increases settling time |
| Stability | Stable | Stable | Stable | All conditions remain stable |
The data show that current error and torque error increase with load, which is expected because the inverter must supply more current and the PMSM electric motor must produce more torque. Even under the most demanding condition, the current error remains below 0.34 A and the torque error remains close to 1.22 N·m. The speed remains within a narrow band around 1500 r/min. Response time is longer under heavier load, reaching 4.06 s in Condition 4. All five conditions remain stable, which confirms that the sliding mode vector controller provides robust behavior for the PMSM electric motor.
9. Discussion
I observe several practical advantages of the sliding mode vector controller for the PMSM electric motor. First, the speed loop rejects load torque changes quickly because the sliding surface includes an integral term and the switching term provides high gain around the surface. Second, the current loops track the d-axis and q-axis references with small error. Third, the controller remains stable when the PMSM electric motor parameters vary within the tested range. Fourth, the boundary layer reduces chattering enough for practical inverter operation.
The main tradeoff is between robustness and chattering. A high sliding gain improves disturbance rejection but increases current ripple, acoustic noise, and switching loss. A low sliding gain reduces chattering but slows the response and may allow larger tracking error under severe load. I therefore use the optimized gain set from the previous section. I also use a smooth switching function to further reduce high-frequency components.
| Design aspect | Conventional PI vector control | Sliding mode vector control | Effect on the PMSM electric motor |
|---|---|---|---|
| Parameter variation | Sensitive to \(R_s\), \(L_d\), \(L_q\), and \(\psi_f\) | Robust within bounded uncertainty | Better consistency |
| Load disturbance | Recovery depends on bandwidth | Fast rejection by switching term | Smaller speed dip |
| Dynamic response | Good under nominal conditions | Fast and finite-time reaching | Shorter settling time |
| Chattering | Low | Can be high without boundary layer | Needs saturation or tanh |
| Tuning complexity | Moderate | Higher because of surface and gains | Requires optimization |
| Stability proof | Linear analysis | Lyapunov-based nonlinear proof | Strong theoretical basis |
I also consider the effect of the PMSM electric motor saliency. For an interior PMSM electric motor, \(L_d \ne L_q\), so the reluctance torque can be used to improve efficiency. In that case, I use maximum torque per ampere or field-weakening references for \(i_d^*\) and \(i_q^*\). The sliding mode controller still regulates the currents, but the reference generation changes. For a surface-mounted PMSM electric motor, \(i_d^*=0\) is usually sufficient below base speed.
The experimental results confirm that the PMSM electric motor maintains stable operation across all five conditions. The current error remains small, the torque error is acceptable, and the speed stays close to the reference. The response time increases with load, which is physically reasonable. The stability result is the most important outcome because it shows that the sliding mode controller does not introduce instability even when the PMSM electric motor operates under varying load.
10. Practical Considerations and Extensions
I can extend the design in several ways. One extension is a disturbance observer that estimates \(T_L\) and parameter variations. The observed disturbance can be added to the equivalent control, which reduces the required switching gain and lowers chattering. Another extension is adaptive sliding mode control, where the gain \(K\) changes with the estimated uncertainty bound. A third extension is fuzzy sliding mode control, where a fuzzy rule base adjusts \(\lambda\) and \(K\) online. A fourth extension is model predictive sliding mode control, where the sliding surface is used as a terminal constraint.
For sensorless operation of the PMSM electric motor, I can use a sliding mode observer for back electromotive force. The observer estimates \(\alpha\beta\) back EMF and then extracts rotor position and speed. The control structure remains similar, but the position error affects the dq transformation. I therefore add a phase-locked loop or arctangent calculation to improve angle estimation. The current sliding mode controller helps reject the estimation error because it treats the angle error as part of the disturbance bound.
| Extension | Main idea | Benefit for the PMSM electric motor | Implementation cost |
|---|---|---|---|
| Disturbance observer | Estimate load and parameter uncertainty | Lower switching gain and less chattering | Moderate |
| Adaptive sliding gain | Adjust gain from uncertainty estimate | Better tradeoff between robustness and ripple | Moderate |
| Fuzzy sliding mode | Use rules to tune surface and gain | Improved transient response | High |
| Sliding mode observer | Estimate rotor position without sensor | Reduced hardware cost | High |
| Field-weakening control | Use negative \(i_d\) above base speed | Extended speed range | Moderate |
I also consider digital implementation limits. The sampling frequency must be high enough relative to the sliding mode switching frequency. If the sampling frequency is too low, the discrete implementation may produce large chattering or limit cycles. I use a 10 kHz sampling frequency and a boundary layer of 0.02 in normalized units. This combination provides a good balance for the PMSM electric motor.
11. Conclusion
I presented a sliding mode vector control design for a PMSM electric motor. The design combines field-oriented control with sliding mode speed and current controllers. I derived the dq-frame model, designed the sliding surfaces, formulated the reaching laws, optimized the controller parameters, and proved stability with Lyapunov theory. I also implemented the controller on a digital platform and tested it under five operating conditions. The test data show current errors between 0.13 A and 0.34 A, torque errors between 0.54 N·m and 1.22 N·m, speeds between 1487.23 r/min and 1550.45 r/min, and response times between 1.98 s and 4.06 s. All conditions remained stable.
The PMSM electric motor benefits from the proposed controller because the sliding mode structure rejects load disturbances and parameter variations. The boundary layer reduces chattering, and the parameter optimization ensures a practical balance between response speed and current ripple. I conclude that sliding mode vector control is a strong candidate for high-performance PMSM electric motor drives in industrial automation, robotics, electric vehicles, and energy systems. Future work can add disturbance observation, adaptive gains, fuzzy tuning, and sensorless position estimation to further improve the PMSM electric motor control system.
