0% found this document useful (0 votes)
6 views15 pages

BCE Exp 5

Nothing

Uploaded by

1968kamrul
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)
6 views15 pages

BCE Exp 5

Nothing

Uploaded by

1968kamrul
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/ 15

Experiment on Double Sideband Suppressed

Carrier (DSB-SC) Modulation and Demodulation using MATLAB


Simulator

In this experiment the students will be able to:


 Understand about working principle of a DSB-SC Modulation and
Demodulation
 Analyze the output waveforms of DSB-SC Modulation

and Demodulation MATLAB 2020a

DSB-SC is an amplitude modulated wave transmission scheme in


which only sidebands are transmitted and the carrier is not transmitted as
it gets suppressed. DSB-SC is an acronym for Double Sideband Suppressed
Carrier. The carrier does not contain any information and its transmission
results in loss of power. Thus, only sidebands are transmitted that
contains information. This results in saving of power used in transmission.

This saved power can be inserted into the 2 sidebands. Hence,


ensuring a stronger signal that transmits over long distances. As
during suppression, the baseband signal does not get affected in
any way. As we know that transmission power and bandwidth are
the two important parameters in a communication system. Thus, in
order to save power and bandwidth, DSB-SC modulation technique
is adopted.

clc
clear
all
close
all
fm = 20; % Modulating (audio) signal
frequency in Hz t = 0:0.0001:0.10; % Time
vector
m = sin(2*pi*fm*t); % Generate the
modulating (audio) signal fc = 1000; % Carrier
signal frequency in Hz
c = sin(2*pi*fc*t); % Generate the carrier signal
% Plot the Carrier Signal
subplot(2,2,2); % Prepare subplot for the
carrier signal plot(t, c); % Plot the carrier
signal
grid on;
title('Carrier Signal');
xlabel('Time');
ylabel('Amplitu
de');
% Generate and Plot the Modulated Signal (DSB-AM)
v = m .* c; % DSB-AM modulation (product of carrier and
modulating signal) subplot(2,2,3); % Prepare subplot
for the modulated signal
plot(t, v); % Plot the modulated
signal grid on;
title('Modulation
Signal');
xlabel('Time');
ylabel('Amplitude')
;
% Plot the Modulating (Audio) Signal
subplot(2,2,1); % Prepare subplot for the
modulating signal plot(t, m); % Plot the
modulating signal
grid on;
title('Audio
Signal');
xlabel('Time');
ylabel('Amplitu
de');

clc
clear
all
close
all
fm = 25; % Frequency of the modulating (audio) signal in Hz
t = 0:0.0001:0.30; % Time vector for 0.30 seconds with a step of 0.0001 seconds
m = sin(2*pi*fm*t); % Generate the modulating (audio) signal (sine wave with
frequency fm)
% Plot the Modulating (Audio) Signal
subplot(2,2,1); % Prepare the first subplot for the
modulating signal plot(t, m, 'red'); % Plot the audio
signal in red
grid on;
title('Audio Signal'); % Title for the audio signal
plot xlabel('Time');
ylabel('Amplitude');
fc = 2000; % Frequency of the carrier signal in Hz
c = sin(2*pi*fc*t); % Generate the carrier signal (sine wave with frequency fc)
% Plot the Carrier Signal
subplot(2,2,2); % Prepare the second subplot for the
carrier signal plot(t, c, 'green'); % Plot the carrier
signal in green
grid on;
title('Carrier Signal'); % Title for the carrier
signal plot xlabel('Time');
ylabel('Amplitude');
% Modulate the Signal (DSB-AM)
v = m .* c; % Perform DSB-AM modulation (product of carrier and modulating
signal)
% Plot the Modulated Signal
subplot(2,2,3); % Prepare the third subplot for the
modulated signal plot(v, 'yellow'); % Plot the
modulated signal in yellow
grid on;
title('Modulation
Signal');
xlabel('Time');
ylabel('Amplitude')
;
fd = 2000; % Frequency of the demodulation signal in Hz
(same as carrier) dc = sin(2*pi*fd*t); % Generate the
demodulation carrier signal
% Perform Demodulation
d = dc .* v; % Multiply modulated signal with the demodulation carrier signal
% Plot the Demodulated Signal
subplot(2,2,4); % Prepare the fourth subplot for the
demodulated signal plot(d, 'blue'); % Plot the
demodulated signal in blue
grid on;
title('Demodulation
Signal'); xlabel('Time');
ylabel('Amplitude');
clc
clear
all
close
all
fm = 25; % Frequency of the modulating (audio) signal in Hz
t = 0:0.0001:0.30; % Time vector for 0.30 seconds with a step of
0.0001 seconds m = 1 * sin(2*pi*fm*t); % Generate the
modulating (audio) signal with amplitude 1
% Plot the Modulating (Audio) Signal
subplot(2,2,1); % Prepare the first subplot for the
modulating signal plot(t, m, 'blue'); % Plot the audio
signal in blue
grid on;

title('Audio
Signal');
xlabel('Time');
ylabel('Amplitu
de');
fc = 2000; % Frequency of the carrier signal in Hz
c = 5 * sin(2*pi*fc*t); % Generate the carrier signal with amplitude 5
% Plot the Carrier Signal
subplot(2,2,2); % Prepare the second subplot for the
carrier signal plot(t, c, 'yellow'); % Plot the carrier
signal in yellow
grid on;

title('Carrier
Signal');
xlabel('Time');
ylabel('Amplitu
de');
% Modulate the Signal (DSB-AM)
v = m .* c; % Perform DSB-AM modulation (product of carrier and modulating
signal)
% Plot the Modulated Signal
subplot(2,2,3); % Prepare the third subplot for the
modulated signal plot(t, v, 'green'); % Plot the
modulated signal in green
grid on;

title('Modulation
Signal');
xlabel('Time');
ylabel('Amplitude')
;

fd = 2000; % Frequency of the demodulation signal in Hz


(same as carrier) dc = sin(2*pi*fd*t); % Generate the
demodulation carrier signal
% Perform Demodulation
d = dc .* v; % Multiply modulated signal with the demodulation carrier signal
% Plot the Demodulated Signal

subplot(2,2,4); % Prepare the fourth subplot for the demodulated signal

plot(t, d, 'red'); % Plot the


demodulated signal in red grid on;
title('Demodulation
Signal'); xlabel('Time');
ylabel('Amplitude');
clc
clear
all
close
all
fm = 25; % Frequency of the modulating (audio) signal in Hz
t = 0:0.0001:0.30; % Time vector for 0.30 seconds with a step of
0.0001 seconds m = 1 * sin(2*pi*fm*t); % Generate the
modulating (audio) signal
subplot(2,2,1); % Prepare the first subplot for
the audio signal plot(t, m, 'blue'); % Plot the
audio signal in blue
title('Audio
Signal');
xlabel('Time');
ylabel('Frequency'); % Amplitude of the audio
signal over time fc = 2000; % Frequency of
the carrier signal in Hz
c = 2.5 * sin(2*pi*fc*t); % Generate the carrier signal
subplot(2,2,2); % Prepare the second subplot for the
carrier signal plot(t, c, 'yellow'); % Plot the carrier
signal in yellow
title('Carrier
Signal');
xlabel('Time');
v = m .* c; % Perform DSB-AM modulation
subplot(2,2,3); % Prepare the third subplot for the
modulated signal plot(v, 'green'); % Plot the
modulated signal in green title('Modulation Signal');
fd = 2000; % Frequency of the demodulation
signal in Hz dc = sin(2*pi*fd*t); % Generate the
demodulation carrier signal
d = dc .* v; % Multiply modulated signal with the
demodulation carrier signal subplot(2,2,4); % Prepare
the fourth subplot for the demodulated signal plot(d, 'red');
% Plot the demodulated signal in red
title('Demodulation Signal');
xlabel('Time'); % Label the x-axis for the demodulated signal
clc
clear
all
close
all
fm = 25; % Frequency of the modulating (audio) signal in Hz
t = 0:0.0001:0.30; % Time vector for 0.30 seconds with a step of
0.0001 seconds m = 1 * sin(2*pi*fm*t); % Generate the
modulating (audio) signal
% Plot the Modulating (Audio) Signal
subplot(2,2,1); % Prepare the first subplot for
the audio signal plot(t, m, 'blue'); % Plot the
audio signal in blue
grid on; % Enable grid for better
visualization title('Audio Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') fc = 2000; % Frequency of the
carrier signal in Hz
c = 1.665 * sin(2*pi*fc*t); % Generate the carrier signal with amplitude 1.665
% Plot the Carrier Signal
subplot(2,2,2); % Prepare the second subplot for the
carrier signal plot(t, c, 'yellow'); % Plot the carrier
signal in yellow
grid on; % Enable grid for better
visualization title('Carrier Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') v = m .* c; % Perform DSB-AM
modulation
% Plot the Modulated Signal
subplot(2,2,3); % Prepare the third subplot for the
modulated signal plot(v, 'green'); % Plot the
modulated signal in green
grid on; % Enable grid for better
visualization title('Modulation Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') fd = 2000; % Frequency of the
demodulation signal in Hz
dc = sin(2*pi*fd*t); % Generate the demodulation carrier signal
d = dc .* v; % Multiply modulated signal with the demodulation carrier signal
% Plot the Demodulated Signal
subplot(2,2,4); % Prepare the fourth subplot for the
demodulated signal plot(d, 'red'); % Plot the
demodulated signal in red
grid on; % Enable grid for better
visualization title('Demodulation Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this should be 'Amplitude')

>> clc
clear
all
close
all
fm = 25; % Frequency of the modulating (audio) signal in Hz
t = 0:0.0001:0.30; % Time vector for 0.30 seconds with a step of
0.0001 seconds m = 1 * sin(2*pi*fm*t); % Generate the
modulating (audio) signal
% Plot the Modulating (Audio) Signal
subplot(2,2,1); % Prepare the first subplot for
the audio signal plot(t, m, 'blue'); % Plot the
audio signal in blue
grid on; % Enable grid for better
visualization title('Audio Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this should be 'Amplitude')
fc = 2000; % Frequency of the carrier signal in Hz
c = 1.25 * sin(2*pi*fc*t); % Generate the carrier signal with amplitude 1.25
% Plot the Carrier Signal
subplot(2,2,2); % Prepare the second subplot for the
carrier signal plot(t, c, 'yellow'); % Plot the carrier
signal in yellow
grid on; % Enable grid for better
visualization title('Carrier Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') v = m .* c;
% Plot the Modulated Signal
subplot(2,2,3); % Prepare the third subplot for the
modulated signal plot(v, 'red'); % Plot the modulated
signal in red
grid on; % Enable grid for better
visualization title('Modulation Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') fd = 2000; % Frequency of the
demodulation signal in Hz
dc = sin(2*pi*fd*t); % Generate the demodulation carrier signal
d = dc .* v; % Multiply modulated signal with the demodulation carrier signal
% Plot the Demodulated Signal
subplot(2,2,4); % Prepare the fourth subplot for the
demodulated signal plot(d, 'green'); % Plot the
demodulated signal in green
grid on; % Enable grid for better
visualization title('Demodulation Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this should be 'Amplitude')

clc
clear
all
close
all
fm = 25; % Frequency of the modulating (audio) signal in Hz
t = 0:0.0001:0.30; % Time vector for 0.30 seconds with a step of
0.0001 seconds m = 1 * sin(2*pi*fm*t); % Generate the
modulating (audio) signal
% Plot the Modulating (Audio) Signal
subplot(2,2,1); % Prepare the first subplot for
the audio signal plot(t, m, 'blue'); % Plot the
audio signal in blue
grid on; % Enable grid for better
visualization title('Audio Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') fc = 2000; % Frequency of the
carrier signal in Hz
c = 1 * sin(2*pi*fc*t); % Generate the carrier signal with amplitude 1
% Plot the Carrier Signal
subplot(2,2,2); % Prepare the second subplot for the
carrier signal plot(t, c, 'yellow'); % Plot the carrier
signal in yellow
grid on; % Enable grid for better
visualization title('Carrier Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') v = m .* c; % Perform DSB-AM
modulation
% Plot the Modulated Signal
subplot(2,2,3); % Prepare the third subplot for the
modulated signal plot(v, 'red'); % Plot the modulated
signal in red
grid on; % Enable grid for better
visualization title('Modulation Signal');
xlabel('Time');
ylabel('Frequency'); % Label y-axis (though ideally this
should be 'Amplitude') fd = 2000; % Frequency of the
demodulation signal in Hz
dc = sin(2*pi*fd*t); % Generate the demodulation carrier signal
d = dc .* v; % Multiply modulated signal with the
demodulation carrier signal subplot(2,2,4); %
Prepare the fourth subplot for the demodulated signal plot(d,
'green'); % Plot the demodulated signal in green
grid on; % Enable grid for better
visualization title('Demodulation Signal');
xlabel('Time'); % Label x-axis for the demodulated signal

You might also like