AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Digital data and robots

Week 27 · Unit 11: Autonomous robots · 3 lessons
1

From waves to numbers

Computing 6: Unit 11, pp. 150–161
GoalExplain the difference between analogue and digital data and describe how a sound is digitised.
New words
analogue data · data that changes smoothly, such as sound, light or the hands of a clockdigital data · data stored as numbers, which in a computer are binary 1s and 0sdigitisation · changing analogue data into digital datasample · one measurement of an analogue signal, taken at one moment
Explanation

The real world is analogue. Sound, light and temperature change smoothly, and our eyes and ears collect them as analogue data. Computers can only store and process digital data, which is made of binary numbers. To digitise a sound, a microphone and a converter measure the sound wave again and again, many times a second. Each measurement is a sample, and it is stored as a binary number. To play the sound back, a converter turns the numbers into a wave again and a speaker makes the sound. More samples every second give a copy that is closer to the original, but they need more storage.

Worked examples
0246810sample 1sample 2sample 3sample 4sample 5height of the wave
A microphone measures a whistle many thousands of times a second. Here are just five samples from a tiny moment of the sound. The real wave is smooth, but the computer keeps only the numbers 3, 7, 9, 6 and 2.
Sample valueBinary
30011
60110
91001
121100
Each sample is a number, and the computer stores it in binary. Here are four sample values written in 4 binary digits, using the place values 8, 4, 2 and 1.
AnalogueDigital
a speedometer with a needlea speedometer that shows 48 km/h
a thermometer with a liquid columna thermometer that shows 21.5
a bathroom scale with a needlea scale that shows 38.2 kg
Many everyday things come in an analogue form and a digital form. In the analogue form a position or a pointer shows the value. In the digital form we read a number.
Class activity

Sampling game (no computer): one player slowly raises and lowers a hand in a smooth wave, taking about ten seconds. Another player measures the hand height in centimetres with a ruler once every second and writes the numbers in a list. This list is digital data. A third player draws dots on squared paper from the list and joins them. Repeat the game but measure only every three seconds. Compare the two drawings with the real movement. Which copy is closer? What did you pay for the better copy? If you have a computer or tablet, ask an adult to help you record a few seconds of your voice.

Practice
1
Is each of these analogue or digital? (a) the sound of rain on a roof (b) a recording of the rain saved on a phone (c) a needle on a car’s fuel gauge (d) a step counter that shows 4512
2
A camera sensor measured the brightness of five dots along one line of a photo, on a scale from 0 to 15. Write the digital data as a list of numbers.
0510152915114dot 1dot 2dot 3dot 4dot 5brightness
3
Write the 4-digit binary number for the sample value 10.
Sample valueBinary
50101
10?
151111
4
Why does a computer need a digital-to-analogue converter before sound goes to a speaker?