1. Introduction
Permanent magnet synchronous motors (PMSMs) have gained popularity in electric vehicle (EV) traction applications, including light-duty and heavy-duty vehicle propulsion, due to their broad speed range, high efficiency, and high power density [
1,
2]. However, the traction drive system must be highly reliable and robust to support a wide range of vehicle dynamics. According to research published in [
3], 38% of variable-speed AC drive faults are caused by power device failures and 53% are caused by control circuit failures. A few studies [
3] have also been conducted on the fault-tolerant control of PWM inverter-fed motor drives for EVs in order to improve powertrain reliability. Apart from that, a typical vector control system for high-efficiency traction drives requires position and current sensor feedback signals [
2]. The drive system must therefore be tolerant of sensor failure to maintain vehicle stability and continuous propulsion. Position sensors are especially vulnerable to sensor failures caused by mechanical shock on the road, moisture deterioration in the wheel, and electromagnetic field interference, which can lead to signal loss or measurement error [
2,
4]. Moreover, for optimal torque production in PMSMs under field-oriented control, the relationship between position sensor zero and rotor quadrature axis must be quantified precisely [
5].
Recently, several studies have been published on fault-tolerant control (FTC) considering position sensor failures. In this context, position sensor FTC studies have been concentrated on two categories: detection of faulty sensors and seamless algorithm transition. The research in [
6] describes a new technique for detecting speed sensor faults by comparing the rotor and feedback sensor speeds, applied to induction motor drives for effective FTC. The sensor status is confirmed as faulty if the duration of the failure exceeds a preset threshold in a time counter. This method has a short execution time of 3 ms and can detect a variety of faults, such as infinite, zero, or incorrect values. In [
7], the authors propose an FTC scheme based on the adaptive extended Kalman filter (AEKF) to improve fault tolerance in interior permanent magnet synchronous motor (IPMSM) drives for EVs. The FTC uses an AEKF to estimate the system’s state and covariance matrices continuously. In comparison to the FTC scheme with the traditional EKF, the suggested AEKF is more robust to transient operating conditions and system stochastic disturbances. The authors of [
2] propose a higher order sliding mode (HOSM) observer-based speed sensor fault detection and FTC approach for the SPMSM-based full model EV. The entire speed tracking by the FTC is effective when the EV is exposed to disturbances such as aerodynamic load disturbances and road roughness utilizing the high-fidelity CarSim software. The study in [
8] presents an active fault diagnosis of a switched reluctance motor (SRM) for a light electric vehicle (LEV). The position sensor fault is diagnosed via residual-based detection utilizing the sliding mode observer (SMO), and the estimated position and speed replace the corrupted position and speed data. For a five-phase PMSM drive in [
9], an active FTC is developed based on a sliding mode observer. In addition, the fuzzy logic controller is used for fault-related disturbance reduction.
However, the majority of studies have concentrated on the incidence and detection of sensor faults during steady-state operation. In [
10], self-sensing control based on back-electromotive force (BEMF) estimation is proposed for an IPMSM using an adaptive threshold and taking into account position sensor fault detection and algorithm transition. Adaptive threshold enables fast fault detection and compensation for position error during motor acceleration and deceleration.
When a speed sensor fails, the system must be able to transition from speed measurements to sensorless controls smoothly. To achieve this, a novel sensorless observer based on the third-order steady-state linear Kalman filter (SSLKF) is proposed in [
11] with a “minimum distance” adjustment to the latest position–sensorless design concepts. A multi-controller-based FTC scheme is proposed for induction motor drive in [
12]. At the point of speed sensor failure, the FTC activates V/F control. In addition, a simple rate limiter is operated to smooth out the transient response when switching between controllers. The research presented in [
13] evaluates an active FTC system for induction-motor-based EVs that employs a reconfiguration mechanism that ensures short and smooth transitions during sensor failure from indirect field-oriented control (IFOC) to speed control with slip regulation (SCSR) in order to compensate for the phase difference between controller voltages at the instant of switchover.
Some researchers combine multiple position estimators to derive the best position or speed estimate at and after the sensor fault. In [
14], the research suggests a fault-tolerant direct torque control (DTC) strategy for electric vehicles (EVs) using an induction motor-based powertrain in the event of speed sensor failure. During speed sensor failure, the maximum likelihood voting (MLV) algorithm is used to compute the most accurate speed data from two virtual speed sensors (a Luenberger observer and an extended Kalman filter) and the speed sensor. Simulations utilizing a European urban and extra-urban drive cycle demonstrate FTC that offers a simple setup with satisfactory speed and torque responses. A fault-tolerant control strategy for in-wheel synchronous motor drives that switches between multiple states is proposed in [
15]. The strategy detects sensor fault by validating redundant speed data. It implements a flux observer at high speed and an I-F method at low speed with low acoustic noise, employing an adaptive control transition. The authors of [
16] propose an active FTC system based on analytical redundancy for PMSM drive across the entire speed range. The FTC engages the EKF and HFI at low speed and the EKF and BEMF observer at medium and high speed for the best speed estimate based on the Euler voting algorithm. However, multi-observer-based position estimation necessitates more computational power for DSP implementation, which is not cost-effective.
All of the above-mentioned methods for position sensor fault detection rely on state observers to generate residuals (i.e., a signal of deviation between measured and estimated values). The generated residual may be subjected to a time delay and motor load impact due to observer computation. Therefore, quick and instantaneous position sensor fault detection becomes essential for a smooth transition to sensorless operation. Notably, the HF-injection-based sensorless algorithm is unsuitable for vehicle applications [
15] due to its high noise at low speed, negatively affecting the driving experience. Except for [
5], all of the studies detailed above have not taken into account position sensor fault situations during transition. On the other hand, none of the studies except [
2,
14,
15] have considered the connected EV model as a motor load while considering fault-tolerant control. The research in [
2,
4,
14,
15] have looked at FTC performance after a position sensor fault in terms of EV dynamics. However, no studies have been reported on sensor faults that occur during extreme EV dynamic situations, such as uneven and rough road conditions or sudden wind disturbances.
In view of recent advances and the growing need for EV research, we are motivated to propose a position sensor FTC scheme using position observers for a two-wheeler EV. The key contributions of this paper are outlined below.
(1) The paper presents a novel method of detecting position sensor faults based on signal processing, which compares real-time and delayed rotor speed feedback signals to generate residuals. Because there is no dependence on estimated quantities, position sensor faults can be detected over a wide speed range, including low speeds. The proposed scheme is simple, fast, and practical, making it suitable for real-world applications.
(2) This paper considers the occurrence of position sensor faults for an SPMSM-powered two-wheeler EV with typical vehicular disturbances such as bumpy and rough roads and sudden gusts of wind. A study of existing back-EMF observer-based approaches to FTC operation after fault detection is presented in this paper. The FTC performance of the system is compared between the sliding mode observer and the flux observer under dynamic EV conditions.
(3) This paper presents experimental results demonstrating signal-based position sensor FDI with an observer-based FTC scheme. Unlike the existing works [
2,
8,
14,
15] in this paper, a reduced-scale electric vehicle testbed is realized by applying field-oriented motor control techniques to coupled motor drive systems. This helps justify the proposed approach in a real-world EV environment.
The rest of the paper is arranged as follows.
Section 2 addresses the identification and localization of position sensor malfunctions.
Section 3 discusses the modeling of vehicles and PMSM dynamics.
Section 4 describes the position sensor observer model and FTC structure for EV position sensors. The simulation and experimental outcomes are presented in
Section 5 and
Section 6. Finally,
Section 7 outlines the primary implementation considerations, while
Section 8 concludes the research.
4. Modeling and Designing Position Sensor FTC
This paper employs field-oriented control (FOC) [
18] to regulate the speed and torque of an EV-grade 3 kW SPMSM in an electric two-wheeler [
19].
Figure 7 shows the overall FTC scheme using a FOC setup and how the dynamics of the two-wheeler EV are accounted for in generating the motor load torque.
The reconfiguration module feeds the feedback controller either the estimated speed or the encoder speed based on the detection result, as discussed in
Section 2.2. The control law that enforces speed tracking is designed as follows:
Here, Kp, Ki > 0, and e(τ) = .
Careful tuning [
20] of the PI controller adds K
p and K
i to reduce the speed tracking error e(τ), and appropriate anti-windup mechanisms are important to ensure that the system can respond effectively to changes without becoming saturated. The observer estimates the position state based on current sensor measurements. Assuming the system is healthy during its initial drive operation, the observer’s finite-time convergence will lead to the post-fault decoupling between the controller and observer which ensures stability of the control system.
4.1. Flux Observer-Based Sensorless Operation
The back-EMF flux observer [
21] can be derived from Equation (6) and expressed as follows:
Here, are magnetic flux linkages in the α–β frame; is estimated rotor electrical position and is the estimated rotor electrical speed.
The high pass filter (HPF) is intended to eliminate flux integration’s zero drift with a low cutoff frequency. The back-EMF flux-based rotor position estimation technique utilizes fundamental components in the stationary reference frame, which, when loaded, has good anti-disturbance properties at high speeds. However, the back-EMF amplitude is negligible at the low-speed range, resulting in a poor signal-to-noise ratio. Hence, the estimation results are insufficiently robust to maintain system stability under loading conditions. The only factors that influence estimation results are the cohesion of samplings of electrical signals and the accuracy of machine parameters.
4.2. Sliding Mode Observer-Based Sensorless Operation
Sliding-mode observer (SMO) is utilized for estimating speed and position [
22] due to its ease of implementation and tolerance to parameter variations [
23]. In contrast to high-frequency signal injection methods, back-EMF-based sliding-mode observers are compatible with SPMSMs [
24] and IPMSMs [
25]. From Equation (6), the observer’s state equations can be expressed as
Here,
and
represent the estimated current of the (α–β) axis, respectively, and k is the observer gain. Unlike the signum function with a low-pass filter in standard SMO, H is a continuous sigmoid function that reduces the chattering effect. The sigmoid function is expressed as
Here,
and
represent the sliding surfaces (stator current error of the (α–β) axis, respectively). For a smooth slide transition between −1 and +1, the parameter is set as μ > 0. Since the sigmoid function’s gain is less than 1 in the transition area, the SMO stability requires k > 0. By comparing the actual and estimated back-EMF, the parameters μ and k can be adjusted through simulation. The sliding mode exists when the requirement
is satisfied, which indicates that
for
,
, and
. The sliding surface is described by
Sliding mode existence can be established using the Lyapunov function candidate [
22], defined as
Derived from Equations (6) and (9), the error equations are as follows:
For the sliding mode to exist,
must be satisfied.
The observer condition is so obtained as
. The following conditions satisfy the inequality in Equation (14)
However, the arctangent calculation is vulnerable to noise as it estimates the position based on back-EMF [
24]. Phase-locked loops (PLLs) are preferable because they are designed with a low-pass characteristic. Due to the quadrature components [
24], in the back-EMF of the SMO [
23], a quadrature phase locked loop (QPLL) is suitable for estimating position and speed. The gains of the proportional and integral controller of the QPLL are obtained experimentally. However, the first-order proportional and integral (PI) controllers have tracking errors when machine speed varies. Hence, adopting the reference speed as the PLL’s center frequency decreases tracking error. If the deviation between the estimated and the actual positions is minimal, the following stands true:
The typical QPLL configuration is depicted in
Figure 8, and its transfer function may be characterized as follows
5. Simulated FTC Performance Evolution for EVs
To demonstrate the speed tracking performance characteristic of the proposed position sensor FTC, high-fidelity software simulations are undertaken on a two-wheeler vehicle model built with MATLAB. This paper uses field-oriented control (FOC) to regulate the speed and torque of a 3 kW SPMSM in an electric two-wheeler [
19]. A 48 V, 85 Ah battery powers the SPMSM drive via a 3-phase voltage source inverter (VSI). The VSI is operated with the SVPWM at a 20 kHz switching frequency. The SPMSM, VSI, and full-scale two-wheeler vehicle models are developed using physical modeling in MATLAB-SIMSCAPE, while the whole controller model and FDI model are developed using MATLAB-SIMULINK. The sliding mode observer and QPLL gains are selected to be k = 170 and K
p = 200, K
i = 100, respectively. The flux observer HPF frequency is set at 5.1863 Hz. The
Table 1 and
Table 2 list the parameters for the SPMSM and two-wheeler vehicle, respectively.
A vehicle’s ability to start and climb requires high torque production [
26] at low speeds (i.e., strong overload performance). It must also exhibit operating ability throughout a broad speed range, particularly in the constant torque region and during high-speed cruising [
19]. Without limiting the generality, the continued operation should be ensured whenever the incremental encoder malfunctions in any of these operational conditions [
16].
Two critical scenarios are explored in this research with the EV in mind to replicate fault detection performance, and the dynamic response of the FTC for vehicle traction with PMSM drive during and after a position sensor fault. Several position sensor failures are discussed in [
2,
5,
10]; however, this work focuses on the worst-case scenario. First, the vehicle is assumed to be driving on a dry sinusoidal road with a rough surface under windy disturbance. A sine-wave road profile [
27] is established using the expression
; where h(t) is the road’s vertical displacement over time,
and D are sine-wave amplitude and cycle, respectively, and
is vehicle speed down the road. The road profile is attained by selecting
= 0.07 m and D = 5 m, as illustrated in
Figure 9a.
Wind interference causes anomalous vehicle speed, resulting in uncontrolled driving; as a consequence, wind speed must be taken into account to investigate more detailed findings. The initial average operational headwind speed is considered to be 12 m/s. In this paper, the wind speed is allowed to be random and non-consistent between 9 m/s and 15 m/s. The wind disturbance model incorporates base, gust, ramp, and noise wind speed [
28], as shown in
Figure 9c.
Figure 10 depicts the simulation of the first scenario, which evaluates the resilience of the proposed method at a low speed of 380 r.p.m (10% of rated speed) in the presence of sinusoidal roadways, random headwind swings, and speed sensor failure. The position sensor fault is activated at time = 16 s. The moment the motor position sensor fault has been accurately identified using the FDI unit, as shown in
Figure 10a, the corresponding sensorless position observer scheme will govern the motor speed control operation, as shown in
Figure 10b which displays the related motor speed and its reference.
Figure 10c depicts the motor speed error. Thus, it is evident that both position observers can maintain field-oriented control within relatively small speed errors (<25 r.p.m) even in the presence of a malfunctioning position sensor. Due to the irregular sine-wave road profile and inconsistent wind speed variations, the load torque is sinusoidal and noisy, as seen in
Figure 10d. The absolute position reached by the vehicle over the simulated time frame is given in
Figure 10e, which shows continuous vehicle propulsion despite a position sensor fault at time = 16 s. Therefore, it is apparent that for the specified electric vehicle situation, the suggested FTC is highly effective and stable at low speeds for both observers.
According to International Organization for Standardization (ISO) 8608, which segregates roads into different classes based on standards of road roughness [
29], a Class-D road roughness profile (
Figure 9b) is created to investigate the vehicle performance for on-road simulation under faulty sensor conditions.
Figure 11 depicts the second scenario, where the FTC is tested to see how well it works at high-speed ramp change on a rough road with random wind gusts. It follows a short-duration vehicle driving range with varying speed, such as those observed in typical drive cycles including the European-urban and extra-urban driving cycle (ECE + URL) published in [
4].
Figure 11a depicts the speed residual, predefined speed threshold, and corresponding fault flag, which indicates the flawed measurement speed.
Figure 11b shows the motor’s actual (reconfigured) speed and its reference in case of a position sensor malfunction. When a position sensor malfunction happens at time = 17 s, the sensorless controller engages (or switches to) the position observer speed. As shown in the magnified area of
Figure 11b, there is a smooth transition between the sensor and the observer’s speed. The motor speed error is displayed in
Figure 11c, where the maximum speed error attained by the sliding mode observer is 25 r.p.m, and by the flux observer is 30 r.p.m. However, the sliding mode observer outperforms the flux observer in post-fault acceleration and deacceleration. Rough roads and windy disturbances cause the noisy torque response shown in
Figure 11d. Moreover,
Figure 11e shows the vehicle’s absolute position over time. In addition, the proposed FTC technique gives a correct rotor speed in environmental noise, and thereby, the EV operates smoothly despite road profile roughness and random headwind swing.
6. FTC Experimental Verification
This section provides experimental evidence supporting the proposed FTC system’s capacity to recognize position sensor failure and control the drive in a real-time vehicle environment. This paper presents a testbench at a smaller scale for the motor control of a two-wheeler electric vehicle.
Figure 12 illustrates the implementation of a scaled-down testbench for the motor control of an EV. The testbench comprises two coupled three-phase sinusoidal back-EMF SPMSMs (Teknic M-2310P-LN-04K), each with a built-in 1000P/R encoder, one representing the vehicle powertrain and the other producing the resistance force that the driving vehicle experiences. Therefore, the setup facilitates double-sided operation at the desired torque and speed.
The controller part is entirely coded in C programming using the MATLAB-embedded coder, and the host CPU receives the sensor data and system information through a real-time serial connection.
Table 3 includes the parameters of the SPMSMs under test. The Texas Instruments (TI) C2000 series 200 MHz, 32-bit dual-core microcontroller LAUNCHXL-F28379D LaunchPad (Texas Instruments, Dallas, TX, USA) controls both the motors, which are connected to 2 independent 3-phase MOSFET inverters (BOOSTXL-DRV8305EVM). The SVPWM at a 20 kHz switching frequency is employed for operating both inverters. The current loop bandwidth is twenty times that of the speed loop bandwidth. The SMO and QPLL gains are set to k = 500 and K
p = 200, K
i = 100, respectively. The HPF frequency of the flux observer is 3.1 Hz. The controller settings for the speed control loop are K
p = 0.001, K
i = 0.05, and for the current control loop are K
p = 0.87, K
i = 1500. The experimental laboratory prototype setup is shown in
Figure 13.
The short driving speed profile that the speed controller must follow is used to test the vehicle’s powertrain. This practical assessment tests the speed controller at different speeds and accelerations. In order to replicate the characteristics of a rolling car, the vehicle emulator calculates the resistive torque that the loading machine should apply. The FOC technique is used to regulate the torque of the loading machine. The calculation of resistive torque or load torque (
) is based on a simple physical model with only two forces: inertia and air drag, assuming flat terrain. The linear motion equations are transformed into rotational motion by considering the wheel radius (r). From the motor speed (
), the load torque (
) is generated according to Equation (19) with the vehicle parameters listed in
Table 3. To match the specifications of the available motors, the vehicle parameters are scaled down from the actual parameters listed in
Table 4.
Here, Mv is mass of the vehicle; ρa is the density of air; Cd is the coefficient of drag; and Af is the frontal area of the vehicle.
The speed threshold is set at
for the experimental model. The proposed scheme for position sensor failure detection and FTC switching are verified when used with low-speed vehicle operation, as shown in
Figure 14. A sudden position sensor break-line defect occurs at time = 0.5 s, resulting in a complete loss of position and speed information. Then, as shown in
Figure 14a, the respective residual speed exceeds the specified threshold. Therefore, a position sensor fault is diagnosed when the residual speed (
) is beyond the threshold value (
). If the position sensor fault is detected, the motor drive may be kept running steadily by providing feedback with the estimated speed and position. The speed tracking performance of the flux observer is compared with that of the sliding mode observer for a constant speed reference profile at a low speed of 400.7 r.p.m (10% of rated speed). The actual and reference speeds for a flux observer and a sliding mode observer, respectively, are shown in
Figure 14b,c. Although both observers can maintain speed tracking despite noisy current measurements, the sliding mode observer transitions to FTC more smoothly and significantly reduces speed ripples at low speeds because of its built-in disturbance rejection system.
Furthermore,
Figure 15 illustrates the position sensor fault diagnosis and comparative FTC system performance for ramped high-speed profiles changing between 2500 r.p.m and 3500 r.p.m for both observers. When a sudden position sensor fault occurs at time = 2 s, the immediate impulse in the residual speed surpasses the threshold level shown in
Figure 15a. Each observer-based FTC system takes over to ensure stable operation as soon as the fault detection scheme identifies the position sensor failure, as shown in
Figure 15b,c. It has been found that the sliding mode observer performs better than the flux observer when it comes to smooth sensorless operation transitions and reduced speed ripples to ensure sustainable operation.
It is noticeable that the motor parameter changes can be felt when going slowly with a heavy load, like when an EV is climbing a hill [
7].
Figure 16 depicts the experimental results for post-fault transient response and speed estimation at 600 r.p.m with different parameter changes under rated loads. To represent the parameter fluctuations in the actual system, the control algorithm parameters are detuned in this experiment. Furthermore, multiple tests are undertaken to validate the robustness of the suggested fault detection and tolerant sensorless control by altering 40% of the motor parameters (R
s and L
s).
Figure 16a,b exhibits the detailed results for flux observer and sliding mode observer, respectively, for 40% parameter changes with a rated load. In all cases, the position sensor fault is activated at time = 0.5 s. From
Figure 16a,b, the position sensor fault is successfully identified in all cases at time = 0.5 s, and switching to FTC in sensorless mode is favorable for both observers. Speed response oscillates at time = 0.5 s onwards as a result of the sensorless algorithm. However, relative to regular operation (without parameter variation), the influence of parameter variations on the FTC switching transient is more significant for the flux observer than for the sliding mode observer, as illustrated by
Figure 16a,b. This is because the flux observer obtains rotor position information from the fundamental electromagnetic relationship of the PMSM, which is susceptible to motor parameters. Alternatively, the sliding mode observer is independent of SPMSM parameters and external disturbances owing to sliding mode theory; therefore, it can provide system stability and resilience. Additionally, using the nonlinear sigmoid function resolves the chattering problem of the sliding mode observer under dynamic sensor failure conditions. Additionally, as seen in
Figure 16a,b, the stator resistance, which increases with temperature due to the stator winding current, considerably influences each observer’s estimate of speed.