Analogue vs Digital Signals

Every piece of information in the physical world — a voice, a temperature, a light level — exists as a continuously varying quantity. When engineers want to store, transmit, or process such information electronically, they face a fundamental choice: represent the information as an analogue signal that mirrors those continuous variations, or convert it into a digital signal built from discrete numerical values. This choice shapes everything from the quality of a phone call to the reliability of a medical scanner. An analogue signal is one whose amplitude (or frequency) can take any value within a continuous range at any instant in time, just as a mercury thermometer can sit at any height between its markings. A digital signal, by contrast, is restricted to a finite set of distinct levels — most commonly just two voltage levels representing the binary digits 0 and 1. Think of analogue as a dimmer switch (infinitely variable) versus digital as an ordinary on/off switch (only two states). Real information almost always starts out analogue; converting it to digital and back requires two key devices: an Analogue-to-Digital Converter (ADC) and a Digital-to-Analogue Converter (DAC). Digital representations dominate modern electronics because discrete values are far more resistant to noise. A tiny amount of electrical interference might shift a voltage slightly, but as long as it stays recognisably closer to '1' than to '0', the receiver can recover the original data perfectly. Analogue systems accumulate every whisper of noise irreversibly. Understanding the trade-offs between these two paradigms — and the mathematics of converting between them — is central to all of modern signal processing.

Key takeaways
  • What Makes a Signal Analogue?
  • What Makes a Signal Digital?
  • The ADC Process: Sampling and Quantisation
  • The DAC Process: Reconstruction
  • Noise Immunity: The Big Advantage of Digital

What Makes a Signal Analogue?

An analogue signal is a continuous function of time: at every moment it has a precise, real-numbered value. A microphone converts air-pressure waves into a voltage that rises and falls smoothly — no 'steps'. The signal is said to be continuous in both time (it exists at every instant) and amplitude (it can take any voltage, not just selected ones). Examples include audio waveforms, AM radio carriers, and temperature sensor outputs.

What Makes a Signal Digital?

A digital signal is discrete in both time and amplitude. It is sampled at regular time intervals (the sampling period T_s) and at each sample point its amplitude is rounded to the nearest allowed level — a process called quantisation. With n bits per sample there are 2ⁿ quantisation levels. A CD uses 16-bit samples, giving 2¹⁶ = 65 536 levels, which is precise enough that the quantisation error (the tiny rounding mistake) is inaudible.

The ADC Process: Sampling and Quantisation

An Analogue-to-Digital Converter performs two operations. First, sampling: it reads ('snapshots') the analogue voltage at regular intervals determined by the sampling frequency f_s = 1/T_s. The Nyquist–Shannon theorem demands that f_s ≥ 2f_max, where f_max is the highest frequency component in the signal, to avoid aliasing (a distortion where high frequencies are mistaken for low ones). Second, quantisation: each sample voltage is mapped to the nearest of 2ⁿ levels and encoded as an n-bit binary number. The range of voltages divided by the number of levels gives the voltage resolution: ΔV = V_range / 2ⁿ.

The DAC Process: Reconstruction

A Digital-to-Analogue Converter reverses the process. It receives a stream of binary numbers and outputs a corresponding voltage for each. The result is a staircase waveform that approximates the original smooth analogue signal. A low-pass filter (a smoothing circuit) then removes the sharp steps, producing a clean continuous output. Your phone's speaker amplifier includes a DAC to convert stored digital audio back into the analogue voltages needed to drive the speaker cone.

Noise Immunity: The Big Advantage of Digital

In a digital system using only two voltage levels (say 0 V and 5 V), any received voltage above 2.5 V is interpreted as '1' and any below 2.5 V as '0'. As long as noise keeps voltages on the correct side of that threshold, errors are zero. Engineers call this the noise margin. In contrast, analogue systems have no such regeneration: every amplifier stage also amplifies the noise, and distortion accumulates over long transmission paths. This is why vinyl records degrade with every play while a digital file is bit-perfect after a billion copies.

The Key Equation

fs≥2fmax⁡f_s \geq 2f_{\max}
  • f_s — Sampling frequency (Hz): Number of samples taken per second by the ADC.
  • f_{\max} — Maximum signal frequency (Hz): The highest frequency component present in the analogue signal being sampled.
  • \Delta V = \dfrac{V_{\text{range}}}{2^n} — Voltage resolution (V): The smallest voltage change that the ADC can distinguish; determined by the bit depth n and the total input voltage range.

Worked Example

Problem. A music producer records audio with frequencies up to 20 000 Hz. (a) What is the minimum sampling frequency required to avoid aliasing? (b) If the ADC uses 8-bit quantisation over a 5 V range, what is its voltage resolution?

fs=40 kHz;ΔV=5256≈19.5 mVf_s = 40\,\text{kHz};\quad \Delta V = \frac{5}{256} \approx 19.5\,\text{mV}

Answer. Minimum sampling frequency = 40 kHz; voltage resolution = 5/256 ≈ 19.5 mV

Figure
Diagram
Analogue Signal, Sampled Points, and Digital (Quantised) OutputTime →VoltageL1L2L3L4L5L6Analogue signalSample points (f_s)Quantised (digital) outputAnalogueSamplesQuantised output
Origins · 1 minClaude Shannon and how this was discovered
CS
Claude Shannon
1916–2001 · American

Shannon founded information theory with his landmark 1948 paper 'A Mathematical Theory of Communication'. He proved the sampling theorem (jointly credited with Nyquist) that sets the minimum sampling rate for perfect signal reconstruction, and quantified information in terms of binary digits ('bits') — a word he helped popularise. His work is the mathematical bedrock of every ADC, data compression scheme, and error-correcting code in use today. Shannon built a flame-throwing trumpet, a juggling machine, and a 'mind-reading' device in his MIT office. He was famous for riding a unicycle through the hallways while juggling.

  • Nyquist Sampling Theorem — The theorem directly governs the minimum sampling rate used in every ADC and is the central mathematical constraint of digital signal processing.
  • Operational Amplifiers — Op-amps are essential building blocks inside both ADC and DAC circuits, used for buffering, amplification, and the low-pass filtering that reconstructs smooth analogue output from a DAC.
  • Wave Frequency and Amplitude — Understanding frequency and amplitude is prerequisite to understanding what information an analogue signal carries and why the bandwidth of a signal determines the required sampling rate.
  • Logic Gates and Binary Numbers — Digital signals are represented in binary; understanding binary encoding is necessary to appreciate how n-bit ADCs produce 2ⁿ quantisation levels and how digital data is stored and processed.