Title: Analog and digital data
1Analog and digital data
Skills none IT concepts analog to digital
conversion, digital to analog conversion, sample
rate, sample size, quality-file size trade off
This work is licensed under a Creative Commons
Attribution-Noncommercial-Share Alike 3.0
License.
2Where does this topic fit?
- Internet concepts
- Applications
- Technology
- Implications
- Internet skills
- Application development
- Content creation
3Digital and analog clocks
Start clocks
Which clock is digital? Which analog? Which
clock is the closest analog to the physical world?
4A digital clock
120000 120001 120002 120003 etc.
Digital data is discreet and jumpy, not smooth
and continuous
5Physical sensors ? electric signals
Light level Pressure Sound waves Acceleration Posi
tion of a knob Orientation Proximity Gasses in
the air Magnetic field
6For example, a microphone
Varying voltage
Sound waves
7Computers require digital data
Computer
10010110 (150) 11001001 (201) 11000111 (199)
Analog to digital converter
Analog data
Digital data
8The input is continuous, analog data
Sample the signal at regular intervals
v2
v1
v7
. . .
. . .
S7
S3
S1
S2
9Each sample produces a number
10Each sample produces a number
A jagged approximation of the original,
continuous signal
11More frequent sampling results in a better fit
12Each sample produces a number But How big (how
many bits) is each number?
13What time is it between seconds?
Round off to the nearest second
1460 steps
More steps (higher resolution) means smaller
round-off errors
12 steps
4 steps
15Digitizing introduces round-off errors
5
4
3.6
3
2.2
2
1
0
163
More steps (intervals) between the minimum and
maximum values means smaller round-off errors
0
7
0
15
0
17More bits per sample ? more possible steps
Number of bits Number of possible steps
1 2
2 4
3 8
4 16
5 32
18The quality/file size tradeoff
Increase sample rate ? quality ? file size
? Increase sample size ? quality ? file size ?
19Computers can output analog data
Computer
10010110 (150) 11001001 (201) 11000111 (199)
Digital to analog converter
20Generate a somewhat jagged analog signal by
approximating the value between samples with
straight lines
21Electric signals ? change physical world
Sound Light Flow rate Temperature Turn things on
and off
22A few questions
The value of sample 9 would be between the values
of which two samples?
23Without looking back, what two factors determine
the quality or goodness of fit of a digitized
signal to the original analog signal?
24Where does this topic fit?
- Internet concepts
- Applications
- Technology (electronics)
- Implications
- Internet skills
- Application development
- Content creation