Experiment 9 Single Phase Inverters
Experiment 9 Single Phase Inverters
Experiment 9 Single Phase Inverters
Experiment 9
Single Phase Inverters
9.0 In-laboratory Experimentation
9.1 Developing a Unipolar and Bipolar PWM strategy for a Single phase H-bridge
a) Using SimPowerSystems toolbox of MATLAB/SIMULINK software, simulate the circuit of a
single phase H-Bridge inverter with Unipolar PWM. Connect the dc-side to a dc voltage source of
Vdc=15V and the ac-side to an RL load with R=10 and L= 3mH. The desired ac voltage has a
fundamental of 60 Hz. Select the triangle wave with a frequency of 2 kHz.
i)
Vary the modulation index from 0.2 to 1 (steps of 0.2) and record the voltage and current
waveforms. Confirm that the amplitude of the fundamental component of the load
voltage has a linear relationship with the modulation index (you can confirm by
measuring the amplitude of load current).
ii)
For a fixed modulation index, e.g., m=0.7, decrease the fundamental frequency from
60Hz to 40Hz and comment on the results.
iii)
For a fixed modulation index, e.g., m=0.7, decrease and increase the switching frequency
and comment on the results. Specifically pay attention to the current ripples.
iv)
In linear modulation region where the modulation index is below one, measure the
switching frequency of the MOSFETs. Increase the modulation index to m=1.2 and
measure the switching frequency of the MOSFETs and provide a comparison.
Fig.1 Circuit of a Single phase H-bridge inverter with Unipolar PWM strategy
b) Using SimPowerSystems toolbox of MATLAB/SIMULINK software, repeat part (a) with bipolar
PWM.
Fig.3 Circuit of a Single phase H-bridge inverter with Bipolar PWM strategy
10
At line 132 or where ever you have the executes on button press in xxxxx comment
% --- Executes on button press in menable.
function menable_Callback(hObject, eventdata, handles)
% hObject
handle to menable (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
global cc;
mtemp = str2num(get(handles.mindex,'string'));
writemsg(cc.rtdx,'module',int32(mtemp));
% --- Executes on button press in ffenable.
function ffenable_Callback(hObject, eventdata, handles)
% hObject
handle to ffenable (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
global cc;
ftemp = str2num(get(handles.frin,'string'));
writemsg(cc.rtdx,'sinefreq',int32(ftemp));
11
global cc;
run(cc);
% --- Executes on button press in Halt.
function Halt_Callback(hObject, eventdata, handles)
% hObject
handle to Halt (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
global cc;
halt(cc);
12
9.3 Implementation
1. Turn on the TI C2000 micro-controller
You must turn on the TI C2000 micro-controller by selecting the USB side of toggle
switch.
13
And then, IDE link links to Code Composer Studio to generate C code. If build is
completed, Code Composer Studio must be linked like below.
After that a window as shown in the below figure appears. Then select the .out file and press open.
14