0% found this document useful (0 votes)
2 views1 page

Phase Control Code

The document is a MATLAB script for simulating a single-phase full-wave phase controller with a resistive load. It calculates the output voltage and current based on a specified delay angle and plots the normalized output. Additionally, it includes commented-out sections for Fourier analysis of the output waveform.

Uploaded by

chochadarshan9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Phase Control Code

The document is a MATLAB script for simulating a single-phase full-wave phase controller with a resistive load. It calculates the output voltage and current based on a specified delay angle and plots the normalized output. Additionally, it includes commented-out sections for Fourier analysis of the output waveform.

Uploaded by

chochadarshan9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1 % Single-phase full-wave phase controller with resistive load

2 % File Name - phase_control.m


3 clc;
4 clear all;
5 td = pi/512; % time step
6 alpha1 = 30 %('Enter the value of delay angle in degree = '); % input
7 alpha = alpha1*pi/180; % angle in radians
8 Em = 230;
9 % input supply voltage
10 R = 2;
11 % load resistance
12 t1 = [0:td:alpha];
13 t2 = [alpha:td:pi];
14 t3 = [pi:td:pi+alpha];
15 t4 = [pi+alpha:td:2*pi];
16 t = [t1 t2 t3 t4];
17 % total time
18 vo = [zeros(size(t1)) (Em*sin(t2)) zeros(size(t3)) (Em*sin(t4))];
19
20 io = vo/R;
21 n = size(vo,2);
22 %Fn = fft(vo/Em);
23 %Fn = 2*abs((Fn/n));
24 %Fn1 = 2*abs(Fn(2)/n);
25 % output
26 % output current
27 % Fourier analysis using DFT
28 % fundamental frequency
29 %f = 1:1:n;
30 plot(t, zeros(size(t)), t,vo/Em, '-', t,io/Em,'--'); % plot the normalized output
voltage and current
31 xlabel ('conduction angle');
32 ylabel ('normalized output voltage (vo) and current (io)' );
33 title ('\alpha');
34 %pause;
35 %stem(f(1:11), Fn(1:11));
36 % plot the first 10 harmonics
37 %xlabel ('harmonics');
38 %ylabel ('normalized amplitude');

You might also like