fpga based implementation of sinusoidal pwm for...

5
FPGA Based Implementation of Sinusoidal PWM for Induction Motor Drive Applications Farzad Nekoei, Yousef S. Kavian Faculty of Engineering, Shahid Chamran University, Ahvaz, Iran [email protected] Abstract: The rapid advances in very large scale integration (VLSI) technology lead to implement modern high speed digital controllers with excellent performance, compared to traditional analog control systems. The field programmable gate array (FPGA) devices provide programmable system-on-chip (SoC) environments for designing powerful ASIC controllers with dedicated architectures. This paper presents a FPGA-based digital controller proposed to control induction three-phase motor drives using a single SPARTAN ٣ chip, XC٣S۴٠٠-۵I-PQ٢٠٨, from Xilinx, Inc. The sinusoidal pulse width modulation (SPWM) method is realized on FPGA to generate controlling switching pulses for insulated-gate bipolar transistors (IGBTs) in drive system implementing a Verilog hardware description language (HDL) code. The experimental and simulation results demonstrate the efficiency of FPGA-based solutions for implementing dedicated SPWM controller for induction motor drive systems. Keywords: Field Programmable Gate Array, Sinusoidal PWM, Hardware Description Languages, Verilog, Induction Motors, Drive. ١. Introduction The induction motors are mainly employed in industrial processes as actuators and final elements due to their desirable performance features [١, ٢]. Design and implementation of digital controllers for drive systems is a challenging issue for employing induction motors in industries. The digital signal processors (DSPs) have been mainly utilized by engineers and researchers for controlling induction motors [٣, ۴]. Nowadays, the field programmable gate array (FPGA) chips are quite mature for the industrial electronic and control applications caused by fast progress in very large scale integration (VLSI) technology [۵]. Fratta et al [۶] provided a comparative analysis among DSP and FPGA-based control capabilities in PWM power converters. In [٧] Simulink-based modeling and simulation of FPGA-based variable-speed drive systems was presented. Chen and Lin implemented the FPGA-based ultrasonic motor servo drive [٨]. Real- time FPGA-based high speed motion control was proposed by Yau et al. in [٩]. Fung et al. [١٠] presented FPGA-based adaptive back-stepping fuzzy control for a micro-positioning Scott-Russell mechanism. Bomar implemented a micro-programmed control in FPGAs [١١]. Kung and Tsai proposed a FPGA-based speed control IC for PMSM drive with adaptive fuzzy control [١٢]. FPGA implementation of an embedded robust adaptive controller for autonomous omni-directional mobile platform was presented by Huang and Tsai [١٣]. Kung et al. realized a motion control IC for X-Y table on FPGA [١۴]. Therefore FPGAs are successfully used for implementing induction motor drives due to providing programmable system-on-chip (SoC) environments by incorporating the programmability of programmable logic devices (PLDs) and the architecture of gate arrays. The FPGAs [١۵] consist of thousands of logic gates and some configurable logic blocks (CLBs) which make them an appropriate solution for prototyping the application-specific integrated circuit (ASIC) controllers with dedicated architectures for specified applications. The circuits and algorithms can be developed in the hardware description languages like VHDL [١۶] and Verilog [١٧] which are technology independent. Monmasson et al. [١٨] reviewed the FPGA-based design methodologies for industrial control systems. Naouar et al. surveyed FPGA-based current controllers for AC machine drives [١٩]. They concluded improving the quality of the regulated current in ON- OFF current controllers, proportional-integral (PI) current controller, and predictive current controller due to reduction of the execution time delay from the possibility offered by FPGAs. Although the FPGA-based digital designs have some merits than microprocessor circuits, pointed in literature, including programmability, rapid prototyping, fast time-to-market, embedding processor, low power consumption, low cost and higher density for the implementation of the digital systems. But the concurrent operation, ASIC controller design and simultaneously processing are the main reasons of authors for employing FPGA for implementing induction motor derives. The rest of the paper is organized as follows. Section ٢ presents a synoptic architecture of FPGA-based drive

Upload: doanthuy

Post on 15-Mar-2018

224 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: FPGA Based Implementation of Sinusoidal PWM for …rms.scu.ac.ir/Files/Articles/Conferences/Abstract/9.pdf... · FPGA Based Implementation of Sinusoidal PWM for Induction Motor Drive

FPGA Based Implementation of Sinusoidal PWM for InductionMotor Drive Applications

Farzad Nekoei, Yousef S. KavianFaculty of Engineering, Shahid Chamran University, Ahvaz, Iran

[email protected]

Abstract:The rapid advances in very large scale integration (VLSI) technology lead to implement modern high speed digitalcontrollers with excellent performance, compared to traditional analog control systems. The field programmable gatearray (FPGA) devices provide programmable system-on-chip (SoC) environments for designing powerful ASICcontrollers with dedicated architectures. This paper presents a FPGA-based digital controller proposed to controlinduction three-phase motor drives using a single SPARTAN ٣ chip, XC٣S۴٠٠-۵I-PQ٢٠٨, from Xilinx, Inc. Thesinusoidal pulse width modulation (SPWM) method is realized on FPGA to generate controlling switching pulses forinsulated-gate bipolar transistors (IGBTs) in drive system implementing a Verilog hardware description language(HDL) code. The experimental and simulation results demonstrate the efficiency of FPGA-based solutions forimplementing dedicated SPWM controller for induction motor drive systems.

Keywords: Field Programmable Gate Array, Sinusoidal PWM, Hardware Description Languages, Verilog,Induction Motors, Drive.

١. IntroductionThe induction motors are mainly employed inindustrial processes as actuators and final elements dueto their desirable performance features [٢ ,١]. Designand implementation of digital controllers for drivesystems is a challenging issue for employing inductionmotors in industries. The digital signal processors(DSPs) have been mainly utilized by engineers andresearchers for controlling induction motors [٣, ۴].Nowadays, the field programmable gate array (FPGA)chips are quite mature for the industrial electronic andcontrol applications caused by fast progress in verylarge scale integration (VLSI) technology [۵]. Fratta etal [۶] provided a comparative analysis among DSP andFPGA-based control capabilities in PWM powerconverters. In [٧] Simulink-based modeling andsimulation of FPGA-based variable-speed drivesystems was presented. Chen and Lin implemented theFPGA-based ultrasonic motor servo drive [٨]. Real-time FPGA-based high speed motion control wasproposed by Yau et al. in [٩]. Fung et al. [١٠] presentedFPGA-based adaptive back-stepping fuzzy control fora micro-positioning Scott-Russell mechanism. Bomarimplemented a micro-programmed control in FPGAs[١١]. Kung and Tsai proposed a FPGA-based speedcontrol IC for PMSM drive with adaptive fuzzy control[١٢]. FPGA implementation of an embedded robustadaptive controller for autonomous omni-directionalmobile platform was presented by Huang and Tsai[١٣]. Kung et al. realized a motion control IC for X-Ytable on FPGA [١۴].Therefore FPGAs are successfully used forimplementing induction motor drives due to providing

programmable system-on-chip (SoC) environments byincorporating the programmability of programmablelogic devices (PLDs) and the architecture of gatearrays. The FPGAs [١۵] consist of thousands of logicgates and some configurable logic blocks (CLBs)which make them an appropriate solution forprototyping the application-specific integrated circuit(ASIC) controllers with dedicated architectures forspecified applications. The circuits and algorithms canbe developed in the hardware description languageslike VHDL [١۶] and Verilog [١٧] which are technologyindependent.Monmasson et al. [١٨] reviewed the FPGA-baseddesign methodologies for industrial control systems.Naouar et al. surveyed FPGA-based current controllersfor AC machine drives [١٩]. They concludedimproving the quality of the regulated current in ON-OFF current controllers, proportional-integral (PI)current controller, and predictive current controller dueto reduction of the execution time delay from thepossibility offered by FPGAs.Although the FPGA-based digital designs have somemerits than microprocessor circuits, pointed inliterature, including programmability, rapidprototyping, fast time-to-market, embedding processor,low power consumption, low cost and higher densityfor the implementation of the digital systems. But theconcurrent operation, ASIC controller design andsimultaneously processing are the main reasons ofauthors for employing FPGA for implementinginduction motor derives.The rest of the paper is organized as follows. Section ٢presents a synoptic architecture of FPGA-based drive

Page 2: FPGA Based Implementation of Sinusoidal PWM for …rms.scu.ac.ir/Files/Articles/Conferences/Abstract/9.pdf... · FPGA Based Implementation of Sinusoidal PWM for Induction Motor Drive

system for ٣-phase induction motor followed by adescription of sinusoidal PWM. The realization ofSPWM on FPGA, the Verliog-based modules and thesimulation results achieved by ISE for each module arepresented in section ٣. The experimental set up andpractical results are described in section ۴. Finally thepaper is concluded in section ۵.

٢. FPGA Based Motor Drive Solution

The main parts of the FPGA-based solution for acmotor drive applications are described in this section.Figure ١ shows a synoptic of the proposed drive systemwhich consists of FPGA control board and motordriver board. The FPGA control board provides theswitching signals for insulated-gate bipolar transistors(IGBTs) of inverter block using sinusoidal PWM. Theswitching frequency, the dead time of IGBTs and thephase selection are managed by FPGA. The FPGAcontrol board includes an intellectual property (IP) corefor managing digital interfaces by ADC modules andother digital measurements. The motor driver boardconsists of three main modules which are inverterblock, power system and analog to digital converters.

٢.١ The Insulated Gate BipolarTransistors (IGBTs)The power electronic drive includes ۶-puls ٢-level

IGBTs for voltage-source converter. The IGBTs [٢٠]are used in switched mode for drive applications wherethe forward characteristic of the IGBT can berepresented by a linear substitute characteristic [٢١],shown in figure ٢.

)t(I.R)T(V)t(V CCECECEsat (١)

where CER is the device on-state resistance and)T(VCE is the collector-emitter threshold voltage.

Another important characteristic of an IGBT forelectronic drive is the timing chart for switchingoperation of the device during turn-on and turn-off,respectively.

)t(IC

)T(VCE )t(VCE

CER

Fig. ٢ The linear characteristic of a typical IGBT inswitching mode

٢.٢ The Sinusoidal Pulse WidthModulation (SPWM)

In SPWM approach a sine wave is employed asreference signal which is compared to a triangularcarrier signal to provide High-Low pulses , shown infigure ٣. The output signal, sV , is high when theamplitude of reference signal, rA , is greater than thatfor carrier signal , cA , otherwise is low.

cr

cr

s

AA,Low

AA,HighV (٢)

The modulation index is defined asc

r

AAM . By

changing modulation index from ٠ to ١ the outputvoltage changes from ٠ to sV which could be used forvoltage control of motor.

CarrierRefrrence Vs

sVFig. ٣ The High-Low pulse generation by SPWM

approach.

offt

Fig. ١ Synoptic of the FPGA based drive system

Page 3: FPGA Based Implementation of Sinusoidal PWM for …rms.scu.ac.ir/Files/Articles/Conferences/Abstract/9.pdf... · FPGA Based Implementation of Sinusoidal PWM for Induction Motor Drive

٣. FPGA Realization of SPWM

This section describes the practical aspects ofrealization the SPWM based drive approach on FPGA.A Verilog HDL code was implemented into sixmodules which are instantiated in an IP core.

٣.١ The SINE module

This module generates a discrete sine wave byproviding ۶٠ samples of a sine wave from ٠ to ٣۶٠degrees. The frequency of sine wave varies between٢٠HZ to ۶٠Hz, i.e. HZ۶۰,۲۰f , and SINE module

refreshes itself eachf۶۰

۱ second. Figure ۴ shows the

behavior of SINE module for providing discretesamples of sine waves.

Fig.۴ Providing discrete samples of sine waves by SINEmodule

٣.٢ The PWM moduleThe outputs of SINE are connected to PWM module toprovide pulse width modulation signals. The PWMmodule consists of an up/down counter which countsfrom ٠ to ٢۵۵, then changes its direction and counts

until ٠ inf۶۰

۱ second, where f is frequency of the

SINE module. The clock pulse of PWM module is ۵١٢times faster than f. The up/down counter makes atriangle wave that is used as carrier signal. The voltageof motor and consequently the speed of motor could beadjusted by modulation index (M). Figure ۵ shows thepulse width modulation signals provided by PWMmodule.

Fig. ۵ The pulse width modulation signals provided byPWM module.

٣.٣ The DEAD-TIME ModuleIn power circuit there are ۶ insulated-gate bipolartransistors (IGBTs) where each phase needs twoIGBTs. Practically the IGBTs have dead timescalled dt for switching from high to low which isaround s۱ . This time is considered for preventing ofsending both high and low signals to IGBTs in the

same time which damages the power circuit. TheDEAD-TIME module receives PWM outputs andprovides s١ delay time for turning IGBTs, shown infigure ۶.

Fig. ۶. The s١ delay time provided by DEALY module

٣.۴ The PHASE-CNTR ModuleThis module enables each phase when the previous

one is in ١٢٠ degrees position. Figure ٧ shows thephase enabling by the proposed module in appreciatetime.

Fig. ٧. Phase enabling by PHASE-CNTR module

٣.۵ The DIRECTION ModuleThe outputs of the DEALY module are connected tothe DIRECTION module for changing motor rotationdirection shown in figure ٨.

Fig. ٨. The changing motor rotation direction

٣.۶ The FREQ_DIVIDER moduleThis module provides the frequencies that are neededfor SINE and PWM modules from oscillator signal.The motor speed could be controlled by changing theoutput frequency of FREQ_DIVIDER module. Thismodule can adjust motor frequency from ٢٠HZ to۶٠HZ. Figure ٩ shows different clock generation byFREQ_DIVIDER module.

Page 4: FPGA Based Implementation of Sinusoidal PWM for …rms.scu.ac.ir/Files/Articles/Conferences/Abstract/9.pdf... · FPGA Based Implementation of Sinusoidal PWM for Induction Motor Drive

Fig. ٩. Different clock generation by FREQ_DIVIDERmodule

۴. Experimental ResultsThis section presents the results of implementation theSPWM approach on FPGA for ٣-phase inductionmotors drive. The experimental set up consists of twomain parts; the FPGA controlling board for providingswitching pulses and the power circuit board. Thecharacteristics of the motor were given in Table ١. Thedigital control system was implemented on SPARTAN٣; chip number XC٣S۴٠٠-۵I-PQ٢٠٨, from Xilinx Inc.The Xilinx ISE ١٠.١ Web-Pack edition was used forsynthesized the Verilog programs.

Table ١. The characteristics of the motor

KW HZ RPM V A

٠.٣٧ ۵٠ ٢٨٠٠ ٢٢٠ Δ /٣٨٠ Y ١.٩ Δ /١.١ Y

Figure ١٠ shows the internal architecture of theproposed FPGA implementation of motor drive IC.The internal circuit block diagram comprises the mainmodules to perform the function of the SPWM fordrive the IGBTs, generate the frequency, collect theresponse data, and communicate with external devices.

Figures ١١(a) and ١١(b) show the switching signals thatwere exerted to each phase IGBTs and the signalswhich were exerted to a low pass filter with C=١٠٠nfand R=١٠KΩ, respectively. As shown in figure ١١(a)the switching pulses of one leg IGBTs in the invertercircuit are not high and low in the same time.Furthermore, the frequency and the amplitude of thesepulses could be adjusted by FPGA for controlling thespeed of motor.

Fig. ١١(a). The switching signals for each phase IGBTs

Fig. ١١(b). The switching signals after low pass filter

Fig. ١٠.The block diagram of IC

Page 5: FPGA Based Implementation of Sinusoidal PWM for …rms.scu.ac.ir/Files/Articles/Conferences/Abstract/9.pdf... · FPGA Based Implementation of Sinusoidal PWM for Induction Motor Drive

۵. ConclusionIn this paper, the successful digital design andimplementation of a programmable Sinusoidal PWMcontrol IC for induction motor drives have beendemonstrated. The FPGA technology has beenemployed for implementing the Sinusoidal PWMcontrol IC using hardware description languageVerilog approach. The simulation and experimentalresults verified the effectiveness of implemented ASICSPWM control IC with dedicated architecture. Theproposed SPWM IC can generate a wide range ofPWM output voltages and frequencies which could beapplied for motor speed control. The proposed FPGA-based digital control scheme is flexible, low cost, andhigh performance for induction motor driveapplications.

References

[١] I. Boldea, A. S. Nasar, Linear electric actuators andgenerators, Cambridge University Press, ١٩٩٧.

[٢] F.J. Lin, L.T. Teng, C.Y. Chen, Y.C. Hung, "FPGA-based adaptive backstepping control system usingRBFN for linear induction motor drive", IET ElectricPower Applications, Vol. ٢, No. ۶, pp. ٣٢۵–٣۴٢٠٠٨ ,٠.

[٣] M. M. Morcos and A. Lakshmikanth, “DSP-basedsolutions for AC motor drives,” IEEE PowerEngineering Review, vol. ١٩, no. ٩, pp. ۵٧-۵٩, Sep.١٩٩٩.

[۴] S. Meshkat and I. Ahmed, “Using DSPs in AC inductionmotor drives,” Control Engineering, vol. ٣۵, no. ٢, pp.۵۴-۵۶, ١٩٨٨.

[۵] J. J. Rodriguez-Andina, M. J. Moure, and M. D. Valdes,“Features, design tools, and application domains ofFPGAs,” IEEE Transaction on Industrial Electronics,vol. ۵۴, no. ۴, pp. ١٨٢٣–١٨١٠, Aug. ٢٠٠٧.

[۶] A. Fratta, G. Griffero, and S. Nieddu, “Comparativeanalysis among DSP and FPGA-based controlcapabilities in PWM power converters,” Proceeding onIEEE IECON, Busan, Korea, pp. ٢۵٢-٧۶٢٠٠ ,٢۴.

[٧] Francesco Ricci, Hoang Le-Huy, “Modeling andsimulation of FPGA-based variable-speed drives usingSimulink”, Mathematics and Computers in Simulation,vol. ۶٣, pp. ١٩–١٨٣۵, ٢٠٠٣.

[٨] Jian-Shiang Chen, In-Dar Lin, “Toward theimplementation of an ultrasonic motor servo drive usingFPGA”, Mechatronics, vol. ١٢, pp. ۵١١-۵٢۴, ٢٠٠٢.

[٩] H.T. Yau, M.T. Lin, M.T. Tsai, “Real-time NURBSinterpolation using FPGA for high speed motioncontrol”, Computer-Aided Design, vol. ٣٨, pp. ١١٢٣-٢٠٠ ,١١٣٣۶.

[١٠] Rong-Fong Fung, Ming-Hong Weng, Ying-Shieh Kung,“FPGA-based adaptive backstepping fuzzy control for amicro-positioning Scott-Russell mechanism”,Mechanical Systems and Signal Processing, vol. ٢٣, pp.٢۶٢-٧١۶٨۶, ٢٠٠٩.

[١١] B. Bomar, “Implementation of a microprogrammedcontrol in FPGAs,” IEEE Transaction on IndustrialElectronics, vol. ۴٩, no. ٢, pp. ۴١۵–۴٢٢, Apr. ٢٠٠٢.

[١٢] Y. S. Kung and M. H. Tsai, “FPGA-based speed controlIC for PMSM drive with adaptive fuzzy control,” IEEETransaction on Industrial Electronics, vol. ٢٢, no. ۶, pp.٢۴٧۶–٢۴٨۶, Nov. ٢٠٠٧.

[١٣] H. C. Huang and C. C. Tsai, “FPGA implementation ofan embedded robust adaptive controller for autonomousomni directional mobile platform,” IEEE Transaction onIndustrial Electronics, vol. ۵۶, no. ۵, pp. ١۶٠۴–١۶١۶,٢٠٠٩.

[١۴] Y. S. Kung, R. F. Fung, and T. Y. Tai, “Realization of amotion control IC for X–Y table based on novel FPGAtechnology,” IEEE Transaction on IndustrialElectronics, vol. ۵۶, no. ١, pp. ۴٣–۵٢٠٠٩ ,٣.

[١۵] W.Wolf, FPGA-Based System Design. EnglewoodCliffs, NJ: Prentice- Hall, ٢٠٠۴.

[١۶] D.L. Perry, VHDL. New York: McGraw-Hill, ٢٠٠۴.[١٧] S. Palnitkar, Verilog HDL, A Guide to Digital Design

and Synthesis. Englewood Cliffs, NJ: Prentice-Hall,١٩٩۶.

[١٨] E. Monmasson, M. N. Cirstea, “FPGA designmethodology for industrial control systems-A Review”,IEEE Transaction on Industrial Electronics, vol. ۵۴, no.۴, pp. ١٩٠-١٨٩٨۶, ٢٠٠٧.

[١٩] M.-W. Naouar, E. Monmasson, and A. A. Naassani,“FPGA-based current controllers for AC machinedrives-A review,” IEEE Transaction on IndustrialElectronics, vol. ۵۴, no. ۴, pp. ١٩٢-١٩٠٧۵, Aug. ٢٠٠٧.

[٢٠] K. Sheng, B. W. Williams, and S. J. Finney, “A reviewof IGBT models,” IEEE Transaction on PowerElectronics, vol. ١۵, no. ۶, pp. ١٢۵١٢-٠۶۶, ٢٠٠٠.

[٢١] G.G. Parma, and V. Dinavahi, "Real-Time DigitalHardware Simulation of Power Electronics and Drives",IEEE Transaction on Power Delivery, vol. ٢٢, no. ٢, pp.١٢٣۵-١٢۴۶, ٢٠٠٧.