Mini Project
Mini Project
INTRODUCTION
Frequency Modulation (FM) is a widely used analog modulation technique where the
frequency of the carrier signal is varied in proportion to the amplitude of the modulating
signal, while the amplitude of the carrier remains constant. FM is known for its resilience to
signal amplitude noise and its application in high-fidelity broadcasting, such as FM radio.
The purpose of this implementation is to observe the behavior of the FM signal and analyze
its waveform and spectrum using MATLAB’s visualization tools.
OBJECTIVE
The primary objective of this project is to implement and analyze Frequency Modulation
(FM) of a single-tone modulating signal using MATLAB’s built-in function fmmod(). The
specific goals include:
To visualize the modulating signal and the resulting FM signal in both time and
frequency domains.
To interpret the effect of frequency deviation and carrier frequency on the FM signal.
SIMULATION
The simulation of Frequency Modulation (FM) is carried out in MATLAB using a sinusoidal
modulating signal. The built-in function fmmod() is used to perform the FM operation. The
simulation involves defining key parameters such as sampling frequency, carrier frequency,
modulating frequency, and frequency deviation. The process is divided into the following
steps:
1. Parameter Initialization
2. Signal Generation
The modulating signal is generated as a cosine wave:
m(t)=Amcos(2πfmt)m(t) = A_m \cos(2\pi f_m t)m(t)=Amcos(2πfmt)
The carrier frequency is used in conjunction with fmmod() to produce the FM signal.
3. Frequency Modulation using fmmod()
The fmmod() function is used to modulate the carrier frequency based on the
instantaneous amplitude of the message signal:
matlab
4. Visualization
The time-domain waveforms of both the modulating signal and the FM signal are
plotted.
The frequency spectrum of the FM signal is obtained using the Fast Fourier Transform
(FFT) and visualized to analyze the spectral components of the modulated signal.
5. MATLAB Code
The MATLAB code for the simulation is as follows:
%Set the sampling frequency to 1kHz and carrier frequency to 200 Hz.
fs = 1000;
fc = 200;
t = (0:1/fs:0.2)';
fDev = 50;
%Frequency modulate x.
y = fmmod(x,fc,fs,fDev);
%plot the graphs to show the original signal and modulated signal
subplot(2,1,1)
plot(t,x)
xlabel('Time(s)')
ylabel('Amplitude')
legend('original signal')
grid on;
subplot(2,1,2)
plot(t,y)
xlabel('Time(s)')
ylabel('Amplitude')
legend('modulated signal')
grid on;
RESULT
The simulation of frequency modulation using MATLAB’s fmmod() function successfully
demonstrates the generation and characteristics of an FM signal for a single-tone
modulating input.
1. Time-Domain Results
The modulating signal is observed to be a pure sinusoidal waveform with a frequency
of 1 kHz.
The FM signal shows varying frequency over time, which is dependent on the
instantaneous amplitude of the modulating signal.
2. Frequency-Domain Results
The frequency spectrum of the FM signal reveals multiple spectral components
centered around the carrier frequency (20 kHz).
The bandwidth of the FM signal is significantly wider than that of the original
modulating signal, which is consistent with Carson’s Rule:
BFM=2×(Δf+fm)B_{FM} = 2 \times (\Delta f + f_m)BFM=2×(Δf+fm)
where Δf=\Delta f =Δf= frequency deviation, and fm=f_m =fm= maximum frequency of the
modulating signal.
Sidebands are visible in the frequency domain, which correspond to the harmonics
of the modulating signal created due to the modulation process.
3. Observations
The frequency deviation parameter has a significant impact on the spread of the FM
signal in the frequency domain.
WAVEFORM: