Analog to digital conversion

We often convert analog data to digital and digital to analog. This may be done with many types of data. For example, we might digitize audio data as the first step in recording a song or using VOIP to speak to someone on the Internet.

Microphones convert sound waves into electrical signals. A sound generates changes in air pressure which cause a diaphragm in the microphone to vibrate. Various methods are used to convert the movement of the diaphragm into a continuously varying electrical current. The rising and falling voltage level mimics (is analogous to) the sound wave.

Before it can be processed by a computer, the current must be digitized. A device called an analog to digital (a to d) converter will sample the signal at fixed intervals.

Zooming in, we see the sample values (on the vertical axis) at regular time intervals (the horizontal axis). Note that the numbers are not exact, but are rounded to the nearest whole number. For example, the second sample is between 13 and 14 volts, but it is rounded to 14. The sampling illustrated above produces a list of twelve 5-bit binary numbers, as shown below.

Sample123456789101112
Volts101416161410620026
Binary010100111010000100000111001010001100001000000000000001000110

We could increase the accuracy or fidelity in two ways. Increasing the sampling rate would improve recording fidelity since the samples would follow the signal more closely.

Increasing sample precision or depth, the number of bits in each sample, would also increase fidelity by reducing rounding errors.

Of course, we have a tradeoff between file size and fidelity. Increasing either the sampling rate or precision increases file size.

Audio files can get quite large. On an audio CD, the sampling rate is 44,000 samples per second and each sample is a 16-bit number. If you double that for a stereo recording, it works out to 6,265,728,000 bits on a 74-minute CD.

To hear recorded sound, the stream of samples is converted back to an electrical signal using a digital to analog (D to A) converter. A D to A converter would read the stream of values representing the sound, and generate the corresponding electrical signal by "connecting the dots."

The signal coming from the D to A converter is fed to a speaker which vibrates in response to its variation, moving air and producing audible sound.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.