Abstract
Background
Accurate acquisition of the initial rotor position is crucial for permanent magnet synchronous motor (PMSM) control systems. Starting the motor without initial position detection may lead to excessive current or unexpected reverse rotation. However, the traditional voltage pulse injection method often suffers from insufficient accuracy and magnetic pole misidentification, which reduces the reliability and practical applicability of the detection results.
Objective
To eliminate the magnetic pole misidentification inherent in the traditional voltage pulse injection method and further improve detection accuracy, an improved method based on voltage pulse injection is proposed.
Methods
Firstly, to eliminate the magnetic pole misidentification observed in the traditional method, a magnetic pole identification (MPI) strategy is introduced. The MPI strategy determines whether the detected initial rotor position is consistent with the rotor polarity. If a polarity reversal is identified, the detected position is corrected by adding 180°. Next, to reduce the influence of sampling errors on detection accuracy, the magnetization effect of the injected current is enhanced. The difference among the feedback current responses becomes more pronounced, thereby mitigating the influence of sampling errors. Finally, a curve-fitting method is employed to further improve the detection accuracy. By utilizing the acquired current and position information, the current response curve near the actual rotor position is fitted, and the position corresponding to the peak current is selected as the final detection result.
Results
The effectiveness of the improved method has been validated through experiments conducted on a PMSM drive platform. The experimental results demonstrate that the improved method reduces the position detection error by an average of 32% and eliminates magnetic pole misidentification in the traditional method.
Conclusions
Compared with the traditional voltage pulse injection method, the improved method effectively enhances the accuracy of initial position detection, providing a strong basis for the stable operation of PMSM.
Keywords
Introduction
As an important type of motor system, the permanent magnet synchronous motor (PMSM) has been extensively applied in modern industrial manufacturing, automobiles, power electronics, and various other domains due to its reduced dimensions, light weight, superior power concentration, and outstanding dynamic behavior.1–3
The start-up of the PMSM is a critical step in motor control, and accurate acquisition of the initial rotor position is essential for reliable startup performance. If the initial position is not obtained precisely, the voltage vector is blindly injected into the motor, problems such as overcurrent, rotor locking, and reverse rotation may occur, potentially resulting in serious accidents in practical industrial applications.4,5 The more accurate the initial position acquisition, the greater the starting torque and the higher the operating efficiency of the motor at the beginning of operation.6,7 In motor systems equipped with absolute encoders, the initial position can be readily obtained from the encoder signals. However, for systems using incremental encoders or sensorless control strategies, obtaining the initial position is relatively challenging. 8 The issue of initial position acquisition has attracted considerable attention in recent years.
At present, the mainstream methods for detecting the initial position mainly include the magnetic pole orientation method, high-frequency injection (HFI), and voltage pulse injection.9–12 The main principle of the magnetic pole orientation is to inject a current vector at a fixed angle, thereby forcing the rotor to align with the specified position and enabling smooth startup. Due to the uncertainty of the motor's initial position, the rotation direction of the motor is not fixed during operation, and is affected by the actual load, the size of the injection current should be adjusted in different cases to prevent the accuracy of the method from being affected. In addition, if the set current vector angle is 180 degrees different from the actual initial position, the electromagnetic torque generated by the motor is almost 0, and the motor rotor will not rotate, which will lead to the 180° identification error. To address this issue, some researchers have proposed a two-step positioning method. After injecting the first current vector, a second current vector that differs by 90 degrees from the first is applied. This ensures that the rotor will move to the angle corresponding to the second current vector, thereby eliminating the 180° error. But the magnetic pole orientation method is not applicable to the condition that the rotation range of the motor cannot be too large or standstill due to the unfixed rotation of the rotor.
The HFI estimates the initial rotor position by injecting a high-frequency voltage signal into the motor and extracting the rotor position information contained in the resulting current response. The acquired signal is processed through filtering stages and subsequently fed into a phase-locked loop (PLL) observer to obtain the initial rotor position. And the position detection can be carried out in the stationary state of the motor. Because HFI requires signal processing steps such as filters, the amount of computation is large, and the design of the filter is also relatively difficult, the application in practice is more complicated.
The main principle of the voltage pulse injection method is to inject a series of voltage vectors with a fixed angle difference into the motor based on the magnetic saturation effect or rotor saliency effect. The corresponding d-axis current generated by each injected voltage vector is sampled, and the rotor position is identified by comparing the magnitudes of the d-axis current responses. 13 The voltage pulse injection method requires relatively low computational effort and is straightforward to implement. Through continuous iteration, extremely high detection accuracy can be obtained theoretically. However, the voltage pulse injection method has the following several issues. Firstly, the selection of the magnitude of the voltage vector and the injection time is relatively difficult. Secondly, it is sensitive to current sampling accuracy. When the voltage vector is close to the actual angle, the difference among the feedback current responses becomes very small, and the presence of current sampling errors can lead to incorrect judgments, making it challenging to achieve extremely high precision. Additionally, when the effects of current magnetization and demagnetization are not strong, the distinction between the feedback currents corresponding to the N-pole and S-pole positions becomes insufficient, resulting in magnetic pole misidentification. In reference, 14 a detection method that combines q-axis feedback current is proposed to address the issue of insufficient differentiation between d-axis feedback currents in the traditional voltage pulse injection method. After the angular interval is further subdivided, the q-axis current information is utilized to improve the detection accuracy. But, in many existing studies on voltage pulse injection methods, the acquired current information is mainly used for comparison and has not been fully exploited to further enhance detection performance.
Hence, to eliminate magnetic pole misidentification and improve the position detection accuracy, an improved voltage pulse injection method is proposed in this paper. Firstly, magnetic pole identification is introduced to eliminate the detection errors caused by magnetic pole misidentification. Next, the magnetization effect is appropriately enhanced to increase the difference among the feedback current responses as the detection process progresses, thereby reducing the influence of sampling errors. Finally, a curve-fitting method is incorporated to further improve the detection accuracy. By fitting the current response curve near the actual rotor position, the angle corresponding to the peak current is selected as the final detection result. This approach maximizes the utilization of the acquired current information and further enhances the detection performance.
In section II, the theoretical analysis of the voltage pulse injection method is presented. In section III, the specific steps of voltage pulse injection are introduced in detail. The drawbacks of the method are introduced in Section IV. An improved method is explained in section V. The experimental results are presented in Section VI.
Theoretical analysis of the traditional voltage pulse injection method
Establish a virtual

Diagram showing the correspondence between coordinate systems.
Where
And inject the voltage vector into the virtual dq-axis:
Through the inverse Park transformation, it is converted to the actual rotor dq-axis as follows:
When the motor rotor is in a stationary state (
The feedback current in the actual rotor dq-axis can be obtained from the equation (3):
Substituting equation (2) into equation (4) and transforming
For an interior permanent magnet synchronous motor (IPMSM), the structural characteristic
Magnetic saturation effect: due to the physical structure limitations of magnetic materials, the magnetic flux does not continuously increase but gradually remains at a saturation level after reaching a certain threshold.
The relationship between the d-axis magnetic flux linkage, inductance, and current is expressed as follows:
As shown in Figure 2, as the positive d-axis current increases,

The curve of d-axis magnetic flux linkage changes with d-axis current.
After the voltage vector is injected, the positional relationship between the resulting stator flux linkage

Schematic of the relative position between stator and rotor flux linkages.
When the positional relationship between
When the positional relationship between
When the positional relationship between

The curve of q-axis magnetic flux linkage changes with q-axis current.
When considering magnetic saturation, the variation curves of the d-axis and q-axis inductances with respect to the

The curve of dq-axis inductance changes with the
Therefore, based on the above analysis, for a surface-mounted permanent magnet synchronous motor (SPMSM), by utilizing the magnetic saturation effect,
Introduction to the voltage pulse injection method
Based on the above principle, the motor's initial position can be detected by injecting a series of voltage vectors with the same angular intervals into the motor stator and then judging the magnitude of the feedback current. To ensure the injection voltage vectors do not affect each other, after each voltage injection, the excitation is interrupted for a short duration to allow the current to return to zero before the subsequent voltage vector is applied. The curve of the injection voltage and its response current change over time is shown in Figure 6.

The injection voltage and its current response curve.
The definitions of injection time and stop-injection time are given as follows:
The magnitude of the injection voltage vector
The feedback virtual
A block diagram illustrating the voltage pulse injection method is shown in Figure 7. The injection voltage sequence is illustrated in Figure 8.

The block diagram of the voltage pulse injection method.

Schematic diagram of the injection voltage.
The specific process of the voltage pulse injection method is shown in Figure 9.

Flow diagram of the voltage pulse injection method.
Drawbacks of the traditional voltage pulse injection method
Wrong judgment of pole direction
The judgment of the magnetic poles of this method is based on the magnetizing and demagnetizing effects of the stator magnetic field. The d-axis inductance is smaller when the stator magnetic field is aligned with the rotor's N pole, compared to when it is in the opposite direction. Therefore, the feedback current corresponding to
However, to prevent significant rotation during the detection, the magnitude of the injected voltage and duration are not set too large, which may result in insufficient magnetizing and demagnetizing effects. Consequently, the current produced by the voltage aligned with the d-axis may be smaller than that produced by the opposite voltage, causing a judgment error of 180° in the detection results.
Easily affected by the accuracy of hardware current detection
From equation (5), differentiating
It can be observed from Equation (11) that as
Proposal of an improved method
To improve the detection accuracy of the voltage pulse injection method, the following solutions are introduced.
Add the magnetic pole identification (MPI) program. After completing step (a) in Figure 8, the detection result of the round It can be inferred from Section II that a larger injection voltage and duration can increase the degree of magnetic flux saturation, thereby reducing the value of Using the obtained current and angle information for curve fitting, the initial electrical angle can be calculated. As described by the expression for

The curve of
Lagrange second-order interpolation polynomial:
Quadratic equation expression:
Substituting the angle information
Based on the extreme value formula of the quadratic function, the angle corresponding to the maximum value of
This value is taken as the final initial position detection result. The specific process of the improved method is shown in Figure 11.

Flow diagram of the improved voltage pulse injection method.
The curve fitting algorithm is analyzed by using Simulink. The motor model parameters used in the simulation are as follows: number of pole pairs is 5, phase resistance is 0.2 Ω, d- and q-axis inductances are 0.0004 H, and the rotor flux linkage is 0.0086 V·s. In the simulation,

Curve fitting and sampled points.
Experimental results and analysis
The motor used in the experiment is SPMSM. The parameters of the selected motor for the experiment are shown in Table 1. The experimental platform employed is presented in Figure 13. The motor platform is primarily composed of a control circuit and a power circuit. The control circuit uses TI's DSP C2000 series, which integrates modules including ADC, PWM, and encoder modules. The power circuit employs TI's DRV8305 chip. In this experiment, the current sampling period of the motor control system is 0.00005 s.

Experimental setup.
Motor parameter.
First, the appropriate voltage injection duration and amplitude are determined through experimental testing. The final selected parameters are
The initial position detection experiment was conducted after the motor rotor was driven to an electrical angle of 200° using the magnetic pole orientation method. In the experiment, the motor rotor exhibits slight vibrations.
Figure 14 shows the peak feedback current curve using the traditional voltage pulse injection method. Among them, the feedback current value generated by V4 (210° voltage vector) is 10.26, theoretically expected to be the largest among the current values generated by the first round of injected voltage vectors V1∼V12. But as seen in Figure 14, the feedback current value generated by V3 (30° voltage vector) is 11.203, which is the largest among the current values generated by V1∼V12. This leads to the incorrect judgment that 30° is the angle closest to the initial position in the first round. This is due to insufficient magnetizing and demagnetizing effects, which fail to distinguish the N/S poles of the rotor, resulting in magnetic pole misidentification in the first round. After injecting the voltage vector V24, the final detection result was 46.88°, indicating magnetic pole misidentification.

The current waveform of the traditional method (a) the peak feedback current waveform of the first 12 voltage vectors (b) the peak feedback current waveform of the last 12 voltage vectors.
Figure 15 shows the peak feedback current curve using the traditional voltage pulse injection method with MPI. From Figure 15(a), it can be observed that the feedback current value generated by V3 (30° voltage vector) is still greater than that generated by V4 (210° voltage vector). However, by incorporating MPI, the improved method uses a larger injection voltage magnitude and a longer injection duration to enhance the magnetizing and demagnetizing effects, resulting in a significant difference in feedback current at the N/S poles. As shown in Figure 15(a), it can be seen that the feedback current value generated by V13 (210° voltage vector) is much greater than that generated by V14 (30° voltage vector), thereby correcting the erroneous identification result and eliminating the magnetic pole misidentification. Due to the influence of slight vibrations during the detection process, the electrical angle of the rotor has changed from 200° to 201.98°. Using traditional methods with MPI, after injecting the voltage vector V26, the detection result was 210°.

The current waveform of the traditional method with MPI (a) the peak feedback current waveform of the first 14 voltage vectors (b) the peak feedback current waveform of the last 12 voltage vectors.
Figure 16 shows the peak feedback current curve using the improved voltage pulse injection method. It can be observed that the differences in feedback currents between V15, V16, and V17 in Figure 16(b) are larger than those in Figure 15(b), reducing the impact of sampling errors on the results. Due to the influence of slight vibrations during the detection process, the electrical angle of the rotor has changed from 200° to 202.34°. Using the improved method, after injecting the voltage vector V26, the angle detection result was 198.8°. This result is better than the result of the traditional voltage pulse injection method with MPI.

Current waveform of improved method (a) the peak feedback current waveform of the first 14 voltage vectors (b) the peak feedback current waveform of the last 12 voltage vectors.
In Figure 17, the red line represents the current curve versus

The curve fitted through the sampling points.
The detection result from the traditional voltage pulse injection method is applied to the current closed-loop control system, and the corresponding position feedback curve is shown in Figure 18. Similarly, the detection result from the improved method is implemented in the same closed-loop control system, yielding the position feedback curve presented in Figure 19. As shown in Figure 18, the motor reverses during startup due to the magnetic pole misidentification in the detection results. In contrast, Figure 19 confirms that the motor starts successfully and operates normally with the improved method.

Startup rotor position curve using the conventional method.

Startup rotor position curve using the improved method.
Select 10 angles between 0° and 360° as the angles to be tested, conduct 10 experiments for each angle, and record the detection errors. The detection error of the improved method compared to the traditional method with MPI is shown in Figure 20. Compared to the traditional method that only incorporates MPI, the proposed improved method reduces the angle detection error by 32% on average.

The estimation error of the traditional method with MPI and the improved method.
Finally, the connecting shaft between the controlled motor and the load motor was removed to evaluate the performance of the improved voltage pulse injection method under no-load conditions. The initial angle was set to 280°, and the magnitude and duration of the injected voltage vector were kept the same as those designed in the previous section. The current feedback results are shown in Figure 21, and the rotor electrical angular displacement during the detection process is shown in Figure 22. Due to the influence of slight vibrations during the detection process, the electrical angle of the rotor has changed from 280° to 284.32°, and the detected initial rotor position was 288.4°. Under motor no-load operation, the moment of inertia is small. Therefore, it is required to decrease both the amplitude and action time of the injected voltage to restrict over-rotation of the rotor.

Current sampling results.

Position detection results.
Conclusion
In practical applications, the traditional voltage pulse injection method may result in magnetic pole misidentification and limited accuracy. To solve these problems, an improved voltage pulse injection method is proposed. By MPI, the correct direction of the motor rotor is confirmed, eliminating magnetic pole misidentification. The influence of sampling error is reduced by enhancing the magnetizing effect through increasing the magnitude and duration of the injection voltage after MPI. The application of Lagrange interpolation maximizes the use of the acquired information and effectively improves detection accuracy. Finally, the effectiveness of the improved method was validated through experiments at multiple electrical angles. The experimental results demonstrate a successful elimination of magnetic pole misidentification, and the average detection accuracy is improved by 32%.
Footnotes
Ethical considerations
This article does not contain any studies with human or animal participants.
Consent to participate
Not applicable
Consent for publication
Not applicable
Author contributions
Keping Liu: Conceptualization, Methodology, Software, Investigation, Formal Analysis; Yan Xu: Data Curation, Writing-Original Draft; Yan Li: Visualization, Writing-Review&Editing; Piao Fan: Resources, Supervision; Jianlei Fan: Software, Validation.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Department of Science and Technology in Jilin Province under Grant (number.20250203169SF).
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data availability
The authors confirm that the data supporting the findings of this study are available within the article.
