Experiment 1: Frequency Modulation and Demodulation Aim
Experiment 1: Frequency Modulation and Demodulation Aim
Experiment 1: Frequency Modulation and Demodulation Aim
Experiment 1
Frequency Modulation and Demodulation
Aim:
Simulate and interpret the Spectrum of Message and Frequency modulated signal.
Theory:
Angle modulation:
This is one of the methods of modulating a sinusoidal carrier wave, namely, angle modulation
in which either the phase or frequency of the carrier wave is varied according to the message
signal. In this method of modulation the amplitude of the carrier wave is maintained constant.
s(t)=Ac Cos(θ(t))
Where Acis the amplitude of the carrier which is constant and a angular argument θ(t)) is varied
by a message signal m(t).
Frequency Modulation:
Frequency Modulation (FM) is the form of angle modulation in which the instantaneous
frequency f𝑖(t) is varied linearly with a message signal m(t). The instantaneous frequency is
given by
kf
f i (t ) f c m(t )
2
The term f𝑐 represents the frequency of the unmodulated carrier and constant Kfrepresents the
frequency sensitivity of the modulator. We have
1 d (t )
f i (t )
2 dt
Therefore
𝑡
𝜃(𝑡) = 2𝜋f𝑐t +K𝑓 ∫0 𝑚(𝑡) dt
𝑡
S(t) = Ac Cos [2𝜋f𝑐t + K𝑓 ∫0 𝑚(𝑡) dt]
k f Am
Where is the modulation index or the deviation ratio of FM
2f m
Ac
Also, S( f )
2
J
n
n ( )[ ( f f c nf m ) ( f f c nf m )]
MATLAB Program:
% Frequency Modulation %
close all; clear all; clc;
%***************Variables************************%
%********************Signals********************%
figure(1);
subplot(221);plot(t, Modulating_Signal);
title('FM modulating signal');xlabel('time(ms)'), ylabel('amplitude(V)');grid on;
mod_Sig_freq=fftshift(abs(fft(Modulating_Signal)));
axiss=-fs/2:fs/(length(mod_Sig_freq)-1):fs/2;
subplot(223);plot(t, Carrier_Signal_fm);
title('FM Carrier signal');xlabel('time(ms)'), ylabel('amplitude(V)');grid on;
Carrier_Signal_freq=fftshift(abs(fft( Carrier_Signal_fm)));
subplot(224);plot(axiss,Carrier_Signal_freq*(1/fs));axis([-100 100 0 1])
title('Carrier signal Spectrum');xlabel('Frequency(KHz)'), ylabel('amplitude(V)');grid on;
%********************Modulation****************%
FM_time= Ac*cos((Wc*t)+(m*Modulating_Signal));
FM_freq=fftshift(abs(fft(FM_time)));
%******************Demodulation******************%
FM_DEM_T= demod(FM_time,fc,fs,'fm');
FM_DEM_F=fftshift(abs(fft(FM_DEM_T)));
figure(2);
subplot(221);plot(t,FM_time);
xlabel('time(ms)'),ylabel('amplitude(V)');title('FM Modulated time-domain signal');grid on;
subplot(223);plot(t,FM_DEM_T);
title('Demodulated FM signal'); xlabel('time(ms)'), ylabel('amplitude(V)');grid on;
Observation: