Abstract: Objectives: Methodology: Result and Discussion: Result
Abstract: Objectives: Methodology: Result and Discussion: Result
Abstract: Objectives: Methodology: Result and Discussion: Result
ABSTRACT: ........................................................................................................................................... 3
INTRODUCTION: ................................................................................................................................. 4
OBJECTIVES: ........................................................................................................................................ 4
METHODOLOGY: ................................................................................................................................ 5
RESULT AND DISCUSSION: .............................................................................................................. 6
RESULT: ................................................................................................................................................. 6
Index: ........................................................................................................................................................ 9
Figure 1: A real-time digital signal processing system ................................................................................. 5
Figure 2: noise and frequency domain .......................................................................................................... 7
Figure 3: after using filter ............................................................................................................................. 8
Figure 4: getting original signal .................................................................................................................... 9
ABSTRACT:
OBJECTIVES:
ADCs and DACs are incredibly helpful tools that let us connect real-world
events—which are typically analog—with microprocessors—which are less expensive and offer
better precision and accuracy than their analogue counterparts—for monitoring or control.
METHODOLOGY:
On each falling or rising edge of the sample clock, the analogue signal is sampled by the analogue
to digital converter. The ADC extracts the analogue signal, measures it, and then transforms it into
a digital value once per cycle. The ADC approximates the signal with fixed precision before
converting the output data into a series of digital values.
Sampling is the process of changing an initial continuous signal into a discrete time representation.
It changes analogue signals into a series of impulses, each of which represents the signal's
amplitude at a certain instant. Sampling can be used to generate findings that are similar in two or
more dimensions for functions that fluctuate in space, time, or any other dimension. Let s(t) be a
continuous function (or "signal") to be sampled for functions that fluctuate over time, and let
sampling be carried out by taking a measurement of the continuous function's value every T
seconds (referred to as the sampling interval or the sampling period). The sequence s (nT), for
integer values of n, is then used to represent the sampled function. The average number of samples
obtained in one second (samples per second) is known as the sampling frequency or sampling rate,
abbreviated as fs.
Analogue )
ADC DSP DAC
signal
Source
The quantity of various sample values that can be represented in a digital quantity is referred to as
the quantization level. Rounding and truncation are the two methods of quantization used in the
A/D process. In rounding, one numerical value is substituted with another that is roughly
equivalent, whereas in truncation, one numerical value is equivalent. In mathematics and digital
signal processing, quantization is the process of converting values from a large collection of
inputs—often a continuous set—to values from a smaller, (countable) set of outputs.
Typical quantization procedures include truncation and rounding. Since rounding is typically
required when representing a signal in digital form, quantization is involved to some extent in
almost all digital signal processing. The fundamental building block of virtually all loss
compression methods is quantization. Quantization error is the difference between an input value
and its quantized value, such as round-off error. A quantize is a component or algorithmic
operation that conducts quantization.
Consider an analogue source that generates an analogue signal that combines three sinusoidal
waves with varying peak amplitudes and three frequencies, f 1, f 2, and f 3, as shown below:
= 2c 2𝜋 𝑓1 + 6c 2𝜋 𝑓2 + 3c 2𝜋 𝑓3
After all doing this we get the original signal which we use as an input for the analogue system.
So here we use filter for the purpose of getting the original signal.
RESULT:
1
x(t)
0.5
0
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Time -3
x 10
-8
x 10 noise in Frequency Domain
4
3
ampiltude
0
0 0.5 1 1.5 2 2.5
f (Hz) 4
x 10
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
1
x(t)
0.5
0
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Time -3
x 10
-8
x 10 noise in Frequency Domain
4
3
ampiltude
0
0 0.5 1 1.5 2 2.5
f (Hz) 4
x 10
Index:
close all;
clear all;
clc
fs = 44000;
T = 1/fs;
t = -0.5:T:0.5;
L = length(t);
x = 1/(0.4*sqrt(2*pi))*(exp(-t.^2/(2*(0.1*1e-3)^2)));
subplot(211)
plot(t,x)
title('noise in time domain')
xlabel('Time')
ylabel('x(t)')
axis([-1e-3 1e-3 0 1.1])
n = 2^nextpow2(L);
Y = fft(x,n);
f = fs*(0:(n/2))/n;
P = abs(Y/n).^2;
subplot(212)
plot(f,P(1:n/2+1))
title('noise in Frequency Domain')
xlabel('f (Hz)')
ylabel('ampiltude')
y = filter(fs,t,x);
figure
plot(t,x)
hold on
plot(t,Y)
legend('filterd')
figure
idx = 1:10:numel(x)
xds = x(idx);
plot(t,xds);
hold on
plot(t,idx)
legend('recovered')