SlideShare une entreprise Scribd logo
1  sur  6
EEP306
Experiment
Pulse Width Modulation
Submitted by:
Vivek Mangal (2010EE50566)
Indra Bhushan (2010EE50548)
Umang Gupta (2010EE50564)
Introduction:
Pulse width Modulation uses a rectangular pulse wave whose width is modulated resulting in the
variation of the average value of the waveform.
The main advantage of PWM is that power loss in the switching devices is very low. When a switch is
off there is practically no current, and when it is on, there is almost no voltage drop across the
switch. Power loss, being the product of voltage and current, is thus in both cases close to zero.
PWM also works well with digital controls, which, because of their on/off nature, can easily set the
needed duty cycle. PWM has also been used in certain communication systems where its duty cycle
has been used to convey information over a communications channel.
Pulse Position Modulation: The amplitude and width of the pulse generated remains constant,
however the position of pulse appearing in the generated PPM depends on the input. It is often
implemented differentially as differential pulse-position modulation, where each pulse position is
encoded relative to the previous; the receiver only measures the difference in the arrival time of
successive pulses. It has higher noise immunity since all the receiver needs to do is detect the
presence of a pulse at the correct time; the duration and amplitude of the pulse are not important.
Expected PWM outputs can be generated through matlab.
Message signal :
Matlab Code for PWM:
%%pwm code
close all
clear all
clc
%%initialisation
f=200;
t=0:0.000025:0.005*2;
fclk=2000;
fs=1/0.000025
fcut=1500;
m=1+0.75*sin(2*pi*f.*t);
saw=1+sawtooth(2*pi*fclk.*t)
o=zeros(1,length(m));
for i=1:length(m)
if m(i)>saw(i)
o(i)=1;
end
end
[b,a]=butter(10,fcut/fs);
mf=filter(b,a,o);
num=b
den=a
bode(tf(num,den))
figure
plot(t,mf,t,m)
title('demodulation, and the original signal')
xlabel('time'); ylabel('amplitude')
figure
plot(t,o)
title('PWM signal')
xlabel('time'); ylabel('amplitude')
figure
plot(t,o,'r',t,m,'black',t,saw,'blue')
title('all signals')
xlabel('time'); ylabel('amplitude')
figure
plot(t,m)
title('msg signal')
xlabel('time'); ylabel('amplitude')
PWM signal expected for the given message signal.
The Saw-tooth signal (input in comparator) together with message signal and PWM generated :
Demodulated signal plotted against the message signal :
Observation :
Pulse Width Modulation
Input wave shown with its pulse width modulated wave.
1-> Input wave
2 -> Pulse width modulated wave
3 -> Pulse width demodulated wave, observed inverted and lagging in phase with the input wave.
Pulse Position Modulation
Input wave shown with its pulse position modulated wave.
1-> Input wave
2 -> Pulse position modulated wave
3 -> Pulse position demodulated wave, observed lagging in phase with the input wave.
Inference :
 The expected output according to matlab is observed experimentally.
 We observe that in PWM, the pulses near the edges of the half cycle are always narrower
than the pulses near the center of the half cycle such that the pulse widths are proportional
to the corresponding amplitude of a sine wave at that portion of the cycle.
 The message input m(t) can be recovered for the PPM signal by passing it through a LPF .

Contenu connexe

Tendances

Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulation
Naveen Sihag
 
Angle modulation
Angle modulationAngle modulation
Angle modulation
Umang Gupta
 
Power delay profile,delay spread and doppler spread
Power delay profile,delay spread and doppler spreadPower delay profile,delay spread and doppler spread
Power delay profile,delay spread and doppler spread
Manish Srivastava
 

Tendances (20)

Radio transmitters
Radio transmittersRadio transmitters
Radio transmitters
 
QUADRATURE AMPLITUDE MODULATION
QUADRATURE AMPLITUDE MODULATIONQUADRATURE AMPLITUDE MODULATION
QUADRATURE AMPLITUDE MODULATION
 
Pcm
PcmPcm
Pcm
 
Frequency modulation
Frequency modulationFrequency modulation
Frequency modulation
 
OFDM for LTE
OFDM for LTEOFDM for LTE
OFDM for LTE
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulation
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation ppt
 
Analog modulation
Analog modulationAnalog modulation
Analog modulation
 
Chapter 5 fm receivers
Chapter 5  fm receiversChapter 5  fm receivers
Chapter 5 fm receivers
 
Antenna presentation PPT
Antenna presentation PPTAntenna presentation PPT
Antenna presentation PPT
 
Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...
 
FM demodulation using PLL
FM demodulation using PLLFM demodulation using PLL
FM demodulation using PLL
 
Amplitude modulation & demodulation
Amplitude modulation & demodulation Amplitude modulation & demodulation
Amplitude modulation & demodulation
 
Angle modulation
Angle modulationAngle modulation
Angle modulation
 
E1 LINK IS EUROPEAN FORMAT
E1 LINK IS EUROPEAN FORMAT E1 LINK IS EUROPEAN FORMAT
E1 LINK IS EUROPEAN FORMAT
 
Antennas and their types
Antennas and their typesAntennas and their types
Antennas and their types
 
Delta Modulation
Delta ModulationDelta Modulation
Delta Modulation
 
Wavelength division multiplexing
Wavelength division multiplexingWavelength division multiplexing
Wavelength division multiplexing
 
Power delay profile,delay spread and doppler spread
Power delay profile,delay spread and doppler spreadPower delay profile,delay spread and doppler spread
Power delay profile,delay spread and doppler spread
 
Frequency Modulation and Demodulation
Frequency  Modulation and DemodulationFrequency  Modulation and Demodulation
Frequency Modulation and Demodulation
 

En vedette

Ac matlab programs
Ac matlab programsAc matlab programs
Ac matlab programs
Ravi Teja
 

En vedette (20)

PULSE WIDTH MODULATION &DEMODULATION
PULSE WIDTH MODULATION &DEMODULATIONPULSE WIDTH MODULATION &DEMODULATION
PULSE WIDTH MODULATION &DEMODULATION
 
PWM
PWMPWM
PWM
 
Pulse width-modulation
Pulse width-modulationPulse width-modulation
Pulse width-modulation
 
pwm inverter
pwm inverterpwm inverter
pwm inverter
 
Aula 4 conversor ad e pwm
Aula 4   conversor ad e pwmAula 4   conversor ad e pwm
Aula 4 conversor ad e pwm
 
Ac matlab programs
Ac matlab programsAc matlab programs
Ac matlab programs
 
EEP301: Ca06 sample
EEP301: Ca06 sampleEEP301: Ca06 sample
EEP301: Ca06 sample
 
EEL316: BER Manual
EEL316: BER ManualEEL316: BER Manual
EEL316: BER Manual
 
EEP303: Cycle ii exp 4
EEP303: Cycle ii   exp 4EEP303: Cycle ii   exp 4
EEP303: Cycle ii exp 4
 
EEP303: Experiment 2c
EEP303: Experiment 2cEEP303: Experiment 2c
EEP303: Experiment 2c
 
EEP301: Dc modular servo motor
EEP301: Dc modular servo motorEEP301: Dc modular servo motor
EEP301: Dc modular servo motor
 
EEP303: Cycle ii exp 2
EEP303: Cycle ii   exp 2EEP303: Cycle ii   exp 2
EEP303: Cycle ii exp 2
 
EEP303: Exp 2
EEP303: Exp 2EEP303: Exp 2
EEP303: Exp 2
 
EEL316: Noise generation histogram
EEL316: Noise generation histogramEEL316: Noise generation histogram
EEL316: Noise generation histogram
 
EEP303: Exp5
EEP303: Exp5EEP303: Exp5
EEP303: Exp5
 
EEP301: linear system simulator
EEP301: linear system simulatorEEP301: linear system simulator
EEP301: linear system simulator
 
EEP301: Process control trainer II
EEP301: Process control trainer IIEEP301: Process control trainer II
EEP301: Process control trainer II
 
EEL316: PAM TDM
EEL316: PAM TDMEEL316: PAM TDM
EEL316: PAM TDM
 
EEP301: linear system simulator
EEP301: linear system simulatorEEP301: linear system simulator
EEP301: linear system simulator
 
EEP303 Cycle ii exp-1
EEP303 Cycle ii exp-1EEP303 Cycle ii exp-1
EEP303 Cycle ii exp-1
 

Similaire à EEP306: pulse width modulation

Ec8395 ce by www.learn engineering.in
Ec8395 ce by www.learn engineering.inEc8395 ce by www.learn engineering.in
Ec8395 ce by www.learn engineering.in
Karpoora Sundari
 

Similaire à EEP306: pulse width modulation (20)

Analog Communication Lab Manual
Analog Communication Lab ManualAnalog Communication Lab Manual
Analog Communication Lab Manual
 
Analog Communication Engineering Lab Manual
Analog Communication Engineering Lab ManualAnalog Communication Engineering Lab Manual
Analog Communication Engineering Lab Manual
 
Software PLL for PLI synchronization, design, modeling and simulation , sozopol
Software PLL for PLI synchronization, design, modeling and simulation , sozopolSoftware PLL for PLI synchronization, design, modeling and simulation , sozopol
Software PLL for PLI synchronization, design, modeling and simulation , sozopol
 
EEP306: Quadrature amplitude modulation
EEP306: Quadrature amplitude modulation EEP306: Quadrature amplitude modulation
EEP306: Quadrature amplitude modulation
 
Pulse Modulation.pptx
Pulse Modulation.pptxPulse Modulation.pptx
Pulse Modulation.pptx
 
Pwm ppm no1
Pwm ppm no1Pwm ppm no1
Pwm ppm no1
 
Dc lab Manual
Dc lab ManualDc lab Manual
Dc lab Manual
 
Efitra1006
Efitra1006Efitra1006
Efitra1006
 
A pwm modulator
A pwm modulatorA pwm modulator
A pwm modulator
 
Lab 4 c
Lab 4 cLab 4 c
Lab 4 c
 
LED電源回路アプリケーションガイド 金沢プレゼン資料
LED電源回路アプリケーションガイド 金沢プレゼン資料LED電源回路アプリケーションガイド 金沢プレゼン資料
LED電源回路アプリケーションガイド 金沢プレゼン資料
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulation
 
Design and Implementation of Low Ripple Low Power Digital Phase-Locked Loop
Design and Implementation of Low Ripple Low Power Digital Phase-Locked LoopDesign and Implementation of Low Ripple Low Power Digital Phase-Locked Loop
Design and Implementation of Low Ripple Low Power Digital Phase-Locked Loop
 
Ec8395 ce by www.learn engineering.in
Ec8395 ce by www.learn engineering.inEc8395 ce by www.learn engineering.in
Ec8395 ce by www.learn engineering.in
 
Speed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM TechniqueSpeed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM Technique
 
A Low Power Digital Phase Locked Loop With ROM-Free Numerically Controlled Os...
A Low Power Digital Phase Locked Loop With ROM-Free Numerically Controlled Os...A Low Power Digital Phase Locked Loop With ROM-Free Numerically Controlled Os...
A Low Power Digital Phase Locked Loop With ROM-Free Numerically Controlled Os...
 
pulse width modulated inverter techniques
pulse width modulated inverter techniquespulse width modulated inverter techniques
pulse width modulated inverter techniques
 
Close Loop V/F Control of Voltage Source Inverter using Sinusoidal PWM, Third...
Close Loop V/F Control of Voltage Source Inverter using Sinusoidal PWM, Third...Close Loop V/F Control of Voltage Source Inverter using Sinusoidal PWM, Third...
Close Loop V/F Control of Voltage Source Inverter using Sinusoidal PWM, Third...
 
Speed control of DC motor using pulse width modulation technique
Speed control of DC motor using pulse width modulation technique Speed control of DC motor using pulse width modulation technique
Speed control of DC motor using pulse width modulation technique
 
Generating PM wave
Generating PM wave Generating PM wave
Generating PM wave
 

Plus de Umang Gupta

Plus de Umang Gupta (17)

EEP303: Exp1
EEP303: Exp1EEP303: Exp1
EEP303: Exp1
 
EEP303: Exp4
EEP303: Exp4EEP303: Exp4
EEP303: Exp4
 
EEP303: Fault studies
EEP303: Fault studiesEEP303: Fault studies
EEP303: Fault studies
 
EEP303: Ex 5
EEP303: Ex 5EEP303: Ex 5
EEP303: Ex 5
 
EEL316: CDMA with DSSS
EEL316: CDMA with DSSSEEL316: CDMA with DSSS
EEL316: CDMA with DSSS
 
EEL316: FSK
EEL316: FSKEEL316: FSK
EEL316: FSK
 
EEL316: ASK
EEL316: ASKEEL316: ASK
EEL316: ASK
 
EEL316: Dpsk - BER & carrier acquisition
EEL316: Dpsk - BER & carrier acquisitionEEL316: Dpsk - BER & carrier acquisition
EEL316: Dpsk - BER & carrier acquisition
 
EEL316: Pseudo Random Bit Generation
EEL316: Pseudo Random Bit GenerationEEL316: Pseudo Random Bit Generation
EEL316: Pseudo Random Bit Generation
 
EEP306: Phase locked loop
EEP306: Phase locked loopEEP306: Phase locked loop
EEP306: Phase locked loop
 
EEP306: Line coding
EEP306: Line codingEEP306: Line coding
EEP306: Line coding
 
EEP306: Frequency modulation
EEP306: Frequency modulationEEP306: Frequency modulation
EEP306: Frequency modulation
 
EEP306: Binary phase shift keying
EEP306: Binary phase shift keyingEEP306: Binary phase shift keying
EEP306: Binary phase shift keying
 
EEP306: Bit error rate
EEP306: Bit error rateEEP306: Bit error rate
EEP306: Bit error rate
 
EEP306: Amplitude modulation
EEP306: Amplitude modulationEEP306: Amplitude modulation
EEP306: Amplitude modulation
 
EEP301: Exp5
EEP301: Exp5EEP301: Exp5
EEP301: Exp5
 
EEP301: Ac position control
EEP301: Ac position controlEEP301: Ac position control
EEP301: Ac position control
 

Dernier

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 

Dernier (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

EEP306: pulse width modulation

  • 1. EEP306 Experiment Pulse Width Modulation Submitted by: Vivek Mangal (2010EE50566) Indra Bhushan (2010EE50548) Umang Gupta (2010EE50564)
  • 2. Introduction: Pulse width Modulation uses a rectangular pulse wave whose width is modulated resulting in the variation of the average value of the waveform. The main advantage of PWM is that power loss in the switching devices is very low. When a switch is off there is practically no current, and when it is on, there is almost no voltage drop across the switch. Power loss, being the product of voltage and current, is thus in both cases close to zero. PWM also works well with digital controls, which, because of their on/off nature, can easily set the needed duty cycle. PWM has also been used in certain communication systems where its duty cycle has been used to convey information over a communications channel. Pulse Position Modulation: The amplitude and width of the pulse generated remains constant, however the position of pulse appearing in the generated PPM depends on the input. It is often implemented differentially as differential pulse-position modulation, where each pulse position is encoded relative to the previous; the receiver only measures the difference in the arrival time of successive pulses. It has higher noise immunity since all the receiver needs to do is detect the presence of a pulse at the correct time; the duration and amplitude of the pulse are not important. Expected PWM outputs can be generated through matlab. Message signal :
  • 3. Matlab Code for PWM: %%pwm code close all clear all clc %%initialisation f=200; t=0:0.000025:0.005*2; fclk=2000; fs=1/0.000025 fcut=1500; m=1+0.75*sin(2*pi*f.*t); saw=1+sawtooth(2*pi*fclk.*t) o=zeros(1,length(m)); for i=1:length(m) if m(i)>saw(i) o(i)=1; end end [b,a]=butter(10,fcut/fs); mf=filter(b,a,o); num=b den=a bode(tf(num,den)) figure plot(t,mf,t,m) title('demodulation, and the original signal') xlabel('time'); ylabel('amplitude') figure plot(t,o) title('PWM signal') xlabel('time'); ylabel('amplitude') figure plot(t,o,'r',t,m,'black',t,saw,'blue') title('all signals') xlabel('time'); ylabel('amplitude') figure plot(t,m) title('msg signal') xlabel('time'); ylabel('amplitude')
  • 4. PWM signal expected for the given message signal. The Saw-tooth signal (input in comparator) together with message signal and PWM generated : Demodulated signal plotted against the message signal :
  • 5. Observation : Pulse Width Modulation Input wave shown with its pulse width modulated wave. 1-> Input wave 2 -> Pulse width modulated wave 3 -> Pulse width demodulated wave, observed inverted and lagging in phase with the input wave.
  • 6. Pulse Position Modulation Input wave shown with its pulse position modulated wave. 1-> Input wave 2 -> Pulse position modulated wave 3 -> Pulse position demodulated wave, observed lagging in phase with the input wave. Inference :  The expected output according to matlab is observed experimentally.  We observe that in PWM, the pulses near the edges of the half cycle are always narrower than the pulses near the center of the half cycle such that the pulse widths are proportional to the corresponding amplitude of a sine wave at that portion of the cycle.  The message input m(t) can be recovered for the PPM signal by passing it through a LPF .