Implementation of TMS320f28335 DSP Code Based On SVPWM Technique For Driving VSI With Induction Motor
Implementation of TMS320f28335 DSP Code Based On SVPWM Technique For Driving VSI With Induction Motor
Corresponding Author:
Khalid G. Mohammed
Departement of Electrical and Computer Engineering, University of Diyala
Baqubah, Diyala, Iraq
Email: [email protected]
1. INTRODUCTION
In modern industrialized nations, more than half of the total electrical energy used is converted into
mechanical energy by the induction motor [1], [2]. Today induction motors are widely used in industrial [3],
household and commercial equipment and devices such as centrifugal pumps, elevators, compressors, punch
presses due to their high reliability and durability, relatively low cost, simple structure and easy maintenance
which are free of charge [4], [5]. Controlling an induction motor (IM) is challenging, especially at the
mechanical load changes due to of its nonlinear dynamics, which are inherently complicated. which leads to
unacceptable behavior of the system, and therefore the efficiency of the motor will be almost low, as it is
difficult to obtain appropriate parameters to control it [6], [7]. There are several control methods to control
the nonlinear dynamics of three-phase induction motor, based on IM's load characteristics. The vector control
or field-oriented control (FOC) method approach may be preferred by certain researchers as a result of its
quick response [8]. This sort of system allows for complete control of stator currents or torque. However,
with regard to embedded system implementation, it rises complexity and handling time, making lowering
system costs extremely challenging with system diagnostics under defective circumstances [9]. To minimize
system complexity, direct torque control (DTC) on FOC has been presented as an optimum between
complexity and cost approach [10]. The DTC allows direct comparison of load and motor torque
characteristics, but it raises torque response ripple. Meanwhile, V/f control provides a straight simple solution
to control issues with minimal steady-state error [11]. V/f control include many advantages such as quick
response, parameter independence, simplicity of design, ease of implementation, low cost, speed control without
sensors [12], [13].
The hardware foundation and control method of electrical drives determine the quality of the
generated end user product. Hardware selection is a crucial element of the motor development process, and it
has a significant impact on cost [14], [15]. Several research have been carried out in order to enhance the IM
controller through the development of vector and V/f (scalar) control, as well as contemporary
microcomputers and the power electronic systems, like a microprocessor, digital signal processor (DSP),
where the combination of “high-performance DSP and power electronics devices” has enabled superior
control over the field of induction motors [16], [17]. The DSP-based technique has been shown to be the
most effective and the capacity to rapidly and simply conduct the required signal computations because of its
better computing capabilities, lower power consumption, quicker design cycle, embedded processor, and
higher density than other processors [18]. Furthermore, the switching methods by inverter play a significant
role in the expansion and reinforcement of IM control by decreasing harmonics 19]-[21] ,The space vector
PWM (SVPWM) technique is one of the greatest switching methods efficient used in inverter control
technology as a result of its capacity to reduce harmonic distortion [22]-[24].Also a number of research on
the proportional-integral-derivative (PID) controllers have been carried out, The PI controller is the most
commonly utilized of these controllers for linear control due to it has the capacity to adjust itself to needs of
the system [25], [26].
In this present study, a scalar control (V/f) method was chosen to control the speed of a three-phase
induction motor (3PIM) using a new generation DSP TMS320F28335 through a VSI voltage source
transformer. The control algorithm is designed using code composer studio (CCS) according to the space
vector theory of pulse width modulation (SVPWM) with the PI controller of the pulse bandwidth equipped
with this microprocessor and compared to the return pulse of the encoder in order to create and apply a
closed back feed system for good stability performance of Speed applied to 3 PIM shaft regardless of
mechanical loads changed. After applying load to the induction motor, the DSP kit TMS320F28335 operates
on altering the system's speed.
This paper marshaled as follows section 2 depict the construction of proposed system while section 3
demonstrates design of the speed control of IM drive using DSP TMS320F28335 based on SVPWM. Section 4
presents the control algorithm. Section 6 illustrates the proposed scheme's hardware implementation. Section 7
depicts the experimental results and section 8 which is the conclusion.
2. PROPOSED SYSTEM
The block diagram of the proposed system construction as shown in Figure 1 includes the
construction and hardware layout of the DSP TMS320F28335-based for scalar control process. (DSP) enable
high-speed and more precise control for induction machine under a variety of load situations. The SVPWM
switching method and the PI speed controller was used to control the TIM motor. During V/f control, the
stator voltage and frequency govern the induction motor's speed in such a way that the air gap flux is
maintained at the required value at the steady state as depicted, the complete system is made up of the power
circuit, the control circuit, and the feedback sensor circuit. DSP320F28335 belongs to the driver and control
devices category. The inverter, which is built of IGBTs, is part of the power circuit. To perceive the output,
encoders are attached.
The power circuit incorporates a three autotransformer to manage the voltage of the dc connection.
A three-phase power rectifier is connected to an autotransformer to provide a DC supply.The power circuit
regulates the flow of electricity from the mains to the load. This system can handle voltages in the
400–415 VAC and 600 VDC ranges.On the other hand, three-phase voltage source (VSI) inverter is employ
to manage the power flow to the load. VSI module comprised of the 6 IGBTs linked, 27 ampere, 600 volt
IGBT, part number: G4PC50UD, IRG4PC50UD as indicated in Figure 2.
The gate drive circuit is designed using IC Type SN74LS14N for the purpose of boosting the power
level to emit pulses of the IGBT switches of the designed VSI inverter, as well as for isolation between the
power circuit and the control circuit, during this work the optocoupler A3120 used as isolation and drive
circuit for IGBT. Actually, the designed gate motor circuit corresponds to the PWM output channels related
to the DSP. The generated signals are applied to the inverter of the voltage source, which in turn controls the
motor speed according to the proposed system.
For the purpose of measuring the motor speed, an optical encoder is used to measure the position of
the rotor as it is directly attached to the rotor shaft. The feedback from the optical encoder arrives at the DSP
following signal conditioning. DSP is tie up to computer loaded with software CCS software. The suggested
Int J Pow Elec & Dri Syst, Vol. 13, No. 3, September 2022: 1895-1903
Int J Pow Elec & Dri Syst ISSN: 2088-8694 1897
compensator creates the drive system's speed command. The DSP signals be created based on the speed
reaction and control algorithm. The inverter receives switching pulses from the DSP control board's digital
output. Those digital signals are sent during the isolation and drive circuit to trigger the three-phase inverter's
IGBTs. The signal conditioning device processes the speed signals acquired by the sensors before feeding
them to the DSP control board's I/O port. The IM is designed in the shape of a star, with three supply points
and a balanced load. As a result, IM can be linked to a three-legged VSI. The IM and the magnetic powder
brake is employ for check different loading conditions.
Implementation of TMS320f28335 DSP code based on SVPWM Technique … (Enas Dawood Hassan)
1898 ISSN: 2088-8694
field associated with the stator and operates at close to the velocity of that synchronous magnetic field.
During turbulence on the motor, such as a change in the mechanical load or changes in the reference speed,
the rotor speed will drop below the required frequency, so the difference between the reference speed and the
real speed will increase. Within the proposed control system, the PI controller is a good choice for the system
to detect the error in the returned speed signal and solve the error by producing a compensation signal to be
able to obtain the desired speed through the use of the control algorithm. The error caused by the difference
between the required speed and the actual speed The PI controller processes the fault and produces an ideal
duty cycle of the PWM control signal. SVM technology like SPWM is utilized to produce digital PWM
signal via ePWM outputs. The SVPWM technology takes three input values (Van, Vbn, and Vcn) and
produces six pulse width adjustments of the IGBT three-phase inverter consisting of six IGBTs used to
control a three-phase induction motor.
SVM is implemented in plane by adding a VREF vector to three steps of voltage signals that are
sinusoidal in α–β. The clark transform is used to rotate this vector to transform three-phase quantities into
constant two-phase quantities. Quantities are converted from an axle reference frame to a synchronous
rotating reference frame, using park transformation. Space vector modulation diagram and statement of
switch state vectors for SVPWM through Figure 3 and Table 1. The SVPWM control algorithm that used
speed motor control shown in Figure 4.
4. ALGORITHM DEVELOPMENT
The control algorithm is designed by CCS. The initialization of all essential modules is the first step
in this control technique.CPU timer, GPIO, ADC, and ePWM units are among these modules.An endless
loop is used in this software to conduct a continuous operation. To switch on closed loop activity, external
controls are provided through GPIO. The ADC features a 10 kHz sampling rate and a 5 kHz carrier
frequency. Interpret service routines (ISR) is in charge of the program flow in this way. The ePWM1
interrupt provides the ISR.The scalar control program uses created functions that are based on predetermined
jobs in the control suite software to execute DSP. The PI jobs construct are setup on section 3. Figure 4 is a
flow chart for a created program in CCS.
The scalar control algorithm begins by producing digital switch states by modernization the
SVPWM reference. At the end of every instruction, a fresh sample is taken to process using the scalar control
algorithm. This algorithm is loaded into a DSP to test the control scheme's performance on a hardware level.
Int J Pow Elec & Dri Syst, Vol. 13, No. 3, September 2022: 1895-1903
Int J Pow Elec & Dri Syst ISSN: 2088-8694 1899
Implementation of TMS320f28335 DSP code based on SVPWM Technique … (Enas Dawood Hassan)
1900 ISSN: 2088-8694
(a) (b)
(c) (d)
Figure 5. Experiment setup of V/f control IM drive: (a) schematic design, (b) gate driver with switches
IGBTs and a DSP device, (c) model of complete system, and (d) experimental model
Int J Pow Elec & Dri Syst, Vol. 13, No. 3, September 2022: 1895-1903
Int J Pow Elec & Dri Syst ISSN: 2088-8694 1901
Figure 6. Different duty cycles under the different loads (a) no load, (b) 0.1 p.u load, (c) 0.15 p.u load,
(d) 0.2 p.u load, (e) 0.25 p.u load, and (f) 0.3 p.u load are applied on the motor shaft
Table 2. Practical results drawn current as torque with the shaft speed of 3 PSM without controller
(open control system)
PWM Periodic time Speed (rpm) Drawn Current I (average) Amp.
500µs ON, 500 µs OFF, Vamp=5 V 381 0.6
670µs ON, 330 µs OFF, Vamp=5 V 378 1
700µs ON, 300 µs OFF, Vamp=5 V 376 1.2
730µs ON, 270 µs OFF, Vamp=5 V 370 1.6
820µs ON, 180 µs OFF, Vamp=5 V 352 1.8
870µs ON, 130 µs OFF, Vamp=5 V 346 1.9
Table 3 summarizes the system's speed response to the standard control scheme and changes in the
PWM periodic time while the controller is in place during progressive load operation. The set of speed
controllers used to manage the process of keeping the shaft speed constant at 381 rpm adjusted the duty
cycles during the six test phases, Starting from the loading condition as in Table 3, the duty cycles were
adjusted to (134, 140, 150, 164, 174)% respectively compared to those in the load test shown in Table 2. The
IM motor's speed stability was maintained on 381 rpm, despite these variations under varied loads.
Figure 8 depicts the speed response while applying variable loads in the absence of the control unit,
where we note that increasing the loads leads to higher values of the drawn currents (0.6, 1, 1.2, 1.6, 1.8, 1.9)
Amp corresponding to the response speed (381, 378, 376, 370, 352, 346) rpm. The deviation in velocity
increases with the gradual increase of mechanical load which leads to an increase in the drawn current.
Figure 9 depicts the speed response while applying variable loads to the engine lip depending on the control
unit. We can notice the stability of the speed at the value of 381 rpm with the gradual increase of the
mechanical load, which leads to higher values of the current drawn (0.6, 1, 1.2, 1.6, 1.8, 1.9) Amp .
Implementation of TMS320f28335 DSP code based on SVPWM Technique … (Enas Dawood Hassan)
1902 ISSN: 2088-8694
Table 3. Practical results drawn current as torque with the shaft speed of 3 PSM with controller
(feedback control system)
PWM Periodic time Speed (rpm) Drawn Current I (average) Amp
500µs ON, 500 µs OFF, Vamp=5 V 381 0.6
500µs ON, 500 µs OFF, Vamp=5 V 381 1
500µs ON, 500 µs OFF, Vamp=5 V 381 1.2
500µs ON, 500 µs OFF, Vamp=5 V 381 1.6
500µs ON, 500 µs OFF, Vamp=5 V 381 1.8
500µs ON, 500 µs OFF, Vamp=5 V 381 1.9
I&N
450
400
350
N(rpm)
300
250
200
150
100
0.5 1 1.5 2
I(Amp)
Figure 8. Speed of 3 PIM with variable loads in Figure 9. Speed of 3 PIM with variable loads in
open control system feedback control system
7. CONCLUSION
By implementing DSP control TMS320F28335 based on SVPWM technology on 3 PIM based on
estimation of velocity response efficiency by changing the reference velocity with changing the loads
imposed on the motor shaft in two states during the absence of the controller and during its presence in both
cases respectively the performance feasibility of the control system is included in classification system by
checking the system during sudden changes in the load at a constant speed. It is clear that the speed changed
from 381 rpm to 346 rpm due to the change of load on the shaft upwards. The increased mechanical load on
the motor shaft causes more current to be drawn to the source (battery) side so that direct wash current (Idc)
ranges from 0.6 A to 1.9 A. As for the conduct of the second test with the presence of the control encoder, it
is clear from the test results that the column speed was maintained at 360 rpm, which proves that the set of
speed control tools used to manage the process has achieved the desired goal of the presented research.
REFERENCES
[1] S. Reddy and M. S. Aspalli, “Speed Control of Three Phase Induction Motor using Digital Signal Controller,” International
Journal for Scientific Research and Development, vol. 4, no. 12, pp. 2321–0613, 2017.
[2] M. Atig, M. Bouheraoua, and A. Fekik, “An experimental investigation of heating in induction motor under open phase fault,”
International Journal of Electrical and Computer Engineering, vol. 8, no. 3, pp. 1288–1296, Jun. 2018, doi:
10.11591/ijece.v8i3.pp1288-1296.
[3] A. J. Ali, Z. K. Farej, and N. S. Sultan, “Performance evaluation of a hybrid fuzzy logic controller based on genetic algorithm for
three phase induction motor drive,” International Journal of Power Electronics and Drive System, vol. 10, no. 1, pp. 117-127,
Mar. 2019, doi: 10.11591/ijpeds.v10.i1.pp117-127.
[4] M. Jannati, T. Sutikno, N. R. N. Idris, and M. J. A. Aziz, “Modeling of balanced and unbalanced three-phase induction motor
under balanced and unbalanced supply based on winding function method,” International Journal of Electrical and Computer
Engineering, vol. 5, no. 4, pp. 644–655, Aug. 2015, doi: 10.11591/ijece.v5i4.pp644-655.
[5] G. C. Diyoke, C. Okeke, and U. Aniagwu, “Different Methods of Speed Control of Three-Phase Asynchronous Motor,” American
Journal of Electrical and Electronic Engineering, vol. 4, 2016, pp. 62-68, vol. 4, no. 2, pp. 62–68, 2016, doi: 10.12691/ajeee-4-2-3.
[6] A. Tomer and H. Singh, “Three Phase Induction Motor Speed Control: A Review,” International Journal For Technological
Research In Engineering, vol. 6, no. 11, pp. 5692–5695, 2019.
[7] A. Agrawal, R. S. Lodhi, and P. Nema, “A Review of Speed Control Methods of Induction Motor,” vol. 13, no. 3, pp. 9–14, 2018,
doi: 10.9790/1676-1303020914.
[8] L. Charaabi and I. Jaziri, “A simplified speed control of induction motor based on a low cost FPGA,” International Journal of
Electrical and Computer Engineering, vol. 7, no. 4, pp. 1760–1769, 2017, doi: 10.11591/ijece.v7i4.pp1760-1769.
[9] C. A. Costa, M. A. A. Costa, M. d. A. Turqueti, A. J. Rossa, A. Nied, and F. G. Nogueira, "Enhanced Braking Control for the
Induction Machine Using Scalar Control," IEEE Transactions on Industrial Electronics, vol. 67, no. 11, pp. 9133-9142, Nov.
2020, doi: 10.1109/TIE.2019.2956402.
[10] A. N. Abdullah and M. H. Ali, “Direct torque control of im using PID controller,” International Journal of Electrical and
Computer Engineering, vol. 10, no. 1, pp. 617–625, 2020, doi: 10.11591/ijece.v10i1.pp617-625.
[11] G. Joshi and A. J. Pinto Pius, “ANFIS controller for vector control of three phase induction motor,” Indonesian Journal of
Electrical Engineering and Computer Science, vol. 19, no. 3, pp. 1177–1185, 2020, doi: 10.11591/ijeecs.v19.i3.pp1177-1185.
Int J Pow Elec & Dri Syst, Vol. 13, No. 3, September 2022: 1895-1903
Int J Pow Elec & Dri Syst ISSN: 2088-8694 1903
[12] M. Suetake, I. N. Da Silva, and A. Goedtel, “Embedded DSP-based compact fuzzy system and its application for induction-motor V/f
speed control,” IEEE Transactions on Industrial Electronics, vol. 58, no. 3, pp. 750–760, 2011, doi: 10.1109/TIE.2010.2047822.
[13] J. J. Patel, A. M. Kuvabat, and M. B. Jhala, “Speed Control of a Three Phase Induction Motor Using PWM Inverter,”
International Journal of Engineering Development and Research, vol. 2, no. 1, pp. 503–507, 2014.
[14] M. Bhalekar, S. Umashankar, S. Chandra, D. Vijayakumar and D. P. Kothari, "Development of a research platform for power
electronic converter modeling in real time F28335 digital simulation applications using eZDSP," International Conference on
Circuits, Power and Computing Technologies, 2013, pp. 511-516, doi: 10.1109/ICCPCT.2013.6528934.
[15] N. Gupta and J. K. Nama, “An experimental investigation of scalar control-based induction motor drive using digital signal
processor,” International Journal of Power Electronics, vol. 10, no. 1–2, pp. 102–132, 2019, doi: 10.1504/IJPELEC.2019.096817.
[16] G. L. Jat, K. Singh, A. Mahajan and S.L. Shimi, "Real time speed control of induction motor using new generation DSP
controller," in Second International Innovative Applications of Computational Intelligence on Power, Energy and Controls with
their Impact on Humanity, 2016, pp. 90-95, doi: 10.1109/CIPECH.2016.7918744.
[17] P. Sirikan and C. Charumit, “Implementation of indirect rotor field oriented control for three-phase induction motor drive based
on TMS320F28335 DSP,” Przeglad Elektrotechniczny, vol. 96, no. 9, pp. 153–158, 2020, doi: 10.15199/48.2020.09.32.
[18] T. Tandel, U. Mate, S. Unde, A. Gupta and S. Chaudhary, "Speed estimation of induction motor using TMS320F28335 digital
signal processor," in IEEE Power India International Conference, 2016, pp. 1-6, doi: 10.1109/POWERI.2016.8077285.
[19] S. Dekate and A. Bhargava, “Voltage and Frequency Control of Three Phase PWM Induction Motor : A Review,” vol. 5, no. 7,
pp. 1638–1640, 2018.
[20] D. Uma and K. Vijayarekha, “Modeling and simulation of VSI fed induction motor drive in Matlab/Simulink,” International
Journal of Electrical and Computer Engineering, vol. 7, no. 2, pp. 584–595, 2017, doi: 10.11591/ijece.v7i2.pp584-595.
[21] I. Bouyakoub, R. Taleb, H. Mellah, and A. Zerglaine, “Implementation of space vector modulation for two level Three-phase
inverter using dSPACE DS1104,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 20, no. 2, pp. 744–
751, 2020, doi: 10.11591/ijeecs.v20.i2.pp744-751.
[22] R. Bharti, M. Kumar, and B. M. Prasad, “V/F Control of Three Phase Induction Motor,” in International Conference on Vision
Towards Emerging Trends in Communication and Networking, 2019, pp. 1–4, doi: 10.1109/ViTECoN.2019.8899420.
[23] S. Z. M. Noor, A. M. Bin Omar, M. A. Mohd Radzi and A. H. Faranadia, "Design of closed-loop algorithm of single-stage grid inverter
using Digital Signal Processor (DSP) TMS320F28335 processors evaluation board," IEEE Conference on Sustainable Utilization and
Development in Engineering and Technologies (CSUDET), 2019, pp. 290-294, doi: 10.1109/CSUDET47057.2019.9214698.
[24] S. Vashishtha and K. R. Rekha, “A survey: Space vector PWM (SVPWM) in 3φ voltage source inverter (VSI),” International
Journal of Electrical and Computer Engineering, vol. 8, no. 1, pp. 11–18, 2018, doi: 10.11591/ijece.v8i1.pp11-18.
[25] P. K. Ainah, A. Muhammad, and G. Biowei, “DSP TMS320F28335 Implementation of dq-PI Vector Controller for Voltage DSP
TMS320F28335 Implementation of dq-PI Vector Controller for Voltage Source Inverter using SPWM Technique,” vol. 27, no. 2, 2020.
[26] R. Palanisamy, T. H. Ankit Singh, A. Ranjan, and J. Singh, “BLDC motor driven electric skateboard using SVPWM,”
International Journal of Electrical and Computer Engineering, vol. 10, no. 1, pp. 711–718, 2020, doi:
10.11591/ijece.v10i1.pp711-718.
BIOGRAPHIES OF AUTHORS
Assit Prof. Dr. Engg. Khalid Ghadban Mohammed is a PhD researcher in the
Department of Electrical Power Engineering at University Tenaga Nasional, Malaysia. He has ten
years of industrial experience in repairing and maintenance of several types of electrical machines.
He has published many papers works in 2007 and 2019 containing many new practical
correlations for the design of single and three phase induction motors. He has authored three
practical experimentation books in electrical circuits and machines and has been teaching since
2009 in the College of Engineering, Diyala University, Iraq. He can be contacted at email:
[email protected].
Inaam Ibrahim Ali received her M.Sc. degree in Electrical Power Engineering from
University of Technology, Baghdad-Iraq, in 2002. She was awarded a PhD degree from
University of Technology in 2010. Since 2002, she has been a Lecturer in Electrical Engineering
in the Department of Engineering at the University of Technology, where she teaches Electrical
Circuits, Electrical Machines, Power Systems Engineering, power electronics and Power Systems
Analysis. Her field of research covers a wide range of subjects in Power System stability FACTS
Devices Power Quality and Renewable Energy. She can be contacted at email:
[email protected].
Implementation of TMS320f28335 DSP code based on SVPWM Technique … (Enas Dawood Hassan)