Chapter 7 Notes
Chapter 7 Notes
Introduction
Figliola, 2000
1
Notes:
A continuous dynamic signal can be
represented by a fourier series.
The discrete fourier transform can
reconstruct a dynamic signal from a
discrete set of data.
Sample Rate
Sample time increment τf = δt (seconds)
Sample Frequency fs = 1/δt (hertz)
The sample rate has a significant effect on our perception and
reconstruction of the continuous analog signal in the time
domain.
Figliola, 2000
2
Alias Frequency
If fs < 2fm, the high frequency content will be
falsely represented by a low frequency
component. False frequency is called alias
frequency and results from discrete sampling of a
signal at fs < 2fm
The alias phenomenon is an inherent
consequence of a discrete sampling process.
Refer to the discussion of folding frequency for
more detail in the text.
Alias Frequency
By following sampling theorem fs > 2fm,
all aliases are eliminated.
The concepts apply to complex periodic,
aperiodic and non-deterministic that are
represented by fourier transform
Alias Frequency
3
Alias Frequency
For example, as
noted by solid
arrows in this
figure, the
frequencies of f =
0.5fN, 1.5fN,
2.5fN,… will all
appear as 0.5fN in
the discrete series
y(rδt)
Alias Frequency
How is the alias of an unknown signal
avoided?
– If maximum frequency of interest is known, set
fs = 2fmax and use low pass filter with fc = fmax
– Set fs at max and set fc = fs/2
Amplitude Ambiguity
The DFT (discrete fourier transform) of
sampled discrete time signal is unchanged by
changes in the total sample period Nδt,
provided that:
1. Total sample period is integer multiple of
fundamental period T1, mT1 = Nδt
2. Sample increments meets δt < 1/(2fm)
Thus, the DFT will accurately represent the
frequencies and amplitudes of the discrete
time series regardless of δt used.
4
Amplitude Ambiguity
Figliola, 2000
Figliola, 2000
5
Amplitude Ambiguity
Amplitude Ambiguity
6
Selecting Sample Rate and Data
Number
For most real signals, exact discrete
representations of the input analog signal
frequency and amplitude content are not possible
or practical.
Setting the sample rate fs at five time the
maximum signal frequency together with large
values of Nδt is recommended to minimize
spectral leakage and provide a good
approximation of the original signal.
7
Selecting Sample Rate and Data
Number
Estimation of y(t)
N
sin[π (t / δt ) − r ]
y * (t ) = 1 / π ∑ y (rδt )
r =1 (t / δt ) − r
Digital Devices
Digital signals are discrete in time and
amplitude. Almost all systems use some
variation of the binary numbering system,
base 2.
– Bit = on/off ~ 0/1
– Byte = 8 bits
– Word = 4 bits to 64 bits depending on
microprocessor
– 2 bit: 00, 01, 10, 11 is 0 to 3
Representation
N Bits Data Range
8
Representation
b8b7b6b5b4b3b2b1b0 where bn = 0 or 1
↑ MSB ↑ LSB
Straight Binary
Equivalent decimal value
n −1
– Value= ∑ b i 2 i
i= 0
Figliola, 2000
9
Parallel vs. Serial Communication
A simple on/off switch
Parallel: by setting
control logic a single
+5v source is used to set
a binary register
Serial: by turning on/off
a single output for
duration δt, a serial
representation of a bit
string can be
communicated.
Figliola, 2000
Figliola, 2000
10
Analog to Digital Converter
Figliola, 2000
Figliola, 2000
11
Saturation vs. Conversion Error
Figliola, 2000
Figliola, 2000
12
Filters
Filters:
– Analog- control frequency content of signal
being sampled, remove aliases.
– Digital- forward or backward moving average,
remove unwanted components.
• Take DFT, modify signal in frequency domain,
inverse DFT.
Figliola, 2000
Note: Digital filters can not remove aliases.
Amplifiers
Solution:
1) remove mean component before amplification by
adding on an equal but opposite sign, mean voltage.
2) pass signal through a high pass filter to remove DC
component, setting fcutoff = 1 hz
13
Shunt Resistors
Many common transducers produce a current as their output;
however, an A/D converter requires a voltage signal at its
input.
It is straightforward to convert current signals into voltage
signals by using a shunt resistor.
Figliola, 2000
Current output sensor
• Eo = I Rshunt for I = 4 – 20 MA
A 500Ω shunt provides 2-10V signal for 10V analog input.
14
Analog Inputs
Single-ended connections – use one signal
line (+-high) that is measured relative to
ground (gnd). No local ground and short
wires due to EMI noises.
Differential-ended connections – allows
voltage difference between two distinct input
signals. High (+) and low (-) signals are
isolated from ground. It is called a floating
input because the difference is between +
and -, not ground. Good for low voltage.
Analog Inputs
When signals from various instruments are used,
differential-ended connections are usually required.
DATA Acquisition is triggered by software, external
pulse, or on-board clock.
Analog Inputs
Single-ended connections are suitable only when all
analog signals in the system can be made relative to a
common ground
EMI – Electro-magnetic interference
For low level measurements a 10k – 100k Ω resistor
should be connected between low (-) and ground at the
DAS board.
Figliola, 2000
15