Professional Documents
Culture Documents
Research and Simulation of SVPWM Algorithm Based On BP Neural
Research and Simulation of SVPWM Algorithm Based On BP Neural
Research and Simulation of SVPWM Algorithm Based On BP Neural
Abstract. In this paper, a space vector PWM (SVPWM) control algorithm based on BP neural
network is proposed to cope with the complex calculation required in SVPWM through analyzing
SVPWM for three phase voltage fed inverter. This method uses the strong nonlinear approximation
ability of the BP neural network to fit the eqivalent segment SVPWM modulated wave, modulate
with the triangular carrier wave, and then get the control signals of the three phase voltage inverter.
A simulation model for PMSM control system was developed by MATLAB/Simulink with the
neural network Toolbox. The results show that the BP neural network based SVPWM algorithm
makes the motor control system has a smaller current harmonics and torque ripple, and reduce the
amount of computation in digital control system with strong guidance.
Introduction
Space vector PWM (SVPWM) is from the view of the whole motor, the purpose is to make AC
motor genetate a circle magnetic field. This method regard the inverter and AC motor as a whole, its
mathematical model is simple, the system is easy to digital control and this kind of control mode
has advantages of flexible control, good dynamic performance, high dc efficiency, small switch loss
and digital control realization, which is widely used for permanent magnet synchronous motor
control system. It is generally used SVPWM algorithm, which is through the complex online
calculation or querying method to realize the calculation of trigonometric function. For example,
the sector judgement and action time calculation of switching vector need a lot of trigonometric
functions operating, which occupies a large amount of CPU time and space, limiting the switching
frequency of power devices, and has generated great current harmonic distortion and torque ripples.
To ensure the appropriate operation is completed within one sampling period, the switching
frequency can only be limited to less than several thousand hertz. Some scholars have proposed
using a lookup table method to replace the nonlinear real-time operation, but it occupies a larger
memory on the one hand, on the other hand there will be round off errors which can affect the
control accuracy. The artificial neural network has unique advantages in terms of data fitting, a
reasonable structure for neural network can approximate a nonlinear function with arbitrary
precision. For these reasons, the author proposes an approach based on BP neural network SVPWM
technique to avoid a large number of nonlinear calculation.
expectations of the output voltage of the three phase sine wave space voltage vector equal. This is
used to produce a three phase stator current. It is designed with a special mode of switching power
tube to produce the stator current. This switch mode is from the voltage reference vector converted
into switching time of each power tube.
Fig.1 Space voltage vector and SVPWM waves Fig. 2 Voltage vectors’ action time of sector 3
In the third sector as an example shown as Fig.2, for a sampling period Ts , in order to facilitate
the analysis, set the reference voltage Vref lying in the first sector, the voltage can be made by
neighboring voltage space vector V4 and V6 and zero vectors V0 and V7 . The acting time of V1 , V2
and zero vector in the sampling period is respectively T 4 , T 6 and T0, 7 , and meet Ts = T4 + T6 + T0,7 .
According to ‘the balance principle of volt second’ and parallel quadrilateral law can get:
3 U ref Ts π
T4 = sin( − θ )
Ud 3
3 U ref Ts
T6 = sin θ (1)
Ud
T0,7 = Ts − T4 − T6
In order to obtain the symmetrical inverter output voltage waveform, the action time of each
vector is devided into two part, and simultaneously the action time of V0 and V7 are equal.
According to the the relationship of the voltage space vector and switch off conduction states, when
V4 is operating, the state of three phases A, B and C is 100. Similarly available when V6 , V0 and
V7 is operating respectively. Therefore, we can obtain the SVPWM waveform of sector 3 shown in
Fig.3.
The pulse width time of A, B and C can be derived from Fig.3.
T0
TA = T4 + T6 +
2
(2)
T
TB = T6 + 0
2
T0
TC =
2
Key Engineering Materials Vol. 693 1393
The implicit modulation function of SVPWM can be given by PWM rule sampling method.
The pulse width time is
Ts u
T= (1 + r ) (3)
2 Um
Where, ur represents modulation function and U m represents the amplitude of triangular wave
which equals 1 here.
The following modulation function formula of reference vector in sector 3 can be derived by
putting formula (4) into formula (5)
u A = a cos(θ − 30 )
uB = 3a sin(θ − 30 ) (4)
uC = − a cos(θ − 30 )
3 U ref
Where, a = .
Ud
Similarly, the modulation function of three phase reference voltage vector in other sectors are
shown in Table 1.
Table 1 Three phase voltage modulation function in six sectors
uA uB uC
forward and reverse propagation. In the forward propagation, the information reaches the output
layer from the input layer through hidden layer, each output node affects only the output node of the
next layer. Comparing the output value and expectatations can obtain errors. If it doesn’t meet the
requestments, the program will switch to the back propagation, and the error signal backtrack, by
modifying the weights and thresholds of all layers neuron.
The BP neural network structure model shown in Fig. 4. In this paper, we use the topology
structure of 1-10-3.
Then, the error function ek between the network output yk and the desire output uk can be
described by (8).
Training function uses BP algorithm training function trainman of Levenberg-Marquardt to
modify the weights and thresholds, set the maximum training number as 2000 times, training target
error as 0.001 and the learning rate as 0.01. According to the modulated signal wave function, the
value of θ is selected between 0 and 360 as a sample data every 0.2 , and then stored in the
document bpdata.mat. The network training program is as follows.
Clear
% download training datas
load bpda x u
% build BP neural network
net=newff(x,u,10,{‘tansig’, ‘purelin’}, ‘trainlm’);
% configure network parameters (number of iterations, learning rate, target error)
net.trainparam.epochs=2000;
net.trainparam.lr=0.01;
net.trainparam.goal=0.0001;
% training and output of BP neural network
net=train(net,x,u)
y=sim(net,x)
Key Engineering Materials Vol. 693 1395
Conclusion
The new method of applying BP neural network for fitting SVPWM modulation wave is
presented in this paper. After the training of BP neural network is finished, the value of weight and
threshold will be autosaved. When modulating with triangular carrier, only the output function
needs to be calculated,thereby the computational complexity of sector judgement and the time for
vector computation can be avoided, which has a strong guiding significance for the digital control
system based on DSP to reduce the amont of computation and to improve control accuracy. The
simulation results show the feasibility and validity of this method. Although this algorithm is
relatively complex, but the structure of controller is simplified, system adaptive ability greatly has
been improved, higher harmonic of current is to be effectively controlled, which help to reduce the
torque ripple and further reduce the higher harmonic of input current.
References
[1] Pinto JOP, Bose BK, da Silva LEB, et al. A neural-network-based space-vector PWM
controller for voltage-fed inverter induction motor drive[J]. Industry Applications, IEEE
Transactions on, 2000, 36(6): 1628-1636.
[2] Masood Azadi, “Wavenet Based Vector Control of a Permanent Magnet Synchronous Motor
Drive,” in IEEE Digital Object Identifier , vol. 2, 2007, pp. 1663-1668.
[3] YANG X, WANG G, MA J. The Realization of SVPWM Based on ANN with
Matlab/Simulink[J]. Micromotors Servo Technique, 2007, 3: 007.
[4] Yongan Huang, MATLAB7.0/Simulink6.0 Modeling Simulation Development and Senior
Engineering Application. Beijing: Tsinghua University Press, 2005.
[5] Tinglong Pan, Zhicheng Ji, Linbo Xie, Yanxia Shen, “A New Kind of SVPWM Controller
Design Based on ANN,” Journal of System Simulation, Vol. 19 No. 2, pp. 420-423, 2006.
[6] KOU Z, LIU W. Research and Simulation of BP Network-based SVPWM Algorithm[J].
Control and Instruments in Chemical Industry, 2011, 2: 017.
[7] Xianzhong Dai, Guohai Zhang, Xinghua Zhang, Neural Network Inverse Control for AC Drive.
Beijing: Mechanical Industry Press, 2007.
[8] Yafei Tian, “Voltage Space Vector Pulse Width Modulation (SVPWM) Algorithm Simulation
and Analysis,” Proceeding of the CSU-EPSA, Vol.16 No.04, pp. 68-71, 2004.
Copyright of Key Engineering Materials is the property of Trans Tech Publications, Ltd and
its content may not be copied or emailed to multiple sites or posted to a listserv without the
copyright holder's express written permission. However, users may print, download, or email
articles for individual use.