High-Efficiency Pure Sine Wave Inverter PDF
High-Efficiency Pure Sine Wave Inverter PDF
Prepared for
Dr. Natarajan Krishnamoorthy
Final Year Degree Project
Lakehead University
Thunder bay, Ontario, Canada
Prepared by
mmebratu@lakeheadu.ca
ikhan5@lakeheadu.ca
Electrical Engineering
15 April 2017
Abstract
The purpose of the project was to design a high-power inverter to rival that of use
in the market in terms of cost and efficiency. The efficiency was the key driving
force in the project. The inverter consists of 3 stages: the boost stage, inverter stage,
and filter/load stage. The boost stage consists of an isolated DC-DC converter
which will take a low DC input supply and boost it to a regulated high DC output.
(controlled by PWM signals). The inverter takes the high DC bus from the boost
stage and inverts it to a chopped AC, which is filtered to output a pure sine wave.
2
Acknowledgements
We would like to acknowledge all our professors that have instructed us during
our time at Lakehead University. It is due to their guidance that helped us in the
would like to acknowledge Dr. Natarajan Krishnamoorthy for his support and
3
Table of Contents
Contents
Abstract .................................................................................................................................................... 2
Acknowledgements ......................................................................................................................... 3
Table of Contents ................................................................................................................................ 4
Table of Figures .................................................................................................................................... 7
List of Tables ........................................................................................................................................ 10
List of Equations ................................................................................................................................. 11
Acronyms ............................................................................................................................................. 14
1. Introduction .................................................................................................................................... 15
1.1 Benefit to Society ................................................................................................................ 15
1.2 Project Duties ......................................................................................................................... 16
1.3 Project Scheduling ............................................................................................................. 17
2. Background ................................................................................................................................... 19
2.1 DC-DC Converter ................................................................................................................ 20
2.2 Isolated DC-DC Converter ............................................................................................ 21
2.2.1 Push-Pull Operation ................................................................................................... 23
2.3 Inverter....................................................................................................................................... 23
2.3.1 Pulse Width Modulation ......................................................................................... 24
3. Design Specifications and Procedure ........................................................................... 29
3.1 System Specifications ...................................................................................................... 29
3.2 Push-Pull Converter Design Procedure ................................................................. 29
3.2.1 High-Frequency Transformer Design .............................................................. 36
3.2.2 Output Filter Inductor Design .............................................................................. 44
3.2.3 Snubber Design ........................................................................................................... 50
3.2.4 Converter losses .......................................................................................................... 51
3.3 Inverter Low Pass Filter Design .................................................................................... 54
4. Implementation of Design .................................................................................................... 56
4.1 DC-DC converter implementation ........................................................................... 56
4.1a High-frequency transformer implementation ........................................... 56
4
4.2 Implementation of the three level SPWM ............................................................ 63
4.2.1 Internal Registers ......................................................................................................... 63
4.2.2 Fast PWM ......................................................................................................................... 66
4.2.3 Lookup Table................................................................................................................. 67
4.2.4 Arduino sPWM Implementation ........................................................................ 70
4.3 Inverter MOSFET Operation ........................................................................................... 73
4.3.1 MOSFET Gate Driver .................................................................................................. 73
4.3.2 MOSFET Consideration ............................................................................................ 76
4.3.3 Losses in MOSFET ......................................................................................................... 77
4.4 H-Bridge operation in Inverter .................................................................................... 78
4.5 Measurement and Protection Circuits ................................................................... 79
5. Results ................................................................................................................................................ 83
5.1 DC-DC converter testing ................................................................................................ 83
5.1.1 Unloaded Testing & Results .................................................................................. 83
5.1.2 Loaded Testing & Results ....................................................................................... 84
5.2 Inverter Testing & Results ................................................................................................ 89
5.2.2 Loaded Testing & Results ....................................................................................... 90
5.3 Full System Testing & Results......................................................................................... 93
5.4 Harmonic Content of sinusoidal output ................................................................ 97
6. Economic and Project Management Analysis ........................................................ 98
6.1 Bill of Materials....................................................................................................................... 98
7. Conclusion....................................................................................................................................101
7.1 Project Outcomes .............................................................................................................101
7.2 Future Work ...........................................................................................................................101
Bibliography ......................................................................................................................................103
Appendix ............................................................................................................................................108
A.1 PCB for DC-DC converter stage ..............................................................................108
A.2 PCB for Inverter stage ....................................................................................................109
A.3 Microcontroller Schematic ........................................................................................110
A.4 DC-DC Circuit Schematic ...........................................................................................111
A.5 Inverter Circuit Schematic..........................................................................................112
A.6 Lookup Table MATLAB Code.....................................................................................113
A.7 Microcontroller Code ....................................................................................................114
5
A.8 American Wire Gauge Table ....................................................................................119
Index ......................................................................................................................................................120
6
Table of Figures
Figure 1: Block diagram of power inverter ...................................................... 19
Figure 2: Basic topology for Boost Converter .................................................. 20
Figure 3: Basic Schematic of Push-Pull circuit ................................................. 22
Figure 4: Basic topology for inverter circuit ..................................................... 23
Figure 5: PWM with Different Duty Cycles ........................................................ 24
Figure 6: Output amplitude varied based on PWM duty cycle ................... 25
Figure 7: 2-Level PWM Output ........................................................................... 26
Figure 8: 3-Level PWM Output ........................................................................... 27
Figure 9: Sine PWM Output ................................................................................. 28
Figure 10: E-core transformer ............................................................................. 38
Figure 11: Arrangement of transformer ............................................................ 38
Figure 12: Core window area calculation ....................................................... 39
Figure 13: Skin effect ........................................................................................... 42
Figure 14: Core loss curve comparison ............................................................ 44
Figure 15: Kool Mu core selector chart ............................................................ 46
Figure 16: Kool Mu toroidal core ....................................................................... 46
Figure 17: Per unit permeability vs. DC bias .................................................... 48
Figure 18: Core dimensions ................................................................................ 49
Figure 19: Snubber design .................................................................................. 50
Figure 20: Series resistor ....................................................................................... 50
Figure 21: Distribution of converter losses ........................................................ 53
Figure 22: Distribution of losses with 4 parallel MOSFETs ................................. 53
Figure 23: Secondary winding turns .................................................................. 56
Figure 24: Centre tap primary windings ........................................................... 57
Figure 25: Complete transformer winded 1..................................................... 57
Figure 26: Complete transformer winded 2..................................................... 58
Figure 27: Reduced air gap transformer .......................................................... 58
Figure 28: Primary center-tap transformer ....................................................... 59
7
Figure 29: Inductance measurement............................................................... 59
Figure 30: Primary inductance........................................................................... 59
Figure 31: Secondary inductance measurement .......................................... 60
Figure 32: Turns ratio test ..................................................................................... 61
Figure 33: Measuring leakage inductance 1 .................................................. 61
Figure 34: Primary inductance with secondary open ................................... 62
Figure 35: Measuring leakage inductance 2 .................................................. 62
Figure 36: Primary inductance with secondary short..................................... 62
Figure 37: Testing of high-frequency transformer ........................................... 63
Figure 38: Timer/Counter1 Control Register A Bit Setup ................................ 64
Figure 39: Timer/Counter1 Control Register B Bit Setup ................................. 64
Figure 40: Timer/Coumter1 Interrupt Mask Bit Setup ...................................... 64
Figure 41: Fast PWM Timing Diagram................................................................ 66
Figure 42: Lookup Table Code .......................................................................... 68
Figure 43: Lookup Table Output Plots ............................................................... 69
Figure 44: Sample Lookup Table outputs ......................................................... 70
Figure 45: Arduino Code Segment-Gate Inputs ............................................. 70
Figure 46: Inverter Prototype .............................................................................. 71
Figure 47: H-Bridge Input (From microcontroller’s pins 11&12) ..................... 72
Figure 48: Unfiltered Output Response of H-Bridge @120Vpp ...................... 72
Figure 49: H-Bridge Output after LC lowpass filter @ 353Vpp ....................... 73
Figure 50: H-bridge .............................................................................................. 74
Figure 51: MOSFET Driver- connections (left) and pinout(right) ................... 74
Figure 52: Driver Specifications .......................................................................... 75
Figure 53: H-Bridge Operation ........................................................................... 79
Figure 54: Voltage and Current transducers ................................................... 80
Figure 55: DC-DC converter testing arrangement ......................................... 83
Figure 56: Unloaded regulation of output DC voltage ................................. 84
Figure 57: Input and output results of 147.3 ohm load .................................. 84
8
Figure 58: Duty cycle of loaded DC-DC converter ....................................... 85
Figure 59: Drain current waveform ................................................................... 85
Figure 60: Secondary Output voltage waveform .......................................... 86
Figure 61: Passive attenuator ............................................................................. 86
Figure 62: Output DC voltage in loaded condition ....................................... 87
Figure 63: Efficiency Vs. Various loads.............................................................. 88
Figure 64: Inverter testing arrangement........................................................... 89
Figure 65: Resistive load testing of inverter ...................................................... 90
Figure 66: Fan as inductive load ....................................................................... 91
Figure 67: Rating of fan ....................................................................................... 91
Figure 68: Measurement of low speed............................................................. 92
Figure 69: The whole system put together ....................................................... 93
Figure 70: Input voltage and current into the inverter .................................. 94
Figure 71: Output voltage of boost stage ....................................................... 94
Figure 72: Output current of inverter ................................................................ 95
Figure 73: Output voltage waveform and measurement ............................ 95
Figure 74: Harmonic content of output waveform ........................................ 97
Figure 75: PCB for DC-DC converter .............................................................. 108
Figure 76: Inverter PCB ...................................................................................... 109
Figure 77: μController Module ......................................................................... 110
Figure 78: DC-DC circuit schematic ............................................................... 111
Figure 79: Inverter circuit schematic .............................................................. 112
9
List of Tables
Table 1: Scheduling breakdown ....................................................................... 18
Table 2: Power Range of converter types ....................................................... 21
Table 3: System Specifications........................................................................... 29
Table 4: Push-pull Converter Specifications .................................................... 30
Table 5: High-Frequency Transformer Design Parameters ............................ 36
Table 6: Output inductor design parameters ................................................. 45
Table 7: Power MOSFET ....................................................................................... 51
Table 8: Diode parameters ................................................................................ 52
Table 9: Wave Generation Bits .......................................................................... 65
Table 10: Compare Output Mode for Fast PWM ............................................ 67
Table 11: Clock Select Bit Description .............................................................. 67
Table 12: MOSFET Specifications ....................................................................... 78
Table 13: Protection thresholds ......................................................................... 81
Table 14: Protection thresholds ......................................................................... 82
Table 15: Results for loaded DC-DC converter ............................................... 87
Table 16: Complete results for loaded DC-DC converter ............................. 88
Table 17: Load test of inverter ........................................................................... 90
Table 18: Spot testing of resistive load ............................................................. 94
Table 19: Full load testing of the overall system ............................................. 96
Table 20: Bill of materials..................................................................................... 98
Table 21: Salvaged/already available parts ................................................ 100
10
List of Equations
Equation 1: Input to output voltage transfer function ................................... 29
Equation 2: Switching period ............................................................................. 31
Equation 3: Maximum duty cycle ..................................................................... 31
Equation 4: Maximum duty cycle for each phase ........................................ 31
Equation 5: Input power ..................................................................................... 31
Equation 6: Max. average input current ......................................................... 31
Equation 7: Max. Equivalent flat topped input current ................................. 32
Equation 8: Max. input RMS current ................................................................. 32
Equation 9: Max. MOSFET RMS current ............................................................. 32
Equation 10: Min. MOSFET breakdown voltage .............................................. 32
Equation 11: Transformer turns ratio.................................................................. 32
Equation 12: Min. duty cycle ............................................................................. 33
Equation 13: Nominal duty cycle ...................................................................... 33
Equation 14: Average output current .............................................................. 33
Equation 15: Secondary max. RMS current ..................................................... 33
Equation 16: Rectifier diode voltage................................................................ 33
Equation 17: Min. output filter inductor ............................................................ 34
Equation 18: Output filter inductor ................................................................... 34
Equation 19: Min. output current ...................................................................... 34
Equation 20: Max. output ripple ........................................................................ 34
Equation 21: Output filter capacitor value ..................................................... 35
Equation 22: Equivalent Series Resistance ....................................................... 35
Equation 23: RMS capacitor current ................................................................ 35
Equation 24: Ripple input voltage .................................................................... 35
Equation 25: Input capacitor............................................................................. 35
Equation 26: Apparent power ........................................................................... 37
Equation 27: Ke parameter ................................................................................ 37
11
Equation 28: Core geometry parameter ......................................................... 37
Equation 29: Kg relation to core ....................................................................... 37
Equation 30: Core window area ....................................................................... 39
Equation 31: Primary turns calculation ............................................................. 39
Equation 32: Bmax check .................................................................................. 39
Equation 33: Primary inductance value .......................................................... 40
Equation 34: Secondary turns calculation ...................................................... 40
Equation 35: Skin depth ...................................................................................... 40
Equation 36: Wire diameter ............................................................................... 40
Equation 37: Conductor section ....................................................................... 41
Equation 38: Wire diameter for AWG21 ........................................................... 41
Equation 39: Wire area for AWG21 ................................................................... 41
Equation 40: Wire resistance for AWG21 ......................................................... 41
Equation 41: Number of primary wires ............................................................. 42
Equation 42: Total area of primary side ........................................................... 42
Equation 43: Primary resistance ........................................................................ 42
Equation 44: Primary resistance value ............................................................. 43
Equation 45: Total area of secondary side...................................................... 43
Equation 46: Number of secondary wires........................................................ 43
Equation 47: Secondary resistance .................................................................. 43
Equation 48: Secondary resistance value ....................................................... 43
Equation 49: Total copper losses ....................................................................... 43
Equation 50: Transformer regulation ................................................................. 44
Equation 51: Inductor Peak current value ....................................................... 45
Equation 52: LI^2 product .................................................................................. 45
Equation 53: Minimum nominal inductance ................................................... 47
Equation 54: Number of turns ............................................................................ 47
Equation 55: DC bias........................................................................................... 47
Equation 56: Adjusted number of turns ............................................................ 48
12
Equation 57: Circumference of inner core ...................................................... 49
Equation 58: Width of AWG21 ........................................................................... 49
Equation 59: number of turns/layer .................................................................. 49
Equation 60: Total layers ..................................................................................... 49
Equation 61: Stored energy in a capacitor ..................................................... 50
Equation 62: Estimate of power dissipation ..................................................... 51
Equation 63: Capacitor in snubber .................................................................. 51
Equation 64: Dissipated power.......................................................................... 51
Equation 65: Power dissipated in Rs ................................................................. 51
Equation 66: Conduction loss in MOSFET ......................................................... 52
Equation 67: MOSFET gate loss .......................................................................... 52
Equation 68: Switching losses in MOSFET .......................................................... 52
Equation 69: Conduction losses in diode ........................................................ 52
Equation 70: Switching losses in diode ............................................................. 52
Equation 71: Filter cut-off frequency ................................................................ 54
Equation 72: Capacitive reactance ................................................................ 54
Equation 73: Filter capacitor value................................................................... 55
Equation 74: Resonant frequency of filter ....................................................... 55
Equation 75: Actual filter capacitor value ...................................................... 55
Equation 76: Measured turns ratio .................................................................... 60
Equation 77: Measured total inductance ....................................................... 62
Equation 78: Leakage inductance value........................................................ 63
Equation 79: Input compare register................................................................ 68
Equation 80: Sample number ............................................................................ 69
Equation 81: AC voltage reading ..................................................................... 81
Equation 82: Sample voltage calculation ...................................................... 81
Equation 83: AC voltage reading at the LCD................................................. 81
13
Acronyms
PWM – Pulse Width Modulation
D – Duty Cycle
14
1. Introduction
A power inverter is simply an electronic circuit that uses a DC voltage as an input
and converts that to an AC voltage (Output). For this process to be successful, the
DC input source must be stable and have enough current supply. There are several
types of inverters that give various types of output. These include square wave,
modified sine wave, pulsed sine wave and pure sine wave (PSW). They all have
different uses in the industry but the PSW is mostly used since they can power
many common electronic devices. The PSW inverter is considered in this project.
PSW can also be used in solar powered systems in which a low DC voltage input
supplied from the solar panels is inverted to high power AC output which can be
supply (UPS) which are used to provide a constant flow of power in sensitive loads
that require as such, PSW find their use in such power supplies. The use of PSW
area with only DC power available such as at work sites or in camping sites.
inverter in conjunction with an existing solar powered system tied to the grid is
not new concept; however, in terms of efficiency and money it is not feasible.
cost in comparison to current market inverters; not only makes the renewable
energy more enticing money wise, but also promotes renewable energy.
15
1.2 Project Duties
Farrukh Gill – PCB design, ordering of parts, schematic drawing, inverter design.
Mathais Mebratu – Specification of parts, safety & protection devices, and DC-DC
converter design.
All group members will be involved in design and testing of the PWM
will be rotated amongst the group; thus, all group members will have a good
16
1.3 Project Scheduling
Programming & Implementation Process Fri 11/4/16 Sun 1/8/17 Mathais Mebratu
17
Optimization of Circuitry (Hardware) Thu 3/23/17 Thu 3/23/17
18
2. Background
In this section, background information on the various parts used in constructing
the PSW is discussed. A PSW inverter consists of an input power supply, a DC-
DC converter, a DC-AC inverter and an low pass filter at the output. An overall
3. Next, the Arduino microcontroller will generate the sPWM and PWM
19
2.1 DC-DC Converter
The DC-DC converter is a specific type of switching converter that converts one
From Fig. 2, the switch is usually a MOSFET or IGBT, as fast switching is required.
When a high frequency square wave is applied to the gate, the switch will
repeatedly turn ON and OFF. When the switch will be ON, the inductor will begin
to store energy in its magnetic field, and when the switch is OFF, the back EMF
from the inductor is produced with a reverse polarity than when the switch was
ON. Due to this, the Vs (supply voltage) and VL (back EMF) will be in series. The
diode is forward biased in this stage, and a capacitor at the load charges to (Vs +
VL) minus the voltage drop across the diode. Therefore, the output always sees a
steady output voltage of (Vs + VL), because during the ON stage the capacitor
charges, and during OFF stage it discharges through the load. At steady-state
used for this project. Fig. 2 is a basic boost converter switching circuit, in this report
a high turns ratio (24 V to 180 VRMS) is required so a transformer isolated switching
20
2.2 Isolated DC-DC Converter
In these circuits, the duty cycle of the square wave input is adjusted, which will in
Fly-back 1 W – 100 W
Forward 1 W – 200 W
In addition, in the transformer isolated converters, the load side is isolated from
the AC lines. There are several topologies of transformer isolated converters given
in Table 1. The half or full bridge configurations are more suitable for higher DC
input voltages, but the gate circuitry for the switches are more complex. In this
project, the push-pull topology is used. This topology is used due its efficient
operation at low input voltages and at higher power applications. The breakdown
voltage of the power transistors should be greater than twice the input DC voltage
and due to this reason push-pull converter are not suitable for high DC input
voltages. In contrast to half bridges, where the switches must withstand voltage
equal to input voltage. This topology also allows to have multiple outputs. An
advantage the push-pull has over half bridge is that neither switch requires an
isolated driver. This design also used the current mode PWM control like the non-
21
Figure 3: Basic Schematic of Push-Pull circuit
are open and closed 180 degrees out of phase. These 4 MOSFETs correspond to
high side left, high side right, low side left and low side right. The selection of
these MOSFETs whether NPN or PNP depend on parameters such as the RDS (on)
resistance, which should be very low as to reduce power losses. Since the switches
conduct alternately to each other a bipolar output voltage is seen at the primary
transform thus a full wave rectifier bridge is at the secondary. In addition, note
that the freewheeling diode could also be added to the primary transformer to
control the voltage present on the secondary when the switches open. The duty
cycle of the PWM modulator must be less than 0.5 or 50% to avoid conduction of
the alternate switches at the same time. In this project, the PWM duty cyle is set
to 0.45 or 45%.
22
2.2.1 Push-Pull Operation
The basic operation is similar to the forward converter. When the high side left
and low side right switches are ON, the current will flow through the rectifier
diodes and charge the output inductor with a positive voltage across the load,
likewise during the ON state of the high side right and low side left switches the
voltage across the load is negative. The drivers for the switches doubles the
effective duty cycle; therefore, the operating frequency at the output filter is
double the switching frequency. The drivers should have an appropriate amount
of dead time between the alternating phases, as to ensure one switch is completely
2.3 Inverter
The Inversion process is explained and comprised of the following sections: the
The MOSFET driver is controlled by the SPWM and PWM signals of the Arduino
23
2.3.1 Pulse Width Modulation
A ‘level’ is based on the amplitude levels of the varying pulses, which also includes
The 2-level PWM is normally referred to as PWM (Pulse Width Modulation) and
refers to the concept of rapidly pulsing a digital signal between the positive (or
negative) peak value and zero. The duty cycle of a PWM waveform determines
how long the pulse remains ON or HIGH, or in other words the percentage in
Figure 5: PWM with Different Duty Cycles (Source: “Arduino - PWM,” Arduino - PWM. [Online].
Available: https://www.arduino.cc/en/Tutorial/PWM)
decreasing the total harmonic distortion of the load current. In addition, using a
PWM signal to control the inputs of switches (Figure 4) allows for more efficiency
24
as you can turn the load fully OFF and fully ON; thus, reducing the amount of
Figure 6: Output amplitude varied based on PWM duty cycle (Source: “ermicroblog,”
varying vocal level) of the PWM signal determines the amplitude of the output
signal. as when a voltage in between ON and OFF is required, this can be achieved
to reproducing an efficient (low power loss) output signal, and will be discussed
25
Figure 7: 2-Level PWM Output (Source: “Delta modulation,” Wikipedia, 15-Mar-2017. [Online].
Available: https://en.wikipedia.org/wiki/Delta_modulation)
The output waveform in figure 7, illustrates the filtered response of a 2-Level PWM
with reference of a sinusoidal waveform. The output response is not desirable for
increased, as the more levels a PWM waveform has, the better an approximation
26
Figure 8: 3-Level PWM Output (Source: “Pulse-width modulation,” Wikipedia, 24-Mar-2017. [Online].
Available: https://en.wikipedia.org/wiki/Pulse-width_modulation)
Referenced to a sine wave, the pulsing waveforms are segmented into 3-levels:
the positive peak to 0, the zero-crossing level, and 0 to the negative peak. Whilst
another level was introduced, the output waveform is still not usable for a high
27
Figure 9: Sine PWM Output (Source: Terbytes, “Terbytes/Arduino-Atmel-sPWM,” GitHub, 14-Mar-2016.
[Online]. Available: https://github.com/Terbytes/Arduino-Atmel-sPWM)
This method will be used in the project as its filtered output more clearly
resembles that of a sine wave, and will be discussed in further detail in section
4.2.
28
3. Design Specifications and Procedure
The design procedure used for this project are found in references [27] to [32].
These textbooks contain the equations to use for designing switching power
supplies.
Specification Value
Efficiency 80%
The relationship between the input and output voltage is given by:
𝑁2
𝑉𝑜𝑢𝑡 = 2 ( ) 𝐷𝑉𝑖𝑛 (1)
𝑁1
Equation 1: Input to output voltage transfer function
frequency and also maintain the duty cycle needed. The SG3525A Pulse Width
Modulator Control Circuit was chosen for this for several reasons. Firstly, it
29
provides a wide range of switching frequency (100 Hz to 400 kHz). Secondly it has
pins. The driver will be used as a voltage mode control as the input voltage is not
applications where high power is needed such as in this project. Also, as stated in
section 2.2, in practice; leakage inductance from the high frequency transformer
causes significant over-voltages across the transistor and thus the breakdown
voltage of these devices should be higher than twice the input voltage. The
converter design. These MOSFET’s provide an ultra low on-resistance, can handle
extremely fast switching and can be operated normally up to 175 degrees Celsius.
From Table 3, the DC-DC converter specifications are listed. In the procedure,
calculations are based upon a power output of 700 Watts as a gross overload for
the converter.
Specification Value
30
The switching period is given by:
1 1
𝑇= = = 33.33 𝜇𝑠 (2)
𝑓 30 𝑘𝐻𝑧
Equation 2: Switching period
∗ (3)
𝑡𝑜𝑛 = 0.5𝑇 = 16.67 𝜇𝑠
Equation 3: Maximum duty cycle
∗
0.9𝑡𝑜𝑛
𝐷𝑚𝑎𝑥 = = 0.45 = 45% (4)
𝑇
Equation 4: Maximum duty cycle for each phase
Input power:
𝑃𝑜𝑢𝑡 700
𝑃𝑖𝑛 = = = 778 𝑊 (5)
𝜂 0.9
Equation 5: Input power
𝑃𝑖𝑛 778
𝐼𝑖𝑛 = = = 38.9 𝐴 (6)
𝑉𝑖𝑛,𝑚𝑖𝑛 20
Equation 6: Max. average input current
31
Maximum equivalent flat topped input current:
𝐼𝑖𝑛 38.9
𝐼𝑝𝑓𝑡 = = = 43.22 𝐴 (7)
2𝐷𝑚𝑎𝑥 2 ∗ 0.45
Equation 7: Max. Equivalent flat topped input current
𝑁2 𝑉𝑜𝑢𝑡
𝑁= = = 10 (11)
𝑁1 2𝑉𝑖𝑛,𝑚𝑖𝑛 𝐷𝑚𝑎𝑥
Equation 11: Transformer turns ratio
32
Minimum duty cycle value:
𝑉𝑜𝑢𝑡
𝐷𝑚𝑖𝑛 = = 0.32 (12)
2𝑁𝑉𝑖𝑛,max
Equation 12: Min. duty cycle
𝑉𝑜𝑢𝑡
𝐷𝑛𝑜𝑚𝑖𝑛𝑎𝑙 = = 0.38 (13)
2𝑁𝑉𝑖𝑛
Equation 13: Nominal duty cycle
𝑃𝑜𝑢𝑡
𝐼𝑜𝑢𝑡 = = 3.9 𝐴 (14)
𝑉𝑜𝑢𝑡
Equation 14: Average output current
33
Output filter inductor value:
Assuming a ripple current value 15% of output current (𝛥𝐼 = 0.15𝐼𝑜𝑢𝑡 = 0.585).
𝑁
(𝑁2 𝑉𝑖𝑛 − 𝑉𝑜𝑢𝑡 ) 𝑡𝑜𝑛,max 15𝜇
1
𝐿𝑚𝑖𝑛 ≥ = ((10)(24) − 180) = 1.5 𝑚𝐻 (17)
Δ𝐼 0.585
Equation 17: Min. output filter inductor
𝐿𝑓𝑖𝑙𝑡𝑒𝑟 = 2 𝑚𝐻 (18)
The converter is used in Continuous Conduction Mode (CCM). This means that
current in the output inductor does not drop to zero during switching cycles. CCM
This output filter inductor value will ensure a CCM operation for a minimum
34
Output filter capacitor value:
1 Δ𝐼𝐿 1 0.585
𝐶𝑚𝑖𝑛 = 𝑇𝑠 = ∗ ∗ 33.33𝜇 = 13.6 𝜇𝐹 (21)
8 Δ𝑉𝑜 8 0.180
Equation 21: Output filter capacitor value
Δ𝑉𝑜 0.180
𝐸𝑆𝑅𝑚𝑎𝑥 = = = 0.31 Ω (22)
Δ𝐼𝐿 0.585
Equation 22: Equivalent Series Resistance
2 2
𝐼𝐶,𝑟𝑚𝑠 = √𝐼𝐼𝑛,𝑟𝑚𝑠 − 𝐼𝑖𝑛 = √412 − 38.92 = 12.95 ≅ 13 𝐴 (23)
Input capacitor:
Δ𝑇𝑜𝑛,max 15𝜇𝑠
𝐶𝑖𝑛 = 𝐼𝐶,𝑟𝑚𝑠 = 13 ∗ = 7 𝑚𝐹 (25)
Δ𝑉𝑖𝑛 0.028
Equation 25: Input capacitor
The high voltage conversion ratio needed from system specifications is achieved
35
transformer must be designed in order to minimize the leakage inductance.
imbalance of the primary inductance values. Special care of the PCB design is
needed as well to have proper balance of the inductances values. There is also the
in the transistors.
Specification Value
Efficiency (η) 98 %
36
Apparent power:
𝑃𝑜 1 1
𝑃𝑡 = + 𝑃𝑜 = ( + 1) 𝑉𝑜 𝐼𝑜 = ( + 1) ∗ 180 ∗ 4 = 1.455 𝑘𝑊 (26)
𝜂 𝜂 0.98
Equation 26: Apparent power
𝐾𝑒 = 0.145𝐾𝑓2 𝑓 2 𝐵𝑚
2 (10−4 )
= 0.145(4)2 (30 𝑘𝐻𝑧)2 (0.05)2 (10−4 ) = 522 (27)
𝑃𝑡 1.455 𝑘𝑊
𝐾𝑔 = = = 2.787 𝑐𝑚5 (28)
2𝐾𝑒 𝛼 2 ∗ 522 ∗ 0.05
100
Equation 28: Core geometry parameter
Where Wa is the core window area, Ac is the cross-sectional area and MLT is the
37
In this project, the E65/32/27 core with N27 ferrite was chosen due to its high
saturation flux density (320 mT) and a high AL of 7200 nH. These parameters allow
us to have the fewest turns while still getting the required inductance.
38
The values used in equation (29) are found as:
The cross-sectional area and the MLT is found from the data sheet.
From datasheet, Bs = 320 mT = 3200 Gauss so assuming Bmax = 1500 Gauss to ensure
no saturation.
24 ∗ 108
𝐵𝑚𝑎𝑥 = = 1260 𝐺𝑎𝑢𝑠𝑠 (32)
4 ∗ 30 𝑘𝐻𝑧 ∗ 5.29 ∗ 3
Equation 32: Bmax check
39
With the approximation for N1 = 3 turns, the Bmax is below the 1500 Gauss designed
𝐿𝑝 = 𝑁 2 𝐴𝐿 = 32 ∗ 7200 = 65 𝜇𝐻 (33)
6.62 6.62
𝛿= = = 0.0382 𝑐𝑚 ≅ 0.4 𝑚𝑚 (35)
√𝑓 √30 𝑘𝐻𝑧
Equation 35: Skin depth
40
Conductor section:
𝜋𝑑 2
𝐴𝑤 = = 0.4589 𝑚𝑚2 (37)
4
Equation 37: Conductor section
From the electrical lab, AWG21 is available and according to the American Wire
Gauge Conductor Size Table; this wire is able to withstand a maximum current of
1.2 A at a maximum frequency of 33 kHz for 100% skin depth. The table can be
𝛺
𝑊𝑖𝑟𝑒 𝑟𝑒𝑠𝑖𝑠𝑡𝑎𝑛𝑐𝑒 = 𝑅𝐴𝑊𝐺21 = 41.984 (40)
𝑘𝑚
Equation 40: Wire resistance for AWG21
A current density, J, was chosen as 4.5 A/mm2 from the plot of current density
considerably at high frequency called the “Skin effect”. If reached at this point, the
high-frequency alternating current only flows through the top layer of the
conductor as pictured in Fig. 7. Due to these reasons, the current density was
41
Figure 13: Skin effect (Source: [Online]. Available: https://www.solo-labs.com/cabling-effects-selecting-right-
cable/. [Accessed: 05- Apr- 2017].
Where,
𝐼𝑖𝑛 38.9 40
𝐴𝑤𝑝 = = ≅ = 8.9 𝑚𝑚2 (42)
𝐽 450 450
Equation 42: Total area of primary side
requirement.
−5 𝛺
𝑅𝐴𝑊𝐺21 (4.1984 ∗ 10 ) 𝑚𝑚 𝜇𝛺
𝑟𝑝 = = = 1.91 (43)
𝑆𝑛𝑝 22 𝑚𝑚
Equation 43: Primary resistance
42
Value of resistance for the primary winding:
𝐴𝑤𝑠 0.89
𝑆𝑛𝑠 = = ≅ 3 𝑏𝑢𝑛𝑑𝑙𝑒𝑠 (46)
𝐴𝑤𝐴𝑊𝐺21 0.41
2
𝑃𝑐𝑢 = 𝑃𝑝 + 𝑃𝑠 = 𝑅𝑝 𝐼𝑖𝑛 + 𝑅𝑠 𝐼𝑠2 = (767.82 𝜇𝛺)(29 𝐴)2 + (56.3 𝑚𝛺)(4 𝐴)2 = 1.546 𝑊 (49)
Equation 49: Total copper losses
43
Transformer regulation:
𝑃𝑐𝑢 1.546
𝛼= 100 = ∗ 100 = 0.221 % (50)
𝑃𝑜𝑢𝑡 700
Equation 50: Transformer regulation
reason for this is due to Kool Mu’s core having high saturation level (up to 10 500
Gauss) and core loss being significantly less in high frequency application. The
Catalog”. Two design parameters are needed to determine the core size and
number of turns. They are the inductance needed with DC bias and the DC current.
44
Specification Value
Δ𝐼 0.585
𝐼𝑝𝑘 = 𝐼𝑜 + = 3.9 + = 4.1925 𝐴 (51)
2 2
Equation 51: Inductor Peak current value
2
𝐿𝑐𝑎𝑙𝑐 𝐼𝑝𝑒𝑎𝑘 = (1.538)(4.1925)2 = 27.03 𝑚𝐻 ∗ 𝐴2 (52)
45
Figure 15: Kool Mu core selector chart
From the LI2 product in equation (52) and from Fig. 9, a Kool Mu core having a
permeability of 60μ is needed and the Kool Mu core part number is: 77716AC. The
46
For winding this core, the core size and dimension are needed. From the datasheet,
73 𝑛𝐻
𝐴𝐿 = ± 8%
𝑇𝑢𝑟𝑛𝑠 2
67.16 𝑛𝐻
𝐴𝐿𝑚𝑖𝑛 = (73)(0.92) = (53)
𝑇𝑢𝑟𝑛𝑠 2
Equation 53: Minimum nominal inductance
𝐿 2 𝑚𝐻
𝑁=√ =√ = 172.56 𝑡𝑢𝑟𝑛𝑠 (54)
𝐴𝐿 67.16 𝑛𝐻
𝑇𝑢𝑟𝑛𝑠 2
0.4𝜋𝑁𝐼 (0.4𝜋)(172.56)(3.9)
𝐻= = = 66.56 𝑜𝑒𝑟𝑠𝑡𝑒𝑑𝑠 (55)
𝐿𝑒 127
Equation 55: DC bias
47
Figure 17: Per unit permeability vs. DC bias
From Fig. 11 at 66.56 oersteds, there is a roll-off of 0.65 in per unit of initial
permeability (μpu). Therefore, the number of turns must be increased to take into
172.56
𝑁= = 265.47 ≅ 266 𝑡𝑢𝑟𝑛𝑠 (56)
0.65
Equation 56: Adjusted number of turns
Due to availability of parts, the Kool Mu core chosen is the part number 77192A7
rather than the 77716A7. This core is slightly larger than the 77716AC and has a
48
3.2.2a Wire selection for output inductor
26
𝐶𝑖𝑟𝑐𝑢𝑚𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 2𝜋𝑅 = (2𝜋) ( ) = 81.68 𝑚𝑚 (57)
2
Equation 57: Circumference of inner core
𝑡𝑢𝑟𝑛𝑠 81.68
= = 34.03 (59)
𝑙𝑎𝑦𝑒𝑟 2.4
Equation 59: number of turns/layer
266
𝑇𝑜𝑡𝑎𝑙 𝑙𝑎𝑦𝑒𝑟𝑠 = = 7.82 ≅ 8 𝑙𝑎𝑦𝑒𝑟𝑠 (60)
24.03
Equation 60: Total layers
This core will have the inductance equal to or greater than the one needed when
49
3.2.3 Snubber Design
The snubber is placed across the switches on the primary side in the DC-DC
converter. It is used to reduce the peak voltage at turn-off and to damp the ringing.
A quick snubber design procedure is outlined in this section. [32] contains this
procedure.
𝐸𝑜 48
𝑅𝑠 = = = 1.23 ≅ 1.2 𝛺 (61)
𝐼𝑜 38.9
Figure 20: Series resistor
Due to availability of parts in lab, a 10 Ω power resistor was used for the snubber.
The initial voltage step due to the current flowing in 𝑅𝑠 is no greater than the
𝐶𝑠 𝐸𝑜2
𝑈𝑝 = (62)
2
Equation 61: Stored energy in a capacitor
50
The average power dissipation at a switching frequency:
A good choice to make 𝐶𝑠 to be equal to twice the sum of the output capacitance
the output capacitance is 1080 pF and the mounting capacitance is a typical value
estimated at 40 pF.
(2.24)(48)2
𝑈𝑝 = = 2.58 𝜇𝑊 (66)
2
Equation 65: Power dissipated in Rs
section.
STP160N75F3 4 mΩ 65 ns + 15 ns 75 V 120 A
51
The diodes chosen for this project are the STTH8R06 “Ultrafast diode”. The reason
for this selection of diodes is due to its ultrafast switching and lower switching
losses.
For the conduction and switching losses, it is assumed that circuit operates in
2
𝑃𝑐𝑜𝑛𝑑 = 1.6𝑅𝑑𝑠,𝑂𝑁 𝐼𝑀𝑜𝑠,𝑅𝑀𝑆 = (1.6)(0.004)(41)2 = 10.76 𝑊 (61)
3.9
𝑃𝑐𝑜𝑛𝑑,𝐷𝑖𝑜𝑑𝑒 = 𝑉𝐹 𝐼𝑠𝑒𝑐,𝑅𝑀𝑆 = (1.4) ( ) = 3.86 𝑊 (64)
√2
Equation 69: Conduction losses in diode
Mosfet
Switching Mosfet
Losses: Conduction
41.23% Losses: 41.27%
To reduce the conduction losses, 4 power MOSFET are in parallel connection. The
Diode
CONVERTER LOSSES
Switching Mosfet
Losses: 4% Conduction
Losses: 15%
Diode Mosfet
Conduction Switching
Losses: 21.3% Losses:
59.72%
53
3.3 Inverter Low Pass Filter Design
The low-pass filter design is needed to remove the high frequency sPWM
switching leaving a smooth 60 Hz sine wave. The filter should not attenuate the
60 Hz fundamental frequency.
As a rule of thumb, the cut-off frequency must be 10 times away from the
fundamental to avoid attenuation. But to have more ideal filter, the cut-off
frequency must be logarithmically equally far away from the switching and
fundamental frequency.
The capacitor should be a suitable value in order not to add reactive current
through the inductor thereby immaturely saturating the inductor. Therefore, the
capacitor was chosen based upon an additional 250 mA reactive current on top of
the load current flowing through the inductor in order to provide the filtering
action.
𝑉 120
𝑋𝑐 = = = 480 𝛺 (67)
𝐼𝑐 0.25
Equation 72: Capacitive reactance
54
Then the capacitance value is found using 𝑋𝑐 = (𝜔𝑐)−1:
1 1
𝐶≤ = = 5.526 ≅ 5.6 𝜇𝐹 (68)
2𝜋𝑓0 𝑋𝑐 (2𝜋)(60)(480)
Equation 73: Filter capacitor value
Therefore, the capacitor must be equal or less than 5.6 μF. The inductor is pre-
is found as:
1
𝐹𝑐 = (69)
2𝜋√𝐿𝐶
Equation 74: Resonant frequency of filter
Solving for C:
1 1
𝐶= = = 211.2 𝑛𝐹 (70)
4𝜋 2 𝐹𝑐2 𝐿 4𝜋 2 (1095)2 (0.1)
Equation 75: Actual filter capacitor value
55
4. Implementation of Design
The implementation of the PSW is done through two stages: implementation and
test board and the PCB, the high-frequency transformer and the output inductor
bobbin. Secondary side was winded first to accommodate the thick wires for the
56
Similarly, the primary is winded along with centre tap wires terminated at the
The finished primary and secondary windings with the core included are shown
57
Figure 26: Complete transformer winded 2
In order to reduce the air gaps, a zip tie is used through the bobbin and clasping
Now measurements will be conducted using an LCR meter to confirm the primary
58
Figure 28: Primary center-tap transformer
59
Note that this value is taken from the positive primary wire to the center tap which
inductance is 65 μH and this closely matches the measured one at 67.1 μH.
Similarly, for the second primary; a similar value to 67.1 μH which confirms the
polarity dot connection from Fig. 19. The secondary inductance was measured and
𝑁𝑠 7.417 𝑚𝐻
= √𝐼𝑛𝑑𝑢𝑐𝑡𝑎𝑛𝑐𝑒 𝑟𝑎𝑡𝑖𝑜 = √ = 10.5 (66)
𝑁𝑝 67.1 𝜇𝐻
Compared to equation (11), the measured turns ratio is similar to calculated turns
ratio. To confirm the above calculations a voltage signal was injected into the
60
primary winding and a reading was taken from the secondary. Fig. 29 illustrates
the procedure.
Leakage inductance is result due to the imperfect magnetic linking from one
with the primary. To measure leakage inductance, the secondary is left open and
LCR is measures the inductance of the primary winding. The value measured is
61
Figure 34: Primary inductance with secondary open
Now, the secondary side is shorted and inductance is measured again from the
primary. Due to the short, only the leakage inductance should be measured.
62
Therefore:
𝐿𝑙𝑒𝑎𝑘𝑎𝑔𝑒 = 1.5 𝜇𝐻 (68)
From Fig. 33, the output is regulated at 180 V from a 24.2 V input.
63
The internal registers are manipulated as follows:
enabled.
64
In Interrupt Mask Register, 0b00000001 enables TOIE1
Interrupt Service Routine (ISR) defines what code is to be run continuously and
When this bit is written to one, and the I-flag in the Status Register is set (interrupts
Waveform Generation Mode Bit table, shown below. In this mode, Fast PWM
Table 9: Wave Generation Bits (Source of Figures and Tables: ATMEL, “Atmel ATmega640/V-1280/V -
1281/V-2560/V-2561/V,” 8-bit Atmel Microcontroller with 16/ 32/64KB In-System Programmable Flash, Feb-2014.
2560-2561_datasheet.pdf)
65
4.2.2 Fast PWM
The fast PWM mode provides a high frequency PWM waveform generation
option. The fast PWM differs from the other PWM options by its single-slope
operation. The counter counts from BOTTOM to TOP then restarts from BOTTOM.
The TOP value is set by the Input Compare Register (ICRn), which will be
Due to the single- slope operation, the operating frequency of the fast PWM mode
can be twice as high as the phase correct and phase and frequency correct PWM
modes that use dual-slope operation. This high frequency makes the fast PWM
mode well suited for power regulation, rectification, and DAC applications. High
66
Table 10: Compare Output Mode for Fast PWM
The table above shows how Fast PWM utilizes Compare Output Mode;
COM1A1 & COM1B1 are both set to 1 and COM1A0 & COM1B0 are set to 0,
when configuring TCCR1A, which means the output compare registers are in
non-inverting mode.
The table above shows Clock Select Bit Description, CS10 is initialized while
frequency.
67
𝐼𝑛𝑡𝑒𝑟𝑛𝑎𝑙 𝐶𝑙𝑜𝑐𝑘 𝐹𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 16𝑀𝐻𝑧
𝐼𝐶𝑅1 = = = 800 (69)
𝐷𝑒𝑠𝑖𝑟𝑒𝑑 𝑆𝑤𝑖𝑡𝑐ℎ𝑖𝑛𝑔 𝐹𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 20𝑘𝐻𝑧
designed in the DC-DC portion. This value (800) is compared with the output
compare register values (OCR1A & OCR1B) set by the lookup table generator
waveform, this idea will be revisited and compared with the MATLAB code in
Figure 40.
power common electrical and electronic devices. The 60Hz will be the modulating
signal of the sPWM. This will be the signal amplitude of the duty cycle of the pulse
68
In the development of the sPWM waveform, each full waveform will be comprised
The 60Hz sine wave will be sampled at 20kHz, which resulted in approximately
332 points (referred to as ‘samples’ in the code). The Arduino cannot produce a
negative voltage; thus, only the amplitudes of the positive half of the waveform is
To sample the signal at the correct times, the output signal period is divided by
the number of samples, and is also divided by two; this value is referred to as
‘StopTime’ in the code, and will set the run time of program.
Lastly, the lookup table values (Figure 41) are generated via the sine wave function
69
in MATLAB. Then this is plotted with each value multiplied by the ICR value to
microcontroller.
For example: If the output compare register value is outputs 403 then the duty
cycle of that pulse would be 0.503 (≃50%), and occurs at approximately 1.4ms (≃
1.38)
Figure 44: Sample Lookup Table outputs: Amplitude(Left) and Time (Right)
voltages); thus, two positive waveforms are produced with the 2nd half being
identical to the first, but 180 degrees out of phase. Therefore, two output registers
70
The lookup table values are used in the Arduino code (full code attached to the
Note: The above code is ran continuously using global interrupts at the internal
clock frequency.
The application of the sPWM and PWM pins in the circuit will be discussed later
in the report.
A prototype of the inverter was built as a means of testing the SPWM inputs on
the driver in conjunction with the driver and H-Bridge. The drain voltage was
tested at approximately 120Vpp and 150Vpp and was passed through the LC
71
Figure 47: H-Bridge Input (From microcontroller’s pins 11&12)
72
Figure 49: H-Bridge Output after LC lowpass filter @ 353Vpp
drive to run the H-Bridge on its own. Therefore, the use of MOSFET gate drivers
(MGD) is essential to the proper operation of the circuit. To choose the MGD, the
The H-Bridge had to work to at least peak voltage of 180V, which comes from the
boost stage of the inverter. The gate driver supply voltage had to be at least 10V
or higher to operate N-Channel MOSFET IRFP460. Also, to make sure that either
𝑄1 & 𝑄2 or 𝑄3 & 𝑄4 (Fig. 48) are not turned on at the same time, there had to be built
in protection.
73
Figure 50: H-bridge
To meet the above criteria, the IR2010 part was selected from Digi-Key® as the
MGD.
74
Figure 52: Driver Specifications (Source of Figures 49-50: I. T. AG, “Products,” Infineon Technologies.
[Online]. Available: http://www.infineon.com/cms/en/product/power/gate-driver-ics/level-shift-gate-drivers/high-and-
low-side-drivers/IR2010/productType.html?productType=5546d462533600a401533d22608a563b.)
The capacitors between 𝑉𝑑𝑑 − 𝑉𝑠𝑠 , 𝑉𝑐𝑐 − 𝐶𝑂𝑀 are decoupling capacitors. Decoupling
capacitors in practice are used to compensate for the inductance of the supply
lines. The capacitor between 𝑉𝑏 & 𝑉𝑠 is the bootstrap capacitor, the only voltage
seen by the bootstrap capacitor is 𝑉𝑐𝑐 − 𝐷𝑖𝑜𝑑𝑒 𝐷𝑟𝑜𝑝. The gate charge for the high-
supply through the bootstrap diode during the time when the device is off. Since
the capacitor is charged from a low voltage source the power consumed to drive
the gate is small. There are two ways of calculating bootstrap capacitance, using
the formula or using the graph. Both methods are explained in the application note
AN-978 from International Rectifier. Here the bootstrap diode blocks the voltage
seen at the 𝑉𝑠 terminal of IR2010 from 𝑉𝑐𝑐 . The bootstrap diode is between 𝑉𝑏 & 𝑉𝑐𝑐
of the IR2010.
The IR2010 is a high power, high voltage, and high-speed power MOSFET and
IGBT driver with independent high and low side referenced output channels.
Logic inputs are compatible with standard CMOS or LSTTL output, down to 3.0V
75
logic. Project requirement for 𝑉𝑂𝐹𝐹𝑆𝐸𝑇 (𝑚𝑎𝑥) 𝑖𝑠 180𝑉, this MOSFET driver can go
up to 200V.
𝑡𝑜𝑛 and 𝑡𝑜𝑓𝑓 for this driver is 95ns and 65ns respectively. The gate driver supply
which has a 𝑉𝐺𝑆 of ±20V. A gate driver is a power amplifier that accepts a low
power input from the microcontroller (Arduino) and produces a high current
drive input for the gate of high power transistor, such as the power MOSFET used
in this project. The max current on the Arduino output pin is 40mA, which is not
enough to run the MOSFET; therefore, the 𝐼𝑜 of the MOSFET driver is essential to
the working of the inverter efficiently. Input capacitance of the MOSFET (IRFP460)
is 1300pF; microcontrollers are usually designed to drive loads of less than a 100pF.
The maximum 𝐼𝑜 rating of the MGD is 3A; this current is used to charge the gate
capacitor of the MOSFET, the higher the current the faster the gate capacitor
prevents the MOSFETs from turning on at the same time, specifically 𝑄1 & 𝑄2 or
fast switching times and their stability over wide operating conditions. Second,
because of the high input impedance of the device, the drive circuitry can be of
low power, and compact and simple. Two or more MOSFETS can be connected in
parallel with ease to supply high-power loads. This is possible because of the
positive temperature coefficient of the device; when the MOSFET conducting the
76
higher current heats up it is forced to share its current with the other parallel
MOSFETS.
because it determines how much current the device can carry for low to medium
project. Paralleling the MOSFETS also reduces the 𝑅𝐷𝑆_𝑂𝑁 of the devices there by
current, the MOSFET conduction loss is found simply by calculating 𝐼𝐷2 𝑅𝐷𝑆_𝑂𝑁 .
The other source of power loss is through switching losses. As the MOSFET
switches on and off, its intrinsic parasitic capacitance (gate capacitance) stores and
then dissipates energy during each switching transition. The losses are
capacitances. As the physical size of the MOSFET increases, its capacitance also
general, a higher switching frequency and a higher input voltage require a lower
To build the H-Bridge per the project requirements the appropriate MOSFET had
to be selected. Based on the criteria mentioned above, the least amount of losses
had to be taken in to account. In addition, the voltage of 170V on the H-Bridge and
characteristics;
77
Table 12: MOSFET Specifications (Source: alldatasheet.com, “IRFP460 Datasheet(PDF) - International
Rectifier,” IRFP460 Datasheet(PDF) - International Rectifier. [Online]. Available:
Therefore, the IRFP460 is used in conjunction with IR2010 MGD’s to develop the
H-Bridge circuit.
the alternating digital high and digital low signals on Pins 9 and 10. In the project,
two MGDs are used: one to control the switching of MOSFET 𝑆1 and 𝑆2 (Fig. 51)
the other MGD controls MOSFET 𝑆3 and 𝑆4 . Pin 11 and 12 are connected to 𝑀𝐺𝐷1
and 𝑀𝐺𝐷2 high input respectively. Also, Pin 9 and 10 are connected to 𝑀𝐺𝐷1 and
𝑀𝐺𝐷2 low input respectively. To operate the H-Bridge 𝑆1 and 𝑆3 are supplied
with sPWM from each of the MGD’s 𝐻𝑜 Pin. 𝑆2 and 𝑆4 are used to control the
output of the H-Bridge. When 𝑆2 is high the output flows through the load from
𝑆3 and 𝑆2 for one cycle, and for the other half it flows through 𝑆1 to 𝑆2 completing
one cycle. This output from the H-Bridge is also an sPWM but much higher
78
Figure 53: H-Bridge Operation (Source: “multiple motor h bridge,” Electrical Engineering Stack
Exchange. [Online]. Available: https://electronics.stackexchange.com/questions/207319/multiple-motor-h-bridge.)
performing measurements. In the full code of the Arduino, sensor values were
read via the analog inputs from HV DC bus voltage, HV AC output voltage and
and current transducer was used to measure the AC quantities while a simple
voltage divider circuit was used to measure the HV DC bus voltage. The
transducers are shown in Fig. 52 and Fig 53. The voltage transducer is rated as
0-150 VAC with an output DC current of 0-1 mA and should be terminated with a
load resistor of 4.99 kΩ (1%) to produce 0-5 VDC that can be inputted in to the
and outputs 0-1 mA DC current and should also be terminated with a load resistor
of 4.99 kΩ (1%).
79
To test the noise performance and accuracy of the transducers, a test was
performed injecting a rated voltage of 120 VAC and 5 AC to terminals 2 and 4 with
Prior to reading the values directly at the inputs of the microcontroller they must
be first stepped down to a safe level acceptable by the Arduino (0-5V). The analog
values read from the pins vary from [0,1023] due to their 10-bit resolution; thus,
before any conversion takes place in the code, the analog input is multiplied by
1023 to normalize the value back to the [0,5] VDC range. However, for the DC Bus
regulation voltage, the [0,170] VDC is stepped down to [0,2.5] VDC as a means of
protecting the Arduino. Next, a specific conversion factor (CF) is applied to each
analog input value (as show in Table 13) depending the measurement being
performed.
80
Measurement Analog Conversion factor(CF) Threshold Digital
Pin Pin
Example Output:
AC Voltage = 60 VRMS
𝐴𝐶 𝑉𝑜𝑙𝑡𝑎𝑔𝑒 1023
𝑃𝑖𝑛1 𝑅𝑒𝑎𝑑𝑖𝑛𝑔 = ( ∗ 5) ∗ (71)
150𝑉𝑟𝑚𝑠 5𝑉𝑑𝑐
Equation 81: AC voltage reading
60𝑉𝑟𝑚𝑠 1023
𝑃𝑖𝑛1 𝑅𝑒𝑎𝑑𝑖𝑛𝑔 = ( ∗ 5) ∗ ≅ 409.2 (72)
150𝑉𝑟𝑚𝑠 5𝑉𝑑𝑐
Equation 82: Sample voltage calculation
5𝑉𝑑𝑐 5𝑉𝑑𝑐
𝐴𝐶 𝑉𝑜𝑙𝑡𝑎𝑔𝑒 = 𝐶𝐹 ∗ 𝑃𝑖𝑛1 𝑅𝑒𝑎𝑑𝑖𝑛𝑔 ∗ = 30 ∗ 409.2 ∗ = 60𝑉𝑟𝑚𝑠 (73)
1023 1023
Equation 83: AC voltage reading at the LCD
In addition, these voltage and current values are output to an LCD, along with
power calculations (calculated based on the voltage and current readings and the
81
When a certain threshold is passed, a digital output is sent to the relay input of the
inverter circuit or the shutdown pin of the DC-DC converter to disconnect the
Measurement: Threshold:
Overcurrent < 4A
82
5. Results
Several tests were conducted on the inverter and boost stage. In this section,
unloaded and loaded results are discussed along with important parameters such
83
Figure 56: Unloaded regulation of output DC voltage
Firstly, a 147.3 Ω load is placed at the output. The load is obtained by two 75Ω
84
Figure 58: Duty cycle of loaded DC-DC converter
85
Figure 60: Secondary Output voltage waveform
Note for Fig. 33, the waveform is attenuated as there is not enough time-space
divisions to display the actual waveform. The passive attenuator consists of “L”
IO1 R1 IO2
1MΩ
INPUT R2 OUTPUT
1MΩ
IO4
IO3
In the design, 𝑅1 = 𝑅2 . To get the actual waveform, the output waveform in Fig.
53 should be doubled.
86
Figure 62: Output DC voltage in loaded condition
From Fig. 50 to Fig. 55, the following results are extracted for 147.3 Ω loaded
condition.
Load (Ω) Vin (V) Iin (A) Vout (V) Iout (A) Pin (W) Pout (W) D (%) η (%)
87
Similarly, for other loads, the complete results are tabulated in table 14.
88.00
86.00
84.00
Efficiency
82.00
80.00
78.00
76.00
74.00
1840.00 340.00 248.00 147.30 104.40 75.00
Load value in ohms
88
As seen from Fig. 56, the efficiency is maximum at 340Ω load at 87%. However, at
that level, the output power is not satisfactory (90.34 W). Therefore, the full load
is considered at a 75Ω load with 462.50 Watts of output power while achieving an
output current of 2.5 A. The efficiency suffers at 75Ω load at 79.15% but
considering a design target efficiency of 90%, this is not too bad. Due to the high
frequency noise, environment, losses from switches and transformer is the reason
89
5.2.2 Loaded Testing & Results
In the loaded testing of the inverter, both resistive and inductive loads were
considered. In this stage, due to limitations of the power supplies up to 126 V input
DC supply was available with current limit at 20 A. Therefore, the testing is based
upon this rating however in section 5.2.3, the full system (boost stage + inverter
stager + filter/load stage) is tested at the proper input DC input voltage from the
boost stage.
Firstly, various power resistor loads are tested on the inverter. The following were
measured.
90
Figure 66: Fan as inductive load
The inductive load will have two types of power consumption. One is the real
power due to the resistive component and a reactive power due to the inductive
component. The power factor of the fan is assumed to be 0.9 so 𝑃𝑜𝑢𝑡 = 𝑉𝐼𝑐𝑜𝑠(𝜃).
The results are tabulated for the fan for the varying speeds.
91
Figure 68: Measurement of low speed
Load Vin Iin (A) Vout(rms) Iout Pin (W) Pout (W) η (%)
Speed
Speed
Speed
92
5.3 Full System Testing & Results
In this section, the power inverter is tested with all stages joined together. In the
final design, an adjustable feedback resistor is added to fine tune the high output
DC bus from the boost stage. As a result of this, the output RMS voltage can be set
to 120 VRMS.
In the full system testing, only resistive loads were considered. Note that the boost
93
Firstly, a 104.4Ω is used at the load and the following are measured:
(Ω) (V) (A) (V) (A) (Hz) (W) (W) (%) (%)
Now, the inverter is tested at full-load of 50Ω. The full video of this demonstration
94
Figure 72: Output current of inverter
95
From Fig. 60 to Fig. 63:
(Ω) (V) (A) (V) (A) (Hz) (W) (W) (%) (%)
Therefore, as a conclusion to the inverter, it is found that the inverter can provide
70% efficiency at full load. The output is a pure sinusoidal wave with 120 Vrms.
96
5.4 Harmonic Content of sinusoidal output
Since the inverter is a pure sine wave inverter measurements were taken to see the
harmonic content of the sinusoidal output. The Fig. 74 show a substantial third
harmonic present at the output. This is largely due to the presence of intentional
dead time during switching of half bridge MOSFETs from on to off to prevent
simultaneous conduction.
To solve the above issue, a higher order lowpass LC filter needs to be added at the
output to supress the third harmonic. Due to time constraint this function wasn’t
97
6. Economic and Project Management Analysis
6.1 Bill of Materials
Cost
MEGA2560 35.00
transformer in
Push-Pull
transformer
inverter
MOSFETs
Diodes rectification
Total 40 $ 126.91
98
In addition to the parts listed in Table 14, there are salvaged and already owned
Cost
Core inductor
(SALVAGED)
and capacitors
wires: stranded
and unstranded
N/A Connector probes Use with scope N/A N/A N/A N/A N/A
Copper Magnet
Wire (From
electrical lab)
(SALVAGED) wave
(PCB) components
measuring
equipment
supplies
99
N/A Soldering N/A N/A N/A N/A N/A N/A
equipment
drivers, purposes
MOSFET's and
diodes
(SALVAGED)
transducer purposes
purposes
With the purchase of this inverter, to estimate whether it was justified or now
requires an projection of profits that it will generate during its period of service.
However, in design projects such as this one, the inverter was built upon
100
7. Conclusion
The goal of this project was to design a high efficiency power inverter. The design
and implementation was very challenging. Due to this, lots of concepts were
The design of the power inverter was done through three stages: boost stage,
inverter stage and load stage. The project met the expectations in most cases.
However, in certain loads the efficiency was not as expected (around 70%). The
inverter manufactured in the project was built at around $127, with components
recycled from inactive electronic devices. The overall efficiency of the inverter was
a 70% (at full load), while it was not the desired output (>82%), it is able to provide
control
boost stage
101
Use better MOSFETs with much lower RDS_ON to reduce conduction losses
at the H-bridge
semiconductor switches
inverter
102
Bibliography
[Accessed: 23-Dec-2016].
Oct-2016].
[Accessed: 4-Mar-2017].
https://acroname.com/blog/description-pulse-width-modulation-blog-post.
[Accessed: 01-Apr-2017].
103
[7] “E-Learning Power Electronics,” E-Learning Power Electronics. [Online].
2017].
[9] J. Honda and J. Cerezo, “Class D Audio Amplifier Design,” Class D Audio,
2017].
converters, applications, and design. New Delhi, India: Wiley India, 2008.
104
[14] “Power MOSFET - Vishay.” [Online]. Available:
Jan-2017].
http://www.infineon.com/cms/en/product/power/gate-driver-ics/level-shift-gate-
drivers/high-and-low-side-
drivers/IR2010/productType.html?productType=5546d462533600a401533d22608a
http://www.alldatasheet.com/datasheet-pdf/pdf/68529/IRF/IRFP460.html.
[Accessed: 1-Feb-2017].
2016].
https://www.fairchildsemi.com/products/power-management/mosfet-igbt-gate-
105
[20] “MIC4421A,” Microchip Technology Inc. [Online]. Available:
2017].
2016].
15-Sep-2016].
[24] “Transformer Cores, E, E65/32/27, N27, 147 mm, 535 mm,” Newark element14.
[Online]. Available:
http://www.newark.com/epcos/b66387g0000x127/transformer-cores-e-e65-32-
Sources and Supplies: World Class Designs (Newnes world class designs series), 1st ed.
Newnes, 2008.
[29] C. Basso, Switch-mode power supplies, 1st ed. New York: McGraw-Hill, 2008.
[30] A. Pressman, K. Billings and T. Morey, Switching power supply design, 1st ed.
[31] N. Mohan, W. Robbins and T. Undeland, Power electronics, 1st ed. Hoboken,
[32] M. Rashid, Power electronics, 1st ed. Boston u.a: Pearson, 2014.
107
Appendix
A.1 PCB for DC-DC converter stage
108
A.2 PCB for Inverter stage
109
A.3 Microcontroller Schematic
110
A.4 DC-DC Circuit Schematic
111
A.5 Inverter Circuit Schematic
112
A.6 Lookup Table MATLAB Code
%% Matlab program written to generate sPWM amplitude values for
%% different switching frequencies
%%
%%
%%
%%
%%
%%
%% Time specifications:
1 clk=16000000; %Arduino Internal Clock
2 swFreq=20000; %Carrier Frequency of PWM
3 Fsig = 60; %Modulating/Output Frequency of PWM
4 samples = (swFreq/Fsig)/2; % samples for one half sine wave
5 StopTime = (1/Fsig)/2; % Stops at 180 degrees
6 dt = StopTime/samples; % seconds per sample
7 t = (dt:dt:StopTime)'; % time for 1st half cycle
8 t2 = (dt+dt:dt:2*StopTime); % time for 2nd half cycle
9 A=clk/swFreq; %ICRn (TOP) Value
10
11 %% Sine wave: Lookup Table Values
12 x = A*sin(2*pi*Fsig*t);
13
14 %Used to insert the zero values into each lookup table for the times
15 %when the MOSFET needs to be OFF
16 ZPadding=zeros(1,samples);
17 y1=transpose(round(x));
18 ypos=horzcat(y1,ZPadding);
19 yneg=horzcat(ZPadding,y1);
20
21 %Used to output the lookup table values to easily copy over
22 % to the Arduino
23 csvwrite('Positive Cycle.txt',ypos);
24 csvwrite('Negative Cycle.txt',yneg);
25 subplot(2,1,1)
26 plot(t2,ypos)
27 xlabel('time (in seconds)');
28 ylabel('OCR Value');
29 title('Positive Signal versus Time');
30 subplot(2,1,2)
31 plot(t2,yneg)
32 xlabel('time (in seconds)');
33 ylabel('OCR Value');
34 title('Negative Signal versus Time');
113
A.7 Microcontroller Code
1 #include <avr/io.h>
2 #include <avr/interrupt.h>
3 #include <LiquidCrystal.h>
4 #include <OneWire.h>
5 #include <DallasTemperature.h>
6 #include <LiquidCrystal.h>
7 int lookUp1[] = {15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165,
179, 194, 209, 223, 238, 252, 266, 280, 294, 308, 322, 336, 350,
363, 377, 390, 403, 416, 429, 441, 454, 466, 478, 490, 502, 514,
525, 537, 548, 559, 569, 580, 590, 600, 610, 620, 629, 638, 647,
656, 664, 673, 681, 689, 696, 703, 711, 717, 724, 730, 736, 742,
747, 753, 758, 762, 767, 771, 775, 778, 782, 785, 788, 790, 792,
794, 796, 797, 798, 799, 800, 800, 800, 800, 799, 798, 797, 795,
794, 792, 789, 787, 784, 781, 777, 774, 770, 765, 761, 756, 751,
746, 740, 734, 728, 722, 715, 708, 701, 694, 686, 678, 670, 662,
653, 644, 635, 626, 616, 607, 597, 587, 576, 566, 555, 544, 533,
521, 510, 498, 486, 474, 462, 450, 437, 424, 412, 399, 385, 372,
359, 345, 332, 318, 304, 290, 276, 262, 247, 233, 218, 204, 189,
175, 160, 145, 130, 115, 100, 85, 70, 55, 40, 25, 10, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0};
8
9 int lookUp2[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 30, 45, 60,
75, 90, 105, 120, 135, 150, 165, 179, 194, 209, 223, 238, 252, 266,
280, 294, 308, 322, 336, 350, 363, 377, 390, 403, 416, 429, 441,
454, 466, 478, 490, 502, 514, 525, 537, 548, 559, 569, 580, 590,
600, 610, 620, 629, 638, 647, 656, 664, 673, 681, 689, 696, 703,
711, 717, 724, 730, 736, 742, 747, 753, 758, 762, 767, 771, 775,
778, 782, 785, 788, 790, 792, 794, 796, 797, 798, 799, 800, 800,
800, 800, 799, 798, 797, 795, 794, 792, 789, 787, 784, 781, 777,
774, 770, 765, 761, 756, 751, 746, 740, 734, 728, 722, 715, 708,
701, 694, 686, 678, 670, 662, 653, 644, 635, 626, 616, 607, 597,
587, 576, 566, 555, 544, 533, 521, 510, 498, 486, 474, 462, 450,
437, 424, 412, 399, 385, 372, 359, 345, 332, 318, 304, 290, 276,
262, 247, 233, 218, 204, 189, 175, 160, 145, 130, 115, 100, 85, 70,
55, 40, 25, 10};
10 //PWM Output Pins
114
11 int spwm1 = 11;
12 int spwm2 = 12;
13 int pin9 = 9;
14 int pin10 = 10;
15
16 //Analog Input Pins
17 int Voltage = 1;
18 int Current = 3;
19 int Bus = 5;
20
21 //Digital Output Pins
22 int relayControl = 21;
23 int Temperature = 24;
24 int OverCurrent = 26;
25 int Error = 30;
26 int flag = 0;
27
28 //LCD Pins
29 LiquidCrystal lcd(8, 2, 4, 5, 6, 7);
30
31 //(rs, enable, d4, d5, d6, d7)
32 // Data wire for the temperature sensor on pin 3
33 #define ONE_WIRE_BUS 24
34
35 //Setup a oneWire instance to communicate with any OneWire devices
36 OneWire oneWire(ONE_WIRE_BUS);
37
38 //Pass our oneWire reference to Dallas Temperature. (Onewire and
39 //dallas temperature libraries had to be downloaded for the DS18b20
40 //temperature sensor)
41 DallasTemperature sensors( & oneWire);
42
43 void setup() {
44 Serial.begin(9600);
45
46 // Register initialization
47 TCCR1A = 0b10100010;
48 TCCR1B = 0b00011001;
49 TIMSK1 = 0b00000001;
50
51 //Input Compare Register, TOP value, Arduino Clock/Desired
52 //Switching frequency
53 ICR1 = 800;
54
55 sei(); // Enable global interrupts.
56
57 pinMode(spwm1, OUTPUT);
58 pinMode(spwm2, OUTPUT);
59 pinMode(pin9, OUTPUT);
60 pinMode(pin10, OUTPUT);
61
62 pinMode(relayControl, OUTPUT);
115
63 pinMode(OverCurrent, OUTPUT);
64 pinMode(Error, OUTPUT);
65
66 //LCD Setup
67
68 while (flag == 0) {
69 lcd.begin(16, 2);
70 sensors.begin(); // starts the temperature sensor reading
71 sensors.requestTemperatures();
72 // Send the command to get temperature readings
73 // set cursor position to start of first line on the LCD
74
75 // read the input on analog pin 1:
76 int voltageSensor = analogRead(Voltage);
77
78 // Convert the analog reading (which goes from 0 - 1023)
79 // to a voltage (0 - 5V):
80 float fivevolt = voltageSensor * (5.0 / 1023.0);
81
82 // Linearly Interpolate [0,5]V to [0,150]V
83 float voltageOutput = 30 * voltageSensor * (5.0 / 1023.0);
84 lcd.setCursor(0, 0);
85 lcd.print("Voltage: ");
86 lcd.print(voltageOutput);
87 lcd.print("V");
88
89 // read the input on analog pin 3:
90 int currentSensor = analogRead(Current);
91
92 // Convert the analog reading (which goes from 0 - 1023)
93 // to a voltage (0 - 5V):
94 float currentOutput = currentSensor * (5.0 / 1023.0);
95
96 lcd.setCursor(0, 1);
97 lcd.print("Current: ");
98 lcd.print(currentOutput);
99 lcd.print("A");
100
101 delay(1000);
102 lcd.clear();
103
104 // read the input on analog pin 5:
105 int busSensor = analogRead(Bus);
106
107 // Convert the analog reading (which goes from 0 - 1023)
108 // to a voltage (0 - 5V):
109 float busVoltage = busSensor * (5.0 / 1023.0);
110 // Linearly Interpolate [0,2.5]V to [0,180]V
111 float busOutput = busVoltage * 72;
112 lcd.setCursor(0, 0);
113 lcd.print("Bus Volt: ");
114 lcd.print(busOutput);
116
115 lcd.print("V");
116
117 if (busOutput >= 180 || busOutput <= 150.0) {
118 digitalWrite(relayControl, HIGH);
119 // If busoutput > 180V then turn on the relay
120 // to shutdown the Inverter
121 digitalWrite(Error, HIGH);
122 flag = 1;
123 }
124 if (currentOutput >= 4) {
125 // If the current is > 4A then pin26 set to HIGH
126 // to the over current protection circuit
127 digitalWrite(OverCurrent, HIGH);
128 digitalWrite(Error, HIGH);
129 flag = 2;
130 }
131
132 // Temperature reading
133 lcd.setCursor(0, 1);
134 lcd.print(" Temp: ");
135 lcd.print(sensors.getTempCByIndex(0));
136 // You can have more than one DS18B20 on the same bus;
137 // 0 refers to the first IC on the wire
138 lcd.print("C");
139
140 delay(1000);
141 lcd.clear();
142
143 float Power = voltageOutput * currentOutput;
144 lcd.print(" Power: ");
145 lcd.print(Power);
146 lcd.print("W");
147 delay(1000);
148 lcd.clear();
149 }
150 if (flag == 1) {
151 lcd.setCursor(0, 0);
152 lcd.print("Error");
153 lcd.setCursor(0, 1);
154 lcd.print("Check Bus O/P");
155 }
156 if (flag == 2) {
157 lcd.setCursor(0, 0);
158 lcd.print("Error");
159 lcd.setCursor(0, 1);
160 lcd.print("Check Current");
161 }
162 }//end of void setup
163
164
165
166
117
167 void loop() {}
168 ISR(TIMER1_OVF_vect) {
169 static int num;
170 OCR1A = lookUp1[num];
180 if (num < 166) {
190 digitalWrite(pin9, LOW);
191 digitalWrite(pin10, HIGH);
192 } else if (num > 166) {
193 digitalWrite(pin9, HIGH);
194 digitalWrite(pin10, LOW);
195 }
196
197 OCR1B = lookUp2[num];
198 if (++num >= 332) {
199 num = 0; // Reset num
200 }
201 }
118
A.8 American Wire Gauge Table
119
Index
core window area, 39
3
cross-conduction, 78
3-level, 66 current density, 43
Current penetration depth, 42
A
current transducer, 81, 101
adjustable feedback resistor, 95
alternate phases, 25 D
120
forward converter, 24 K
freewheeling diode, 24 Kool Mu toroidal core, 46, 48
frequency, 24, 25, 27, 31, 37, 42,
43, 47, 58, 65, 68, 70, 73, 79 L
implementation, 58 N
inductive loads, 92 N-Channel, 32, 76, 78
initial, 50
internal registers, 66 O
121
output signal, 27 S
Overcurrent, 83, 84 saturation, 39, 41, 46
over-voltages, 32 Secondary maximum RMS
current, 35
P
shorted, 64
parallel connection, 55
sine wave, 16, 29, 30, 81
parasitic capacitances, 79
Sinusoidal waveform, 27
Passive, 9, 88
Skin effect, 43, 44
PCB, 37, 58, 108, 109
snubber, 13, 52, 53
peak current values, 38
soft-start circuitry, 31
permeability, 48, 50
SPWM, 25, 29, 68, 74, 80
phase correct, 68
steady-state operation, 21
polarity dot, 62
switching converter, 21
power dissipated, 52
switching losses, 27, 53, 54, 79
power factor, 93
switching period, 33
power inverter, 16, 20
prototype, 74 T
pulsing waveforms, 29 the Input Compare Register
pure sine wave, 16, 28 (ICRn), 68
push-pull topology, 23 Total copper losses, 46
PWM control, 23 total harmonic distortion, 26
transformer, 22, 23, 24, 32, 37, 38,
R
39, 40, 42, 46, 58, 59, 60, 61, 65
RDS (on) resistance, 24
transformer isolated, 22, 23
reactive current, 56
Transformer turns ratio, 34
rectifier diodes, 25
Regulation, 38 U
ripple current, 35 Uninterruptible power supply, 16
unload test, 85
122
V Wire selection, 42, 51
Voltage mode, 32 Z
voltage transducer, 81
zero-crossing level, 25, 26, 29
W
waveform coefficient, 39
123