simulation and implementation of fpga based three phase ...signal. three hall sensors a, b, and c...

16
Simulation and Implementation of FPGA based three phase BLDC drive for Electric Vehicles A.Bharathi sankar 1 and Dr.R.Seyezhai 2 1 Research scholar, Renewable Energy Conversion Laboratory, Department of Electrical & Electronics Engineering, SSN college of Engineering Chennai, Tamilnadu, INDIA. [email protected], 2 Associate Professor, Renewable Energy Conversion Laboratory, Department of Electrical & Electronics Engineering, SSN college of Engineering Chennai, Tamilnadu, INDIA. [email protected]. December 30, 2017 Abstract Objective : This paper describes about the FPGA con- trol of Brushless DC (BLDC) machines for electric vehicle applications. Methods : BLDC motors are generally powered by a three-phase voltage source inverter which is controlled based on the rotor position feedback. In this work, the electronic commutation is implemented on FPGA as it pro- vides greater flexibility and higher resources for implement- ing control algorithms compared to other digital controllers. Findings : A model of the BLDC motor is simulated, and its controller is implemented on a FPGA system in MATLAB environment. 1 International Journal of Pure and Applied Mathematics Volume 118 No. 16 2018, 815-829 ISSN: 1311-8080 (printed version); ISSN: 1314-3395 (on-line version) url: http://www.ijpam.eu Special Issue ijpam.eu 815

Upload: others

Post on 12-Mar-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

Simulation and Implementation ofFPGA based three phase BLDC drive

for Electric Vehicles

A.Bharathi sankar1 and Dr.R.Seyezhai21Research scholar,

Renewable Energy Conversion Laboratory,Department of Electrical & Electronics Engineering,

SSN college of Engineering Chennai, Tamilnadu, [email protected],

2Associate Professor,Renewable Energy Conversion Laboratory,

Department of Electrical & Electronics Engineering,SSN college of Engineering Chennai, Tamilnadu, INDIA.

[email protected].

December 30, 2017

Abstract

Objective : This paper describes about the FPGA con-trol of Brushless DC (BLDC) machines for electric vehicleapplications.

Methods : BLDC motors are generally powered bya three-phase voltage source inverter which is controlledbased on the rotor position feedback. In this work, theelectronic commutation is implemented on FPGA as it pro-vides greater flexibility and higher resources for implement-ing control algorithms compared to other digital controllers.

Findings : A model of the BLDC motor is simulated,and its controller is implemented on a FPGA system inMATLAB environment.

1

International Journal of Pure and Applied MathematicsVolume 118 No. 16 2018, 815-829ISSN: 1311-8080 (printed version); ISSN: 1314-3395 (on-line version)url: http://www.ijpam.euSpecial Issue ijpam.eu

815

Page 2: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

Novelty : A prototype of three-phase inverter alongwith the FPGA control is implemented for BLDC motorand the results are verified.

Keywords: Brushless Direct Current Motor, Field Pro-grammable Gate Array, Voltage Source Inverter.

1 INTRODUCTION

The block diagram of the control system for the BLDC motor drivesystem is shown in Figure 1. The three-phase inverter is usuallyresponsible for the electronic commutation and current regulation.For the six-step commutation current control with star connectedBLDC motor winding and no neutral connection, the inverter cur-rent flow is restricted to two of the three phases. This leads to theDC link and phase current to be equal in magnitude1,2.

Figure 1: BLDC Motor Control System

The inverter consists of two switches one in upper leg and theother in lower leg, which conducts based on the rotor position infor-mation. Pulse width modulation current controllers are typicallyused to regulate the actual machine currents in order to match therectangular current reference waveforms as shown in Figure 2.

2

International Journal of Pure and Applied Mathematics Special Issue

816

Page 3: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

Figure 2: Back EMF and current waveform of BLDC motor drivesystem.

Each of the upper side switches is always chopped for one 120◦

degree interval and the corresponding lower switch is always turnedon per interval. The freewheeling diodes provide the necessarypaths for the current to circulate when the switches are turnedoff during the commutation intervals 3,4.

There are two types of sensors for the BLDC drive system: acurrent sensor and a hall position sensor. In six-step commutationcurrent control, the dc link current is measured instead of the phasecurrent as they are equal. For current sensor, shunt resistor in serieswith the inverter, is used. The Hall-effect position sensors typicallyprovide the rotor position information needed to synchronize thestator excitation with rotor position in order to produce a constanttorque. The rotor magnets are used as triggers for the hall sensor.A transistor logic-compatible pulse with sharp edges and high noiseimmunity is produced by signal conditioning circuit for connectionto the controller 5,6.

2 SENSORED CONTROL OF BRUSH-

LESS DC MOTOR

Brushless DC motor consists of a permanent magnet rotor and awound field stator which is connected to a power electronic switch-ing circuit. This drive system is based on the rotor position, and it

3

International Journal of Pure and Applied Mathematics Special Issue

817

Page 4: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

is obtained at fixed points typically every 60 electrical degrees forsix-step commutations of the phase currents. Moreover, the perma-nent magnets produce an air gap flux density distribution that isof trapezoidal in shape and results in trapezoidal back-EMF wave-forms. Brushless DC motors use electric switches to realize currentcommutation, and thus continuously rotate the motor 7,8. Theseswitches are usually connected in a three-phase bridge structure fora three-phase BLDC motor and the block diagram is shown in Fig-ure 3.

Figure 3: Sensored control of three-phase brushless DC motor.

Figure 4: BLDC motor drive along with typical phase current andhall signal.

A three-phase BLDC motor requires three Hall sensors to de-tect the rotors position. These hall sensors are placed 120 degree

4

International Journal of Pure and Applied Mathematics Special Issue

818

Page 5: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

interval from each other and it provides the required digital signals(high/low signal) for the controller to determine the rotor positionin intervals of 60 electrical degrees 9,10. Figure 4 shows the Brush-less DC motor drive along with typical phase stator current and hallsignal. Three Hall sensors A, B, and C are mounted on the stator at120◦ degree intervals, while the three phase windings are in a starformation. For every 60◦ degree rotation, one of the Hall sensorschanges its state; it takes six steps to complete a whole electricalcycle as shown in Table: 1.In synchronous mode, the phase currentswitching updates every 60degree. However, every one signal cyclemay not correspond to a complete full mechanical revolution. Thenumber of signal cycles to complete a one mechanical rotation isdetermined by the number of each rotor pole pairs. Every rotorpole pair requires one signal full cycle in one mechanical rotation.So, the number of signal cycles is equal to the rotor pole pairs11−15.Conduction table of commutation sequence of BLDC is shown inTable1. Based on the rotor position, the conduction table of VSI isshown in Table: 2.

Table 1: Conduction table of commutation sequence of BLDCHall Sensors Motor Phase

HA HB HC PH A PH B PH C1 1 0 OFF + -0 1 0 - + OFF0 1 1 - OFF +0 0 1 OFF - +1 0 1 + - OFF1 0 0 + OFF -

5

International Journal of Pure and Applied Mathematics Special Issue

819

Page 6: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

Table 2: Conduction table of VSI based on rotor position of BLDCHALL

AHALL

BHALL

CPWM

1PWM

2PWM

3PWM

4PWM

5PWM

6

0 0 1 0 0 0 1 1 0

0 1 0 1 0 0 0 0 1

0 1 1 1 0 0 1 0 0

1 0 0 0 1 1 0 0 0

1 0 1 0 1 0 0 1 0

1 1 0 0 0 1 0 0 1

3 SIMULATION RESULTS

The simulink model of the sensored control of BLDC motor is shownin Figure 5. Table 3 shows simulation parameter for three-phaseBLDC drive.

Figure 5: Simulink model of the sensored control of BLDC drive

Table 3: Simulation parameters Three-phase BLDC driveSimulation parameters ValuesThree phase voltage

source inverterVin = 24 V

BLDCP= 1KW, V= 36V,

N= 3000 rpm, Pole = 16

6

International Journal of Pure and Applied Mathematics Special Issue

820

Page 7: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

The simulated results (rotor speed, electromagnetic torque, sta-tor current and back EMF) of BLDC motor are shown in Figures[6-9] respectively.

Figure 6: Rotor speed for BLDC drive.

Figure 7: Motor torque for BLDC drive.

Figure 8: Stator current for BLDC drive.

7

International Journal of Pure and Applied Mathematics Special Issue

821

Page 8: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

Figure 9: Back EMF for BLDC drive.

Figure 10: Stator current T.H.D for three-phase BLDC drive.

Figures 6 & 7 show that the BLDC motor speed is settled 3000rpm and torque is about 4 Nm. Figures 8 & 9 show that the BLDCmotor stator current and back emf voltage. Figure 10 shows thatthe stator current T.H.D which is about 18.21%.

4 HARDWARE IMPLEMENTATION

OF BLDC DRIVE

The hardware prototype of the proposed three-phase BLDC driveis developed using IGBTs as the power device, along with isolationand driver circuit. The gating pulses were obtained from a Xilinx-FPGA SPARTAN 6 whose input is supplied from the hall sensors.

8

International Journal of Pure and Applied Mathematics Special Issue

822

Page 9: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

The block diagram of the hardware setup is shown in Figure 11.

Figure 11: Block diagram of the hardware setup for BLDC Drive.

The hardware set-up for three BLDC drive with FPGA SPAR-TAN 6 is shown in Figures 12.Table 4 shows motor specification forthree phase BLDC drive.

Figure 12: FPGA SPARTAN 6 and Three phase BLDC drive.

The hardware prototype presents the development of Xilinx-FPGA SPARTAN 6 as a control circuit for VSI is shown in fig 13.Six I/O lines of SPARTAN 6 are used as PWM output lines. VHDLlanguage is used to model the PWM switching strategies and Xil-inx ISE 14.1 software is used as a simulation and compiler tool.Generation of PWM pulses is obtained with Xilinx-FPGA SPAR-TAN 6 board is shown in Figure 14. The VHDL code successfullyembedded in FPGA.

9

International Journal of Pure and Applied Mathematics Special Issue

823

Page 10: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

Figure 13: FPGA Commutation logic for BLDC.

Figure 14: Gating pattern of VSI for each phase (RYB).

Figure 15: Output voltage of three-phase BLDC drive.

10

International Journal of Pure and Applied Mathematics Special Issue

824

Page 11: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

Figures 15 shows that output voltage of three-phase BLDC withthe following testing conditions: starting voltage: 4.6 V, minimumspeed: 50 rpm, maximum voltage: 36 V,2500 rpm, high frequency- 10 KHz and low frequency-50 Hz

Figure 16: Experimental verification of a duty cycle & motor speedof BLDC.

Figure 17: Experimental values of motor speed and stator currentVs duty cycle for BLDC drive.

Figure 16 shows that with the prototype developed using FPGAcontrol, a motor speed measured was 1672 rpm which is verified ex-perimentally. Figure 17 shows experimental values of actual speedand stator current with respect to duty cycle for BLDC drive. Fromthe results, it is found that FPGA based sensored control of BLDCemploying voltage source inverter provides a better performance in

11

International Journal of Pure and Applied Mathematics Special Issue

825

Page 12: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

terms of fast response and good speed regulation compared to theclassical controller system.

5 CONCLUSION

This paper has presented the sensored control of BLDC motor us-ing FPGA. By suitably developing the electronic commutation inFPGA, appropriate line to line voltage output was obtained forthe three-phase voltage source inverter. Therefore, implementingthe control using Field Programmable Gate Array for a BrushlessDC motor gives a better output and improved flexibility in design.The performance of the BLDC drive can be further improved byemploying multilevel inverters.

6 Acknowledgement

The authors wish to thank the management of SSN College of En-gineering for funding this research work.

References

[1] Jiancheng Fang, Haitao Li, and Bangcheng Han, TorqueRipple Reduction in BLDC Torque Motor With Nonideal Back EMF, IEEETransactions on power Electron-ics,Vol,27,NO,11,NOVEMBER 2012.

[2] R.Goutham GovindRaju, S.JohnPowl, A.Sathishkumar andP.Sivaprakasam,Mitigation of Torque for Brushless DC Mo-tor: Modeling and Control, International Journal of Scientific& Engineering Research Volume 3, Issue 5, May- 2012.

[3] S.B.Ozturk,W. C. Alexander, and H. A. Toliyat, Direct torquecontrol of four-switch brushless DC motor with non-sinusoidalback EMF, IEEE Trans. Power Electronics volume no. 2, pp.263271, Feb. 2010.

[4] T.N.Shi,Y.T.Guo, P.Song, and C.L.Xia, A new approach ofminimizing commutation torque ripple for brushless DC motor

12

International Journal of Pure and Applied Mathematics Special Issue

826

Page 13: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

based on DC-DC converter, IEEE Trans. Ind. Electron., vol.PP, no. 99, pp. 19, 2010.

[5] Bhim Singh, B P Singh, K Jain, Implementation of DSP BasedDigital Speed Controller for Permanent Magnet Brushless dcMotor, IE(I) Journal-EL, Volume 84, pp. 16-21, June 2003

[6] Alecsa, B.; Onea, A.;, Design, validation and FPGA imple-mentation of a brushless DC motor speed controller, Electron-ics, Circuits, and Systems (ICECS), 2010 17th IEEE Interna-tional Conference on, vol., no., pp.1112-1115, 12-15 Dec. 2010.

[7] Nikola Milivojevic, Mahesh Krishnamurthy, Yusuf Gurkaynak,Anand Sathyan, Young-Joo Lee and Ali Emadi,Stability Anal-ysis of FPGA-Based Control of Brushless DC Motors and Gen-erators Using Digital PWM Technique. IEEE Trans. Ind. Elec-tron., vol. 56, no. 8, pp.3040-3049, Aug.2011.

[8] Dagbagi, M.; Idkhajine, L.; Monmasson, E.; Charaabi, L.;Slama-Belkhodja, I.; , FPGA implementation of a synchronousmotor real-time emulator based on delta operator, IndustrialElectronics (ISIE), 2011 IEEE International Symposium on ,vol., no., pp.1581-1586, 27-30 June 2011.

[9] Ming-Fa Tsai; Tran Phu Quy; Bo-Feng Wu; Chung-ShiTseng ,Model construction and verification of a BLDC mo-tor using MATLAB/SIMULINK and FPGA control, Indus-trial Electronics and Applications (ICIEA), 2011 6th IEEEConference on, vol., n.,pp.1797-1802, 21-23 June 2011doi:10.1109/ICIEA.2011.5975884.

[10] H.S.Chuang and Y.-L.Ke, Analysis of commutation torque rip-ple using different PWM modes in BLDC motors, in Conf. Rec.IEEE Ind. Commercial Power Syst. Tech. Conf., 2009, pp. 16.

[11] D.Chen and J.C.Fang, Commutation torque ripple reduction inPM brushless DC motor with non ideal trapezoidal back EMF, in Proc. CSEE, Oct. 2008, vol. 28, no. 30, pp. 7983.

[12] W. Chen, C. L. Xia, and M. Xue, A torque ripple suppressioncircuit for brushless DC motors based on power DC/DC con-verters, in Proc. IEEE Ind. Electron. Appl. Conf., 2006, pp.14.

13

International Journal of Pure and Applied Mathematics Special Issue

827

Page 14: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

[13] K. Wei, C. S. Hu, and Z. C. Zhang, A novel commutationtorque ripple suppression scheme in BLDCM by sensing theDC current, in 36th IEEE Power Electron. Spec. Conf., 2005,pp. 12591263.

[14] H. Lu, L. Zhang, and W. Qu, A new torque control method fortorque ripple minimization of BLDC motors with un-ideal backEMF, IEEE Trans. Power Electron., vol. 23, no. 2, pp. 950958,Mar. 2008.

[15] WaelA Salah , Dahaman Ishak , Khaleel and J. HammadiPWM switching strategy for torque ripple minimization inBLDC motor Journal of Electrical Engineering, VOL. 62, NO.3, 2011, 141146.

14

International Journal of Pure and Applied Mathematics Special Issue

828

Page 15: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

829

Page 16: Simulation and Implementation of FPGA based three phase ...signal. Three Hall sensors A, B, and C are mounted on the stator at 120 degree intervals, while the three phase windings

830