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

Term 3 review

Week 30 · Review: Term 3 · 3 lessons
3

Control systems and micro:bit

Computing 4: Units 9–12, pp. 123–179
GoalDescribe input, process and output in a control system, and trace a micro:bit program with a loop.
New words
control system · a system in which inputs are processed to give outputssensor · a part that measures something such as light, heat or movementdata logger · a device that records readings again and againoperating system · the software that looks after the computer and runs the other programs
Explanation

A control system has an input, a process and an output. A sensor gives the input. The program is the process. It compares the input with a rule. The output, such as a motor, a light or a sound, does the job. A data logger takes readings at regular times and stores them. The operating system looks after the computer, and application software, such as a spreadsheet, does a job for the user. Files are different in size. Text files are small, audio files are larger, and videos are usually the largest. A micro:bit is a small control system with buttons, a logo, a shake input and a display of lights.

PartGreenhouse windowmicro:bit shake show
inputa temperature sensorthe board is shaken
processthe program compares the reading with 30the program runs the repeat block
outputthe motor opens the windowthe lights flash
Worked examples
show ledspause (ms)500clear screenpause (ms)500repeat3timesonshake
A shake show. When the board is shaken, the X shows for 0.5 seconds and goes off for 0.5 seconds, 3 times. A round is 1 second, so the show takes 3 seconds. The X is on for 3 × 0.5 = 1.5 seconds altogether.
TimeReading
00:0011 °C
02:0010 °C
04:009 °C
06:0010 °C
……
A data logger takes a reading every 2 hours. In 24 hours it takes 24 ÷ 2 = 12 readings. The readings are stored, and a person can look at them later.
FileMade of
notewords
voice notesound
photoa picture
film clippictures and sound
Sorting software and files. A spreadsheet program is application software. The operating system is system software. A one-minute film clip is a much bigger file than a short text note.
Class activity

Control it yourself (with family): choose a job in your home that could be done by a control system, such as a night-light that comes on when it is dark. Draw three boxes: input, process, output. Fill them in. What would the sensor be? What would the rule be? Is there any task that a person must still do? Share the plan with a grown-up.

Practice
1
A school gate light comes on when a sensor says it is dark. Name the input, the process and the output.
2
A data logger takes a reading every 30 minutes. How many readings does it take in 3 hours?
3
For how long is the diamond on in total, and how long does the show take?
show ledspause (ms)500clear screenpause (ms)500repeat4timeson logopressed
4
Write the algorithm: when the logo is touched, show the heart for 2 seconds and then clear the screen.
StepInstruction
1?
2?
3?
4?