Week 27 · Unit 11: Be a robot controller · 3 lessons
1
Sensors and data loggers
Computing 4: Unit 11, pp. 152–167
GoalName common sensors and what each one detects, and explain how a data logger collects data on its own.
New words
sensor · an input device that detects a change in its surroundingsdistance sensor · a sensor that measures how far away something isinfrared sensor · a sensor that detects invisible infrared light, such as the light a remote control sendsdata logger · a device with a sensor, a processor and storage that is left alone to collect data
Explanation
A keyboard and a mouse are input devices that people use with their hands. Control systems also use sensors. A sensor is an input device that detects something around it, such as temperature, light, movement or distance. A temperature sensor tells a fridge how cold it is. A distance sensor tells a robot how close a wall is. An infrared sensor in a television notices the invisible light that comes from a remote control. Each sensor sends data to the processor. A data logger is a small device with a sensor, a processor and storage. It is left alone for hours or days, and its data is collected later.
Worked examples
Machine
Sensor
What it detects
phone screen that gets brighter in sunshine
light sensor
how bright it is
fish tank heater
temperature sensor
how warm the water is
television remote control
infrared sensor
a signal sent as invisible light
hand dryer
motion sensor
hands moving under it
parking aid on a car
distance sensor
how close the wall is
Which sensor does each machine use? In every row the sensor sends its data to the processor, and the processor decides what the output should do.
A data logger was left in a classroom during the holidays to see how warm it gets. It recorded the temperature every 2 hours. The chart shows the readings. The highest reading is 24 degrees at 14:00 and the lowest is 14 degrees at 08:00. The room was 24 − 14 = 10 degrees warmer in the afternoon.
A data logger is useful in places where a person cannot stay for hours. The logger saves each reading in its storage. Later, a person takes the logger back and reads all the data at once.
Class activity
Human data logger (with family): you are the data logger. Choose a place such as your garden, a balcony or a window. At five times during one day, write down the time, whether it is bright, dim or dark and how warm it feels on a scale from 1 (cold) to 5 (hot). If you have a thermometer, record the temperature too. Make a table and a bar chart afterwards. At what time was it the warmest? What is one thing a real data logger can do that you cannot do?
Practice
1
Choose the sensor (distance, light, temperature or motion) for each job: (a) curtains that close by themselves when the sun goes down, (b) a toy car that stops before it hits a wall, (c) a bathroom fan that starts when someone walks in, (d) a heater that switches off when the room is warm enough.
What is the difference between a sensor and a data logger?
A sensor only detects something and sends the data on. A data logger contains a sensor, a processor and storage, and it keeps the data for later.
3
A logger in a school garden recorded the temperature at 06:00, 09:00, 12:00, 15:00 and 18:00. At what time was it warmest, and how much warmer was it than at 06:00?
A
B
1
Time
Degrees
2
06:00
9
3
09:00
13
4
12:00
18
5
15:00
20
6
18:00
15
At 15:00 it was warmest, at 20 degrees. That is 20 − 9 = 11 degrees warmer than at 06:00.
4
Name two places where a data logger would be useful and say why.
For example: inside a cold store, because a person cannot stay there for days; on a mountain top at night, because it is dangerous and a person would need to stay awake.