Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
net/publication/272886279
CITATIONS READS
0 9,743
1 author:
Usman Nasir
University of Nottingham
21 PUBLICATIONS 37 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Usman Nasir on 28 February 2015.
Signature: _______________________________
Signature: _______________________________
Signature: _______________________________
Signature: _______________________________
Signature: ________________________
Signature: ________________________
1
DEDICATION
This project is dedicated to Dr. Syed Muhammad Raza Kazmi for helping and
providing us with the deep understanding of some really important concepts
that are required for the completion of this project.
2
Table of Contents
INTRODUCTION 7
Parallel Hybrid Electric Vehicle: 8
Series Hybrid Electric Vehicle: 8
PROJET GOALS: 9
PROBLEM STATEMENT: 9
Challenges: 9
DELIVERABLES: 10
LITERATURE REVIEW 11
INVERTERS: 11
Single phase inverters: 11
Three phase inverters: 11
120° Conduction mode: 12
Gating signals and output voltages: 12
180° Conduction mode: 13
Gating signals and output voltages: 13
Why 180° conduction mode? 14
Multi-level inverters: 15
150° conduction mode: 16
Gating signals and output voltages: 16
Why 150° conduction mode? 17
DISCUSSION 35
METHODOLOGY 39
3
CODE FOR 120 DEGREE CONDUCTION: 45
RESULTS 57
PROTEUS SIMULATIONS: 57
Gating signals: 57
Output waveform: 58
PCB layout and 3-D visualization: 58
Simulated output voltage (180 degree conduction): 60
PCB layout and 3-D visualization: 60
PCB layout and 3-D visualization: 61
MATLAB SIMULATIONS: 69
Field Oriented Control 69
Vector Control Module: 71
PROBLEMS: 73
CONCLUSION 73
REFERENCES 74
4
List of Figures
5
Figure 3-4 International Rectifiers low and high side gate driver ....................................................38
Figure 4-1 Simple block diagram of project.....................................................................................39
Figure 4-3 Circuit for Current sensor ...............................................................................................40
Figure 4-4 Incremental rotary encoder outputs A,B and Z...............................................................41
Figure 4-5 TFT 7 Inche’s car LCD ......................................................................................................42
Figure 5-1 Single phase inverter simulation ....................................................................................57
Figure 5-2 Gating signals for signle phase inverter simulation........................................................58
Figure 5-3 Single phase inverter output waveform simulation .......................................................58
Figure 5-4 PCB layout for single phase inverter ...............................................................................58
Figure 5-5 3-D Visualization of single phase square wave inverter..................................................59
Figure 5-6 3 phase inverter simulation............................................................................................59
Figure 5-7 Output of 3 phase inverter simulation -180 degree.......................................................60
Figure 5-8 PCB Layout of three phase sine wave inverter (optocoupler and gate driver) ..............60
Figure 5-9 3-D Visualization of three phase sine wave inverter (optocoupler and gate driver) .....61
Figure 5-10 PCB Layout of three phase sine wave inverter (IGBT Module) ....................................61
Figure 5-11 3-D Visualization of three phase sine wave inverter (IGBT Module) ............................62
Figure 5-12 Gating signals for PWM sine wave inverter (G1&G4) ..................................................63
Figure 5-13 Gating signals for PWM sine wave inverter (G3&G6) ...................................................64
Figure 5-14 Gating signals for PWM sine wave inverter (G5&G2) ...................................................65
Figure 0-15 Phase to phase voltages for PWM sine wave inverter (Vab & Vbc) plot 1...................66
Figure 5-16 Phase to phase voltages for PWM sine wave inverter (Vab & Vbc) plot 2...................66
Figure 5-17 Phase to ground voltages for PWM sine wave inverter (VaN & VbN) ..........................67
Figure 5-18 Phase to phase voltage for PWM sine wave inverter- Frequency Verification............68
Figure 5-19 Simulink model for estimation of parameters ..............................................................70
Figure 5-20 Matlab Simulink- Vector Control Module.....................................................................71
Figure 5-21 Car is accelerating from 0-100km/hr. in 20secs ............................................................72
Figure 5-22 Increased Torque at Constant Speed ............................................................................72
6
INTRODUCTION
The conventional cars contain an ICE (Internal Combustion Engine) and the engine purely
works on fuel or gasoline. The increase in the number of cars on daily basis and the
increased consumption of fuel or gasoline in the past few years forces us to look for the
alternatives that can efficiently utilize the fuel or gasoline.
Statistics show that the increase in the prices of fuel or gasoline in under developing
countries like Pakistan is increasing on day to day basis. For instance the average price of
petrol in year 2008 was about 60 Rs while the average price of petrol in year 2012 is found
out to be 100 Rs. This immense increase in the fuel prices specifically petrol let people to
think of increasing the efficiency of conventional ICE’s by integrating an electric motor
with it According to the data provided there is nearly 80% increase in the price of petrol
considering the last 5 years in Pakistan.
Oil reserves are running out and the economy of the country like Pakistan is getting worst
day by day. Considering the mentioned issues, the solution lies in the use of an electric
motor by integrating the ICE (Internal Combustion Engine) with it. The technique of using
an electric motor with an ICE leads to the concept of “Hybrid Electric Vehicle”.
There are two ways to integrate the ICE (Internal Combustion Engine) with the electric
motor and this develops the two types of hybrid electric vehicle i.e. Series Hybrid Electric
Vehicle or Parallel Hybrid Electric Vehicle.
7
Parallel Hybrid Electric Vehicle:
A parallel hybrid vehicle integrates the electric motor with ICE in a way that ICE is
connected in parallel with the electric motor. The following figure illustrates the
combination of ICE with electric motor.
The main difference between the two technologies is that series hybrid electric vehicle uses
generator to charge the batteries and the function of an ICE (Internal Combustion Engine)
8
is limited to charge the batteries whereas the parallel hybrid electric vehicle uses the ICE
(Internal Combustion Engine) as a source of propulsion in the vehicle. The vehicle propels
using the combination of an ICE and an electric motor.
PROJET GOALS:
∑ To develop a simulation of motor control using a software like Matlab.
∑ Designing an efficient inverter to convert DC (from batteries) to three phase AC.
∑ Motor controller for a three phase AC inverter duty induction motor (Siemens
7.5kW).
∑ Integration of race and brake pedals with the motor control unit.
PROBLEM STATEMENT:
“Designing of an efficient motor control system for a three phase induction motor in Series
Hybrid Electric Vehicle”
Challenges:
• Ability of the hardware to handle large currents
• Back EMF production in the motor during the breaking mechanism can destroy the
circuits.
• Efficiency of inverter
9
DELIVERABLES:
Project consists of three deliverables;
10
LITERATURE REVIEW
INVERTERS:
Inverters are circuits which convert DC (Direct Current) to AC (Alternating Current). The
following figure shows the basic block diagram for “Inverters”.
∑ 2 switching devices
∑ 4 switching devices
The inverter design using four switching devices is common and is of practical importance
than as compared to using the two switches for the conversion of voltage from DC to AC.
11
∑ 180° Conduction mode
12
∑ The rms fundamental component VL1 of the output line voltage is VL1=0.6753Vs
∑ The gating signals are shifted from each other by 60 degrees
13
Figure 2-5 Output waveforms for 180 degree conduction
∑ The rms fundamental component VL1 of the output line voltage is VL1=0.7798Vs
∑ The gating signals are shifted by 120 degree
Another reason for giving preference to 180° conduction mode is that 180° conduction
mode utilizes the switches better and also that there are three switches that are “on” at any
instant whereas in 120° conduction mode there are only two switches that are “on” at any
instant.
Apart from the reasons explained in the above paragraph, the most important reason which
is usually neglected is the presence of a floating node in the 120° conduction mode.
This phenomenon can be explained better using the following two circuit diagrams;
Let us suppose a moment or a time (180 Let us suppose a moment or a time (120
degree conduction mode) when switches degree conduction mode) when switches Q1
Q1, Q5 and Q6 are on then we will have the and Q6 are on then we will have the
following circuit diagram at the load side. following circuit diagram at the load side.
14
Figure 2-6 Figure 2-7
The circuit diagram in 120 degree conduction mode has a floating node at phase “b”. This
floating node is responsible for the poor performance and efficiency of the inverter. The
absence of floating node in 180 degree conduction mode makes it a better switching
technique for practical applications.
Multi-level inverters:
For large industrial applications multi-level inverters are designed. Multi-level inverters
divides the main supply DC voltage into smaller DC sources which are used to produce an
AC voltage into a staircase or stepped which is surely the approximation of the desired
sinusoidal output voltage.
The number of steps is increased comparatively than 180 or 120 degree conduction modes
and the increase in the number of steps will provide a wave at the output which is a closer
approximation of a sinusoidal signal.
The following figure illustrates the concept of multilevel inverters.
This scheme not only provides us with a closer approximation of a sinusoidal wave at the
output but it also reduces the total harmonic distortion. The EMI effect is introduced in the
inverters being operated at high frequencies i.e PWM inverters. EMI effect can be
considerably reduced by using the technique of multi-level inverters.
There are three main types of multi-level inverters;
∑ Diode clamped inverters
∑ Capacitor clamped inverters
∑ Cascade inverters
15
150° conduction mode:
Each one of the six switches is “on” for duration of 150 degree out of the total 360 degree.
The gating signals for the switches are as follows;
16
Figure 2-9 Output waveforms for 150 degree conduction
17
Comparison of 120°, 180° and 150° conduction modes:
There are mainly two types of conduction modes that are being used according to the
literature (Power Electronics by Rashid) and which are 120°and 180°conduction modes. In
120 conduction mode, each switch is on for duration of 120 degrees out of 360 degrees
whereas in case of 180 conduction mode, each switch is on for duration of 180 degrees out
of 360 degrees. A more practical, efficient and simple control is explained in the following
research document.
(http://telkomnika.ee.uad.ac.id/n9/files/Vol.9No.3Des11/3RP9.3.12.11.03.pdf)
This research document allows us to think of an idea that involves the hybrid of 120 and
180 conduction modes. 150 conduction mode, as depicted from the name, each switch
turns on for duration of 150 degrees out of 360 degrees.
Now, consider the following gating signals that are being provided to the circuit as shown
above using a microcontroller unit.
18
Figure 2-12 Understanding the gating of 150 degree conduction
A total of 360 degrees is divided into 12 equal segments of 30 degrees interval each. We
will analyze each interval.
19
0-30 Degree Interval:
3 switches are on which are 1,5 and 6 whereas all other switches are on for the mentioned
time interval. For this specific interval the phases a and c will have a voltage VDC also
that the phase b will be connected to ground.
=[0.5R/1/.5R] x VDC
=1/3VDC
2 switches are on which are 1 and 6 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase a will have a voltage VDC also that the
phase b will be connected to ground.
20
Figure 2-14 150 degree (30-60 degree)
=1/2VDC
3 switches are on which are 1,2 and 6 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase a will have a voltage VDC also that the
phase b and c will be connected to ground.
21
Figure 2-15 150 degree (60-90 degree)
=[R/1.5R] x VDC
=2/3VDC
2 switches are on which are 1 and 2 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase a will have a voltage VDC also that the
phase c will be connected to ground.
22
Figure 2-16 degree (90-120 degree)
=1/2VDC
3 switches are on which are 1,2 and 3 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase a and b will have a voltage VDC also that
the phase c will be connected to ground.
23
Figure 2-17 150 degree (120-150 degree)
=[0.5R/1.5R] x VDC
=1/3VDC
2 switches are on which are 2 and 3 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase b will have a voltage VDC also that the
phase c will be connected to ground.
24
Figure 2-18 150 degree (150-180 degree)
3 switches are on which are 2, 3 and 4 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase b will have a voltage VDC also that the
phase a and c will be connected to ground.
25
Figure 2-19 150 degree (180-210 degree)
=[0.5R/1.5R] x VDC
=1/3VDC
Or Van = -Vna
2 switches are on which are 3 and 4 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase b will have a voltage VDC also that the
phase a will be connected to ground.
26
Figure 2-20 150 degree (210-240 degree)
=1/2VDC
Or Van = -Vna
3 switches are on which are 3, 4 and 5 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase b and c will have a voltage VDC also that
the phase a will be connected to ground.
27
Figure 2-10 150 degree (240-270 degree)
=[R/1.5R] x VDC
=2/3VDC
Or Van = -Vna
2 switches are on which are 4 and 5 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase c will have a voltage VDC also that the
phase a will be connected to ground.
28
Figure 2-11 150 degree (270-300 degree)
=1/2VDC
Or Van = -Vna
3 switches are on which are 4, 5 and 6 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase c will have a voltage VDC also that the
phase a and b will be connected to ground.
29
Figure 2-12 150 degree (300-330 degree)
=[0.5R/1.5R] x VDC
=1/3VDC
Or Van = -Vna
2 switches are on which are 5 and 6 whereas all other switches are on for the mentioned
time interval. For this specific interval the phase c will have a voltage VDC also that the
phase b will be connected to ground.
30
Figure 2-13 150 degree (330-360 degree)
31
Similarly the plots for Vbn and Vcn can be obtained by the same method as explained
above. The Phase to Phase voltages such as Vab, Vbc and Vca can be obtained by the
following formula;
32
Conclusion:
The total number of steps in 180 conduction modes is 6 whereas 150 conduction provides
us with 12 steps which is twice as we get in 180 conduction mode. So, 150 is a better
approximation of a sinusoidal wave therefore less total harmonic distortion in case of 150
degree conduction method.
33
PWM Sine Wave Three Phase Inverter:
Figure 2-17 Gating signals and output waveform for PWM sine wave single phase inverter
A triangular signal is compared with the sinusoidal signal and the output obtained is
provided to the gates of the IGBTs. The important point in this method is again the fact
that there should be delay between the gating signals of the same leg so that there will not
be a shoot through problem that will not cause the IGBTs of the same leg to turn on at the
same time while allowing the DC voltage to be shorted. The diagram shown above is for a
single phase inverter, the three phase inverter concept can be extended by comparing the
same triangular signal with the shifted versions of sine wave having 120 and 240 degrees
phase difference.
34
DISCUSSION
35
The above explanation creates the requirement of a circuitry that can effectively handle the
switching of the high side mosfet.
The driver’s output stage is implemented either with two n-channel MOSFETs in the totem
pole configuration (source follower as a current source and common source for current
sinking), or with an n-channel and a p-channel CMOS inverter stage.
When the Q1 (high side mosfet) is “off” the low side is on and the lower end of the
bootstrap capacitor or Vs is connected to ground therefore allowing the bootstrap capacitor
to charge. During this time, the bootstrap diode conducts and charges the bootstrap
capacitor a voltage of Vcc (10-20 volts).
When the low side mosfet turns “off” the Q1 will turn on therefore producing a voltage of
Vdc at its source. Now, the gate has to be at the voltage above the voltage present at the
source of the high side mosfet (Q1). Bootstrap capacitor tracks the voltage present at the
source of Q1 and then maintains the gate of Q1 (10-20 volts) higher than the voltage
present at its source.
36
Bootstrap Capacitor Selection or “Sizing” method:
The following method clearly describes the way to “size the bootstrap capacitor value”
We are using the IGBT modules with a combination of gate drivers i.e. Mitsubishi
CM150DU-12F and IR2101. We can extract the following values of the mentioned terms
as follows;
Qg = 930 nC (CM150DU-12F)
Qls = 50 nC (CM150DU-12F)
Ilk_ge = 100 uA (CM150DU-12F)
Iqbs = 55 uA (IR2101)
Ilk = 50 uA (IR2101)
Ilk_diode= 150 uA (FR103 has a reverse recovery time of 150 nS and typically for reverse
recovery time < 100 nS -> Ilk_diode = 100 uA)
Ilk_cap = 0 (neglected for ceramic capacitance)
Ids or Iin-= 10 uA (IR2101)
T.Hon = 10 uS (Assumed Value)
Q total = (930 + 20) x 10^-9 + (100 + 55 + 50 + 150 + 0 + 10 ) x 10^-6 x 10^ -5
=983.55 nC
∆Vbs <= Vcc –Vf – Vge_min – Vce_on
= 17- 1.3 (FR103-> Forward Voltage Drop) -9.5 – 3.9
=2.3 Volts
C Boot_min>= (983.55 nC / 2.3)
37
Figure 3-3 Mitsubishi IGBT Modules
Figure 3-4 International Rectifiers low and high side gate driver
38
METHODOLOGY
12 volt batteries connected in series are used to produce a high DC voltage which is then
converted to AC voltage using a three phase inverter. The output of the three phase inverter
is connected to a three phase AC induction motor and the speed of the motor can be
controlled using a race pedal.
We talked about the inverter design and its integration with the race pedal and motor. Now,
we will talk about the protection methodologies that are being used in our project.
Over heat protection:
We implemented a temperature sensor using LM335a and the idea is that the resistance of
this particular sensor increase with the increase in the temperature. So, when used as a
potential divider topology it provides us with a changing voltage up to 5 volts. This change
39
is then fed to microcontroller unit that has an 8-bit analog to digital converter and
microcontroller then interprets this value and using an algorithm converts it into a
temperature value which will be displayed on an LCD module.
40
RPM Meter:
It is highly important that the RPM’s of the motor are being displayed while the driver is
driving the hybrid electric car. To make this possible we have used a “Incremental Rotary
Encoder” because it is highly efficient in calculating the number of revolutions at very high
speeds.
Either we can compare the outputs “a” and “b” to calculate the RPMs in a microcontroller
unit or we can just use the interrupt function in microcontroller on output “z”.
41
7 Inches TFT Car LCD:
We are using a TFT 7 Inches car lcd to display the run time values of temperature of IGBT
modules and current of IGBTs. Revolutions per minute are also being displayed on the
same lcd.
Arduino UNO has a library for connecting a TV OUT/ RCA Video to Arduino.
42
CONTROL METHODOLOGIES:
We implemented 180, 120, 150 degree conduction modes practically using Arduino
MEGA 2560 and also PWM Sine Wave using Arduino MEGA 2560 and PIC18f4431 by
developing the following codes;
43
digitalWrite(x6, HIGH);
delayMicroseconds(2700); //Delay for 1 step //Delay for 1 step
digitalWrite(x3, LOW);
digitalWrite(x4, LOW);
digitalWrite(x5, LOW);
delayMicroseconds(78); //Delay to avoid short between Vdc and Ground
digitalWrite(x1, HIGH);
digitalWrite(x6, HIGH);
digitalWrite(x2, HIGH);
delayMicroseconds(2700); //Delay for 1 step
digitalWrite(x4, LOW);
digitalWrite(x5, LOW);
digitalWrite(x6, LOW);
delayMicroseconds(78); //Delay to avoid short between Vdc and Ground
digitalWrite(x1, HIGH);
digitalWrite(x2, HIGH);
digitalWrite(x3, HIGH);
delayMicroseconds(2700); //Delay for 1 step
digitalWrite(x1, LOW);
digitalWrite(x5, LOW);
digitalWrite(x6, LOW);
delayMicroseconds(78); //Delay to avoid short between Vdc and Ground
digitalWrite(x2, HIGH);
digitalWrite(x3, HIGH);
digitalWrite(x4, HIGH);
delayMicroseconds(2700); //Delay for 1 step
digitalWrite(x1, LOW);
digitalWrite(x2, LOW);
digitalWrite(x6, LOW);
delayMicroseconds(78); //Delay to avoid short between Vdc and Ground
digitalWrite(x3, HIGH);
digitalWrite(x4, HIGH);
digitalWrite(x5, HIGH);
delayMicroseconds(2700); //Delay for 1 step
digitalWrite(x1, LOW);
digitalWrite(x2, LOW);
digitalWrite(x3, LOW);
44
delayMicroseconds(78); //Delay to avoid short between Vdc and Ground
digitalWrite(x4, HIGH);
digitalWrite(x5, HIGH);
digitalWrite(x6, HIGH);
delayMicroseconds(2700); //Delay for 1 step
}
int g6 = 13;
int g5 = 12;
int g4 = 11;
int g3 = 10;
int g2 = 9;
int g1 = 8;
45
delayMicroseconds(3333); //Delay for 1 step
digitalWrite(g1,LOW);
digitalWrite(g3,HIGH);
delayMicroseconds(3333); //Delay for 1 step
digitalWrite(g2,LOW);
digitalWrite(g4,HIGH);
delayMicroseconds(3333); //Delay for 1 step
digitalWrite(g3,LOW);
digitalWrite(g5,HIGH);
delayMicroseconds(3333); //Delay for 1 step
digitalWrite(g4,LOW);
digitalWrite(g6,HIGH);
delayMicroseconds(3333); //Delay for 1 step
}
void Update()
{
if(i>999)
{i = 0;}
46
if(m>0.8)
m=0.8;
// Serial.println(value1);
if(m==0)
{Timer3.setPwmDuty(5,0);
Timer4.setPwmDuty(6,1024);
Timer3.setPwmDuty(2,0);
Timer4.setPwmDuty(7,1024);
Timer3.setPwmDuty(3,0);
Timer4.setPwmDuty(8,1024);}
else
{
Timer3.setPwmDuty(5,value1-100);
Timer4.setPwmDuty(6,value1+100);
Timer3.setPwmDuty(2,value2-100);
Timer4.setPwmDuty(7,value2+100);
Timer3.setPwmDuty(3,value3-100);
Timer4.setPwmDuty(8,value3+100);
i = i + (1000/(sfreq/f));
}
47
void setup()
{
// put your setup code here, to run once:
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
Serial.begin(9600);
// num = ceil(sfreq/f);
deg = 360.0/num;
t = 1.0/sfreq*1000000;
/* Serial.println(num);
Serial.println(deg);
Serial.println(t);
Serial.println("Sine:");*/
for(j =0;j<1000+1;j++)
{
sine[j] = sin(0.36*(3.14/180)*j);
}
Timer1.initialize();
Timer4.initialize();
Timer3.initialize();
//Timer3.pwm(5,512,1000);
//Timer3.pwm(2,512,1000);
// Timer3.pwm(3,512,1000);
Timer4.pwm(8,0,1000);
Timer4.pwm(6,0,1000);
Timer4.pwm(7,0,1000);
delayMicroseconds(952);
Timer3.pwm(5,0,1000);
48
Timer3.pwm(2,0,1000);
Timer3.pwm(3,0,1000);
//Timer4.pwm(8,512,1000);
//Timer4.pwm(6,512,1000);
//Timer4.pwm(7,512,1000);
//Serial.begin(9600);
Timer1.attachInterrupt(Update, t);
}
int x,xx;
void loop()
{
// put your main code here, to run repeatedly:
x = analogRead(A15);
//Serial.println(x);
if(x<213)
m=0;
if(x>=215)
{
xx = x;
f = ((x-215.0)/605.0 * 55.0) + 5.0;
m = (f * 10.0)/258.0*0.8;
/* if(x-xx>50 || x-xx<-50)
{ Serial.println(f);
Serial.println(m);
}*/
}
}
49
unsigned int sine[101] = {0};
unsigned int j;
void main() {
for(j =0;j<101;j++)
sine[j] = 512*sin(3.6*(3.14/180)*j);
if(j<=50)
if(j>50)
PORTA=0;
PORTB=0;
PORTD=0;
PORTE=0;
T0CON=0b10001000;
INTCON=0b10100000;
TRISE=0b00000000;
TMR0H=0xF9; // 6000
TMR0L=0x7D;
PWMCON1=0b00000000;
50
PTPERL=0xFF;
PDC0L=0;
PDC0H=0;
PDC1H=0;
PDC2H=0;
DTCON=0b01000001;
//while(1);
void interrupt(void)
//if(i>100)
//i=0;
TMR0H=0xF9;
TMR0L=0x7D;
duty1 = sine[i%100];
duty2 = sine[(i+33)%100];
duty3 = sine[(i+66)%100];
PDC0L=Lo(duty1);
PDC0H=Hi(duty1);
51
PDC1L=Lo(duty2); // duty cycle 2
PDC1H=Hi(duty2);
PDC2H=Hi(duty3);
i=i+1;
#include "C:\Users\Ali\Desktop\arduino-1.0.2\hardware\libraries\Timer3\TimerThree.cpp"
#include "C:\Users\Ali\Desktop\arduino-1.0.2\hardware\libraries\Timer3\TimerFour.cpp"
unsigned int i;
unsigned int j;
int f=0;
int num=1000;
float deg;
int t;
float m=0;
int value1,value2,value3 = 0;
void Update()
52
if(i>999)
{i = 0;}
if(m>0.8)
m=0.8;
// Serial.println(value1);
if(m==0)
{Timer3.setPwmDuty(5,0);
Timer4.setPwmDuty(6,1024);
Timer3.setPwmDuty(2,0);
Timer4.setPwmDuty(7,1024);
Timer3.setPwmDuty(3,0);
Timer4.setPwmDuty(8,1024);}
else
Timer3.setPwmDuty(5,value1-100);
Timer4.setPwmDuty(6,value1+100);
Timer3.setPwmDuty(2,value2-100);
53
Timer4.setPwmDuty(7,value2+100);
Timer3.setPwmDuty(3,value3-100);
Timer4.setPwmDuty(8,value3+100);
i = i + (1000/(sfreq/f));
void setup()
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
Serial.begin(9600);
// num = ceil(sfreq/f);
deg = 360.0/num;
t = 1.0/sfreq*1000000;
/* Serial.println(num);
Serial.println(deg);
54
Serial.println(t);
Serial.println("Sine:");*/
for(j =0;j<1000+1;j++)
sine[j] = sin(0.36*(3.14/180)*j);
Timer1.initialize();
Timer4.initialize();
Timer3.initialize();
//Timer3.pwm(5,512,1000);
//Timer3.pwm(2,512,1000);
// Timer3.pwm(3,512,1000);
Timer4.pwm(8,0,1000);
Timer4.pwm(6,0,1000);
Timer4.pwm(7,0,1000);
delayMicroseconds(952);
Timer3.pwm(5,0,1000);
Timer3.pwm(2,0,1000);
Timer3.pwm(3,0,1000);
//Timer4.pwm(8,512,1000);
//Timer4.pwm(6,512,1000);
//Timer4.pwm(7,512,1000);
//Serial.begin(9600);
55
Timer1.attachInterrupt(Update, t);
int x,xx;
void loop()
x = analogRead(A15);
//Serial.println(x);
if(x<213)
m=0;
if(x>=215)
xx = x;
m = (f * 10.0)/258.0*0.8;
/* if(x-xx>50 || x-xx<-50)
{ Serial.println(f);
Serial.println(m);
}*/
56
RESULTS
PROTEUS SIMULATIONS:
We implemented a single phase square inverter (two switches) using “ISIS 7 Professional”
as shown below;
Gating signals:
57
Figure 5-2 Gating signals for signle phase inverter simulation
Output waveform:
58
Figure 5-5 3-D Visualization of single phase square wave inverter
We implemented a three phase square inverter (six switches) using “ISIS 7 Professional”
as shown below;
59
Simulated output voltage (180 degree conduction):
Figure 5-8 PCB Layout of three phase sine wave inverter (optocoupler and gate driver)
60
Figure 5-9 3-D Visualization of three phase sine wave inverter (optocoupler and gate
driver)
Figure 5-10 PCB Layout of three phase sine wave inverter (IGBT Module)
61
Figure 5-11 3-D Visualization of three phase sine wave inverter (IGBT Module)
62
Figure 5-12 Gating signals for PWM sine wave inverter (G1&G4)
63
Figure 5-13 Gating signals for PWM sine wave inverter (G3&G6)
64
Figure 5-14 Gating signals for PWM sine wave inverter (G5&G2)
The phase voltage Vab is shown in “red” whereas the phase voltage Vbc is shown in
“blue”. It is clear from the figure shown below that both waveforms are nearly 120 degree
apart and there is a clear phase difference between the two.
There is a total of 360 degrees interval so an overlap of 240 degrees is present i.e.
360/120=3
So, it clearly shows that both phases are 120 degree apart and the output we are getting
will be able to drive a three phase ac squirrel cage induction motor. Similarly we can
obtain the phase difference between Vab and Vca.
65
X= (120 x 20 ms)/ 360 = 6.66 ms whereas in practical we are getting nearly same result so
there exists a phase difference of 120 degrees.
Figure 0-15 Phase to phase voltages for PWM sine wave inverter (Vab & Vbc) plot 1
Figure 5-16 Phase to phase voltages for PWM sine wave inverter (Vab & Vbc) plot 2
66
We can verify the phase difference by using the following plots. The two plots represent
two phase to phase voltages.
Figure 5-17 Phase to ground voltages for PWM sine wave inverter (VaN & VbN)
It is clear the switching frequency is 1kHz and the output waveform is just as the required
waveform for a pure sine wave three phase inverter. This plot represents Phase to ground
voltages.
67
Figure 5-18 Phase to phase voltage for PWM sine wave inverter- Frequency Verification
This plot clearly shows that the frequency of the output wave is 60 Hz and which is
required for a three phase AC induction motor.
68
MATLAB SIMULATIONS:
Field Oriented Control
As operating heavy motors such as the 10hp motor that we planned to implement in our
project require dealing with high voltage and currents, it is essential to first simulate the
system to find approximate rating for any circuits that have to be built.
Also, through simulation the Field Oriented Control principle can be tested and understood
so that it is easier to implement in hardware on a later stage. Currently we are working on a
Vector (Field-Oriented) Control Model in Simulink. The motor model being used is a
preset found in Simulink which closely matches the 7.5KW motor that we have to use.
Before simulating the model, we approximated the torque to be applied to the motor to
simulate the torque that will be present on the motor due the weight of the car. This was
done as follows:
69
The simulation results are shown below;
70
Vector Control Module:
71
Figure 5-21 Car is accelerating from 0-100km/hr. in 20secs
72
PROBLEMS:
The main problem identified by the above simulations is that the starting torque of the
motor is very large therefore it needs a current of about 155A in the start. In running
conditions the currents vary from about 35A – 75A.
If the components required for these specifications are not found, then a motor started may
have to be used or the control algorithm modified to reduce the currents, especially the
starting current.
CONCLUSION
The implementation of a three phase inverter requires a deep knowledge about the
terminologies involved in the inverter design and the selection of appropriate components
to acquire the desired output.
The techniques such as 120 or degree conduction modes are less efficient because of the
presence of harmonics which are much closer to the fundamental component. The
fundamental component is not easy to separate by applying a filter and it demands a costly
and higher order filter to separate the harmonic components from the fundamental
component.
The PWM technique such as “unipolar PWM” and “bipolar PWM” is far better than 120 or
180 degree conduction modes. The PWM techniques has one drawback i.e. higher
switching losses.
73
REFERENCES
http://telkomnika.ee.uad.ac.id/n9/files/Vol.9No.3Des11/3RP9.3.12.11.03.pdf
IRF Bootstrap Component Selection For Control IC’s
http://www.irf.com/technical-info/designtp/dt98-2.pdf
IRF Application Note AN-978 - HV Floating MOS-Gate Driver IC’s
http://www.irf.com/technical-info/appnotes/an-978.pdf
Texas Instruments - AN-1317 Selection of External Bootstrap Diode
http://www.ti.com/lit/an/snva083/snva083.pdf
The Design and Implementation of a Three Phase Power Converter in the Power
Electronics and Drives Subject
http://itee.uq.edu.au/~aupec/aupec06/htdocs/content/pdf/210.pdf
(A very helpful research paper)
http://www.irf.com/technical-info/designnote/dn501.pdf
IRF - Accurate Current Sensing in High Voltage Motor Drives
http://www.datasheetcatalog.org/datasheet/eic/FR103.pdf
Fast Recovery Diodes and their reverse recovery times
http://www.irf.com/technical-info/designtp/dt04-4.pdf
Using monolithic high voltage gate drivers – Bootstrap capacitor value selection
and sizing methodologies
http://www.irf.com/product-info/datasheets/data/ir2214.pdf
Gate driver selection and compatibility analysis with the IGBT modules
http://ir.lib.ntust.edu.tw/bitstream/987654321/14460/1/Inverter%20Low%20Side%20Switc
hes.pdf
A Current Reconstruction Algorithm for Three-Phase Inverters Using Integrated
Current Sensors in the Low-Side Switches
http://www.irf.com/technical-info/designnote/dn502.pdf
Short-Circuit Protection for Three-Phase Power Inverters
http://scholar.lib.vt.edu/theses/available/etd-01172010-160526/unrestricted/Lugo-
Nunez_DR_T_2007.pdf
High Power Density and Over current Protection Challenges in the Design of a
Three-Phase Voltage Source Inverter for Motor Drive Applications
74