icon-background-square
New
New
Year 7

Connecting micro:bits to other hardware

I can write programs that enable physical computing devices to interact with external hardware and communicate wirelessly with other devices.

icon-background-square
New
New
Year 7

Connecting micro:bits to other hardware

I can write programs that enable physical computing devices to interact with external hardware and communicate wirelessly with other devices.

warning

These resources will be removed by end of Summer Term 2025.

Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.

Lesson details

Key learning points

  1. Use external components to extend functionality.
  2. Control external hardware components using programs and GPIO pins.
  3. Use wireless communication to send and receive messages.

Keywords

  • GPIO pins - General Purpose Input/Output (GPIO) pin, is a programmable pin found on microcontrollers and other digital devices

  • Circuits - is a complete path that electricity can travel through. It’s like a loop that lets electric current flow

  • Wireless - the transmission of data between devices without using physical cables or wires

Common misconception

Sending and receiving radio signals broadcasts to all devices that have radio capability.

A radio channel can be set which means that only devices on that same channel will receive those broadcasts.

Bring in a variety of external components (e.g. LEDs, buzzers, motors) and allow students to explore them. Discuss how these components can extend the micro:bit's functionality and enable the creation of more complex projects.
speech-bubble
Teacher tip
equipment-required

Equipment

Access to a device that connects to the internet to use the micro:bit makecode website. It would be beneficial for pupils to have access to two micro:bits, USB cable, wires and an LED.

copyright

Licence

This content is © Oak National Academy Limited (2025), licensed on
Open Government Licence version 3.0
except where otherwise stated. See Oak's terms & conditions (Collection 2).

Lesson video

Loading...

6 Questions

Q1.
Match these terms to their correct definition.
Correct Answer:input,data that is sent to a program to be processed
tick

data that is sent to a program to be processed

Correct Answer:output,information that is produced by a computer
tick

information that is produced by a computer

Correct Answer:hardware component,a physical part of a computer or device, such as wires or buttons
tick

a physical part of a computer or device, such as wires or buttons

Correct Answer:LED,a component that emits light when electricity flows through it
tick

a component that emits light when electricity flows through it

Correct Answer:sensor,a device that can detect physical properties such as light or movement
tick

a device that can detect physical properties such as light or movement

Q2.
What would “playing a sound” be classified as?
input
Correct answer: output
storage
Q3.
LED stands for Light-Emitting .
Correct Answer: Diode
Q4.
What does GPIO stand for?
General Processing Input/Output
Correct answer: General Purpose Input/Output
Global Performance Input/Output
Global Programmable Input/Output
Q5.
Which block allows you to select between two possible outcomes based on whether a condition is met or not?
If
Correct answer: `If else`
While
Forever
Q6.
Put these steps in order to store a program on a micro:bit so it can be run without the emulator.
1 - Connect the micro:bit to your computer using the USB cable.
2 - Download the file.
3 - Disconnect the micro:bit.
4 - Test your program works using the hardware on the micro:bit.

6 Questions

Q1.
Why would you want to connect external components to a micro:bit?
to make the micro:bit heavier
to increase the power usage
to limit its capabilities
Correct answer: to extend it’s functionality
Q2.
What do we mean by the term “closed circuit”?
Correct answer: a circuit without interruption, providing a continuous loop
a circuit where electricity is stopped from flowing
a circuit that is not currently being used
a faulty circuit
Q3.
What is the name of the pins that allow you to control hardware components with a micro:bit?
Correct Answer: GPIO, GPIO pins, General Purpose Input/Output , General-Purpose Input/Output
Q4.
We want to create a program that will create a closed circuit when we press GPIO pin 0 and GND pin. Which block do we need?
button 0 is pressed
Correct answer: `pin P0 is pressed`
pin GND is pressed
set GPIO to 0
Q5.
What type of signal is used to send data between two micro:bits wirelessly?
Correct Answer: radio, Bluetooth
Q6.
Match the terms to the correct descriptions.
Correct Answer:hardware,the physical components of a computer
tick

the physical components of a computer

Correct Answer:software,the programs and applications that run on a computer
tick

the programs and applications that run on a computer

Correct Answer:GPIO pins,used for sending/receiving electrical signals to/from other devices
tick

used for sending/receiving electrical signals to/from other devices

Correct Answer:circuits,a closed path through which electric current flows
tick

a closed path through which electric current flows

Correct Answer:wireless,technology that allows devices to exchange data using radio waves
tick

technology that allows devices to exchange data using radio waves