2.chandru Batch
2.chandru Batch
2.chandru Batch
INVERTER
A PROJECT REPORT
Submitted by
ALEX A 822319105001
CHANDRU T 822319105002
HARIHARAN B 822319105004
SARABOJI R 822319105007
of
BACHELOR OF ENGINEERING
IN
ELECTRICAL AND ELECTRONICS ENGINEERING
MAY 2023
i
1
ANNA UNIVERSITY: CHENNAI 600 025
BONAFIDE CERTIFICATE
ALEX A 822319105001
CHANDRU T 822319105002
HARIHARAN B 822319105004
SARABOJI R 822319105007
Who carried out the project work under my supervision.
SIGNATURE SIGNATURE
MR.I.MOHAMEDSIDDIK,M.E., MR.S.SUBHASANKAR,M.E.,
HEAD OF THE DEPARTMENT SUPERVISOR
Dept of EEE Assistant Professor /Dept of EEE
Vandayar Engineering College Vandayar Engineering College
Pulavarnatham Pulavarnatham
2
ACKNOWLEDGEMENT
This project has been under taken and completed with direct and indirect
the project.
moral strength.
inverters with a desired number of levels (here 21 levels) can generate high
the number of bridges, which leads to 10 bridges. But this project makes
simulation results.
4
LIST OF CONTENTS
ACKNOWLEDGEMENT iii
ABSTRACT iv
LIST OF ABBREVIATION ix
LIST OF SYMBOLS x
1 INTRODUCTION 1
1.2 OBJECTIVES 1
2 LITERATURE SURVEY 4
5
3.3 ASYMMETRICAL MULTILEVEL INVERTER 12
3.4 APPLICATIONS 13
4 HARDWARE IMPLEMENTATION 15
4.3.1 Opto-couplers 19
4.4.1 Features 22
4.5 MOSFET 30
5 MATLAB SIMULATION 33
6
5.1 INTRODUCTION 34
5.2.2 Semiconductors 35
44
5.10 APPLICATIONS
6 HARDWARE RESULTS 48
7 CONCLUSION 52
REFERENCES 53
7
LIST OF FIGURES
8
LIST OF ABBREVIATIONS
DC - Direct Current
AC - Alternating Current
CM - Common Mode
9
LIST OF SYMBOLS
Q - Quality Factor
L - Inductance
Lf - Filter Inductance
CB - Snubber Capacitor
10
CHAPTER 1
INTRODUCTION
1.2 OBJECTIVES:
1. The function of the proposed inverter is to convert the DC into AC by means of fast switching.
2. Main objective of the project is to achieve 21 levels with reduced number of bridges using
asymmetric operation.
3. A multi-level inverter can be considered as a voltage source which can switch among a finite set of
levels.
4. It provides high-quality output power due to its high number of output levels.
5. The multilevel switching schemes inherently provide the opportunity to eliminate lower order
harmonics.
6. It is done by varying the time at which certain switches are turned “on” and turned “off” (i.e.
varying the switching angles).
In general depending on the number of voltage levels of the output voltage waveforms, the
1
inverters can be classified as:
• Two level inverters
and
• Multi-level inverters (MLI).
The basic two level inverters have some of the following demerits:
▪ More harmonic distortion.
▪ High rating of switches/devices required.
▪ dv/dt stress is high .
▪ Failure of a single switch/device will lead to power loss to the load.
▪ Increased heat loss in transformers and hence cooling becomes complex.
Thus induction machines fed by classical two level inverters have a poor quality of current and
voltage. This leads to the use of multilevel inverters in the drives community, for high power adjustable
speed systems etc.
The general function of the multilevel inverter is to synthesize a desired voltage from several
levels of dc voltages. As the number of levels increases, the synthesized output waveform has more steps,
which produces a staircase wave that approaches the desired waveform. Also, as more steps are added to the
waveform, the harmonic distortion of the output wave decreases, approaching zero as the number of levels
increases. As the number of levels increases, the voltage that can be spanned by connecting devices in series
also increases. The structure of the multilevel inverter is such that no voltage sharing problems are
2
encountered by the active devices.
Multilevel inverters can significantly improving the quality of the output voltage
waveform. With this, low frequency voltage harmonics are eliminated, generating almost perfect sinusoidal
waveforms, with a total harmonic distortion (THD) lower than 5%.
3
CHAPTER 2
LITERATURE SURVEY
➢ This paper covers the high-power voltage-source inverter and the most used multilevel-inverter
topologies, including the neutral-point-clamped, cascaded H-bridge, and flying-capacitor
converters. This paper presents the operating principle of each topology and a review of the most
relevant modulation methods, focused mainly on those used by industry. It is concluded that each
particular application leaving a space on the market for all the different solutions, depending on
their unique features and limitations like power or voltage level, dynamic performance,
reliability, costs, and other technical specifications.
➢ This paper is devoted to the investigation of a hybrid multilevel power conversion system
typically suitable for high-performance high-power applications. The hybrid seven-level inverter
on the load side consists of a high-voltages low-switching IGBT inverter and a low-voltage fast-
switching IGBT inverter. A detailed analysis of a novel hybrid modulation technique for the
inverter, which incorporates stepped synthesis in conjunction with variable pulse width of the
consecutive steps is included.
3] K. A. Corzine, F. A. Hardrick, and Y. L. Familiant, “A cascaded multi-level H-bridge inverter
utilizing capacitor voltages sources,” in Proceedings of the IASTED International Conference. Palm
Springs CA, 2003, pp. 290–295
➢ A method is presented showing that a cascade multilevel inverter can be implemented using only
a single DC power source and capacitors. A standard cascade multilevel inverter requires q DC
sources for 2q + 1 level. Without requiring transformers, the scheme proposed here allows the
use of a multiple DC power source (e.g., a battery or a fuel cell stack).
4
CHAPTER-3
Fig. 3.1 Basic Multilevel Inverters (a) Two levels (b) Three levels (c) m Levels
It is well known that a two level inverter, such as the one shown in Fig. 3.1(a), generates an output
voltage with two different values (levels), VC and “zero,” with respect to the negative terminal of the dc
source (“0”), while a three-level module, Fig.3.1(b) generates three different voltages at the output (2VC, VC,
and “zero”). The different positions of the ideal switches are implemented with a number of semiconductors
that are in direct relation with the output voltage number of levels. Multilevel inverters are implemented
with small dc sources to form a staircase ac waveform, which follows a given reference template. For
example, having three dc sources with magnitudes equal to 10 V each, a composed 7-level waveform can be
obtained (three positive, three negatives, and zero with respect to the middle point between the ten sources),
generating a sinusoidal waveform with 60-V amplitude as shown in Fig. 3.2, and with very low THD.
5
Fig. 3.2 Voltage Waveform for 7-Level Inverter
It can be observed that the larger the number of the inverter dc supplies, the greater the number of
steps that can be generated, obtaining smaller harmonic distortion.
However, the number of dc sources is directly related to the number of levels through the equation:
n = m-1
Where ‘n’ is the number of dc supplies connected in series and ‘m’ is the number of the output voltage
levels. In order to get a 21-level inverter output voltage, 30-V supplies would be required, which is too
much for a simple topology. Besides the problem of having to use too many power supplies to get a
multilevel inverter, there is a second problem which is also important, the number of power semiconductors
required to implement the commutation circuit, as shown in Fig.3.1 Technical literature has proposed two
converter topologies for the implementation of the power commutation, using force-commutated devices
transistors or gate turnoff thyristors (GTOs).
6
3.2 TYPES OF MULTI-LEVEL INVERTERS:
The general structure of multi-level converter is to synthesize a near sinusoidal voltage from
several levels of dc voltages, typically from capacitor voltage sources. As number of levels increases, the
synthesized output waveform has more steps, which provides a staircase wave that approaches a desired
waveform. Also, as steps are added to waveform, the harmonic distortion of the output wave decreases,
approaching zero as the number of voltage levels increases.
A relatively new converter structure called Cascaded Multi-level inverter, can avoid extra
clamping diodes or voltage balancing capacitors. The converter topology used here is based on the
series connection of single phase inverters with separate DC sources.
1. Cascade H-bridge
2. Hybrid H-bridge
1. Cascade H-bridge:
Figure 3.3 shows the basic block of cascade H-bridge Multi-level inverter and its associated
switching instants .As shown it consists of four power devices and a DC source. The switching states for
four power devices are constant i.e., When S1 is on, S2 cannot be on and vice versa similarly with S3 and
S4.
7
Fig 3.3 Block of a H-bridge Multi-level inverter
Figure 3.3shows the power circuit for one phase of multi level inverter. The resulting voltage
ranges from +3Vdcto-3Vdc and the staircase are nearly sinusoidal, even without filtering.
2. Hybrid H-bridge:
A hybrid H-bridge inverter consists of a series of H-bridge inverter units. The general function of
this Multi-level inverter is to synthesize a desired voltage form several DC sources (SDCSs). Each
SDCS is connected to an H-bridge inverter. The AC terminal voltages of different level inverters are
connected in series. Unlike diode clamp or flying capacitors inverters the hybrid H-bridge inverter does not
require any voltage- clamping diodes or voltage-balancing capacitors.
8
Fig 3.4 Circuit diagram of 4-level cascade multi-level invert
9
2 (a). Single phase Hybrid H-bridge inverter:
Principle of operation:
Figure 3.2 shows the synthesized phase voltage waveform of five-level hybrid H-bridge
inverter with four SDCSs. The phase output voltage is synthesized by the sum of the four inverter
outputs, Van=Va1+Va2+Va3+Va4. Each inverter circuit can generate three different outputs,
+Vdc,0,-Vdc, by connecting the dc source to the ac output side by different combinations of four
GTOs,S1,S2,S3,S4. Turning on S1and S4 yields Va4=+Vdc. Turning on S2 and S3 yields Va4=-
Vdc. By passing the source yields Va4=0. Similarly ac output voltage at each level can be obtained
in the same manner.
The circuit connections of hybrid H-bridge and cascade H-bridge are same but the basic
difference between them is that we can have only voltage source of same magnitude in cascade H-
bridge whereas in hybrid h-bridge we can have voltage source of different magnitude in the hybrid
H-bridge. Figure 3.5 shows a single phase leg of the hybrid multilevel inverter
Advantages:
▪ Requires the least number of components among all multi-level converters to achieve
the same number voltage levels.
10
▪ Modularized circuit layout and packaging is possible because each level has the
structure, and there are no extra clamping diodes or Voltage balancing capacitors.
▪ Soft switching can be used in this structure to avoid bulky and loss in resistor,
capacitor, diode, snubbers.
Disadvantages:
▪ The limitation of h-bridge is the provision of the isolated power supply for each
individual H-bridge cell.
▪ The requirement of capacitors and complexity of its control increases as the number
of voltage levels increases, which restrict its applications.
A multi-level inverter can be considered as a voltage source which can switch among a finite set
of levels and a multilevel inverter with different cell steps is called as asymmetric multilevel Inverter.
Asymmetric multi-level inverters have different input voltages in the bridges used.
Asymmetric configuration is generally preferred than the symmetric one because of the following points:
• By addition and subtraction of these voltages, different output-voltage levels can be generated
with the same number of components, compared to a symmetric multi-level inverter.
• It achieves the high quality output voltage with less number of semiconductor devices, space
and costs than the symmetric topology.
• Output filters can be remarkably shrunk or even eliminated.
11
• The asymmetry of the input voltages can reduce or when properly designed, eliminate
redundant output levels.
But the only disadvantage is that switching is not easy in asymmetric MLI when compared to
symmetric inverters
3.4 APPLICATIONS:
1. Reactive power compensator
When a Multi-level inverter draws pure reactive power, the phase voltage and current are 90
degrees apart, and the capacitor charge and discharge can be balanced. Such a converter, when
serving for reactive power compensation is called Static Var Generator.
The multi-level structure allows all the converter to be directly connected to a high voltage
distribution or transmission system without the need of a step down transformer. All the
three Multi–level inverters can be used in reactive power compensation without having voltage
unbalanced problem.
An ideal utility compatible adjustable speed drives requires unity power factor,
negligible harmonics and high efficiency. By extended the back to back intertie, the multi- level
inverter can be used for a utility compatible adjustable speed drive with the input as constant
frequency AC source and the output has the variable frequency AC source. The major differences
when using as a utility compatible adjustable speed drives and for back to back intertie, are the
control design and size of capacitor.
12
CHAPTER 4
HARDWARE IMPLEMENTATION
The control circuit employs the following blocks. These are explained in the
forthcoming topics.
➢ Power supply
➢ Driver circuit
➢ Microcontroller
21
Input MLI
Levels
Driver
Circuit
Micro
Control
ler
The supply is taken from the DC source (Battery) and the ripple is removed by the capacitor.
The rectified dc is given to the multilevel inverter already designed for giving stepped ac which is
given to load. The microcontroller is programmed to generate the pulses according to the designed
switching sequence. Then the drive circuit is used to gives the threshold voltage for the semiconductor
devices. The above said circuit design are discussed below in detailed manner.
13
4.2 POWER SUPPLY:
The transformer does not add power, so it follows that the power (V × I) on
either side must be constant. That is the reason why the winding with more turns has higher voltage
but lower current, while the winding with less turns has lower voltage but higher current. The step
down transformer converts the AC input with the higher level to some lower level. A bridge rectifier
converts the AC voltage into DC voltage. A four-transistor converter (Bridge Rectifier) can generate
the highest output power than other types of rectifiers. The filter circuit resists the unwanted AC
signals. The regulator down-convert a DC voltage to a lower DC voltage of the same polarity.
14
Fig. 4.4 The bridge rectifier
This circuit can give +5V output at about 150mA current, but it can be increased to
1A when good cooling is added to 7805 regulator chip. The circuit has overload and terminal
protection. This uses one single winding as the secondary and four diodes - two are conducting at any
one time. Note the configuration of the diodes: Diodes on parallel sides "point" in the same direction.
The AC signal is fed to the points where a cathode and anode join. The positive output is taken from
the junction of two cathodes. The other end of the load goes to the junction of two anodes. The
operation is simple: Parallel-side diodes conduct at the same time. Note that the two points are
connected by a diode - same as in the two previous cases. The other end of the load returns to the
transformer via the other parallel diode. When the polarity changes the other two diodes conduct. The
output waveform is the same as the full-wave rectifier. The main advantage of this rectifier is that it
has no centre-tap and no extra winding. Diodes can be small and cheap. A bridge rectifier can be
purchased as a "block" with four wire connections.
15
Vdc =15.52 - 900mA/4 x 1000π x 50
=11.02V
Fig.4.5 LM 7805
This circuit can give +5V output at about 150 mA current, but it can be
increased to 1A when good cooling is added to 7805 regulator chip. The circuit has over overload and
terminal protection.
The driver unit usually isolates the control circuit and the power circuit and
ensures the safe operation of the equipment.
16
4.3.1 Opto-couplers:
17
MCT2E is an opto-coupler integrated circuit in which an infrared emitter diode
drives a phototransistor. They are also known as opto isolators since they separate two circuits
optically. These are used to couple two circuits without any ohmic contact. They allow one of the
circuits to switch another one while they are completely separate. The first circuit is connected to IR
diode while the other circuit with the phototransistor. The isolation ensures that no damage occurs in
either of the circuits while the other one has a fault.
There are many situations where signals and data need to be transferred
from one subsystem to another within a piece of electronics equipment, or from one piece of
equipment to another, without making a direct ohmic electrical connection. Opto-couplers
typically come in a small 6-pin or 8-pin IC package, but are essentially a combination of two
distinct devices: an optical transmitter, typically a gallium arsenide LED (light-emitting
diode) and an optical receiver such as a phototransistor or light-triggered diac. The two are
18
separated by a transparent barrier which blocks any electrical current flow between the two,
but does allow the passage of light. The basic idea is shown in Fig.1, along with the usual
circuit symbol for an opto-coupler. Usually the electrical connections to the LED section are
brought out to the pins on one side of the package and those for the phototransistor or diac to
the other side, to physically separate them as much as possible. This usually allows opto-
couplers to withstand voltages of anywhere between 500V and 7500V between input and
output. Opto-couplers are essentially digital or switching devices, so they’re best for
transferring either on-off control signals or digital data. Analog signals can be transferred by
means of frequency or pulse-width modulation.
The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and
interrupt system to continue functioning. The Power down Mode saves the RAM contents but freezes
the oscillator disabling all other chip functions until the next to the hardware set.
19
Microcontroller
Circuit
4.4.1 FEATURES
20
Fig. 4.4.2 Block diagram of 8 bit microcontroller AT89c51
21
Fig. 4.4.3 Pin diagram of AT89C51
Vcc
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port each pin can sink eight
TTL puts. When 1s are written to port 0 pins, the pins can be used as high impedance inputs. Port 0
may also be configured to be the multiplexed low order address/data bus during accesses to external
program and data memory. In this mode P0 has internal pullups.Port 0 also receives the code bytes
during Flash programming, and outputs the code bytes during program verification. External pull-ups
are required during program verification.
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1 output buffers can
sink/source four TTL inputs. When 1s are written to Port 1 pins they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will
22
source current (IIL) because of the internal pullups. Port 1 also receives the low-order address bytes
during Flash programming and verification.
Port 2
Port 2 is an 8-bit bidirectional I/O port with internal pullups.The Port 2 output buffers can
sink/source four TTL inputs. When 1s are written to Port 2 pins they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will
source current (IIL) because of the internal pullups. Port 2 emits the high-order address byte during
fetches from external program memory and during accesses to external data memory that uses 16-bit
addresses (MOVX @ DPTR). In this application it uses strong internal pull-ups when emitting 1s.
During accesses to xternal data memory that use 8-bit addresses (MOVX @ RI), Port 2 emits the
contents of the P2 Special Function Register. Port 2 also receives the high-order address bits and
some control signals during Flash programming and verification.
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal pullups.The Port 3 output buffers can
sink/source four TTL inputs. When 1s are written to Port 3 pins they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will
source current (IIL) because of the pull-ups. Port 3 also serves the functions of various special features
of the AT89C51 as listed below:
Port 3 also receives some control signals for Flash programming and verification.
RST
Reset input. A high on this pin for two machine cycles while the oscillator is running resets
the device.
ALE/PROG
Address Latch Enable output pulse for latching the low byte of the address during accesses to
external memory. This pin is also the program pulse input (PROG) during Flash programming.
In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may
be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped
during each access to external Data Memory.If desired, ALE operation can be disabled by setting bit 0
of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction.
Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the
microcontroller is in external execution mode.
PSEN
Program Store Enable is the read strobe to external program memory. When the AT89C51 is
executing code from external program memory, PSEN is activated twice each machine cycle, except
that two PSEN activations are skipped during each access to external data memory. EA/VPP External
Access Enable. EA must be strapped to GND in order to enable the device to fetch code from external
program memory locations starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is
23
programmed, EA will be internally latched on reset. EA should be strapped to VCC for internal
program executions. This pin also receives the 12-volt programming enable voltage (VPP) during
Flash Programming, for parts that require 12-volt VPP.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating circuit.
XTAL2
Output from the inverting oscillator amplifier.
Oscillator Characteristics
XTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier which
can be configured for use as an on-chip oscillator, as shown in Figure 1. Either a quartz crystal or
ceramic resonator may be used. To drive the device from an external clock source, XTAL2 should be
left unconnected while XTAL1 is driven as shown in Figure 2.There are no requirements on the duty
cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-
by-two flip-flop, but minimum and maximum voltage high and low time specifications must be
observed.
Idle Mode
In idle mode, the CPU puts itself to sleep while all the on chip peripherals remain active. The
mode is invoked by software. The content of the on-chip RAM and all the special functions registers
remain unchanged during this mode. The idle mode can be terminated by any enabled interrupt or by a
hardware reset. It should be noted that when idle is terminated by a hardware reset, the device
normally resumes program execution, from where it left off, up to two machine cycles before the
internal reset algorithm takes control. On-chip hardware inhibits access to internal RAM in this event,
but access to the port pins is not inhibited. To eliminate the possibility of an unexpected write to a port
pin when Idle is terminated by reset, the instruction following the one that invokes Idle should not be
one that writes to a port pin or to external memory.
Power down Mode
In the power down mode the oscillator is stopped, and the instruction that invokes power
down is the last instruction executed. The on-chip RAM and Special Function Registers retain their
values until the power down mode is terminated. The only exit from power down is a hardware reset.
Reset redefines the SFRs but does not change the on-chip RAM. The reset should not be activated
before VCC is restored to its normal operating level and must be held active long enough to allow the
oscillator to restart and stabilize.
Program Memory Lock Bits
On the chip are three lock bits which can be left unprogrammed (U) or can be programmed
(P) to obtain the additional features listed in the table below:
When lock bit 1 is programmed, the logic level at the EA pin is sampled and latched during reset. If
the device is powered up without a reset, the latch initializes to a random value, and holds that value
24
until reset is activated. It is necessary that the latched value of EA be in agreement with the current
logic level at that pin in order for the device to function properly.
Programming Algorithm:
Before programming the AT89C51, the address, data and control signals should be set up
according to the Flash programming mode table and Figures 3 and 4. To program the AT89C51, take
the following steps.
1. Input the desired memory location on the address lines.
2. Input the appropriate data byte on the data lines.
3. Activate the correct combination of control signals.
4. Raise EA/VPP to 12V for the high-voltage programming mode.
5. Pulse ALE/PROG once to program a byte in the Flash array or the lock bits. The byte-write cycle is
self-timed
And typically takes no more than 1.5 ms. Repeat steps 1 through 5, changing the address and data for
the entire array or until the end of the object file is reached.
Data Polling:
The AT89C51 features Data Polling to indicate the end of a write cycle. During a write cycle,
an attempted read of the last byte written will result in the complement of the written datum on PO.7.
Once the write cycle has been completed, true data are valid on all outputs, and the next cycle may
begin. Data Polling may begin any time after a write cycle has been initiated.
Ready/Busy:
The progress of byte programming can also be monitored by the RDY/BSY output signal.
P3.4 is pulled low after ALE goes high during programming to indicate BUSY. P3.4 is pulled high
again when programming is done to indicate READY.
Program Verify:
If lock bits LB1 and LB2 have not been programmed, the programmed code data can be read
back
via the address and data lines for verification. The lock bits cannot be verified directly. Verification of
the lock bits is achieved by observing that their features are enabled.
Chip Erase:
The entire Flash array is erased electrically by using the proper combination of control signals
and by holding ALE/PROG low for 10 ms. The code array is written with all “1”s. The chip erase
operation must be executed before the code memory can be re-programmed.
Reading the Signature Bytes:
The signature bytes are read by the same procedure as a normal verification of locations 030H,
031H, and 032H, except that P3.6 and P3.7 must be pulled to a logic low. The values returned are as
follows.
25
(030H) = 1EH indicates manufactured by Atmel
(031H) = 51H indicates 89C51
(032H) = FFH indicates 12V programming
(032H) = 05H indicates 5V programming
Programming Interface
Every code byte in the Flash array can be written and the entire array can be erased by using
the appropriate combination of control signals. The write operation cycle is self timed and once
initiated, will automatically time itself to completion. All major programming vendors offer
worldwide support for the Atmel microcontroller series. Please contact your local programming
vendor for the appropriate software revision.
Flash programming
There are three methods of erasing or programming of the FLASH memory that may be used.
First, the FLASH may be programmed or erased in the end-user application by calling low level
routine through a common entry point in the Boot ROM. The end user application, through, must be
execution code from different block then the blocked that is being erased or programmed.
In the configuration diagram the crystal oscillator is connected between XTAL1 and XTAL2.
The two series capacitors are connected parallel with crystal. The 10th pin of the microcontroller is
grounded. The regulator R7805 output (3-pin of R7805) is given to the 20th pin of microcontroller.
The data is transferred from the PC to the microcontroller through the interface. The program is
26
written using pinnacle software. In the program port 1 is used as the input port.
4.5 MOSFET:
The MOSFET or Metal Oxide Semiconductor Field Effect Transistors by far, is the
most common field effect transistor used in both digital and analog circuits. The MOSFET is
composed of a channel of n-type or p-type semiconductor material, and is accordingly called as N-
MOSFET or a PMOSFET. Unfortunately, many semiconductors with better electrical properties than
silicon such as gallium arsenide do not form good gate oxides and thus are not suitable for
MOSFETS. The gate terminal is a layer of poly silicon (polycrystalline silicon) or aluminums placed
over a channel, but separated from the channel by a thin layer of insulating silicon dioxide.
When a positive voltage is applied to the gate with respect to the source an electric
field will be created pointing away from the base and across the P-region directly under the base. The
electric field will cause positive charges in the P-region to move away from the base inducing or
enhancing an N-region in its place. Conduction can then take place between the N+ (drain) N
(enhanced region) N+ (sources). Increasing or decreasing in size thus controlling conduction. Varying
the voltage between the gate and body modulates the conductivity of this layer and makes it possible
to control the current flow between drain and source.
27
DRAIN N+
Z
VDS
GATE
P
VGS
N+
L
SOURCE O
A
D
In practice, a fairly large current in the order of 1-2A can be required to charge
the gate capacitance at turn ON to ensure that switching times are small. Due to gate leakage current,
nano-amps are needed to maintain the gate voltage once the device is ON.A negative voltage is often
applied at turn OFF to discharge the gate for speedy switch OFF. It is obvious that faster switching
speeds can be obtained with well designed gate driver circuits.
➢ Power MOSFET has lower switching losses but its conduction losses are more.
➢ MOSFET has positive temperature co-efficient for resistance. This makes parallel
operation of MOSFET easy. If a MOSFET shares increased current initially, it
heats up faster its resistance rises and this increased resistance causes this current
to shift to other devices in parallel
➢ In MOSFET secondary break down does not occur, because it has positive
temperature co-efficient.
28
Fig 4.8 Symbol of MOSFET
29
CHAPTER 5
MATLAB SIMULATION
SIMULINK, now incorporated into MATLAB, can also be used to analyze and
design of power systems. During last four decade’s simulation of power systems have gained more
importance.
30
student’s access to LINPACK and EISPACK without them having to learn Fortran. It soon
spread to other universities and found a strong audience within the applied mathematics
community. Jack little, an engineer, was exposed to it during a visit Moler made to Stanford
University in 1983. Recognizing its commercial potential, he joined with Moler and Steve
Bangert. They rewrote MATLAB in C and founded Math Works in 1984 to continue its
development. These rewritten libraries were known as JACKPAC. In 2000, MATLAB was
rewritten to use a newer set of libraries for matrix manipulation, LAPACK.
The features of the MATLAB toolboxes used in the analysis of power systems
are, facilitating future revision and expansion of software. This is very important for
researches that are interesting in developing and testing new for various power system
applications.
Testing overall system behavior using traditional methods cannot begin until the
implementation is complete. By contrast, Simulink enables engineers to create one model that
includes analog, digital, and mechanical components, and begin system verification early in the
design process.
The MATLAB/Simulink system models serve as a golden reference and link directly
to popular third-party development tools to simplify test harness construction.
5.2.2 Semiconductors
31
To improve efficiency, these teams increasingly rely on Math Works products. By
sharing MATLAB/Simulink models, organizations improve collaboration between analog and digital
designers, and between design and verification engineers. As a result, verification is more through and
teams find errors earlier.
32
5.3. BLOCK LIBRARIES:
The PSB is a graphic tool that allows building schematics and simulation of power
systems in the SIMULINK environment. The block set uses the SIMULINK environment to represent
common components and devices found in electrical power networks. It consists of a block library
that includes electrical models such as RLC branches and loads, transformers, lines, surge arrester,
electric machines, power electronics devices, etc. Diagrams can be assembled simply by using click
and drag procedures into SIMULINK windows.
The Power System Block set uses the same drawing and interactive dialogue boxes to
enter parameters as in standard SIMULINK blocks. Simulation results can be visualized with
SIMULINK scopes connected to outputs of measurement blocks available in the PSB library. These
measurement blocks acts as an interface between the electrical blocks and the SIMULINK blocks.
The voltage and current measurement blocks can be used at selected points in the circuit
to convert electrical signals into SIMULINK signals. Nonlinear elements requiring control, such as
power electronic devices, have a SIMULINK inputs that allow control from a SIMULINK system.
Elements in the PSB block library are classified in various groups according to their
nature: Application Libraries, Electrical Sources, Elements, Extra Library, Machines, Power
Electronics, Connectors, Measurements and Power guide. Application libraries consist of Distributed
resources library, Electric drives library and Flexible AC transmission library.
Electrical Sources group contains A.C. current source, A.C. and D.C. voltage source,
Controlled voltage and current source, Three-phase programmable voltage source, three phase source
and Battery.
The Elements group contains single-phase models RLC branches and loads, linear and
saturable transformers, mutual inductances, n-section lines, MOV type surge arrester, circuit breaker
and n-phase distributed-parameter line model. Using the masking facility of SIMULINK, the user can
easily add more complex elements built from the basic PSB building blocks and associate a dialog
box.
33
This technique has been used to develop a three-phase library which is also
provided. The Power Electronics group contains common semiconductor devices. Each element in
this group (except Diode) has a SIMULINK gating control input and a SIMULINK output returning
switch current and voltage. Extra library consist of Control blocks, discrete control blocks, discrete
measurements and Phasor Library.
The PSB graphical interface (Powerful) includes an interactive tool to set initial
conditions. This allows simulation with initial conditions, or to start the simulation with steady-state.
A load-flow computational engine allows initializing three-phase circuits containing synchronous and
asynchronous machines, so that the simulation directly starts in steady-state.
34
5.4 SIMULINK MODEL CONVERTER:
System modeling is probably the most important phase in any form of system control design
work. The choice of a circuit model depends upon the objectives of the simulation. If the goal is to
predict the behavior of a circuit before it is built. A good system model provides a designer with
valuable information about the system dynamics. Due to the difficulty
involved in solving general nonlinear equations, all the governing equations will be put together in
block diagram form and then simulated using MATLAB Simulink program.
Simulink, developed by Math Works, is a commercial tool for modeling, simulating and
analyzing multi-domain dynamic systems. Its primary interface is a graphical block diagramming tool
and a customizable set of block libraries. It offers tight integration with the rest of the MATLAB
environment and can either drive MATLAB or be scripted from it. Simulink is widely used in control
theory and digital signal processing for multi-domain simulation and Model-Based Design.
Simulink will solve these nonlinear equations numerically, and provide a simulated response
of the system dynamic.
The steps to obtain a system-level modeling and simulation of power electronic converters are
listed below.
35
1) Determine the state variables of the power circuit in order to write its switched state-
space model e.g., inductor current and capacitor voltage.
2) Assign integer variables to the power semiconductor (or to each switching cell) ON and OFF
states.
3) Determine the conditions governing the states of the power semiconductors or the switching
cell.
4) Assume the main operating modes of the converter (continuous or discontinuous conduction
or both) or the modes needed to describe all the possible circuit operational modes.
5) Write this model in the integral form, or transform the differential form to include the
semiconductors logical variables in the control vector: the converter will be represented by a set of
nonlinear differential equations.
6) Implement the derived equations with "SIMULINK" blocks (open loop system simulation is
then possible to check the obtained mode.
7) Use the obtained switched space-state model to design linear or nonlinear controllers for the
power converter.
9) The algorithm for solving the differential equations and the step size should be chosen before
running any simulation.
We can run your simulation interactively from the Simulink Editor or systematically from the
MATLAB command line. The following simulation modes are available:
To reduce the time required to run multiple simulations, we can run those simulations in parallel
on a multi-core computer or computer cluster.
36
After running a simulation, we can analyze the simulation results in MATLAB
and Simulink. Simulink includes debugging tools to help to understand the
simulation behavior.
5.6.2 Viewing Simulation Results
We can visualize the simulation behavior by viewing signals with the displays and
scopes provided in Simulink. We can also view simulation data within the Simulation Data
Inspector, where we can compare multiple signals from different simulation runs. Scope is
the block in Simulink by which we can measure and view the voltage, current, and power in
electrical domain. Result shows the output of a multilevel converter through scope.
Simulink supports debugging with the Simulation Stepper, which lets we step back
and forth through your simulation viewing data on scopes or inspecting how and when the
system changes states. With the Simulink debugger we can step through a simulation one
method at a time and examine the results of executing that method. As the model simulates,
you can display information on block states, block inputs and outputs, and block method
execution within the Simulink Editor.
Sim Power Systems provides component libraries and analysis tools for modeling and
simulating electrical power systems. The libraries include models of electrical power components,
including three-phase machines, electric drives, and components for applications such as flexible AC
transmission systems (FACTS) and renewable energy systems. Harmonic analysis, calculation of total
harmonic distortion (THD), load flow, and other key electrical power system analyses are automated.
Sim Power Systems was developed by Hydro-Québec of Montreal.
Sim Power Systems models as shown in it can be used to develop control systems and test
system-level performance. We can parameterize the models using MATLAB® variables and
expressions, and design control systems for the electrical power system in Simulink®. We can add
37
mechanical, hydraulic, pneumatic, and other components to the model using Sims cape™ and test
them all in a single simulation environment. To deploy models to other simulation environments,
including hardware-in-the-loop (HIL) systems, Sim Power Systems supports C-code generation.
Starting with Math Works Release 13, Sim Power Systems and Sim Mechanics of the
Physical Modeling product family work together with Simulink to model electrical, mechanical, and
control systems. Electrical power systems are combinations of electrical circuits and
electromechanical devices like motors and generators. Engineers working in this discipline are
constantly improving the performance of the systems. Requirements for drastically increased
efficiency have forced power system designers to use power electronic devices and sophisticated
control system concepts that tax traditional analysis tools and techniques. Further complicating the
analyst’s role is the fact that the system is often so non linear that the only way to understand it is
through simulation.
Land-based power generation from hydroelectric, steam, or other devices is not the only use
of power systems. A common attribute of these systems is their use of power electronics and control
systems to achieve their performance objectives. Sim Power Systems was designed to provide a
modern design tool that allows scientists and engineers to rapidly and easily build models that
simulate power systems.
Sim Power Systems uses the Simulink environment, allowing you to build a model using
simple click and drag procedures. Not only can you draw the circuit topology rapidly, but your
analysis of the circuit can include its interactions with mechanical, thermal, control, and other
disciplines. This is possible because all the electrical parts of the simulation interact with the extensive
Simulink modeling library. Since Simulink uses MATLAB as its computational engine, designers can
also use MATLAB toolboxes and Simulink block sets. Sim Power Systems and Sim Mechanics share
a special Physical Modeling block and connection line interface.
Users can rapidly put Sim Power Systems to work. The libraries contain models
of typical power equipment such as transformers, lines, machines, and power electronics.
These models are proven ones coming from textbooks, and their validity is based on the
experience of the Power Systems Testing and Simulation Laboratory of Hydro-Québec, a
large North American utility located in Canada. The capabilities of Sim Power Systems for
modeling a typical electrical grid are illustrated in demonstration files. And for users who
want to refresh their knowledge of power system theory, there are also self-learning case
studies.
38
5.8 SUBSYSTEMS:
Each of the power electronic models represents subsystems within the simulation environment.
These blocks have been developed so they can be interconnected in a consistent and simple manner
for the construction of complex systems.
The subsystems are masked, meaning that the user interface displays only the complete
subsystem, and user prompts gather parameters for the entire subsystem. Relevant parameters can be
set by double-clicking a mouse or pointer on each subsystem block, then entering the appropriate
values in the resulting dialogue window.
To facilitate the subsequent simulation analysis and feedback controller verification, the
pulse-width-modulation signal to control the ideal switch can also be built into the masked subsystem.
For each converter to verity it’s working in open loop configuration trigger pulses have been derived
using a repeating sequence generator and duty cycle block.
An input to the switch control, hence inputs for the masked subsystem are duty ratio and
input voltage, and the outputs are chosen to be inductor current, capacitor voltage, and output voltage.
When double-clicking the pointer on the masked subsystem, one enters parameter values of the
switching converter circuit in a dialogue window.
5.10 APPLICATIONS:
A number of Math Works and third-party hardware and software products are
available for use with Simulink. For example, State flow extends Simulink with a design
39
environment for developing state machines and flow charts. Coupled with Simulink Coder,
another product from Math Works, Simulink can automatically generate C source code for
real-time implementation of systems. As the efficiency and flexibility of the code improves,
this is becoming more widely adopted for production systems, in addition to being a popular
tool for embedded system design work because of its flexibility and capacity for quick
iteration. Embedded Coder creates code efficient enough for use in embedded systems.
The systematic testing tool TPT offers one way to perform formal test- verification
and validation process to stimulate Simulink models but also during the development phase
where the developer generates inputs to test the system. By the substitution of the Constant
and Signal generator blocks of Simulink the stimulation becomes reproducible.
Sim Events adds a library of graphical building blocks for modeling queuing systems to the
Simulink environment. It also adds an event-based simulation engine to the time-based simulation
engine in Simulink.
40
H-bridge inverter in order to generate a high voltage waveform using low voltage devices. In this
chapter, we are considering the simulation of H- bridge inverters. Compared with diode clamped
inverter and flying capacitor inverter ,H- bridge inverters requires the least number of components
to achieve the same number of voltage levels and H-bridge inverters does not require any extra
clamping diodes or voltage balancing capacitors. Optimized circuit layout and packaging are
possible in H- bridge multi-level inverter because each level has the same structure.
The general structure of the H-bridge multi-level inverter is to synthesize a near sinusoidal
voltage form several levels of DC voltages. As the number of levels are increased, the synthesize
output waveform has more steps which produce a staircase wave that approaches the desired
waveform. Also as the steps are added to the waveform the harmonic distortion of the output wave
decreases.
41
Fig 5.3 Twenty one level inverter simulation diagram
42
Fig 5.4 Simulation output for 21 levels
CHAPTER 6
43
HARDWARE RESULTS
The following pictures show the actual hardware implementation of the Optimized twenty one
Level Cascaded Inverter. The components used are described in the previous chapters.
44
45
Different Voltage Sources through Regulated power supplies
46
Fig 6.7 Waveform after connecting load closer view
47
CHAPTER 7
CONCLUSION
7.1 ADVANTAGES:
48
REFERNCES
2. A. J. Morrison, “Global Demand Projections for Renewable Energy Resources,” IEEE Canada
Electrical Power Conference, 25-26 Oct. 2007, pp 537-542.
5. J.S. Lai, F. Z. Peng, “Multilevel Converters - A New Breed of Power Converters,” IEEE
Transactions on Industry Applications, vol. 32, no. 3, May/Jun. 1996, pp. 509-517.
49