Skip to content
Tactiverge

School/△ Builder/Week 22

Signals: smooth waves and stored numbers

Your heartbeat, the hum of a fridge and a sensor wire all wiggle over time. How do engineers describe a wiggle with just a few numbers?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Signals are how machines hear, feel and see: every sensor produces one. This lesson starts a thread that runs through the rest of the school, from sampling here to filters, control and communication later. It all rests on three numbers you can read off any wave.

  • ◇ Distinguish a continuous (analog) signal from a discrete (digital) one.
  • ◇ Read amplitude, period and frequency from a repeating signal, using f = 1 ÷ T.
  • ◇ Explain why digital signals resist noise better than analog ones.

2.Discover

Set the sample rate to 60 Hz and the ADC to 8 bits so the dots hug the curve. Change the signal frequency from 1 Hz to 4 Hz: count the cycles in one second each time, and read the period from the slider label. Then untick 'Show the real analog signal'.

Loading the interactive…

Can't use the interactive? Read a description instead

The signal lab draws one second of a smooth wave centred on 1.65 V with an amplitude of 1.2 V. You choose its frequency (the number of full cycles in that second) and the period is shown as 1 ÷ frequency. Dots show the values a computer stores. Unticking the analog curve leaves only the stored dots and the step-shaped line they make.

3.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1 · a fresh version every time

One full cycle of a signal takes 1 ms. What is its frequency, in hertz?

Hz

4.Predict

UK mains electricity repeats 50 times every second. How long does one cycle take?

Guess first. Being wrong here is how the surprise works.

5.Understand

Continuous and discrete

An analog (continuous) signal has a value at every instant and can take any value: the voltage from a microphone, the height of a wave at sea. A digital (discrete) signal is a list of numbers: values at separate moments, each rounded to one of a fixed set of levels. Computers can only store the digital kind, so every sensor reading must be turned into numbers.

Amplitude, period, frequency

For a repeating signal: the amplitude is how far it swings from its middle (a wave from 0.45 V to 2.85 V has a middle of 1.65 V and an amplitude of 1.2 V). The period T is the time for one cycle. The frequency f is cycles per second, in hertz: f = 1 ÷ T. Resting heart rate: about 72 beats a minute = 1.2 Hz, period ≈ 0.83 s. The note A above middle C: 440 Hz, period ≈ 2.27 ms.

Why digital resists noise

Every wire picks up noise: small, random wiggles. In an analog signal the noise becomes part of the value and cannot be told apart. A digital wire only has to be read as 'high' or 'low', so a wiggle of 0.2 V on a 3.3 V logic signal changes nothing. Once a value is stored as a number it can be copied a million times without getting worse.

Explain it another way

Analog is a ramp; digital is a staircase. You can stand anywhere on a ramp, but only on the steps of a staircase, and a staircase is easier to describe exactly: 'step 7'.

Worked example 1

A light sensor's voltage swings between 0.9 V and 2.1 V and repeats every 10 ms (a flickering lamp). Middle, amplitude and frequency?

Middle = (2.1 + 0.9) ÷ 2 = 1.5 V. Amplitude = (2.1 − 0.9) ÷ 2 = 0.6 V. f = 1 ÷ 0.010 s = 100 Hz: lamps on 50 Hz mains often flicker at twice the mains frequency.

Common mix-ups

  • Digital signals are always better.
    ✓ The world is analog. Digital is a way to store and copy measurements reliably, but sampling and rounding lose detail if done badly.
  • Amplitude is the distance from the bottom to the top of the wave.
    ✓ That is the peak-to-peak value. Amplitude is half of it, measured from the middle.

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

A signal has a frequency of 440 Hz. What is its period, in milliseconds?

ms

Practice 3

A signal swings between 0.45 V and 2.85 V. What is its amplitude (half the peak-to-peak swing), in volts?

V

Practice 4

Which of these is a digital signal?

Practice 5

A 3.3 V logic wire picks up 0.2 V of noise. Why does the receiving chip usually still read the right bits?

7.Apply it

Find three repeating signals in your life (a heartbeat, a ticking clock, a washing machine's spin, a flashing bike light). For each estimate the period by timing ten cycles and dividing by ten, then calculate the frequency in hertz. Record your method and uncertainty.

8.Reflect

Concepts: Signals: amplitude, frequency and period