Skip to content

Activity 1.2.1 — Analog vs. Digital Signals


Learning Objectives

By the end of this lesson, students will be able to:

  1. Distinguish between analog and digital signals based on their characteristics.
  2. Explain the advantages of digital signals over analog signals.
  3. Describe the basic process of analog-to-digital conversion (ADC).
  4. Identify examples of analog and digital systems in everyday life.

Vocabulary

Vocabulary (click to expand)
Term Definition
Analog Signal A continuously varying signal that can take any value within a range.
Digital Signal A signal with discrete values, typically representing only two states (0 and 1).
Continuous Having no interruptions or gaps; smooth and unbroken.
Discrete Separate, distinct values; having finite or countable states.
Noise Immunity The ability of a system to resist interference that corrupts the signal.
Quantization The process of converting continuous analog values into discrete digital steps.
Sampling Taking measurements of an analog signal at regular intervals.
Logic Level The voltage range that represents a HIGH (1) or LOW (0) in a digital system.

Part 1: Understanding Analog Signals

What Are Analog Signals?

Analog signals are continuously varying signals that can take on any value within a range. They represent real-world physical quantities like sound, temperature, light, and pressure.

Key characteristics of analog signals: - Values change smoothly without jumps - Infinite possible values between any two points - Represented by smooth waveforms (sine waves, etc.) - Directly represent physical phenomena

Real-world examples of analog signals:

Phenomena Analog Representation
Sound Air pressure variations
Temperature Voltage from a thermometer
Light Current from a photocell
Radio waves Electromagnetic waves

Diagram of an Analog Signal:

Voltage
  ^
  |      /\
  |     /  \
  |    /    \
  |   /      \
  |  /        \________
  +------------------------> Time
    (Smooth, continuous waveform)

Part 2: Understanding Digital Signals

What Are Digital Signals?

Digital signals have discrete values, typically only two states: HIGH (1) or LOW (0). These are sometimes called binary signals because they use only two digits.

Key characteristics of digital signals: - Values change in distinct steps - Finite number of possible values (usually 2: 0 and 1) - Represented by square waves - Easy to store, process, and reproduce

Diagram of a Digital Signal:

Voltage
  ^
5V|___________          ___________
  |          |        |           |
  |          |________|           |________
  +------------------------------------> Time
  0V       HIGH    LOW    HIGH     LOW
           (1)    (0)     (1)     (0)

Part 3: Advantages of Digital Signals

Digital signals offer several important advantages over analog signals:

1. Noise Immunity

One of the biggest advantages of digital signals is their resistance to noise (unwanted interference).

How it works: - A digital signal is either HIGH or LOW - The system only cares if the voltage is above or below a threshold - Small voltage fluctuations (noise) do not change the logical value

Example:
- A digital HIGH might be 5V, but the system accepts anything above 2.0V as HIGH
- If noise adds 0.5V, the signal is still clearly HIGH
- The noise does not corrupt the data

2. Easy Storage

Digital data can be stored reliably: - On hard drives, flash memory, and optical discs - Without degradation over time - Can be copied without loss of quality

3. Easy Processing

Digital signals are easy to manipulate: - Can be processed by microprocessors and microcontrollers - Complex operations can be performed with software - Can be compressed, encrypted, and transmitted easily

4. Reproducibility

Digital signals can be reproduced exactly: - Copies are identical to originals - No generation loss when copying - Consistent performance across different devices


Part 4: Analog-to-Digital Conversion (ADC)

Why Convert?

Since the real world is primarily analog (temperature, sound, light), we often need to convert analog signals to digital for processing by computers and digital systems.

The ADC Process

Analog-to-Digital Conversion involves two steps:

Step 1: Sampling - The continuous analog signal is measured at regular intervals - The rate of sampling determines how accurately the digital version represents the original - Sampling rate must be at least twice the highest frequency in the signal (Nyquist theorem)

Step 2: Quantization - Each sample is assigned a discrete digital value - The range of possible values is divided into steps - Each step is assigned a binary number

Example of quantization:

Analog Voltage: 0V to 10V divided into 8 levels (3 bits)

Level  Binary  Voltage Range
  0     000    0V - 1.25V
  1     001    1.25V - 2.5V
  2     010    2.5V - 3.75V
  3     011    3.75V - 5.0V
  4     100    5.0V - 6.25V
  5     101    6.25V - 7.5V
  6     110    7.5V - 8.75V
  7     111    8.75V - 10V

Key insight: More bits mean more quantization levels and greater precision. A 16-bit ADC has 65,536 levels compared to only 8 for a 3-bit ADC.


Part 5: Real-World Examples

Vinyl Records vs. CDs

Aspect Vinyl Record (Analog) CD (Digital)
Format Continuous groove Discrete samples
Sample rate N/A 44,100 samples/second
Bit depth N/A 16 bits
Durability Susceptible to scratches More durable, but loses data if damaged
Sound quality Warm, natural (subjective) Precise, accurate reproduction

Thermometers

Mercury Thermometer (Analog) Digital Thermometer
Continuous temperature reading Discrete temperature values
No battery required Requires power
Slower to read Instant reading
Difficult to record automatically Easy to log and transmit data

Part 6: Logic Levels

In digital systems, voltages represent logical values:

Standard Logic Levels

Logic State Typical Voltage Binary Value
HIGH +5V or +3.3V 1
LOW 0V (or near 0V) 0

Voltage Threshold Zones

VCC (Supply Voltage, e.g., 5V)
  |
  |--------> Valid HIGH region (typically > 2.0V)
  |
2.0V|-----------> Minimum HIGH input voltage (VIH)
  |
  |
  |
0.8V|-----------> Maximum LOW input voltage (VIL)
  |
  |
  |
0V|------------> Valid LOW region (typically < 0.8V)
  |
GND (0V)

What happens between 0.8V and 2.0V? - This is an undefined or transitional zone - Logic gates may interpret it as either HIGH or LOW - Results are unpredictable


Summary

Feature Analog Digital
Signal type Continuous Discrete (0 or 1)
Values Infinite Finite
Waveform Smooth Square wave
Noise immunity Low High
Storage Degrades over time Stable indefinitely
Processing Limited flexibility Highly flexible

Key points: - Digital signals use only two states, making them more reliable - ADC converts real-world analog signals to digital form through sampling and quantization - More bits in a digital system means greater precision - Logic levels define voltage ranges for HIGH (1) and LOW (0)


Quick Check

What is the key difference between analog and digital signals?

Analog signals are continuous (smoothly varying), while digital signals have discrete values (typically just 0 and 1).

Why are digital systems more resistant to noise?

Because digital systems only need to distinguish between two states (HIGH and LOW), small noise variations don't change the interpreted value.

What does ADC stand for, and what does it do?

Analog-to-Digital Converter. It samples an analog signal at regular intervals and quantizes each sample into a digital number.


Key Reminders

  • Analog signals vary continuously; digital signals have discrete values.
  • Digital systems are more resistant to noise because they only distinguish between HIGH and LOW.
  • Analog-to-digital conversion requires sampling at intervals and quantizing to discrete levels.
  • Higher sampling rates and more bits provide more accurate digital representations.
  • Logic levels define the voltage ranges for binary states in digital circuits.

Custom activity — adapted from PLTW Digital Electronics