Frequency Modulation
Varshithreddy Punnam (624165)
August 8, 2026
1
1
Aim
The objective of this experiment is
• To study the principle of Frequency Modulation.
• To generate a FM signal using MATLAB.
• To implement FM using Simulink.
• To verify FM generation and demodulation using a FM Trainer Kit.
• To compare the simulation and practical results.
2
Theory
Frequency Modulation (FM) is an angle modulation technique in which the frequency
of a high-frequency carrier signal is varied according to the instantaneous amplitude of
the message signal, while the amplitude of the carrier remains constant.
c(t) = Ac cos(2πfc t)
(1)
m(t) = Am cos(2πfm t)
(2)
• c(t)=Carrier signal
• Ac =Carrier Amplitude
• fc = carrier frequency
• m(t)=Message signal
• Am =Message Amplitude
• fm = Message frequency
f=
1 dθ
2π dt
(3)
Relation between phase and frequency
fi (t) = fc + kf fm
(4)
s(t) = Ac cos(θc )
(5)
where
from equation 3 and 4 we get
θc = 2πfc t +
Am km
sin(2πfm t)
fm
(6)
Am km
fm
(7)
β=
we get FM signal as
S(t) = Ac cos(2πfc t + βsin(2πfm t))
(8)
BW = 2[∆f + fm ]
(9)
Bandwidth
2
3
MATLAB Simulation
The FM system is implemented in MATLAB using the following parameters.
Table 1: Simulation Parameters
Parameter
Symbol Value
Message amplitude
Am
Message frequency
fm
Carrier frequency
fc
Simulation sampling rate fs
4
1
10 Hz
10 Hz
5000 Hz
Simulation Procedure
The MATLAB program performs the following steps.
1. Generate a cosine message signal.
2. Generate a carrier wave.
3. Substitute the values in the above equation. To generate FM signal.
4. Demodulate FM signal using slope detector.
5. Recover the original message signal.
6. Plot the time-domain waveforms.
7. Compute the Fourier Transform of the message, FM and recovered signals.
8. Plot the corresponding frequency spectra.
clc ;
clear ;
3 close all ;
4 Fs = 100000;
% Sampling Frequency (100 kHz )
5 T = 0.05;
% Duration (50 ms )
6 t = 0:1/ Fs : T ;
7 fm1 = 100;
% Message Frequency (100 Hz )
8 fc = 5000;
% Carrier Frequency (5 kHz )
9 Am = 1;
% Message Amplitude
10 Ac = 1;
% Carrier Amplitude
11 freq - dev = 2500;
% Frequency Deviation ( Hz )
12 % % MESSAGE SIGNAL
13 m = Am * cos (2* pi * fm1 * t ) ;
14 % % CARRIER SIGNAL
15 c = Ac * cos (2* pi * fc * t ) ;
16 % % FM MODULATION
17 fm - signal = fmmod (m , fc , Fs , freq - dev ) ;
18 % % FM DEMODULATION
19 demod - signal = fmdemod ( fm_signal , fc , Fs , freq - dev ) ;
1
2
3
figure ( ’ Name ’ , ’ FM Signals ’ , ’ NumberTitle ’ , ’ off ’) ;
21 subplot (4 ,1 ,1)
22 plot (t ,m , ’b ’ , ’ LineWidth ’ ,1.5)
23 grid on
24 title ( ’ Message Signal ’)
25 xlabel ( ’ Time ( s ) ’)
26 ylabel ( ’ Amplitude ’)
27 subplot (4 ,1 ,2)
28 plot (t ,c , ’r ’)
29 grid on
30 title ( ’ Carrier Signal ’)
31 xlabel ( ’ Time ( s ) ’)
32 ylabel ( ’ Amplitude ’)
33 subplot (4 ,1 ,3)
34 plot (t , fm - signal , ’g ’)
35 grid on
36 title ( ’ FM Modulated Signal ’)
37 xlabel ( ’ Time ( s ) ’)
38 ylabel ( ’ Amplitude ’)
39 subplot (4 ,1 ,4)
40 plot (t , demod - signal , ’m ’ , ’ LineWidth ’ ,1.5)
41 grid on
42 title ( ’ Demodulated Signal ’)
43 xlabel ( ’ Time ( s ) ’)
44 ylabel ( ’ Amplitude ’)
45 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
46 % % FREQUENCY AXIS
47 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
48 N = length ( t ) ;
49 f = ( - N /2: N /2 -1) *( Fs / N ) ;
50 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
51 % % FFT OF MESSAGE
52 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
53 M = fftshift ( abs ( fft ( m ) ) / N ) ;
54 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
55 % % FFT OF CARRIER
56 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
57 C = fftshift ( abs ( fft ( c ) ) / N ) ;
58 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
59 % % FFT OF FM SIGNAL
60 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
61 FM1 = fftshift ( abs ( fft (f - signal ) ) / N ) ;
62 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
63 % % FFT OF DEMODULATED SIGNAL
64 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
65 D = fftshift ( abs ( fft ( demod - signal ) ) / N ) ;
66 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
67 % % SPECTRUM PLOTS
68 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
69 figure ( ’ Name ’ , ’ Spectrum Analysis ’ , ’ NumberTitle ’ , ’ off ’) ;
70 subplot (4 ,1 ,1)
20
4
plot (f ,M , ’b ’ , ’ LineWidth ’ ,1.2)
72 xlim ([ -1000 1000])
73 grid on
74 title ( ’ Spectrum of Message Signal ’)
75 xlabel ( ’ Frequency ( Hz ) ’)
76 ylabel ( ’| M ( f ) | ’)
77 subplot (4 ,1 ,2)
78 plot (f ,C , ’r ’ , ’ LineWidth ’ ,1.2)
79 xlim ([ -8000 8000])
80 grid on
81 title ( ’ Spectrum of Carrier Signal ’)
82 xlabel ( ’ Frequency ( Hz ) ’)
83 ylabel ( ’| C ( f ) | ’)
84 subplot (4 ,1 ,3)
85 plot (f , FM1 , ’k ’ , ’ LineWidth ’ ,1.2)
86 xlim ([ -10000 10000])
87 grid on
88 title ( ’ Spectrum of FM Signal ’)
89 xlabel ( ’ Frequency ( Hz ) ’)
90 ylabel ( ’| FM ( f ) | ’)
91 subplot (4 ,1 ,4)
92 plot (f ,D , ’m ’ , ’ LineWidth ’ ,1.2)
93 xlim ([ -1000 1000])
94 grid on
95 title ( ’ Spectrum of Demodulated Signal ’)
96 xlabel ( ’ Frequency ( Hz ) ’)
97 ylabel ( ’| D ( f ) ’ |)
71
5
Simulation Results
Figure 1 shows the time-domain waveforms obtained from MATLAB.
5
Figure 1: Time-domain waveforms
Figure 2 shows the frequency spectra.
Figure 2: Frequency-domain spectra
6
6
Simulink Implementation
The FM system is also implemented using Simulink. The model consists of
• Sine Wave Generator
• FM Modulator Block
• FM Demodulator Block
• Scope
7
Hardware Implementation
The FM experiment is performed using the Frequency Modulation Trainer Kit.
The setup consists of
• Function Generator
• FM Modulator
• FM Demodulator
• Oscilloscope
The message signal is applied to the FM modulator. The generated FM signal is observed
using the oscilloscope. The output of the FM demodulator is also observed and compared
with the original message signal.
8
Observation Table
Message Frequency
Table 2: Experimental Observations
Modulation Index
15000
15000
500
500
9
min
max
min
max
Observation
carrier signal is seen at the modulated signal output
demodulated signal amplitude is very low
carrier signal is seen at the modulated signal output
demodulated signal amplitude is high as comapared to 15kH
Discussion
The MATLAB simulation, Simulink implementation and hardware experiment produced
similar results. The recovered signal closely resembles the original message after Demodulation . The frequency-domain analysis shows number of message signal components
.
7
10
Conclusion
Frequency Modulation was successfully implemented using MATLAB, Simulink and the
FM Trainer Kit. The generated carrier signal follows the instantaneous amplitude of the
message signal. The experimental observations agree well with the theoretical analysis,
validating the operation of FM.
8