Professional Documents
Culture Documents
Im DTC 20151
Im DTC 20151
Saber Krim†, Soufien Gdaim*, Abdellatif Mtibaa* and Mohamed Faouzi Mimouni**
Abstract – In this paper the hardware implementation of the direct torque control based on the fuzzy
logic technique of induction motor on the Field-Programmable Gate Array (FPGA) is presented. Due
to its complexity, the fuzzy logic technique implemented on a digital system like the DSP (Digital
Signal Processor) and microcontroller is characterized by a calculating delay. This delay is due to the
processing speed which depends on the system complexity. The limitation of these solutions is
inevitable. To solve this problem, an alternative digital solution is used, based on the FPGA, which is
characterized by a fast processing speed, to take the advantage of the performances of the fuzzy logic
technique in spite of its complex computation. The Conventional Direct Torque Control (CDTC) of the
induction machine faces problems, like the high stator flux, electromagnetic torque ripples, and stator
current distortions. To overcome the CDTC problems many methods are used such as the space vector
modulation which is sensitive to the parameters variations of the machine, the increase in the switches
inverter number which increases the cost of the inverter, and the artificial intelligence. In this paper an
intelligent technique based on the fuzzy logic is used because it is allows controlling the systems
without knowing the mathematical model. Also, we use a new method based on the Xilinx system
generator for the hardware implementation of Direct Torque Fuzzy Control (DTFC) on the FPGA. The
simulation results of the DTFC are compared to those of the CDTC. The comparison results illustrate
the reduction in the torque and stator flux ripples of the DTFC and show the Xilinx Virtex V FPGA
performances in terms of execution time.
Keywords: Direct torque control, Fuzzy Logic Control (FLC), Induction motor, Real time, Xilinx
system generator, FPGA.
1527
Copyright ⓒ The Korean Institute of Electrical Engineers
This is an Open-Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (http://creativecommons.org/
licenses/by-nc/3.0/) which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.
Design and Implementation of Direct Torque Control Based on an Intelligent Technique of Induction Motor on FPGA
dΩ 3 T
= p (ϕ sα isβ − ϕ sβ isα ) − L − f Ω (3)
dt 2 J
⎧ 3
⎪⎪isα = isa
2
⎨ (5)
⎪i = 1 (i − i )
⎪⎩ sα 2
sb sc
The angle between the stator flux ϕ s (ϕ sα ,ϕ sβ ) and the Fig. 2. Partition of the complex plan in six angular sectors
reference axis is given by Eq. (7):
ϕ sβ 230/380v
50 Hz
θ s = arctg ( ) (7)
ϕ sα
Switching Table
The estimated values of the torque and stator flux are Eϕ
1
Ec S1
V2
S2
V3
S3
V4
S4
V5
S5
V6
S6
V1
1 0 V7 V0 V7 V0 V7 V0
(S a Sb Sc ) isa b
compared to the reference values Te* and φS*, respectively. 0
-1
1
0
V6
V3
V0
V1
V4
V7
V2
V5
V0
V3
V6
V7
V4
V1
V0
V5
V2
V7
http://www.jeet.or.kr │ 1529
Design and Implementation of Direct Torque Control Based on an Intelligent Technique of Induction Motor on FPGA
230/380v
1 V0 V1 V2 V3 V4 V5 V6
50 Hz
Ω
0 1 2 3 4 5 6
The membership function of the angle θ s is given by Each control rule can be described using the three input
twelve fuzzy sets: θ1 , θ 2 , θ3 , θ 4 , θ5 , θ 6 , θ 7 , θ8 , θ9 , θ10 , θ11 , variables: the stator flux error e f , the electromagnetic
and θ12 as shown in Fig. 6. torque error eT and the angle θ s and the output variable
V as:
μϕ μT
Ri: if (eφ is Xi) & (eT is Yi), then (V is Vi) (10)
P NL NS ZE NL PL
N 1 Z 1
where Xi, Yi and Zi are the fuzzy sets e f , eT and θ,
eϕ (ωb) eT ( Nm )
4.3 Fuzzy inferences
a2 0 a1 -1 c2 0 c1 1
(a) (b) In this work we use the inference method of Mamdani’s
which is based on the min-max decision.
Fig. 5. (a) Fuzzy membership functions of the flux error There are several methods of defuzzification, such as the
( eϕ ); (b) Fuzzy membership functions of the torque method of the center of gravity and the maximum method.
error ( eT ) In our case, we have used the latter method. Fig. 8 shows
the concrete reasoning of the fuzzy inference system.
μθ
θ1 1θ2 θ3 θ4 θ5 θ6 θ7 θ8 θ9 θ10 θ11 θ12 4.4 Design of membership functions using the xilinx
system generator
Rules ( R i )
Fuzzification R1: If ( ef is P) & ( eT is PL) & ( θ s is θ 1 )
(Membership then (V is V1)
Inputs Fonction)
⎧ eϕ
⎪ ⎧(N, Z, P)
⎨ eT ⎪
⎪θ ⎨(NL, NS, Z E, PS, PL)
⎩ S ⎪(θ ,......,θ )
⎩ 1 12 R42: If ( e f is N) & ( eT is NL) & ( θ s is θ12 )
then (V is V4)
Defuzzification
(Min-Max) Output Voltage
http://www.jeet.or.kr │ 1531
Design and Implementation of Direct Torque Control Based on an Intelligent Technique of Induction Motor on FPGA
Fig. 13. Design of the rule number 26 using the XSG The simulation of the CDTC and the DTFC of the
Vi
Fig. 14. Design of the maximum block connecting the V1 output rules
Vi
Sa
Sb
Sc
160
160
140
140
120
120
rotor speed (rd/mn)
rotor speed (rd/s)
100
100
80
80
60
60
40 40
20 20
0 0
0 0.2 0.4 0.6 t(s) 0.8 1 0 0.2 0.4 0.6 t(s) 0.8 1
(a) (b)
Fig. 16. Evolution of the rotor speed: (a) CDTC; (b) DTFC
induction motor is achieved using the XSG. The flux Fig. 18. We can notice that the electromagnetic torque
reference is 0.91 (wb), and the system period is 50µs. The ripples is reduced in the case of the DTFC.
reference of the electromagnetic torque is the output of In Fig. 19, it can be seen that the stator current ripples is
the proportional integral controller of the rotor speed. reduced by using the FLC. In Fig. 20, we can notice that
The load torque is applied at the times t=0.3sec and the stator current distortion is reduced in the case of the
t= 0.6sec. For the two CDTC and DTFC techniques we DTFC.
obtain the evolution of the rotor speed, the stator flux, the From the simulation results we can have the Table 3 to
electromagnetic torque, the stator current module, and the compare the results observed in the case of the CDTC and
sinusoidal distribution of the stator current, which are the DTFC.
given by Fig. 16-19, and Fig. 20, respectively.
In Fig. 16, the rotor speed has quickly reached its Table 3. Advantages of DTFC in terms of ripples
reference value, 150 rd/s, which shows the high dynamics
of the DTC. CDTC DTFC
In Fig. 17, the stator flux has quickly attained its Max-Min % Max-Min %
Electromagnetic
reference value, 0.91 wb, which shows the high dynamics torque ripples
1 9.523 0.6 5.769
of the DTC. The stator flux in the case of the CDTC is Stator flux
0.03 3.333 0.02 2.197
characterized by high ripples, which has decreased by ripples
using the fuzzy logic. Stator current
0.5 10.526 0.25 5.882
distortions
The evolution of the electromagnetic torque is given by
http://www.jeet.or.kr │ 1533
Design and Implementation of Direct Torque Control Based on an Intelligent Technique of Induction Motor on FPGA
1 1
0.8 0.8
Stator flux (Wb)
0.4 0.4
0.2 0.2
0 0
0 0.2 0.4 t(s) 0.6 0.8 1 0 0.2 0.4 t(s) 0.6 0.8 1
0.93 0.93
0.92
0.92
0.91
0.91
0.9
0.9
0.89
0.89
0.88
0.88
0.87
0.87
0.4 0.45 0.5 0.55 0.6
0.4 0.45 0.5 0.55 0.6
(a) (b)
Fig. 17. Evolution of the stator flux: (a) CDTC; (b) DTFC
25 25
Electromagnetic torque (Nm)
20 20
15 15
Tem (Nm)
10 10
5 5
0 0
-5 -5
0 0.2 0.4 t(s) 0.6 0.8 1 0 0.2 0.4 0.6 t(s) 0.8 1
6 6
4 4
2 2
0 0
0.25 0.3 0.35 0.4 0.45 0.5 0.25 0.3 0.35 t(s)0.4 0.45 0.5
(a) (b)
Fig. 18. Evolution of the electromagnetic torque: (a) CDTC; (b) DTFC
25 25
20 20
Stator current (A)
10 10
5 5
0 0
0 0.2 0.4 t(s) 0.6 0.8 1 0 0.2 0.4 0.6 t(s) 0.8 1
5.5 5.5
5 5
4.5 4.5
4 4
3.5 3.5
3 3
2.5
2.5
2
2
1.5
1.5
0.6 0.65 0.7 0.75 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75
(a) (b)
Fig. 19. Evolution of the stator current module: (a) CDTC; (b) DTFC
20 20
15 15
10 10
Stator current (A)
Stator current (A)
5 5
0 0
-5 -5
-10 -10
-15 -15
-20 -20
0 0.2 0.4 0.6 0.8 t(s) 1 0 0.2 0.4 0.6 t(s) 0.8 1
4 4
3 3
2 2
1 1
0 0
-1 -1
-2 -2
-3 -3
-4 -4
0.72 0.725 0.73 0.735 0.74 0.745 0.75 0.72 0.725 0.73 0.735 0.74 0.745 0.75
(a) (b)
Fig. 20. Evolution of the stator current: (a) CDTC; (b) DTFC
http://www.jeet.or.kr │ 1535
Design and Implementation of Direct Torque Control Based on an Intelligent Technique of Induction Motor on FPGA
Fig. 21. Synthesis result of the DTFC using the Xilinx ISE 12.4
General-purpose microcontrollers are characterized by their [1] Chintan Patel, Rajeevan P. P, Anubrata Dey, Rijil
low price [29]. But are not recommended for the complex Ramchand, K. Gopakumar, “Fast Direct Torque
algorithms due to its low processing speed relative to the Control of Open-end Induction Motor Drive using
FPGA and dSPACE. In Table 4, it is clear that the used 12-sided Polygonal Voltage Space Vectors,” IEEE
resources are negligible relative to the available resources. Transactions on Power Electronics, Vol. 27, Issue 1,
Therefore, in the industrialization phase we can choose an pp: 400-410, 2012.
FPGA with a few resources and a low price. In [30] The [2] Eric Monmasson, Marcian N. Cirstea, “FPGA Design
FPGA is inexpensive relative to the dSPACE, and it can Methodology for Industrial Control Systems — A
execute in real time, with a very low execution time, a full Review,” IEEE transactions on industrial electronics,
complex algorithm, this due to its processing parallelisms. Vol. 54, Issue 4, pp: 1824-1842, 2007.
Therefore, the cost of the system based on the FPGA is [3] Yongchang Zhang, Jianguo Zhu, Zhengming Zhao,
lower compared to that based on the dSPACE. Wei Xu, David G. Dorrell, “An Improved Direct
The performances of the hardware solution based on the Torque Control for Three-Level Inverter-Fed Induct-
FPGA compared to software solutions (general-purpose ion Motor Sensorless Drive,” IEEE transactions on
microcontroller (STM 32F4…), Digital Signal Processor power electronics, Vol. 27, Issue 3, pp: 1502-1513,
dSPACE 1104), is shown in Fig. 22. 2012.
The computing power of the dSPACE 1104 is greater [4] Mengjia J, Jianqi Q, Cenwei S, Ruiguang L. A fuzzy
than that of the STM32 microcontroller due to their DTC method with a SVM defuzzification to Per-
adapted architecture. The papers [31-34] present the digital manent Magnet synchronous Machine. The 30th
control of the induction motor using the dSPACE 1104. In annual conference of the IEEE inductrial electronics
these papers, the sampling time is 100µs, due to the society, November 2-5, 2004 Korea.
sequential processing of the dSPACE. In paper [25], the [5] Saurabh N, Pandya A, Chatterjee J. Torque Ripple
execution time is of 300µs using the dSPACE 1102. Using Minimisation in direct torque control based IM drive,
the FPGA, the execution time of the control algorithm of Part 1: Single-rate control strategy. 978-1-4244-
the induction motor is ( ≈ 1 to 2µs). Therefore, the obtained 1762-9/08. 2008 IEEE.
execution time using the FPGA is far lower compared to [6] Yuttana K, Suuttichai P, Hamid A. Modified Direct
the programmed solution. In this paper, the execution time Torque Control method for induction motor drives
of the DTFC algorithm is of 0.89µs, using the Xilinx based on amplitude and angle control of stator flux.
Virtex-V FPGA with an xc5vfx70t-3ff1136 package. Electric Power Systems research 2008. Elsevier
Publisher.
[7] Toh C, Idris N, Yatim A, Muhamad N, Elbuluk M.
7. Conclusion Implementation of a New Torque and Flux Con-
trollers for Direct Torque Control (DTC) of Induction
In this paper, an intelligent technique based on the Fuzzy Machine Utilizing Digital Signal Processor (DSP)
http://www.jeet.or.kr │ 1537
Design and Implementation of Direct Torque Control Based on an Intelligent Technique of Induction Motor on FPGA
and Field Programmable Gate Arrays (FPGA). Power [20] J. R G Schonfield, «Direct torque control-DTC»,
Electronics Specialists Conference, 2005. IEEE 36th ABB Industrial Systems Ltd.
16-16 June 2005. [21] Takahashi I, Noguchi T. A new quick-response and
[8] K. Rajesh, R. Gupta, S. Bhangale, G. Himanshu, ― high efficiency control strategy of an induction motor,
Artificial Neural Network Based Direct Torque IEEE trans. Vol IA-22, no 5. 1986.
Control of Induction Motor Drives, IETECH Journal [22] S. Naaz1, A. Afshar and B. Ranjit, “Effect of dif-
of Electrical Analysis, vol. 2, IETECH Publications, ferent defuzzification methods in a fuzzy based load
2008. balancing application”, IJCSI International Journal of
[9] H. M. Hasanien. FPGA implementation of adaptative Computer Science, Vol. 8, Issue (5), pp: 261-267,
ANN controller for speed regulation of permanent 2011.
stepper motor drives. Energy Conversion and [23] Motor control with STM32®32-bit ARM®-based
Management 2011 Elsevier Publisher. MCU. Pdf. http://www.st.com/web/en/resource/sales_
[10] E. Monmasson, L. Idkhajine, M. N. Cirstea, I. Bahri, and_marketing/promotional_material/brochure/brstm3
A. Tisan, M. W. Naouar. FPGAs in Industrial Control 2mc.pdf.
Applications. IEEE Transactions on Industrial Infor- [24] STM32 embedded target for MATLAB and Simulink,
matics, vol. 7, issue 2, pp: 224-243. 2011. http://www.st.com/st-web-ui/static/active/en/resource/
[11] M. Dagbagi, L. Idkhajine, E. Monmasson, I. Slama- technical/document/data_brief/DM00080897.pdf.
Belkhodja. FPGA Implementation of Power Elec- [25] M. Boussak and K. Jarray, “A High-Performance
tronic Converter Real-Time Model. International Sensorless Indirect Stator Flux Orientation Control of
Symposium on Power Electronics, Electrical Drives, Induction Motor Drive”. IEEE Transactions on in-
Automation and Motion. pp: 658-663, 2012. dustrial electronics, Vol. 53, No. 1, pp. 14-49, 2006.
[12] E. MONMASSON, I.BAHRI, L. IDKHAJINE, A. [26] A. Hmidet, R. Dhifaoui and O. Hasnaoui, “Develop-
MAALOUF, M. W. NAOUAR. Recent Advance- ment, Implementation and Experimentation on a
ments in FPGA-based controllers for AC Drives dSPACE DS1104 of a Direct Voltage Control Scheme”,
Applications. 13th International Conference on Opti- Journal of Power Electronics, Vol. 10, N°.5, pp. 468-
mization of Electrical and Electronic Equipment 476, 2010.
(OPTIM), IEEE, pp: 8-15, 2012. [27] A. Abbou, T. Nasser, H. Mahmoudi, M. Akherraz1, A.
[13] M. Shahbazi, P. Poure, S. Saadate, M. R. Zolghadri. Essadki, “dSPACE IFOC Fuzzy Logic Controller
FPGA-Based Reconfigurable Control for Fault- Implementation for Induction Motor Drive”. Journal
Tolerant Back-to-Back Converter without Redun- of Electrical Systems, vol. 8, No. 3, pp. 317-327, 2012.
dancy. IEEE Transactions on Industrial Electronics, [28] dSpace DS1102 / DS1104 : C programs for induction
vol. 60, issue 8, pp: 3360-3371, 2013. motor vector control. http://www.baghli.com/dspace.
[14] K. Jezernik, J. Korelic, R. Horvat. PMSM Sliding php#Download
Mode FPGA-Based Control for Torque Ripple [29] P.M. Menghal, A. Jaya Laxmi, “Real Time Control of
Reduction. IEEE Transactions on Power Electronics, Electrical Machine and Drives: A Review”. Interna-
vol. 28, issue 7, pp: 3549-3556, 2013. tional journal of advances in electrical engineering
[15] T. Sutikno, N. R. Idris, A. Jidin, M. N. Cirstea. An and technology. Vol. 1, Issue 4, pp. 112-126. 2011.
Improved FPGA Implementation of Direct Torque [30] Low Cost FPGA Based Replacement for dSPACE
Control for Induction Machines. IEEE Transactions Units in the Electric Drives Laboratory, http://cusp.
on Industrial Informatics, vol. 9, issue 3, pp: 1272- umn.edu/Napa_2013/Friday/Tom_P_Napa.pdf.
1279, 2013. [31] Bhoopendra Singh, Shailendra Jain, and Sanjeet
[16] XSG, 1998. Xilinx system generator v2.1 basic Dwivedi, “Direct Torque Control Induction Motor
tutorial. Printed in USA, http://bwrcs.eecs.berkeley. Drive with Improved Flux Response”. Hindawi
edu/Classes/cs152/handouts/Tutorials_book.pdf. Publishing Corporation Advances in Power Elec-
[17] J.G. Mailloux; Prototypage Rapide de la Commande tronics, Vol. 2012, Article ID 764038, pp.1-11.
Vectorielle sur FPGA à l'Aide des Outils SIMULINK- [32] A. ELBACHA, Z. BOULGHASOUL and E.
SYSTEM GENERATOR, l’Université de Québec, ELWARRAKI, A Comparative Study of Rotor Time
Mars 2008 ; Constant Online Identification of an Induction Motor
[18] White paper: Using System Generator for Systematic Using High Gain Observer and Fuzzy Compensator”,
HDL Design, Verification, and Validation WP283 WSEAS TRANSACTIONS on SYSTEMS and
(v1.0) January 17, 2008 CONTROL, Vol. 7, No. 2, pp. 37-53, 2012.
[19] S. Belkacem, F. Naceri, R. Abdessemed, “Robust [33] Vojkan Kostić, Milutin Petronijević, Nebojša Mitrović,
nonlinear control for direct torque control of induct- Bojan Banković, “Experimental verification of direct
ion motor drive using space vector modulation”, torque control methods for electric drive application”,
Journal of Electrical Engineering, Vol. 10, pp. 79-87, Automatic Control and Robotics Vol. 8, No 1, pp.
2010. 111-126, 2009.
[34] Bhoopendra singh, Shailendra Jain, Sanjeet Dwivedi, Mohamed Faouzi Mimouni received
“Experimental Direct Torque Control Induction Motor his Mastery of Science and DEA from
Drive with Modified Flux Estimation and Speed ENSET, Tunisia in 1984 and 1986,
control Algorithm”, IOSR Journal of Engineering, respectively. In 1997, he obtained his
Vol. 2, No. 6, pp. 1296-1300, 2012. Doctorate Degree in Electrical Engin-
eering from ENSET, Tunisia. He is
currently Full Professor of Electrical
Engineering with Electrical Depart-
Saber Krim received the degree in ment at the National School of Engineering of Monastir.
Electrical Engineering from National His specific research interests are in the area Power
School of Engineering of Monastir, Electronics, Motor Drives, Solar and Wind Power generation.
Tunisia in 2011. In 2013 he received Dr. Med Faouzi MIMOUNI has authored/coauthored over
his M.S degree in electrical Engineer- 100 papers in international journals and conferences. He
ing from Monastir University, Tunisia. served on the technical program committees for several
He is currently pursuing the Ph.D. international conferences.
degree with University of Monastir,
Tunisia. His current research interests include rapid
prototyping and reconfigurable architecture for real-time
control applications of electrical system.
http://www.jeet.or.kr │ 1539