GoalName the output devices of a micro:bit and say how input, process and output work together.
New words
output device · a part that lets the board send information to usLED · a small light: the micro:bit screen has 25 red LEDsspeaker · a part that makes soundpin · a metal connection at the bottom edge where an adult can add extra parts
Explanation
An output device lets the board send information out. The 25 red LEDs make up the display, which can show pictures, numbers and words. The speaker plays sounds. The radio can send a message to another micro:bit. Two small lights tell us about the board. The red power light is on when the board has power, and the yellow light flashes when the computer is sending a program to it. Some parts work both ways. The LED display can also sense light, and the radio can send and receive. The pins let an adult add extra parts, such as a buzzer. Every program has three steps: input, process and output.
input→process→output
Worked examples
button A pressed→program runs→left arrow flashes
The bag light from last week works like this. Button A is the input. The program is the process. The LED display, which flashes the left arrow, is the output.
Device
As an input
As an output
LED display
senses how bright it is
shows pictures and words
radio
receives messages
sends messages
pins
take data from an extra sensor
power an extra buzzer or light
Some devices work as both input and output.
Light
What it tells us
red power light
the board has power
yellow USB light
the computer is sending a program to the board
The two small status lights tell us what the board is doing.
Class activity
Human board (with family): one person is the micro:bit and holds a card program: “One clap: show a picture. Two claps: say a word. Shake my hand: do a spin.” Another person gives the inputs. The micro:bit decides and gives the output. Change the roles. Write down which devices of the real board are being played: the microphone and accelerometer for the inputs, the LED display and speaker for the outputs.
Practice
1
Is each device an input or an output? A button B, B speaker, C light sensor, D LED display, E temperature sensor, F radio when it sends.
Device
Input or output?
A button B
?
B speaker
?
C light sensor
?
D LED display
?
E temperature sensor
?
F radio sending
?
A input, B output, C input, D output, E input, F output.
2
Which input and which outputs does this algorithm use?
Step
Instruction
1
Start program when button A is pressed
2
Play giggle sound
3
Show yes icon
4
Wait 2 seconds
5
Clear screen
6
Stop program
The input is button A. The outputs are the speaker (play giggle sound) and the LED display (show yes icon).
3
Name one device that can be both an input and an output and explain how.
For example: the radio receives messages (input) and sends messages (output). The LED display shows pictures (output) and can sense light (input).
4
Which light tells you that the board has power? Why should only an adult add parts to the pins?
The red power light. Pins are connected to electricity, so an adult must make sure that parts are fitted safely.