FLEXIBLE INVERTER
DESIGN, TESTING, AND SIMULATION
Abstract:
Research and experimentation work carried out on flexible inverter is presented in the following report
which is briefly divided into two part, flexible inverter testing and simulation. An inverter was constructed
and tested for various modes namely PWM pulse test, three-phase sine wave generator, and BLDC motor
control. A simulation of the system was done on Matlab/Simulink and the results were included and
discussed. Finally, a detailed flowchart of the system working, covering both software and hardware, is also
included in the report.
i
FIGURES
Figure 1.1 MOSFET ............................................................................................................................ 1
Figure 1.2 Three phase inverter ......................................................................................................... 1
Figure 1.3 BLDC motor connected to an inverter ............................................................................... 1
Figure 2.1 PWM with marked gate on voltage, time on and off, dead time ........................................ 2
Figure 2.2 Sinusoidal current plotted on excel ................................................................................... 3
Figure 2.3 Frequency range of the inverter (Max-left : Min-right) ...................................................... 3
Figure 2.4 PWM Voltage and Frequency ............................................................................................ 3
Figure 2.5 DC Motor operational speed range (Max-Left : Min-Right) ................................................ 4
Figure 2.6 Phase A voltage and Duty cycle at 2000RPM ..................................................................... 4
Figure 2.7 Duty cycle at maximum speed ........................................................................................... 4
Figure 3.1 Output Current Waveform for Standard DC Model ............................................................ 6
Figure 3.2 Output Current Waveform for different duty cycles .......................................................... 7
Figure 3.3 Output Current Waveform for different carrier frequencies .............................................. 7
Figure 3.4 Output Current Waveform for different inductances ......................................................... 8
Figure 3.5 Output Current Waveform for Standard AC Model ............................................................ 8
Figure 3.6 Output Current Waveform for different reference signal frequency .................................. 9
Figure 3.7 Output Current Waveform for different carrier frequencies .............................................. 9
Figure 3.8 Output Current Waveform for different inductances ....................................................... 10
TABLES
Table 1-1 Test 1 PWM Pulse Test Results ........................................................................................... 2
Table 1-2 Hall Sensor Sequence ......................................................................................................... 5
Table 2-1 Specifications of standard model ........................................................................................ 5
Table 2-2 Steady state current (D=0.5)............................................................................................... 6
ii
1 INTRODUCTION
An inverter is a power electronics device that converts DC (Direct Current) to AC (Alternating Current).
The input of an inverter relies on a DC source which is then converter into a square wave, modified
sine wave, pulsed sine wave, or sine wave depending on the circuit design. The power electronics
components used in an inverter can be either IGBT or MOSFET, which requires a control signal to
switch on and off. This control signal is supplied with the help of a gate driver and a controller.
For constructing our inverter device, MOSFETs are used. MOSFETs are the
workhorse in power electronics at low power. They are switched on and off by
applying the gate (Figure 1.1) with sufficient charge. A PIC (Programmable Interrupt
Controller) is used to control the MOSFETs which works on the principle of Pulse
Width Modulation (PWM). PWM is the process of modifying the width of the pulses
in a pulse drain in direct proportion to a control signal. A comparator is used which
Figure 1.1 MOSFET
compares the carrier wave with the control signal (reference) and the results of this
is used to control the MOSFETs. The PIC chip produces the control signal which is a constant and a sine
wave resulting in a variable DC output and AC output respectively.
1
2 EXPERIMENTATION
Figure 2.1 PWM with marked gate on voltage, time on and off, dead time
Methodology used for obtaining the results is summarized below. (All the points mentioned refer to
figure above)
1. Gate On voltage for all pairs obtained by measuring the amplitude of each PWM wave. (Point
A)
2. Time on (point B) and time off (point C) obtained by using cursors.
3. PWM frequency and duty cycle acquired by using the “meas” option on the oscilloscope.
4. Dead time obtained by using cursors (Point E).
Using the methodology above, the results for all MOSFET pairs were obtained and are tabulated below.
Table 2-1 Test 1 PWM Pulse Test Results1
Terminal J1 J2 J3 J4 J5 J6
Gate on voltage 4.9V 4.8V 4.9V 4.8V 4.9V 4.8V
Ton 12 μs 86 μs 44.2 μs 53.8 μs 24.4 μs 73.8 μs
Toff 87.2 μs 12.94 μs 55.2 μs 45 μs 74.8 μs 25.2 μs
PWM frequency 10.092 kHz 10.095 kHz 10.095 kHz 10.095 kHz 10.095 kHz 10.095 kHz
PWM duty cycle 12.22% 82.96% 44.72% 54.44% 24.74% 74.45%
Dead time 408 ns
The results show that this experiment was conducted successfully as three pairs of PWM pluses were
produced with fixed duty cycle. Moreover, the presence of a dead time show that gate driver is
working properly and therefore safety against short circuit is ensured.
1
All the results obtained from the oscilloscope are placed in the appendix for reference
2
2.2 TEST 2 – THREE PHASE SINE-WAVE GENERATOR
During this test, the inverter was operated to produce a 3-phase variable frequency current which was
then supplied to a star connected 3 phase load. The potentiometer was used to change the frequency
of the sinusoidal current. The connected load had a resistance of 47Ω and an inductance of 3.3mH per
phase. Using the data obtained from the oscilloscope and analyzing it on excel, the voltage drop across
the resistor was calculated. As the resistance is known, ohms law was used to calculate the current
across it.
Current Waveform
0.15
0.1
Current (Amps)
0.05
0
0 0.05 0.1 0.15 0.2 0.25
-0.05
-0.1
-0.15
Time (Seconds)
As can be seen from Figure 2.2, the current follows a sinusoidal wave pattern, an AC output, which
indicates that the inverter is working as desired. From Figure 2.2, following can be deduced
𝑃𝐾 𝑖
Peak Current(iPK)=0.124 A RMS Current(iRMS)= √2 = 0.0878A Power Dissipated(P)=iRMS2R=0.362W
Subsequent to testing the inverter three phase sinusoidal generation, it was required to find the
frequency range of the inverter. It was found by varying the potentiometer. Setting the potentiometer
at minimum gave the maximum frequency and vice versa.
The frequency range of the inverter lies between: 1.6703Hz < Frequency < 19.59Hz. Following this, the
PWM voltage and frequency was obtained using the oscilloscope.
The figure above shows that the frequency of the PWM voltage = 10.13 kHz, which is same as the
triangular carrier wave frequency set by the PIC chip. Moreover, the amplitude of the PWM is 24V
which matches with the voltage input from the DC supply. Obtaining correct results for this test show
that the inverter is successfully producing a variable sinusoidal output.
3
2.3 TEST 3 – BRUSHLESS DC MOTOR CONTROL
The inverter is designed to control a brushless DC motor. To ensure that it can perform this function
correctly, another test was conducted. A 3 phase 8 pole Brushless DC motor was connected to the
inverter as a load and a DC input was supplied. This resulted in the rotation of the DC motor which
showed that the inverter was working as desired. Moreover, the potentiometer controls the duty cycle
of the PWM, therefore varying it altered the average voltage and current supplied to the motor which
in turn controlled the speed of the motor. The motor rotational speed was calculated using one of the
Hall sensor signals, taking into account that this is an 8-pole motor. To find the motor operational
speed range of the inverter, the potentiometer was kept at its extremes and the output frequency
achieved was recorded using oscilloscope, as shown below
It was then required to rotate the motor at 2000RPM and acquire the phase A voltage and duty
cycle.
4
Using the oscilloscope, traces of H1 and H2 and then H1 and H3 were exported to Microsoft® excel
and then processed to obtain the 3-bit hall sequence.
Table 2-2 Hall Sensor Sequence
H1 H2 H3 Angle
1 0 0 0o
1 1 0 600
0 1 0 1200
0 1 1 1800
0 0 1 2400
1 0 1 3000
1 0 0 3600 = 00
From the obtained hall sensor sequence, it is clear that the sensors are working correctly as the hall
they switch on and off in the correct sequence. H2 switches on after H1 and H3 switches on after H2
and this sequence repeats itself over and over again. Obtaining desired results from this test show
that the inverter is able to run and control the bladeless DC motor. The signal from the hall sensor is
able to control the power electronic devices which in turn switches on and off appropriately to result
in a positive torque. As the potentiometer controls the average current supplied to the motor, it
therefore acts as a torque controller as torque is proportional to the current.
3 SIMULATION
A model of the inverter was simulated2 for a variable DC and variable AC supply connected to a first-
order load (RL load). Different parameters of the model were changed in order to analyze their effect
on the output. A standard model, with the specifications shown in Table 3-1, was created and only
one parameter was varied against others at a time, so to see the effect of each parameter on the
output.
Table 3-1 Specifications of standard model
2
Simulation was done on Matlab/Simulink
5
3.1 VARIABLE DC SUPPLY
Using the standard specifications, as mentioned in Table 3-1, following current waveform was
obtained
By setting the reference signal to 0.5, a duty cycle of 50% is achieved. From Figure 3.1, it is clear that
the current is constantly varying, however its average value increases from zero to a constant value of
0.2553 A. The relational operator (comparator) constantly compares the carrier wave (triangular
wave) with the constant. With the reference signal set to 0.5, the comparator gives an output signal
of 1 when “∆-wave < 0.5” and a zero otherwise. An output signal of 1 means that 24 volts are supplied
and zero means no voltage is supplied to the load, causing the load current to rise and fall. The
presence of an inductor does not allow rapid change in current, as a result the current rises and falls
gradually which can be seen from the triangular nature of the waveform above.
The average value of current obtained using simulation equals 0.2553A (as shown in Figure 3.1). It can
be further verified mathematically as shown below:
Table 3-2 Steady state current (D=0.5)
Some applications require higher values of current and some require lower variations above average.
In order to meet the requirements, certain parameters of the system are varied. To see the effect of
each parameter on the output, following simulations were done.
6
3.1.1 Effect of Varying Reference Signal Value on the Output Current
Changing the value of reference signal changes the duty cycle of the PWM, as a result the average
voltage and current changes. This can be verified from the results obtained using the simulation.
From Figure 3.2, it is clear that increasing the duty cycle increases the output current. It is so because
the average voltage supplied to the load increases as the duty cycle increases and so does the average
current. At 100% duty cycle, the comparator only produces an output signal of 1 because ∆-wave < 1.
As a result, voltage supplied is in form of a step input instead of a PWM. This results in a smooth rise
in the current output with no ripples, as can be seen from Figure 3.2. Therefore, to increase the current
in the RL circuit, the duty cycle (reference signal) can be increased.
3.1.2 Effect of Varying Triangle Carrier Wave Frequency on the Output Current
A further analysis was carried out to see the effect of varying the carrier frequency. For this purpose,
the carrier frequency was first increased from 20 kHz to 40 kHz and then decreased to 10 kHz.
From the figure above, it can be seen that at higher carrier frequency the variation above average is
significantly lesser than at lower carrier frequency. It is so because, at higher frequency the voltage
1
(PWM) is switching faster as the time period has decreased (T = ). This implies that the rising and
𝑓
falling time for current has decreased and therefore the max and min current ripple has reduced
respectively. This is opposite at lower frequency and therefore variation above average has increased
when the carrier wave frequency is set at 10 kHz. Moreover, it is clear that varying the carrier wave
frequency does not affect the steady state current and the time constant.
7
3.1.3 Effect of Varying Load Inductance on the Output Current
To visualize the effect of varying the load inductance on the output current, its value was first
increased from 3.3mH to 33.3mH and then decreased to 0.33mH.
When the load inductance is larger i.e. 33.3mH, the current not only takes longer to reach a steady
state value but also has significantly less variation above average. This is opposite when a lower
inductance value is used. It is so because, time constant is directly proportional to the inductance (τ
𝐿
= ), when a larger inductance is used the time constant increases and the current takes longer to
𝑅
𝑑𝑖𝑙 𝑉𝑙
reach its steady state value. Moreover, as = the variation above average or the ripple
𝑑𝑡 𝐿
current decreases when a larger inductance value is used. Furthermore, it is clear from Figure
3.4 that the value of inductance has no effect on the steady state current.
Keeping the standard values for variable AC supply, shown in Table 3-1, the figure above was obtained.
The PWM voltage supply has the highest duty cycle when the sine wave is maximum (positive
amplitude) which then increases till the sine wave reaches its negative amplitude. The average value
of the output current remains same as earlier i.e. 0.2553A.
8
3.2.1 Effect of Varying Reference (Sine Wave) Frequency on the Output Current
Figure 3.6 Output Current Waveform for different reference signal frequency
From figure above it can be seen that changing the sine wave frequency (reference signal) changes
the current output frequency, however the switching frequency remains unchanged. It is so because,
when the sine wave frequency is increased (100Hz), the fundamental frequency of the output
𝑓𝑠
increases and therefore, the frequency modulation factor decreases, as 𝑚𝑓 = 𝑓1
. Therefore, the
fundamental frequency depends on the sine wave frequency and the switching frequency depends on
the carrier frequency. Hence setting the sine wave (reference) at desired frequency will result the first
harmonic at the same frequency. However, it should be noted that the sine wave frequency does not
affect the average output current and the variation above average (ripple current).
3.2.2 Effect of Varying Triangle Carrier Wave Frequency on the Output Current
It can be observed from Figure 3.7 that increasing the triangular carrier wave frequency results in a
smoother sine wave output current. This effect is the same as for variable DC supply, as discussed
earlier.
9
3.2.3 Effect of Varying the Load Inductance Wave Frequency on the Output Current
The figure above shows that increasing the load inductance results in less variation above average and
also slower time response i.e. current takes longer to complete its sine wave cycle. Both of these
effects are same as for the variable DC supply as discussed earlier.
4 CONCLUSION
The inverter designed is able to produce a PWM with fixed duty cycle, a variable AC output, and control
a BLDC motor, therefore acting as a flexible inverter. The experiment results clearly indicate that PIC,
gate driver, and MOSFETs are working as desired in addition to all other passive and active
components used. Moreover, results from the simulation matches with the experiment, e.g. using the
potentiometer to vary the duty cycle gave similar effect in comparison to when done in simulation. A
conclusion as follows can be drawn from the simulation results.
1. Output current/power is directly proportional to the duty cycle i.e. reference signal value.
2. Ripple or variation above average is inversely proportional to the carrier wave frequency.
3. Ripple or variation above average is inversely proportional to the load inductance.
Therefore, for a higher output increase the duty cycle; for a smoother output (less variation) either
increase the carrier wave frequency or increase the load inductance value. It should be noted that
only an inductive load has been used through the experiment and the simulation, therefore to verify
the above conclusions under different load conditions (e.g. Capacitive load), further experimentation
should be carried out. Finally, it can be concluded that all the objectives of this project were fulfilled.
10
5 APPENDIX
Start
Various
Variable DC Output Mode operating BLDC Control Mode
modes
Variable AC Output Mode Supply
To
Hall Sequence Motor
Constant Reference Sinusoidal obtained from the
Signal Reference Signal motor
End
11
5.2 TASK 6 – SOFTWARE BASED FLOWCHART
Start
If angle
equals
0 degrees 60 degrees 120 degrees 180 degrees 240 degrees 300 degrees
Phase A–Positive Phase A–Positive Phase A–Zero Phase A–Negative Phase A–Negative Phase A–Zero
Phase B–Negative Phase B–Zero Phase B–Positive Phase B–Positive Phase B–Zero Phase B–Negative
Phase C-Zero Phase C-Negative Phase C-Negative Phase C–Zero Phase C-Positive Phase C-Positive
Current
Yes Angle=0 No
degrees?
Motor is Motor is
Motor is Motor is Current
Previous rotating rotating
rotating Yes No rotating Yes Angle>Previous No
angle=300? anti- anti-
clockwise clockwise angle?
clockwise clockwise
Maintain average
RPM
Power Supply
on?
No
End
12
5.3 ADDITIONAL RESULTS
5.3.1 Test 1
J1 and J2
Frequency, duty cycle, and gate on voltage
13
J3 and J4
Frequency, duty cycle, and gate on voltage
14
J5 and J6
Frequency and duty cycle
15
6 REFERENCES
Electric Drives - Brushless DC and Reluctance Motors - Description and Applications. 2015 [ONLINE]
Available at: http://www.mpoweruk.com/motorsbrushless.htm. [Accessed 02 January 2015].
Mpoweruk.com, (2015). Electric Drives - Brushless DC and Reluctance Motors - Description and
Applications. [online] Available at: http://www.mpoweruk.com/motorsbrushless.htm [Accessed 2 Jan.
2015].
Ecmweb.com, (2012). Effects of Harmonics on Power Systems | Power Quality content from Electrical
Construction & Maintenance (EC&M) Magazine. [online] Available at: http://ecmweb.com/power-
quality/effects-harmonics-power-systems [Accessed 30 Dec. 2014].
16