Next Article in Journal
Hygrobot: Hydrogen-Powered Mobile Robotic Platform for Rough Terrain: Electro-Mechanical Design, Physical Implementation, and Experimental Testing
Previous Article in Journal
Analysis of a Mixture of Banana Peel and Rice Straw Extracts for Inhibiting Corrosion of Carbon Steel in Hydrochloric Acid Solution
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Random PWM Technique Based Two-State Markov Chain for Permanent Magnet Synchronous Motor Control

1
School of Electrical Engineering, Tiangong University, Tianjin 300387, China
2
Zhejiang University Advanced Electrical Equipment Innovation Center, Hangzhou 311107, China
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2025, 15(9), 5027; https://doi.org/10.3390/app15095027
Submission received: 7 March 2025 / Revised: 25 April 2025 / Accepted: 27 April 2025 / Published: 30 April 2025

Abstract

:
On the basis of the space voltage vector pulse width modulation (SVPWM) technique, the random pulse width modulation (RPWM) technique, which can reduce harmonics, is investigated based on the vector control system of permanent magnet synchronous motor (PMSM) to address the problem of generating a large number of high-amplitude harmonics at the carrier frequency and its multiplier frequency. Firstly, the root causes of the large number of high-amplitude harmonics at the carrier frequency and its multiplier frequency are analyzed in depth, and the RPWM technique is explained in detail on how to reduce the amplitude of these harmonics effectively. Secondly, to address the problem of insufficient random performance in the traditional RPWM technique, an innovative optimization scheme is proposed, i.e., the introduction of a two-state Markov chain and, based on the immune algorithm for transition probability and random gain, the optimization of two key parameters. Ultimately, through experimental verification, the proposed method significantly improves the spectral distribution of the current waveform compared with the traditional RPWM, which makes the distribution more uniform and effectively reduces the high-amplitude harmonics concentrated near the carrier frequency and its octave frequency, thus enhancing the overall performance of the system.

1. Introduction

With the deterioration of the global ecological environment and the aggravation of the energy crisis, Electric Vehicles (EVs), as an important carrier of green transportation, have shown explosive growth in market demand and technological innovation. As the core of EVs, the performance of the motor drive system directly determines the energy efficiency, reliability, and user experience of the vehicle. At present, the mainstream inverter control technology—SVPWM—is widely used for its high efficiency, low harmonics, and other advantages. However, the traditional SVPWM adopts the modulation strategy of fixed switching frequency, which leads to the generation of high-amplitude discrete harmonics at the switching frequency and its octave frequency of the inverter power devices, triggering the problems of Electromagnetic Interference (EMI), Noise Vibration Harshness (NVH), etc., and severely restricting the comprehensive control of the electric drive system. This seriously restricts the comprehensive performance of the electric drive system [1].
In recent years, in order to reduce the high-amplitude harmonics generated by conventional SVPWM, researchers have continuously optimized the conventional SVPWM and proposed various modulation techniques [2]. For example, Periodic PWM (PPWM) varies the switching frequency periodically (e.g., with the laws of triangle wave, sine wave, and sawtooth wave, etc.), which disperses the harmonic energy that was originally concentrated at a fixed frequency into an extended frequency band centered on the switching frequency, but it introduces side effects such as the increase in current ripple and the decrease in the control accuracy [3,4]; Selective Harmonic Elimination PWM (SHEPWM), on the other hand, directly eliminates the harmonic components in the target frequency band by optimizing the combination of switching angles. Taking the three-phase two-level inverter as an example, specific harmonic elimination can be realized without relying on filters by solving a system of nonlinear equations constructed using Fourier series. However, its algorithmic complexity is high and needs to be redesigned for different topologies, which limits its generalization [5,6]. Passive suppression means mainly relying on external devices, such as common-mode chokes, RC absorber circuits, or active electromagnetic shields, which can mitigate the harmonic effects but increase the system size and cost and do not solve the problem at the root cause [7,8].
Relatively speaking, the RPWM technique, by randomizing the switching frequency or pulse position, uniformly scatters the discrete harmonic energy within a broad frequency domain range, significantly reduces the amplitude of the harmonic energy, and has thereby become a hot research topic at present [9]. Reference [10] proposed a randomized switching control method to improve the high-voltage spectrum, but only three switching frequencies were used, and the spectrum distribution was not uniform. Reference [11] proposed a random switching frequency method for eliminating specific frequency harmonics so that the harmonic spectrum can be uniformly distributed, but the system oscillates at low frequencies and the output waveform fluctuates too much. Reference [12] proposed a spectral zero method based on the random switching cycle technique, which realizes spectral shaping at the resonance frequency, but it only works at resonance frequencies greater than 20 kHz. Reference [13] proposed a double random pulse width modulation technique that improves the harmonic expansion factor by about 30% compared to SVPWM, but it causes the low-frequency spreading problem of PWM harmonics, which in turn causes low-frequency noise in the motor. Reference [14] analyzes the effects of five random modulation strategies on EMI and switching current harmonics of simple and interleaved buck converters and proposes a random carrier frequency fixed duty cycle modulation strategy as the best modulation scheme that can significantly reduce EMI and current harmonics, but the random number generator used has limitations in accuracy and randomness range that can affect the accuracy of the experiment.
However, the core challenge of the RPWM lies in the quality of random number generation [15]. Ideal uniformly distributed random numbers rely on hardware implementation, which is costly and difficult to integrate into on-board microprocessors, while pseudo-random numbers generated by algorithms such as the linear congruential method have problems such as high sequence repetitiveness and statistical characteristic deviations, leading to incomplete spectrum expansion and even secondary problems such as motor resonance [16]. Compared with ideal random numbers, pseudo-random numbers may show continuous values greater than or less than the central value in certain time periods, thereby reducing random performance and directly affecting the suppression effect of the RPWM on high-amplitude harmonics.
To address this issue, researchers have proposed numerous approaches, with the Markov chain demonstrating the most significant efficacy. In reference [17], a two-state Markov chain was employed for random number generation and integrated with the asymmetric SVPWM technique to mitigate high-frequency harmonics in the IMC-PMSM system. In reference [18], building upon random pulse position modulation, the Markov chain was leveraged to optimize random number generation, thereby improving the suppression of high-frequency sideband harmonics.
In summary, the RPWM technology still has certain limitations at present. Although existing research has optimized the random number performance of the RPWM by using Markov chains, it has not deeply analyzed the reasons for its impact on the RPWM. Based on this, this study takes the permanent magnet synchronous motor as the research object and proposes a control method for permanent magnet synchronous motors based on two-state Markov chain random spread spectrum. Different from the existing literature, this method fully considers the influence of spread spectrum parameters and combines the immune algorithm for parameter optimization to avoid the problem of poor spread spectrum effect caused by human selection. The contributions of this article are as follows:
  • The working principle of the SVPWM is expounded, and the distribution characteristics of its output harmonics are deeply analyzed, laying a foundation for the theoretical analysis of the RPWM;
  • An RPWM based on a two-state Markov chain is proposed. By introducing the concepts of Markov process and Markov chain, the mathematical model of the two-state Markov chain is derived to optimize the random number performance of the RPWM;
  • A thorough analysis was conducted on the influence of transition probability and random gain on the two-state Markov chain RPWM, and the immune algorithm was employed to optimize these two key parameters, thereby resolving the issue of ineffective reduction in high-frequency harmonics due to improper parameter selection.
The rest of this paper is organized as follows: Section 2 introduces the working principle of traditional SVPWM and the analysis of output harmonics. Section 3 presents the traditional RPWM, followed by the proposal of an improved RPWM technique based on a two-state Markov chain and the use of an immune algorithm to optimize the spread spectrum parameters. In Section 4, the feasibility and effectiveness of the proposed method are verified through the construction of a permanent magnet synchronous motor experimental platform, and its advantages over traditional methods are demonstrated. In Section 5, the contributions and methods of this paper are summarized.

2. Conventional SVPWM Analysis

2.1. Operating Principle of the SVPWM

SVPWM regards the inverter system and the motor as a whole. By combining the on and off states of the switching power devices of each bridge arm of the three-phase inverter, the actual flux linkage trajectory generated by the permanent magnet synchronous motor approaches the ideal circular flux linkage trajectory. By comparing the actual flux linkage with the target flux linkage, the combination of the switch states of the inverter is determined, thereby generating the PWM signal waveform and achieving efficient and stable motor control [19].
The three-phase inverter has six switching power devices, divided into three groups of upper and lower bridge arms. The same bridge arm’s upper and lower switching devices cannot conduct at the same time. The structure of the diagram is shown in Figure 1. In the figure, Udc represents the DC bus voltage, and ia, ib, and ic represent the three-phase stator currents
There are eight switching combinations in the three-phase inverter, corresponding to 8 different voltage space vectors, including six non-zero vectors (100, 110, 010, 011, 001, 101) and two zero vectors (000, 111), of which “1” represents the upper arm bridge conduction, and “0” represents the lower arm bridge conduction. Six non-zero vectors have amplitudes of 2/3Udc, dividing the plane into six sectors, with a 60° difference in angle between the two vectors, and the two zero vectors are located in the center of the plane. At a certain moment, the rotation of the voltage space vector to a certain sector is obtained from the different combinations of the two neighboring nonzero and zero vectors in that sector in time [20]. Taking the first sector as an example, the synthesized space vector is Vm, and the voltage space vector diagram is shown in Figure 2. In the figure, I, II, III, IV, V, and VI respectively represent the six sectors of the spatial voltage plane.
T V m = T 1 V 1 + T 2 V 2 + T 0 V 0
where T represents the switching period, T0 is the time of action of the zero vector V0, and T1 and T2 indicate the times of action of the non-zero vectors V1 and V2, respectively.
T 1 = 3 V m V d c T sin ( π 3 θ )
T 2 = 3 V m V d c T sin ( θ )
T 0 = T T 1 T 2
where Vdc represents the DC bus voltage value, while θ denotes the angle between the synthesized vector and the principal vector.
The modulation index of the SVPWM is defined as follows:
M = 3 V m V d c
When the amplitude of the target synthetic vector precisely equals the radius of the circumcircle of the SVPWM hexagon, the following conditions are fulfilled:
V m = 2 3 V d c
By substituting Equation (6) into Equation (5), the maximum modulation index of the SVPWM is derived as 1.15. At this point, SVPWM enters the overmodulation state (i.e., PWM saturation). In comparison, the maximum modulation index of sinusoidal PWM is limited to 1. Consequently, SVPWM demonstrates significant advantages with a notably higher voltage utilization rate [21].

2.2. Harmonic Analysis of the SVPWM Output

The SVPWM with a fixed switching frequency exists with dual time variables determined by the carrier and modulating waveforms: the carrier waveform determined by the carrier frequency fc and the carrier initial phase θc, and the modulating waveform determined by the fundamental frequency f0 and the fundamental initial phase θ0. By applying the method of double Fourier analysis to analyze the harmonic components of the SVPWM output voltage, the spectral expression of the voltage series output from phase A of the two-level voltage source inverter can be obtained as [22]:
u a o = V d c M cos ( 2 π f 0 t + θ 0 ) + 2 V d c π m = 1 1 m J 0 m π 2 M sin m π 2 cos m ( 2 π f c t + θ c ) + 2 V d c π m = 1 n = + 1 m J n m π 2 M sin m + n π 2 × cos m ( 2 π f c t + θ c ) + n ( 2 π f 0 t + θ 0 )
where Jn(·) denotes the nth order Bessel function; m and n represent the index coefficients of the carrier frequency and modulating wave frequency, respectively. The first row is the sinusoidal fundamental component with the same amplitude as the modulated wave; the second row is the fundamental harmonic, that is, the integer multiple frequencies of the fundamental frequency; the third row is the carrier harmonic cluster, each harmonic cluster contains the carrier harmonic and its sideband harmonic, and the harmonic frequency is the linear combination of the carrier frequency and the fundamental frequency, mfc + nf0.
The Bessel functions in the formula indicate that the amplitude of the carrier harmonics rapidly decays as the carrier order increases, and the energy of each carrier harmonic cluster is mainly concentrated at the carrier harmonic and its first few sideband harmonics, resulting in obvious noise spikes at the carrier harmonics. Figure 3 shows a schematic diagram of the spectrum before spreading. Since the carrier frequency is fixed, the harmonic energy is mainly distributed around the integer multiples of the carrier frequency, and the spectrum appears as discrete spectral lines.

3. Random PWM Technique Based Two-State Markov Chain

3.1. Conventional RPWM Technique

Conventional RPWM is based on Equation (7); the carrier frequency is randomized so that the harmonics at its carrier frequency and its octave are uniformly apportioned in a wide frequency domain, effectively reducing the harmonic amplitude to achieve the purpose of suppressing the EMI of the motor [23]. The spectral distribution after the spreading of the spectrum is shown in Figure 4.
The expression for the RPWM is shown below:
f r = f c + s r
where fr represents the randomized carrier frequency, fc denotes the desired carrier frequency, s is a random number that varies within the range of [−1, 1], and r signifies the random gain, which is expressed as the spreading width.
From the above equation, it can be concluded that the final effect of the random spread spectrum technique is mainly determined by the two parameters of random number s and random gain r together, and the carrier frequency variation range is [fcr, fc + r], and the random number in the traditional RPWM technique is generally generated by the linear congruence method, which does not impose restrictions on the random number generation. Therefore, in the process of random number generation, it will occur in several consecutive cycles if the random value is greater or less than the expected value, as shown in Figure 5. Thus, the random carrier frequency will also be greater or less than the desired carrier frequency, which ultimately affects the EMI suppression effect of the RPWM.

3.2. RPWM Technique Based on Two-State Markov Chain

In order to solve the problem of unsatisfactory random number generation results mentioned in the previous section, this section introduces the Markov chain into the RPWM technique to improve the random performance of the random numbers, thus further weakening the harmonic peaks.
Markov property refers to the fact that under the condition that the current state is known, the value of the future does not depend on the past; only the current state can predict the future, and the past is useless for predicting the future [24]. And the random process with the Markov property is called the Markov process. Let {A(t), tT} be a random process with 0 < t1 < t2 < … < tnT. If the value of A(t) at moment 0 < t1 < t2 < … < tn is a1, a2, …, an and
F ( a n , t n | a n 1 , t n 1 ; a n 2 , t n 2 ; ; a 1 , t 1 ) = F ( a n , t n | a n 1 , t n 1 )
then A(t) is called a Markov process.
A Markov process with both time and state being discrete is called a Markov chain. It is a sequence of random events where the future value is only related to the current value and has no relation to historical values. It is a discrete random process. Therefore, to handle discrete problems, the concept of transition probability is introduced in Markov chains:
P i j ( m , n ) = P { X n = a j | X m = a i } = P { X n = j | X m = i }
where (i, j) ∈ S, S = {a1, a2, …, an} represents the state space, while Pij denotes the transition probability. From Equation (8), it can be seen that the probability that the state is ai at m moments and after (nm) time is transferred to aj state; it can also be understood as the probability of being in state j at n moments under the condition that the state is i at m moments. Therefore, the transition probability is actually a conditional probability. And from this, the expression for the transition probability matrix is derived:
P = { p i j , ( i , j S ) } = p 11 p 12 p 1 M p 21 p 22 p 2 M p N 1 p N 2 p N M
where all elements in the equation are non-negative and the sum of all elements in each row is 1.
Theoretically, the larger the state space of the Markov chain, the better, but this will increase the amount of system calculations, requiring a larger memory. From a practical situation to consider, the state space should not be too large. When the state space is 2, the transition probability matrix P has two unknowns; when the state space is 3, the transition probability matrix P has six unknowns. Therefore, as the state space increases, there are more and more unknowns, which increases the computational difficulty. In summary, this paper chooses two state spaces, that is, the two-state Markov chain is incorporated into the RPWM technique.
The control method of a permanent magnet synchronous motor based on a two-state Markov chain RPWM is implemented as shown in Figure 6. Specifically, when the carrier frequency is greater than fc, it is set as State 1; when it is less than fc, it is set as State 2. When the carrier frequency is in State 1, the probability that the carrier frequency will be in State 2 in the next moment is p, and the probability that it remains in State 1 is 1 − p. When the carrier frequency is in State 2, the probability that it will be in State 1 in the next moment is p, and the probability that it remains in State 2 is 1 − p.
By analyzing and deriving the implementation method, the transition probability matrix of the RPWM based on the two-state Markov chain can be finally obtained with the following expression:
P M = p 11 p 12 p 21 p 22 = 1 p p p 1 p
where p11, p12, p21, and p22 denote the probability of transferring from State 1 to State 1, State 1 to State 2, State 2 to State 1, and State 2 to State 2, respectively. In order not to affect the spectral characteristics of the system, the value of p cannot be 1.
The results of the random numbers generated based on the two-state Markov chain are shown in Figure 7. Compared with the random numbers in the traditional RPWM, the phenomenon that the random values in several consecutive cycles are greater than or less than the expected value is significantly reduced, the random number distribution is more uniform, and the carrier frequency distribution of the randomization is also better optimized.

3.3. Two-State Markov Chain Parameter Optimization Based on the Immune Algorithm

From Equation (8), the desired frequency and the random gain together determine the frequency variation range of the RPWM, so the random degree of the carrier frequency can be expressed as follows:
R f = f max f min f c = 2 r f c
where fmax and fmin represent the upper limit of frequency change and the lower limit of frequency change, respectively.
It can be known from the above formula that the random degree is jointly determined by the random gain r and the desired frequency fc, while the value of fc is set in advance by the control requirements of the permanent magnet synchronous motor system. Therefore, the random degree is only determined by one parameter, random gain r, and the spreading effect depends on the size of the random degree, which means that r affects the final effect of the RPWM.
From this, it can be concluded that the magnitude of the values of the two spreading parameters, random gain r and transition probability p, play a decisive role in the final effect of the proposed method. Moreover, when the given range of these two parameters is large, the computation volume will increase as it is discrete data, which occupies a larger memory of the main control chip. Therefore, in this paper, the immune algorithm is chosen to optimize the spread spectrum parameters r and p so that the set of r and p with the best harmonic suppression effect can be found quickly.
The immune algorithm is an intelligent optimization algorithm inspired by the biological immune system, which has the characteristics of balanced global and local search, strong robustness, and anti-interference ability compared to other optimization algorithms (e.g., genetic algorithm, particle swarm algorithm, ant colony algorithm, etc.), which makes it more advantageous than other intelligent algorithms in solving parameter optimization problems [25,26].
When using the immune algorithm to optimize the parameters, the most critical link is to establish the evaluation target model. And through the above analysis, it can be known that each set of different values of r and p produces different harmonic suppression effects, which are manifested as different output current waveform spectra of permanent magnet synchronous motors in practical applications. The purpose of using the immune algorithm for parameter optimization is to find the minimum current spectrum harmonic peak within the given parameter range. This problem can be abstracted as the following expression:
y = 1 / f ( r , p )
where f(r, p) represents the peak magnitude of the current spectrum harmonics of the experimental motor model under the set of independent variables r and p, and y is the reciprocal of the peak magnitude of the harmonics. Thus, we have obtained the evaluation target model y.
Now, the parameter optimization is converted into solving max(y) with r and p, that is, using the immune algorithm to find the globally optimal solution, and the basic flow block diagram is shown in Figure 8.
The global optimal solution is solved as follows:
  • Initial parameter calibration: According to the system parameters of the experimental motor, as shown in Table 1, the parameters of the permanent magnet synchronous motor model in the simulation model are calibrated to ensure that the results of the simulation model are consistent with the experimental results;
  • Specification of the range of antibody values: The range of random gain r is set to [1500, 2500] and the range of transition probability p is set to [0.5, 1];
  • Initialization of antibody population: The initial antibody population A0 is randomly generated based on probability; each antibody in the population contains two basic information, that is, random gain r and transition probability p. Considering the small number of optimization parameters, the number of antibody populations is set to 30;
  • Calculation of the affinity of the antibody population: The antibody population is substituted into Equation (14) to obtain the evaluation target value, which is the affinity of the antibody population. From this, the affinity expression is obtained as follows:
    a f f ( n ) = y = 1 / f ( a n )
    where n represents the number of iterations that have been performed by the immune algorithm, an denotes the antibody at the nth iteration, and aff(n) signifies the affinity corresponding to the antibody an;
  • Updating of the optimal solution affinity: During each iteration, each antibody is compared with the highest affinity antibody that has been generated, and a new global optimal solution is updated, hence the expression:
    a f f o p t = a f f m a x ,   a f f m a x > a f f ( n ) a f f m a x = a f f ( n ) , a f f m a x < a f f ( n )
    where affmax and affopt represent the antibody with the highest affinity and the globally optimal antibody affinity, respectively;
  • Determination whether the number of iteration steps is satisfied: The number of iteration steps is used as the termination condition; if the maximum number of iteration steps is satisfied, the optimization algorithm is stopped and the result is outputted; otherwise, the iteration is continued. The specific expression is
    A l g o r i t h m o u t = a o p t ,   n = N c o n t i n u e , n < N
    where aopt denotes the global optimal antibody, representing the set of spreading parameters with the most optimal effect; Algorithmout signifies the final output of the immune algorithm; Additionally, N represents the maximum number of iteration steps, which is set to 50 to prevent the antibody population from converging prematurely or failing to converge due to excessive iterations;
  • Performance of immunological operations on the antibody population: A certain proportion of high-quality antibodies is selected based on affinity for cloning, and then mutation operations are performed on the cloned antibodies to generate a new antibody population. Subsequently, the mutated antibodies are screened and those with high affinity are retained. Among them, the expression for the cloning operation is
    C = c l o n e ( m , b n )
    where clone(·) represents the cloning operation, which is a function used to generate cloned antibodies identical to the original antibody; bn is the selected high-quality antibody, and m is the number of cloned antibodies. clone(m, bn) indicates generating m cloned antibodies that are exactly the same as bn, and these antibodies will form a set C. The expression for the mutation operation is
    D = c n + ( r a n d 0.5 ) δ , r a n d < p m c n , r a n d p m
    where cn represents an individual cloned antibody, δ defines the range of neighborhoods, and rand is a function that generates a random number within the range [0, 1]; The probability of mutation is denoted by pm, and D represents the antibody population subjected to the mutation operation;
  • Antibody population update: The antibody with high affinity obtained in the previous step is substituted for the antibody with low affinity in population An, thus generating a new generation of population An+1, and the new population is sent to step 4 to continue the iteration.

4. Experimental Results and Analysis

In order to verify the correctness of the theoretical analysis and the effectiveness of the proposed strategy, the experimental platform shown in Figure 9 is built. The hardware circuit is built with TMS320F28335 DSP manufactured by Texas Instruments in Texas, the United as the core, and the speed/torque loading is realized based on the dynamometer driven by the AVL control system.
The experimental motor was operated under two steady-state conditions: at a speed of 3820 r/min, a load torque of 5 N·m, and a modulation index of 0.5; and at a speed of 3820 r/min, a load torque of 150 N·m, and a modulation index of 1.0. The traditional SVPWM, traditional RPWM, RPWM based on a two-state Markov chain, and the method proposed in this paper were experimentally verified. The expected carrier frequency fc is 10 kHz, the random gain r is 2 kHz, and the randomized carrier frequency fr varies randomly within the range of [8 kHz, 12 kHz].
In order to analyze the harmonic suppression effect of PMSM during operation, the experimental results are analyzed using frequency domain analysis, and due to the adoption of the RPWM, the Power Spectral Density (PSD) analysis method is further used.

4.1. Experimental Results of Conventional RPWM

Figure 10 shows the current harmonic analysis of the conventional SVPWM. As can be seen from the figure, the harmonic energy generated by the traditional SVPWM shows a discrete distribution state throughout the entire frequency band, mainly concentrating at the integer multiples of the carrier frequency (10 kHz, 20 kHz, …). These harmonic components are the main sources of EMI. The harmonic energy after three times the carrier frequency has a significant attenuation, so this paper only considers the degree of amplitude decrease in the power spectral density near 10 kHz and 20 kHz. It can also be known from the figure that with the increase in the modulation index, the distribution characteristics of the power spectral density do not have an essential change, but due to the increase in the input energy of the motor system, the harmonic energy also increases, manifested as the increase in the amplitude of the power spectral density.
Figure 11 shows the current harmonic suppression effect of conventional RPWM. By comparing Figure 11 with Figure 10, it can be seen that the traditional RPWM disperses the originally high-amplitude harmonic energy, making the distribution of harmonic energy more uniform. However, the suppression effect is limited, and obvious noise spikes still exist. At the power spectral density of 10 kHz and 20 kHz, when the modulation index is 0.5, they, respectively, decrease from −19.01 dB/Hz and −17.52 dB/Hz to −24.42 dB/Hz and −26.78 dB/Hz; when the modulation index is 1.0, they, respectively, decrease from −8.04 dB/Hz and −14.73 dB/Hz to −15.62 dB/Hz and −23.90 dB/Hz. At the same time, in the local current waveform, there will be several consecutive carrier cycles that are greater than or less than the expected carrier cycle, which is also consistent with the theoretical derivation.
By comparing Figure 11b,d, it can be observed that as the modulation index increases (i.e., the gradually increasing torque of the motor load), the sinusoidal nature of the phase current waveform significantly improves, and the current distortion rate decreases accordingly. This phenomenon indicates that the motor system can operate in a more efficient condition when the modulation index increases.

4.2. Experimental Results of the RPWM Based on Two-State Markov Chain

Figure 12 shows the current harmonic suppression effect of the RPWM based on a two-state Markov chain. By comparing Figure 12 with Figure 11, it can be seen that, compared with the traditional RPWM, the RPWM based on the two-state Markov chain further spreads the harmonic energy concentrated at the carrier frequency and its multiples and further reduces the amplitude of the harmonic energy. In the power spectral density near 10 kHz and 20 kHz, when the modulation index is 0.5, it drops from −24.42 dB/Hz and −26.78 dB/Hz to −27.29 dB/Hz and −28.89 dB/Hz, respectively; when the modulation index is 1.0, it drops from −15.62 dB/Hz and −23.90 dB/Hz to −16.10 dB/Hz and −25.63 dB/Hz. At the same time, the phenomenon of several carrier periods being greater than or less than the expected carrier period appearing in the local current waveform has decreased, and the quality of the current waveform has been improved.
In order to further optimize the random number generation results and enhance the spread spectrum effect, this paper conducts rapid optimization of two key spread spectrum parameters, r and p, based on the immune algorithm. When the peak value of the current harmonic is the minimum value, the optimal parameter combination is obtained. The optimal parameter group is then introduced into the RPWM based on the two-state Markov chain to improve the randomization of the carrier frequency distribution and further suppress the peak value of harmonic energy in order to achieve the optimal EMI suppression effect.
As shown in Figure 13, the current harmonic suppression effect based on the parameter optimization of the two-state Markov chain using the immune algorithm is presented. By comparing this method with the previous two RPWMs, it can be found that it performs better in terms of the power spectral density of the phase current and the current quality. The current frequency spectrum distribution is more uniform, the harmonic peaks in the power spectrum are significantly reduced, and the influence of EMI is further decreased. At the same time, from the local amplification waveform of the phase current, it can be seen that the phenomenon of being greater than or less than the expected carrier period for several consecutive carrier periods basically does not occur, and the current quality is maximally improved.
By combining Table 2 and Table 3, it can be seen from the power spectral density that compared with the traditional RPWM and the RPWM based on the two-state Markov chain, the two-state Markov chain parameter optimization method based on the immune algorithm has the best current harmonic suppression effect under different modulation indices.
Figure 14 presents the EMI suppression effect of the two-state Markov chain parameter optimization method based on the immune algorithm under different rotational speeds and modulation indices. The EMI suppression effect is calculated as follows: the power spectral density amplitudes of the proposed method at 1 time and 2 times carrier frequencies are compared with those of the traditional SVPWM, and the obtained decrease amplitude (percentage quantity) is averaged to obtain the final result. The results show that the proposed method exhibits an excellent EMI suppression effect under different rotational speeds and modulation indices, with a more uniform spectral distribution and a significant decrease in the amplitude of high-frequency harmonics. This result further validates the effectiveness and applicability of the proposed method.

5. Conclusions

This paper presents a control method for permanent magnet synchronous motors based on two-state Markov chain random spread spectrum. This method incorporates the concept of the Markov chain and establishes a two-state Markov chain model applicable to RPWM. It significantly optimizes the random number generation results, thereby effectively reducing the amplitude of high-frequency harmonics and enhancing the suppression effect of EMI. At the same time, the immune algorithm is used to optimize two important spread spectrum parameters, namely the transition probability and random gain, further enhancing the suppression ability of the proposed method for EMI. Moreover, this method does not require modifying the system hardware, changing the regulator parameters, or affecting the performance of the vector control system and has excellent universality. In addition, the content of this paper is based on the PWM-powered permanent magnet synchronous motor control system, which provides a theoretical and experimental basis for the subsequent research on system efficiency, torque fluctuation, vibration noise suppression, and so on.

Author Contributions

Conceptualization, Z.W. and X.L.; methodology, X.J. and G.Z.; software, X.L.; validation, G.Z.; formal analysis, X.L.; investigation, Z.W.; resources, X.J.; data curation, Z.L.; writing—original draft preparation, Z.W. and X.L.; writing—review and editing, Z.W. and X.L.; visualization, X.L.; supervision, X.J.; project administration, Z.L.; funding acquisition, Z.L. and Z.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Zhejiang Provincial Natural Science Foundation of China, grant number LD24E070001.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Zou, J.B.; Lan, H.; Xu, Y.X.; Zhao, B. Analysis of Global and Local Force Harmonics and Their Effects on Vibration in Permanent Magnet Synchronous Machines. IEEE Trans. Energy Convers. 2017, 32, 1523–1532. [Google Scholar] [CrossRef]
  2. Chen, J.N.; Jiang, D.; Sun, W.; Shen, Z.W.; Zhang, Y.C. A Family of Spread-Spectrum Modulation Schemes Based on Distribution Characteristics to Reduce Conducted EMI for Power Electronics Converters. IEEE Trans. Ind Appl. 2020, 56, 5142–5157. [Google Scholar] [CrossRef]
  3. Xu, Y.X.; Yuan, Q.B.; Zou, J.B.; Yao, Y.M.; Zhu, G.Q. Sinusoidal periodic carrier frequency modulation in reducing electromagnetic noise of permanent magnet synchronous motor. IET Electr. Power Appl. 2013, 7, 223–230. [Google Scholar] [CrossRef]
  4. Zhou, Z.; Xue, L.; Li, C.; Geng, Q. A Spread-Spectrum Modulation Scheme for a 3 × 6 Indirect Matrix Converter Based on a Current Ripple Model. Energies 2024, 17, 2546. [Google Scholar] [CrossRef]
  5. Dahidah, M.S.A.; Konstantinou, G.; Agelidis, V.G. A Review of Multilevel Selective Harmonic Elimination PWM: Formulations, Solving Algorithms, Implementation and Applications. IEEE Trans. Power Electron. 2015, 30, 4091–4106. [Google Scholar] [CrossRef]
  6. Amjad, A.M.; Salam, Z. A review of soft computing methods for harmonics elimination PWM for inverters in renewable energy conversion systems. Renew. Sustain. Energy Rev. 2014, 33, 141–153. [Google Scholar] [CrossRef]
  7. Mainali, K.; Oruganti, R. Conducted EMI Mitigation Techniques for Switch-Mode Power Converters: A Survey. IEEE Trans. Power Electron. 2010, 25, 2344–2356. [Google Scholar] [CrossRef]
  8. Narayanasamy, B.; Luo, F. A Survey of Active EMI Filters for Conducted EMI Noise Reduction in Power Electronic Converters. IEEE Trans. Electromagn. Compat. 2019, 61, 2040–2049. [Google Scholar] [CrossRef]
  9. Gamoudi, R.; Chariag, D.E.; Sbita, L. A Review of Spread-Spectrum-Based PWM Techniques-A Novel Fast Digital Implementation. IEEE Trans. Power Electron. 2018, 33, 10292–10307. [Google Scholar] [CrossRef]
  10. Wang, G.L.; Yang, L.; Yuan, B.H.; Wang, B.W.; Zhang, G.Q.; Xu, D.G. Pseudo-Random High-Frequency Square-Wave Voltage Injection Based Sensorless Control of IPMSM Drives for Audible Noise Reduction. IEEE Trans. Ind. Electron. 2016, 63, 7423–7433. [Google Scholar] [CrossRef]
  11. Peyghambari, A.; Dastfan, A.; Ahmadyfard, A. Selective Voltage Noise Cancellation in Three-Phase Inverter Using Random SVPWM. IEEE Trans. Power Electron. 2016, 31, 4604–4610. [Google Scholar] [CrossRef]
  12. Kirlin, R.L.; Lascu, C.; Trzynadlowski, A.M. Shaping the Noise Spectrum in Power Electronic Converters. IEEE Trans. Ind. Electron. 2011, 58, 2780–2788. [Google Scholar] [CrossRef]
  13. Kim, K.S.; Jung, Y.G.; Lim, Y.C. A New Hybrid Random PWM Scheme. IEEE Trans. Power Electron. 2009, 24, 192–200. [Google Scholar] [CrossRef]
  14. Yousaf, J.; Faisal, M.; Nah, W.; Ghazal, M.; Sarmad Mahmmod, R.; Rmili, H. Effects of Random Switching Schemes on the EMI Levels of Conventional and Interleaved Buck Converters for Mobile Devices. Electronics 2022, 11, 306. [Google Scholar] [CrossRef]
  15. Andersson, A.; Lennström, D.; Nykänen, A. Influence of Inverter Modulation Strategy on Electric Drive Efficiency and Perceived Sound Quality. IEEE Trans. Transp. Electrif. 2016, 2, 24–35. [Google Scholar] [CrossRef]
  16. Yin, Z.; Zhong, Y.; Liu, J.; Zhu, Q. Random PWM control technology of frequency control system based on Markov chain. Electr. Mach. Control. 2010, 14, 41. [Google Scholar] [CrossRef]
  17. Dai, Z.; Guo, G.; Zuo, Y.; Zhu, S.; Ge, X.; Wang, Y. A Random Pulse Position Modulation Method Based on Markov Chain for Noise Suppression in PMSM Drive System. In Proceedings of the 2024 IEEE 10th International Power Electronics and Motion Control Conference (IPEMC2024-ECCE Asia), Chengdu, China, 17–20 May 2024; pp. 2498–2504. [Google Scholar] [CrossRef]
  18. Yang, Y.; Song, W.; Ge, Y.; Wheeler, P. A Markov chain random asymmetrical SVPWM method to suppress high-frequency harmonics of output current in an IMC-PMSM system. IEEE Trans. Power Electron. 2024, 39, 135–148. [Google Scholar] [CrossRef]
  19. Le Besnerais, J.; Lanfranchi, V.; Hecquet, M.; Brochet, P. Characterization and Reduction of Audible Magnetic Noise Due to PWM Supply in Induction Machines. IEEE Trans. Ind. Electron. 2010, 57, 1288–1295. [Google Scholar] [CrossRef]
  20. Ramasamy, P.; Krishnasamy, V.; Sathik, M.A.J.; Ali, Z.M.; Aleem, S. Three-Dimensional Space Vector Modulation Strategy for Capacitor Balancing in Split Inductor Neutral-Point Clamped Multilevel Inverters. J. Circuits Syst. Comput. 2018, 27, 1850232. [Google Scholar] [CrossRef]
  21. Liang, W.Y.; Luk, P.C.K.; Fei, W.Z. Analytical Investigation of Sideband Electromagnetic Vibration in Integral-Slot PMSM Drive with SVPWM Technique. IEEE Trans. Power Electron. 2017, 32, 4785–4795. [Google Scholar] [CrossRef]
  22. Liang, W.Y.; Wang, J.F.; Luk, P.C.K.; Fang, W.Z.; Fei, W.Z. Analytical Modeling of Current Harmonic Components in PMSM Drive with Voltage-Source Inverter by SVPWM Technique. IEEE Trans. Energy Convers. 2014, 29, 673–680. [Google Scholar] [CrossRef]
  23. Lezynski, P. Random Modulation in Inverters with Respect to Electromagnetic Compatibility and Power Quality. IEEE J. Emerg. Sel. Top. Power Electron. 2018, 6, 782–790. [Google Scholar] [CrossRef]
  24. Stankovic, A.M.; Verghese, G.C.; Perreault, D.J. Randomized modulation of power converters via Markov chains. IEEE Trans. Control. Syst. Technol. 1997, 5, 61–73. [Google Scholar] [CrossRef]
  25. Chun, J.S.; Jung, H.K.; Hahn, S.Y. A study on comparison of optimization performances between immune algorithm and other heuristic algorithms. IEEE Trans. Magn. 1998, 34, 2972–2975. [Google Scholar] [CrossRef]
  26. Jiao, L.C.; Wang, L. A novel genetic algorithm based on immunity. IEEE Trans. Syst. Man Cybern. Part A-Syst. Hum. 2000, 30, 552–561. [Google Scholar] [CrossRef]
Figure 1. Structure diagram of the three-phase voltage source inverter.
Figure 1. Structure diagram of the three-phase voltage source inverter.
Applsci 15 05027 g001
Figure 2. Voltage space vector diagram.
Figure 2. Voltage space vector diagram.
Applsci 15 05027 g002
Figure 3. Schematic diagram of the spectrum before spreading.
Figure 3. Schematic diagram of the spectrum before spreading.
Applsci 15 05027 g003
Figure 4. Schematic diagram of the spectrum after the spreading of the spectrum.
Figure 4. Schematic diagram of the spectrum after the spreading of the spectrum.
Applsci 15 05027 g004
Figure 5. Results of random number generation in conventional RPWM.
Figure 5. Results of random number generation in conventional RPWM.
Applsci 15 05027 g005
Figure 6. Flowchart for the implementation of a two-state Markov chain.
Figure 6. Flowchart for the implementation of a two-state Markov chain.
Applsci 15 05027 g006
Figure 7. Results of random number generation based on a two-state Markov chain.
Figure 7. Results of random number generation based on a two-state Markov chain.
Applsci 15 05027 g007
Figure 8. Flowchart for parameter optimization.
Figure 8. Flowchart for parameter optimization.
Applsci 15 05027 g008
Figure 9. Experimental system.
Figure 9. Experimental system.
Applsci 15 05027 g009
Figure 10. Current harmonics analysis of the conventional SVPWM.
Figure 10. Current harmonics analysis of the conventional SVPWM.
Applsci 15 05027 g010
Figure 11. Current harmonic suppression effect of the conventional RPWM.
Figure 11. Current harmonic suppression effect of the conventional RPWM.
Applsci 15 05027 g011aApplsci 15 05027 g011b
Figure 12. Current harmonic suppression effect of the two-state Markov chain.
Figure 12. Current harmonic suppression effect of the two-state Markov chain.
Applsci 15 05027 g012aApplsci 15 05027 g012b
Figure 13. Current harmonic suppression effect of the two-state Markov chain parameter optimization based on immune algorithm.
Figure 13. Current harmonic suppression effect of the two-state Markov chain parameter optimization based on immune algorithm.
Applsci 15 05027 g013aApplsci 15 05027 g013b
Figure 14. EMI suppression effect of the proposed method at different speeds and modulation indices.
Figure 14. EMI suppression effect of the proposed method at different speeds and modulation indices.
Applsci 15 05027 g014
Table 1. Main parameters of the PMSM.
Table 1. Main parameters of the PMSM.
ParameterSignValueUnit
Rated currentIN135A
Rated voltageUN382V
Rated loadTN150N·m
Rated speednN3820r/min
Rated frequencyfN255Hz
Rated efficiencyηN96%
Rated power factorcosφN0.7-
Stator resistanceRs32.6
d-axis inductanceLd0.437mH
q-axis inductanceLq1.119mH
Poles pairsP4-
Moment of inertiaJ0.04739Kg·m2
Permanent magnet flux linkageψf0.09398Wb
Table 2. Amplitude of the power spectral density near the main frequency under different modulation strategies when M is 0.5. (Unit: dB/Hz).
Table 2. Amplitude of the power spectral density near the main frequency under different modulation strategies when M is 0.5. (Unit: dB/Hz).
Modulation Strategy10 kHz20 kHz
Conventional SVPWM−19.01−17.52
Conventional RPWM−24.42−26.78
Markov-RPWM−27.29−28.89
Proposed methodology−28.45−30.73
Table 3. Amplitude of the power spectral density near the main frequency under different modulation strategies when M is 1.0. (Unit: dB/Hz).
Table 3. Amplitude of the power spectral density near the main frequency under different modulation strategies when M is 1.0. (Unit: dB/Hz).
Modulation Strategy10 kHz20 kHz
Conventional SVPWM−8.04−14.73
Conventional RPWM−15.62−23.90
Markov-RPWM−16.10−25.63
Proposed methodology−17.89−26.49
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, Z.; Liu, X.; Jin, X.; Zhang, G.; Lin, Z. Random PWM Technique Based Two-State Markov Chain for Permanent Magnet Synchronous Motor Control. Appl. Sci. 2025, 15, 5027. https://doi.org/10.3390/app15095027

AMA Style

Wang Z, Liu X, Jin X, Zhang G, Lin Z. Random PWM Technique Based Two-State Markov Chain for Permanent Magnet Synchronous Motor Control. Applied Sciences. 2025; 15(9):5027. https://doi.org/10.3390/app15095027

Chicago/Turabian Style

Wang, Zhiqiang, Xinyuan Liu, Xuefeng Jin, Guozheng Zhang, and Zhichen Lin. 2025. "Random PWM Technique Based Two-State Markov Chain for Permanent Magnet Synchronous Motor Control" Applied Sciences 15, no. 9: 5027. https://doi.org/10.3390/app15095027

APA Style

Wang, Z., Liu, X., Jin, X., Zhang, G., & Lin, Z. (2025). Random PWM Technique Based Two-State Markov Chain for Permanent Magnet Synchronous Motor Control. Applied Sciences, 15(9), 5027. https://doi.org/10.3390/app15095027

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop