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

Inputs and outputs

Week 19 · Unit 8: Be an innovator · 3 lessons
2

What comes out of the board

Computing 4: Unit 8, pp. 104–122
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.

Worked examples
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.
DeviceAs an inputAs an output
LED displaysenses how bright it isshows pictures and words
radioreceives messagessends messages
pinstake data from an extra sensorpower an extra buzzer or light
Some devices work as both input and output.
LightWhat it tells us
red power lightthe board has power
yellow USB lightthe 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.
DeviceInput or output?
A button B?
B speaker?
C light sensor?
D LED display?
E temperature sensor?
F radio sending?
2
Which input and which outputs does this algorithm use?
StepInstruction
1Start program when button A is pressed
2Play giggle sound
3Show yes icon
4Wait 2 seconds
5Clear screen
6Stop program
3
Name one device that can be both an input and an output and explain how.
4
Which light tells you that the board has power? Why should only an adult add parts to the pins?