You are on page 1of 7

Communication Engineering

(EEE2006)
Lab Assessment-3

Name: SAHALE SHERA LUTSE


Reg.no. 18BEE0376
Slot: L11+L12
School/Branch: SELECT/EEE
AM demodulation / Amplitude demodulation,
sideband AM modulation and demodulation

AIM:
 To study and perform of Amplitude Modulation and
demodulation.
 To study modulator for DSB-SC and SSB upper and lower carrier
modulator and demodulator.
 To generate the following signals and to draw their spectrums
1) DSB (Double sided band modulated and demodulated
signal
2) Single sided band (SSB) upper sideband modulated and
demodulated signal
3) Single sided band (SSB) Lower sideband modulated and
demodulated signal
4) Amplitude demodulated signal

APPARATUS REQUIRED:
System with MATLAB R2019a
MATLAB CODE:
% Name: SAHALE SHERA LUTSE
% Reg.no.: 18BEE0376
% Set the sample rate and carrier frequency.
fc = 10e3;
fs = 80e3;

%Generate a sinusoidal signal having a 0.01 s duration.


t = [0:1/fs:0.01]';

Vm = sin(2*pi*300*t)+2*sin(2*pi*600*t);

%Amplitude modulate the signal, s.


Vdsbamsc = ammod(Vm,fc,fs);

%Demodulate the received signal.


Vs1 = amdemod(Vdsbamsc,fc,fs);

%Plot the original and demodulated signals.


figure(1);
subplot(3,1,1);
plot(t,Vm,'c');
legend('Original Signal')
xlabel('Time (s)')
ylabel('Amplitude')

subplot(3,1,2);
plot(t,Vdsbamsc,'r');
legend('Modulated Signal')
xlabel('Time (s)')
ylabel('Amplitude')

subplot(3,1,3);
plot(t,Vs1,'b--');
legend('Demodulated Signal')
xlabel('Time (s)')
ylabel('Amplitude')

GRAPH
MATLAB CODE:
% Name: SAHALE SHERA LUTSE
% Reg.no.: 18BEE0376
% Define the sampling frequency and original signal.
fs = 50000;
t = (0:1/fs:0.01)';
s= sin(2*pi*300.*t)+2*sin(2*pi*600.*t);

% Convert the original signal to upper-sideband and lower-sideband


modulated signals using ssbmod.
% Use a cutoff frequency of 12000 and an initial phase of 0.
fc = 12000;
initialPhase = 0;
lowerSidebandSignal = ssbmod(s,fc,fs,initialPhase);
upperSidebandSignal = ssbmod(s,fc,fs,initialPhase,'upper');

% Demodulate the lower and upper sideband signals.


s1 = ssbdemod(lowerSidebandSignal,fc,fs);
s2 = ssbdemod(upperSidebandSignal,fc,fs);

% Compare processed signals with original and verify reconstruction.


subplot(3,1,1)
plot(t,s,'k')
legend('Original signal')
xlabel('time(sec)')
ylabel('Amplitude')

subplot(3,1,2)
plot(t,s1,'r:')
legend('Demodulation of lower signal');
xlabel('time(sec)')
ylabel('Amplitude')

subplot(3,1,3)
plot(t,s2,'g-.');
legend('Demodulation of Upper Sideband');
xlabel('time(sec)')
ylabel('Amplitude')
GRAPH
RESULT/INFERENCE:
Thus, the amplitude demodulation & sideband modulation
and demodulation has been studied and the spectrum was drawn.

You might also like