Digital Signal Processing
Digital Signal Processing
SIGNAL
A report on Project based learning for DSP LAB
BACHELOR OF TECHNOLOGY
In
ELECTRONICS AND COMMUNICATION ENGINEERING
Submitted by
B. SRIDEVI -22335A0402
B. CHANDRIKA -22335A0403
B. GANESH REDDY -22335A0404
Under the guidance of
Dr. G. Vimala Kumari
M.Tech., Ph.D
ASSOCIATE PROFESSOR
ECE
1|Page
CONTENTS
TITLE PAGE NO
ABSTRACT 3
INTRODUCTION 4
METHODOLOGY 4
SOURCE CODE 5
REULTS 6
PLOTS 6
RESULT ANALYSIS 7
APPLICATIONS 7
ADVANTAGES 7
DISADVANTAGES 8
CONCLUSION 9
REFERENCES 9
2|Page
ABSTRACT:
This project is about Conversion of analog signal to discrete time signal. Discrete-
time signals are used in digital systems. Discrete signals are most often obtained
by discretizing analog signals, and the estimation risk can also be computed on
the input analog signal. Analog to Digital conversion (ADC) is a process that has
very important applications in the modern world. Since most modern devices are
digital, all analog signals must be converted to digital signals. When dealing with
continuous-time signals (analog signals), we often need to process them in digital
systems. The process of converting an analog signal to a discrete-time signal is
called sampling. The process of analog-to-digital signal conversion consists of
converting a continuous time and amplitude signal into discrete time and
amplitude values. Sampling and quantization constitute the steps needed to
achieve analog-to-digital signal conversion. To minimize any loss of information
that may occur because of this conversion, it is important to understand sampling
and quantization. Real-world applications of analog-to-digital conversion are
presented, applications, such as digital communications, medical imaging, audio
& video systems, consumer electronics, robotics, remote sensing, ranging from
audio recording and medical imaging to industrial control systems and
telecommunications.
3|Page
INTRODUCTION:
METHODOLOGY:
The process of converting an analog signal to a discrete-time signal through
interpolation involves several key steps. Initially, the analog signal is sampled at
regular intervals in accordance with the Nyquist-Shannon sampling theorem to
prevent aliasing. Subsequently, an interpolation technique is selected based on the
specific requirements and characteristics of the signal. Common interpolation
methods include linear interpolation, polynomial interpolation, and spline
interpolation. The chosen interpolation algorithm is then implemented to estimate
signal values at points between the sampled values. For instance, in linear
interpolation, values between two adjacent samples are calculated using a formula
that takes into account the times and signal values of the neighbouring samples.
Other methods, such as polynomial interpolation or spline interpolation, may
involve determining coefficients for interpolating polynomials or splines. The
implementation of the interpolation algorithm is carried out in a programming
4|Page
language or using a dedicated signal processing tool, with a focus on efficiency,
especially in real-time applications. The performance of the interpolation method
is evaluated by comparing the reconstructed signal with the original analog
signal, and adjustments are made as needed. Additionally, considerations like the
use of anti-aliasing filters before sampling may be addressed to remove high-
frequency components. Finally, thorough documentation of the chosen
methodology, interpolation technique, and implementation details is essential for
future reference and troubleshooting.
SOURCE CODE:
% User-defined parameters
Fs = 1000; % Sampling frequency (Hz)
T = 1/Fs; % Sampling period
t = 0:T:1; % Time vector from 0 to 1 second
% Get user input for the analog signal
disp('Enter the expression for the analog signal in terms of time variable t:');
disp('For example, sin(2*pi*50*t) + 0.5*sin(2*pi*120*t)');
expression = input('Analog Signal Expression: ', 's');
% Evaluate the user-defined expression to get the analog signal
AnalogSignal = eval(expression);
% Plot the analog signal
figure;
subplot(2, 1, 1);
plot(t, AnalogSignal);
title('Analog Signal');
xlabel('Time (s)');
ylabel('Amplitude');
5|Page
xlabel('Time (s)');
ylabel('Amplitude');
% Display the original and sampled frequencies
fprintf('Original Sampling Frequency: %d Hz\n', Fs);
fprintf('New Sampling Frequency: %d Hz\n', Fs_new);
RESULTS:
Enter the expression for the analog signal in terms of time variable t:
For example, sin(2*pi*50*t) + 0.5*sin(2*pi*120*t)
Analog Signal Expression: sin (0.5*pi*20*t)
Original Sampling Frequency: 1000 Hz
New Sampling Frequency: 200 Hz
PLOTS:
6|Page
Result Analysis:
Applications:
sensors often output analog voltage signals. ADCs convert these analog signals
into digital data that control systems can understand and use for feedback,
automation, and decision-making. 1.Audio and Video: Microphones and cameras
capture analog sound and light waves, respectively. ADCs convert these
continuous signals into digital streams of data that computers can process,
manipulate (like applying filters or effects), store efficiently, and transmit
seamlessly.
2.Image Processing: Digital cameras and medical imaging equipment rely on
ADCs to convert captured light information into digital images.
3.Telephony and Internet: The voices we hear during phone calls and the data
packets that travel across the internet all begin as analog signals. Microphones
convert our voice into electrical signals, and ADCs transform these into digital
representations for transmission over digital communication channels.
4.Wireless Communication: Cellular networks, Wi-Fi, and Bluetooth all use
ADCs to convert analog radio frequency (RF) signals carrying information into
digital data streams for processing and transmission.
5.Sensor Data Acquisition: Many control systems utilize sensors that measure
physical quantities like temperature, pressure, or position. These
Advantages:
Disadvantages:
REFERENCES:
1. https://www.scribd.com/document/420812130/To-convert-continuous-
time-signal-to-discrete-time-signal-using-sampling
2. https://ntrs.nasa.gov/api/citations/19740021458/downloads/19740021458.
pdf
9|Page