Experiment-02: Hardware and Software Implementation of Frequency Modulation and Demodulation

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

EXPERIMENT- 02

Hardware and Software Implementation of Frequency


Modulation and Demodulation

HARDWARE:
Circuit Diagram:

Apparatus:
Serial No. Components Quantity Value
1. Resistors 6 10k,4.7k,470,47,47k
2. IC 1 XR22066
3. Capacitor 3 0.01uF,22uF,10uF

Calculation:
F=1/RC
F=10KHz
R=10KΩ
C=0.01uF
Theory:
In telecommunications and signal processing, frequency modulation (FM) is the encoding of
information in a carrier wave by varying the instantaneous frequency of the wave.

Model Graph:

SOFTWARE:
Title: Hardware and Software Implementation of Frequency Modulation and Demodulation.
MATLAB CODE:
CODE 1:
clc
clear all
close all
t = 0:0.0001:0.1;
fm=20;
fc=400;
x=12;
m=cos(2*pi*fm*t);
subplot(4,1,1),plot(t,m);
xlabel('Time');
ylabel('Amplitude');
title('Message Signal');
c=cos(2*pi*fc*t);
subplot(4,1,2),plot(t,c);
xlabel('Time');
ylabel('Amplitude');
title('Carrier Signal');
z=cos(2*pi*fc*t+x.*m);
subplot(4,1,3),plot(t,z);
xlabel('Time');
ylabel('Amplitude');
title('Modulated Signal');
q=diff(z);
subplot(4,1,4),plot(q);
xlabel('Time');
ylabel('Amplitude');
title('DeModulated Signal');

OUTPUT:

CODE 2:
clc
clear all
close all
t = 0:0.0001:0.1;
fm=20;
fc=100;
x=12;
m=cos(2*pi*fm*t);
subplot(4,1,1),plot(t,m);
xlabel('Time');
ylabel('Amplitude');
title('Message Signal');
c=cos(2*pi*fc*t);
subplot(4,1,2),plot(t,c);
xlabel('Time');
ylabel('Amplitude');
title('Carrier Signal');
z=fmmod(m,fc,800,50);
subplot(4,1,3),plot(t,z);
xlabel('Time');
ylabel('Amplitude');
title('Modulated Signal');
q=fmdemod(z,fc,1000,50);
subplot(4,1,4),plot(q);
xlabel('Time');
ylabel('Amplitude');
title('DeModulated Signal');

OUTPUT:

RESULT:
The MATLAB code gives a frequency modulated signal output and a demodulated signal
output for a particular message and carrier signal.

You might also like