0% found this document useful (0 votes)
172 views4 pages

PWM Signal - Experiments 3

This document provides instructions for generating a pulse width modulation (PWM) signal using MATLAB. It begins with an introduction to PWM, explaining that it is used to control analog circuits and systems using digital outputs. PWM works by altering the state and frequency of a digital signal to simulate an analog one. It is commonly used in switched mode power supplies. The document then provides the MATLAB code to generate a sawtooth carrier wave, modulating signal, and PWM output wave. It has the reader observe the output plot and fill in a description. Finally, it asks the reader to list uses of PWM, the type of pulse modulation, and draw and label the signal.

Uploaded by

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

PWM Signal - Experiments 3

This document provides instructions for generating a pulse width modulation (PWM) signal using MATLAB. It begins with an introduction to PWM, explaining that it is used to control analog circuits and systems using digital outputs. PWM works by altering the state and frequency of a digital signal to simulate an analog one. It is commonly used in switched mode power supplies. The document then provides the MATLAB code to generate a sawtooth carrier wave, modulating signal, and PWM output wave. It has the reader observe the output plot and fill in a description. Finally, it asks the reader to list uses of PWM, the type of pulse modulation, and draw and label the signal.

Uploaded by

Izlaikha Aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Page |1

POLITEKNIK MERLIMAU
ELECTRICAL ENGINEERING DEPARTMENT
EP301 - COMMUNICATION SYSTEM FUNDAMENTALS
Practical

:3

Title

: Pulse Width Modulation (PWM) Signal.

Objective

: To generate Pulse Width Modulationvwave using MATLAB 2010.

Apparatus

: Matlab 2010, Computer

Theory

PWM or pulse width modulation is a powerful way of controlling analog circuits and system, using the digital outputs of microprocessors. Defining the
team, we can say that PWM is the way we control a digital signal simulating an analog one, by means of altering its state and frequency of this.
PWM also used in voltage regulators such as Switched Mode Power Supplies (SMPS) to control the power delivered to load. PWM can be generated using
a comparator to which the modulating signal and a reference ramp (sawtooth) waveform are fed.
The PWM is actually a square wave modulated. This modulation infects on the frequency (clock cycle) and the duty cycle of the signal. Both of those
parameters will be explained in details in lecturer but keep in mind that a PWM signal is characterized from the duty clock and the duty cycle. The amplitude of the
signal remains stable during time (except of course from the rising and falling ramps). The clock cycle is measured in Hz and the duty cycle is measured in
hundred percent (%). Figure 1 showed the output for PWM wave signal.

Page |2

Figure 1- PWM wave signal


Procedure:
1. Start MATLAB 2010 and type the programming below in the command window:
>> %PWM wave generation
>> clc;clear all;
>> close all;
>> t=0:0.001:1;
>> s=sawtooth (2*pi*10*t+pi);
>> m=0.5*sin (2*pi*1*t);
>> n=length (s);
>> for i=1:n
>> if (m(i)>=s(i))
>> pwm(i)=1;
>> elseif (m(i)<=s(i))
>> pwm(i)=0;

Page |3
>> end
>> end
>> plot(t,pwm, `-k`,t,m,`--r`,t,s,`--b`);
>> title('PWM wave');
>> axis([0 1 -1.5 1.5]);
*** Observe Figure 1 and fill in Box A
2. Complete your observation below:

Box A

3. Question
a. List 3 (THREE) usages for PWM.
b. List the type of pulse modulation.
c.

Draw and label the signal of pulse modulation in question b.

Page |4

You might also like