Skip to content

Punjab Board Class 10 Physics · Chapter 19: Electronics

Analogue and digital electronics

Section 19.2

An analogue (analog) signal changes smoothly and can take any value in a range. A digital signal has only two levels, high (1) and low (0). An analogue-to-digital converter turns real-world signals such as sound into binary numbers by sampling, quantisation and encoding; a DAC turns them back.

Loading simulation…

Symbols match your course. Open the full circuit builder simulation for more presets and teacher tools.

Two kinds of electronics

Every electronic circuit handles signals: voltages or currents that carry information. Section 19.2 sorts circuits into two families by the kind of signal they work with. (The book spells it analog; British English writes analogue. Both mean the same thing.)

Analogue signals

In an analogue circuit a voltage or current can take any value within its range and changes smoothly and continuously with time. A graph of an analogue signal is an unbroken curve, like a wave on the sea.

Everyday examples:

  • the pointer of an analogue meter, which can stop anywhere along a continuous scale;
  • a dimmer or variable resistor that lets a lamp glow at any brightness from dim to full;
  • an amplifier, which makes a small, smoothly varying signal (for example from a microphone) larger.

Most quantities we sense directly are analogue: the loudness of a sound, the brightness of light and the temperature of a room all vary continuously.

Digital signals

In a digital circuit the voltage has only two allowed values: high, for example about 5 V, and low, close to 0 V. High stands for the binary digit 1 and low for 0. A graph of a digital signal is a row of square steps, jumping straight up to high and straight down to low, never sloping in between.

A simple ON/OFF switch for a lamp is a digital system: the lamp is either fully on or fully off, with nothing in between. Digital electronics began in computers but now runs mobile phones, radar, industrial machines, medical equipment and household appliances. Inside them, the circuits are built from switching units (logic circuits) that turn incoming voltages into strings of high and low pulses.

FeatureAnalogueDigital
Values allowedany value in a rangeonly two: high (1) and low (0)
Shape of the graphsmooth, continuous curvesquare steps between two levels
Examplesdimmer, amplifier, pointer meterON/OFF switch, computer, digital clock
Effect of electrical noise (beyond the book)noise changes the value and stays in itsmall noise does not change a 1 into a 0

Why digital signals are more reliable (beyond the book)

Every signal picks up random electrical noise as it travels along a cable or through the air. In an analogue signal any added wobble becomes part of the value and cannot be separated out again. In a digital signal the receiver only has to decide "high or low?". A little noise does not change that decision, so the signal can be cleaned up and sent on as perfect 1s and 0s. That is why long-distance links, phones and computers use digital signals.

From analogue to digital: the ADC

Digital circuits cannot process a sound or a light level directly, because these are analogue. An analogue-to-digital converter (ADC) turns the continuous signal into binary numbers in three steps:

  1. Sampling. The signal's value is measured at regular, equal time intervals. Between samples, nothing is recorded.
  2. Quantisation. Each measured value is rounded to the nearest of a fixed set of allowed levels.
  3. Encoding. Each level is written as a binary number made of 0s and 1s.

The reverse job is done by a digital-to-analogue converter (DAC): it turns the stored binary numbers back into a smoothly varying voltage, for example to drive a loudspeaker when music is played from a phone.

Worked example 1: quantising and encoding (beyond the book)

A 3-bit ADC measures voltages from 0 V to 7 V. Three bits give 23=82^3 = 8 levels, so each level is 1 V apart: 0 V is 000, 1 V is 001, up to 7 V, which is 111. Three samples are taken: 2.2 V, 4.6 V and 6.9 V. Find their codes.

  • 2.2 V rounds to level 2, written 010.
  • 4.6 V rounds to level 5, written 101.
  • 6.9 V rounds to level 7, written 111.

The rounding is why some detail is lost. More bits give more levels: an 8-bit ADC has 28=2562^8 = 256 levels, so its steps are much finer.

Worked example 2: how much data? (beyond the book)

A simple voice recorder samples a sound 8000 times every second and stores each sample as 8 bits. How many bytes does a 3.0 s recording need?

samples=8000×3.0=24 000\text{samples} = 8000 \times 3.0 = 24\,000 bits=24 000×8=192 000bytes=192 0008=24 000\text{bits} = 24\,000 \times 8 = 192\,000 \qquad \text{bytes} = \frac{192\,000}{8} = 24\,000

Since 8 bits make 1 byte, each 8-bit sample is exactly one byte.

Analogue and digital in the simulation

The circuit builder can show both kinds of control on the same lamp.

  1. Choose Empty from Starting circuits. Build a single loop: battery, Lamp and Variable resistor, linked by pieces of Wire.
  2. Select the variable resistor and move its Resistance slider. The lamp's brightness, and the current shown for it, change smoothly through every value in between: an analogue control.
  3. Now replace the variable resistor with a Switch. Selecting it and ticking Switch closed puts the lamp fully on; unticking it turns it fully off. There are only two states, like the 1 and 0 of a digital signal.

Common mistakes

  • Saying a digital signal can have several voltage levels. In this chapter a digital signal has only two: high (1) and low (0).
  • Calling a dimmer switch digital because it is electronic. It lets the brightness take any value, so it is an analogue control.
  • Listing the ADC steps in the wrong order. The signal is sampled first, then each sample is quantised (rounded to a level), then encoded in binary.
  • Mixing up the converters. An ADC turns analogue into digital; a DAC turns digital back into analogue, for example to drive a speaker.
  • Thinking quantisation keeps every detail of the signal. Each sample is rounded to the nearest allowed level, so a little information is lost.
  • Thinking that anything electronic or modern must be digital. A microphone, an amplifier and a pointer meter are all electronic, but their signals vary continuously, so they are analogue.

Exam practice

Exam-style questions

Original questions written in the style of Punjab board exams. Try each one before you reveal the answer.

  1. 1.A student compares the signal from a microphone with the signal inside a computer.

    1. (a)State how the microphone signal differs from the signal inside the computer.

      2 marks
      Show the answer

      Answer: The microphone gives an analogue signal, which rises and falls smoothly through every value in its range. The computer uses a digital signal, which is only ever high (1) or low (0) and jumps from one to the other.

      Marking points

      • Analogue: continuous, any value in a range
      • Digital: only two levels, high/1 and low/0
    2. (b)Give one example of an analogue device and one of a digital device.

      2 marks
      Show the answer

      Answer: Analogue: a pointer meter, an amplifier or a lamp dimmer. Digital: an ON/OFF switch, a computer or a digital clock.

      Marking points

      • A correct analogue example
      • A correct digital example
  2. 2.A phone records a voice using an analogue-to-digital converter (ADC).

    1. (a)Name and explain the three steps the ADC carries out.

      3 marks
      Show the answer

      Answer: Sampling: the voltage is measured at regular time intervals. Quantisation: each sample is rounded to the nearest allowed level. Encoding: the chosen level is turned into a code of 0s and 1s.

      Marking points

      • Sampling at regular intervals
      • Quantisation: rounding to nearest level
      • Encoding into binary numbers
    2. (b)What device turns the stored numbers back into sound for the loudspeaker?

      1 mark
      Show the answer

      Answer: A digital-to-analogue converter (DAC).

      Marking points

      • Digital-to-analogue converter (DAC)
  3. 3.A 3-bit ADC covers 0 V to 7 V in steps of 1 V.

    1. (a)How many different levels can a 3-bit code represent?

      1 mark
      Show the answer

      Answer: 2 × 2 × 2 = 8 levels (000 to 111).

      Marking points

      • 8
    2. (b)A sample of 3.4 V is taken. Write down the code the ADC gives it.

      2 marks
      Show the answer

      Answer: 3.4 V is rounded to the nearest level, 3 V, which is 011 in binary.

      Marking points

      • Rounded to level 3
      • 011
    3. (c)Suggest why digital signals can be sent over long distances more reliably than analogue ones.

      2 marks
      Show the answer

      Answer: Noise picked up on the way changes an analogue value permanently. A receiver of a digital signal only has to tell high from low, so small noise does not change the 1s and 0s and the signal can be restored.

      Marking points

      • Noise alters an analogue signal and cannot be removed
      • Digital only needs high/low decided, so noise can be rejected

Quiz

Quick check

6 questions

  1. 1.A signal that can take any value within a range and changes smoothly with time is:
  2. 2.In a digital circuit, the voltage is:
  3. 3.Which of these is an analogue control?
  4. 4.The first step an ADC performs on an analogue signal is:
  5. 5.In an ADC, rounding each sample to the nearest allowed level is called:
  6. 6.How many different levels can an 8-bit ADC produce?

Related articles

Next step

Now see it move

Open the full circuit builder simulation for every preset, graphs and the teacher tools, then test yourself.

Circuit builder simulation: build any circuit you like