You are on page 1of 5

Experiment No.

Date: 5.1.23

Amplitude Modulation and Demodulation

Name: Avinash V
Reg. No. 21BEC1676

AIM: To design an amplitude modulator and demodulator

Software required: MATLAB

Procedure:

1) Open MATLAB online

2) Assign the values for all parameters like message signal-frequency, amplitude and
others

3) Specify the message signal in mathematical form and plot the message signal

4) Give name for the plot and as well as the axes

5) Similarly construct the carrier signal to perform amplitude modulation

6) To perform amplitude modulation use “ammod” command and obtain the waveform

7) To extract the message signal from AM modulated signal use “amdemod” signal

8) Finally, calculate the required parameter like bandwidth

Diagram and equations:

Amplitude modulation is defined as a system of modulation in which the amplitude of the


carrier is varied in accordance with amplitude of the message signal.

Let the carrier signal be: Vc(t) = Vc sin(2πfct)

Let the message signal be : Vm(t) = Vm sin(2πfmt)

The amplitude modulated signal is given by

VAM = (Vc +Vm sin2πfmt) sin 2πfct


Block Diagram:

Modulation

Modulating
Signal
Generator
A.M
modulator

Carrier
Generator

Demodulation

Modulating
Signal AM AM
Generator Modulator Demodulator

Carrier
Generator

MATLAB code for modulation:

clc
clear all
close all
t=0:0.001:1;
A=5;
fm=10;
fc=100;
Sm=A*sin(2*pi*fm*t);
subplot(4,1,1);
plot(t,Sm);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
grid on;
Sc=A*sin(2*pi*fc*t);
subplot(4,1,2);
plot(t,Sc);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
grid on;
y=ammod(Sm,fc,1000);
subplot(4,1,3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('Modulated signal');

MATLAB Simulation result for AM Modulator:

MATLAB code for demodulation:

clc
clear
t=0:0.001:1;
Am=5;
Ac=10;
fm=10;
fc=100;
Sm=Am*sin(2*pi*fm*t);
subplot(4,1,1);
plot(t,Sm);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
grid on;
Sc=Ac*sin(2*pi*fc*t);
subplot(4,1,2);
plot(t,Sc);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
grid on;
%AM modulation
y=ammod(Sm,fc,1000);
subplot(4,1,3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('Modulated signal');
%AM demodulation
x=amdemod(y,fc,1000);
subplot (4,1,4);
plot(t,x);
xlabel('Time');
ylabel('Amplitude');
title('Demodulated signal');

MATLAB Simulation result for AM Demodulator:

Bandwidth calculation:

Bandwidth=2fm
2*10
20 bps

Inference:

From the modulated waveform we can observe the superimposition of carrier and message
signal and also we can observe a bubble shaped signal from this waveform we can conclude
that AM modulation is done and to verify the modulation output we need demodulate the
same once demodulation is done we can observe exactly the message signal hence verified
the result of AM modulation.

Result:

The MATLAB code for AM modulation is done and verified the output using demodulation

You might also like