Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

3.2 (3 of 3): Storage, quantum computers and the Internet of Things

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

The doorbell that never stops watching

A smart doorbell has a camera. It films all day and sends every second of video to a computer far away.

One evening the home internet stops. The doorbell cannot send anything. A visitor arrives and nobody is told.

Could the doorbell be smarter? Could it decide for itself what to send? This is the idea of edge computing.

Key words

WordWhat it meansExample
Storage mediumA device or service that keeps data.A phone memory card or a hard disk
Terabyte (TB)A unit of storage. One TB is 1,000 GB.A big laptop disk
Quantum computerA computer that uses the rules of very tiny things.A research machine
QubitA quantum computer's bit, which can hold a mix of 0 and 1.A quantum bit
EncryptionScrambling (mixing up) data so only the right person can read it.A secret code on your messages
Internet of ThingsEveryday objects with sensors that connect to the internet.A smart heating system
SensorA part that measures something.A temperature sensor
Edge computingWorking on data close to where it is made.A doorbell that decides what to send
LatencyThe delay before data arrives.A video call with a long delay

The cells students fill in are left blank in this preview.

Check: what goes wrong with the doorbell?

Have a go

Check: what goes wrong with the doorbell?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

We need more storage every year

Every photo, film, message and game save uses storage. A storage medium is any device or service that keeps data.

Demand goes up every year. Phone cameras make bigger photos. Films come in higher quality. Companies keep records for many years. AI needs huge amounts of data.

More storage means more machines in data centres (buildings full of computers), more electricity and more cost.

Worked example: how big is a TB?

UnitSizeRoughly holds
Kilobyte (KB)1,000 bytesA short text message
Megabyte (MB)1,000 KBOne phone photo, about 4 MB
Gigabyte (GB)1,000 MBA film, about 3 GB
Terabyte (TB)1,000 GBAbout 250,000 photos
A 64 GB phone64 x 1,000 = 64,000 MB (64 times 1,000)64,000 divided by 4 = 16,000 photos

The cells students fill in are left blank in this preview.

Try it: how many photos fit?

Code: python
photo_mb = 4
phone_gb = 64
phone_mb = phone_gb * 1000
print(phone_mb // photo_mb)

# Change phone_gb to 128, then press Run again.
# Now change photo_mb to 8. How does the number change?

Make a free account to save your work and track your progress.

Match each storage type to its use

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Qubits can be 0 and 1 together

A normal computer uses bits. A bit is 0 or 1.

A quantum computer uses qubits. A qubit can be a mix of 0 and 1 at the same time. For some special problems this lets the machine try many answers together.

Quantum computers are still new, big and expensive. They will not replace your laptop.

Quantum computers: gains and worries

Possible gainPossible worry
Test new medicines on a computer before making themThey are very expensive, so only a few groups have them
Plan the best routes for thousands of vansA strong one might break some of today's encryption
Faster searches in huge sets of dataMost must be kept very, very cold, which uses a lot of energy

The cells students fill in are left blank in this preview.

Check: quantum computers and codes

Have a go

Check: quantum computers and codes

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

IoT objects sense and connect

The Internet of Things (IoT) is everyday objects with sensors that connect to the internet. A sensor measures something, such as heat, light or movement.

The object collects data and sends it. It may also get orders back. A smart heating system sees the room is cold and turns on.

Match each device to where it is used

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

A new device is not safe yet

Warning

Many people think a new smart device is safe to plug in and forget. Many cheap devices have weak passwords and never get updates. A hacker can use them to spy or to attack other systems. Change the password the device came with, and install its updates.

Edge computing: decide near the sensor

A flowchart that starts at "Sensor reads 22 degrees" and goes to the question "Is it normal?", checked on the device, where "yes, normal" leads to "Do nothing" and "Send nothing", and "no, too hot" leads to "Send an alert to the cloud", then to "A person is told".A flowchart that starts at "Sensor reads 22 degrees" and goes to the question "Is it normal?", checked on the device, where "yes, normal" leads to "Do nothing" and "Send nothing", and "no, too hot" leads to "Send an alert to the cloud", then to "A person is told".

Edge computing has four gains

Edge computing means doing the work close to where the data is made. The doorbell or the factory sensor does some thinking itself.

There is less latency (delay), because nothing travels far. It uses less internet, which saves money. It still works if the connection fails. Private data may also stay on the device.

Your turn: filter at the edge

Fill in three functions.

  1. Work out how many photos fit on a phone. One GB is 1000 MB. Use whole numbers.
  2. Keep only the temperature readings that are too low or too high. This is edge computing: only unusual readings are sent.
  3. Give back text such as "Sent 3 of 4 readings".

Press Run Tests to check your work.

Code: python
def photos_that_fit(storage_gb, photo_mb):
    # 1 GB is 1000 MB. How many whole photos fit?
    return 0


def edge_filter(readings, low, high):
    # Keep only the readings that are below low or above high.
    return None


def edge_summary(readings, low, high):
    # Give back text like: Sent 2 of 4 readings
    return ""

Make a free account to save your work, or press Start lab to work through the whole lesson.

Watch: what should the doorbell send?

Press Play on the short film below. It goes through the lesson again: the doorbell, storage, qubits, the Internet of Things and edge computing, each with its good and bad points. Listen for the myth at the end.

Film: storage, qubits, IoT and edge computing

Storage, quantum computers and the Internet of Things

Every scene, as text

  1. The doorbell that never stops watching. A smart doorbell films all day and sends every second of video far away (bad). One evening the home internet stops. A visitor arrives, and nobody is told (bad). Could the doorbell decide for itself what to send?
  2. Storage medium: a device or service that keeps data, such as a phone memory card or a hard disk. Phone cameras make bigger photos, and demand goes up every year (bad). More storage means more machines, more electricity and more cost (bad).
  3. Qubit: a quantum computer's bit, which can hold a mix of 0 and 1. A normal computer's bit is 0 or 1. A quantum computer's qubit can hold a mix of 0 and 1. For some special problems, this lets it try many answers together (good). But a strong quantum computer might break some of today's encryption (bad).
  4. Internet of Things: everyday objects with sensors that connect to the internet. A sensor is a part that measures something. A smart heating system sees the room is cold and turns on (good). But many cheap devices have weak passwords (bad). Change the password, and install their updates (a tick beside it: right).
  5. Edge computing: working on data close to where it is made, such as a doorbell that decides what to send. If the home internet stops, the doorbell still works (good). And there is less latency, the delay before data arrives, because nothing travels far (good).
  6. Myth (false): edge computing means no internet at all. It does not: it uses less internet. The lesson's diagram: is a reading normal? It is checked on the device. Normal: send nothing (good: it uses less internet). Too hot: it still sends an alert to the cloud (good: it still uses the internet for alerts), and a person is told.

Key words crossword

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Final check

Have a go

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.