NSS Experiment 11 Updated
NSS Experiment 11 Updated
Experiment No: 11
Title: Mini Project
Aim and Objective of the Experiment:
Project based learning: Identify the applications of Signals and Systems and implement it using
software
COs to be achieved:
CO4: Understand operations of continuous signals and systems
CO5: Apply Fourier series and transform for spectral analysis
Stepwise-Procedure:
1. Identify any application of (Not covered in Laboratory experiments)
“Signals and Systems ” course.
Application: Implementing amplitude modulation (AM) or frequency modulation (FM) system
to illustrate how signals can be transmitted and received, which is widely used in communications.
2.Implement the selected experiment using software.
Ans:(With explanation)
% Parameters
Fs = 10000; % Sampling frequency (Hz)
t = 0:1/Fs:0.5; % Time vector (0.5 seconds)
message_freq = 100; % Message signal frequency (Hz)
carrier_freq = 1000; % Carrier frequency (Hz)
amplitude_message = 1; % Amplitude of message signal
amplitude_carrier = 1; % Amplitude of carrier signal
modulation_index_AM = 0.5;% AM modulation index
modulation_index_FM = 10; % FM modulation index
n_terms = 10; % Number of terms in Fourier series approximation
% Carrier Signal
carrier_signal = amplitude_carrier * sin(2 * pi * carrier_freq * t);
% Spectral Analysis
n = length(t); % Number of points
f = (-n/2:n/2-1)*(Fs/n); % Frequency vector for plotting
xlabel('Frequency (Hz)');
ylabel('Magnitude');
3.Upload the plots/results in the experiment document.
Observations
1.Introduction:
1.1 Objective: The objective of this project is to understand and implement amplitude modulation
(AM) and frequency modulation (FM) using MATLAB software to illustrate how signals can be
transmitted and received, as is commonly done in communication systems.
1.2 Overview:AM and FM are widely used techniques in communication systems to encode
information into carrier waves, which are then transmitted over a medium and demodulated at the
receiver end. This project implements AM and FM systems using MATLAB to simulate
modulation and demodulation of a message signal, while also performing spectral analysis.
3. Course Outcomes:
CO4: Understand operations of continuous signals and systems.
CO5: Apply Fourier series and Fourier transform for spectral analysis.
4. Theoretical Background:
Modulation:
Modulation is the process of varying a carrier wave’s properties based on a message signal’s
properties, enabling efficient transmission over long distances.
5. Implementation in MATLAB:
5.1 Code for Modulation and Demodulation
The MATLAB code below demonstrates the modulation and demodulation of a message signal
using both AM and FM.
% Parameters
Fs = 10000; % Sampling frequency (Hz)
t = 0:1/Fs:0.5; % Time vector (0.5 seconds)
message_freq = 100; % Message signal frequency (Hz)
carrier_freq = 1000; % Carrier frequency (Hz)
amplitude_message = 1; % Amplitude of message signal
amplitude_carrier = 1; % Amplitude of carrier signal
modulation_index_AM = 0.5;% AM modulation index
modulation_index_FM = 10; % FM modulation index
% Message Signal
message_signal = amplitude_message * sin(2 * pi * message_freq * t);
% Carrier Signal
carrier_signal = amplitude_carrier * sin(2 * pi * carrier_freq * t);
% AM Modulation
AM_signal = (1 + modulation_index_AM * message_signal) .* carrier_signal;
% FM Modulation
FM_signal = amplitude_carrier * sin(2 * pi * carrier_freq * t + modulation_index_FM *
message_signal);
% Spectral Analysis
n = length(t); % Number of points
f = (-n/2:n/2-1)*(Fs/n); % Frequency vector for plotting
plot(f, message_spectrum);
title('Spectrum of Message Signal');
xlabel('Frequency (Hz)');
ylabel('Magnitude');
subplot(3, 1, 2);
plot(f, AM_spectrum);
title('Spectrum of AM Signal');
xlabel('Frequency (Hz)');
ylabel('Magnitude');
subplot(3, 1, 3);
plot(f, FM_spectrum);
title('Spectrum of FM Signal');
xlabel('Frequency (Hz)');
ylabel('Magnitude');
Parameters:
Fs: Sampling frequency, which determines how accurately the signals are represented in the
time domain.
t: Time vector for creating continuous signal samples.
message_freq and carrier_freq: Frequencies of the message (information) and carrier
signals.
modulation_index_AM and modulation_index_FM: Modulation indices for AM and FM
that control the modulation depth (how much the carrier’s amplitude or frequency is
influenced by the message signal).
Modulation:
AM Modulation: The carrier signal’s amplitude is varied according to the message signal,
creating sidebands that appear as mirrored copies of the message signal around the carrier
frequency.
FM Modulation: The frequency of the carrier signal varies with the amplitude of the
message signal, creating multiple sidebands in the frequency spectrum, which indicates a
broader bandwidth.
Demodulation:
The Fourier Transform (using the Fast Fourier Transform, fft()) is applied to analyze the frequency
content of each signal (message, AM, and FM) by transforming them from the time domain to the
frequency domain. This helps visualize how the message signal is represented in the frequency
domain after modulation and observe the frequency components.
6.1 Time Domain Representation:The message signal and modulated AM/FM signals were
plotted, demonstrating how each modulation technique modifies the carrier based on the message
signal.
1)Message Signal Spectrum: Displays the primary frequency component of the message.
2)AM Spectrum: Shows sidebands around the carrier frequency, reflecting the message signal’s
frequency content.
3)FM Spectrum: Shows a wider range of sidebands around the carrier, reflecting the larger
bandwidth required for FM.
Observations:
7. Conclusion:
This project successfully implemented AM and FM modulation using MATLAB. The
results showed that:
AM and FM can efficiently transmit signals, with FM providing better noise resistance at
the cost of higher bandwidth.
Spectral analysis helped visualize the signal properties in the frequency domain, making it
easier to understand the differences between AM and FM.
9. References:
A Nagoor Kani-Signals and systems.
Ravish Singh:Network Analysis and Synthesis
Signals and systems by Tarun Kumar Rawat.
MATLAB Documentation
Online MATLAB resources on modulation and spectral analysis
Conclusion:
This mini-project successfully demonstrated the principles and implementation of Amplitude Modulation
(AM) and Frequency Modulation (FM) using MATLAB. Through this project, we explored how modulation
techniques are used to encode information in carrier signals for transmission, focusing on their differences in
bandwidth requirements and noise resistance. The application of the Fourier Transform enabled spectral
analysis, providing insights into the frequency components and bandwidth of each modulated signal.
Our results confirmed that while AM is simpler to implement and requires less bandwidth, FM offers better
noise resistance at the expense of larger bandwidth. This understanding underscores the significance of
selecting appropriate modulation techniques based on application requirements. Overall, this project provided
a comprehensive overview of modulation and demodulation, enhancing both theoretical and practical
knowledge of signal processing in communication systems.