Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

      Connecting micro:bits to other hardware

      Lesson details

      Learning outcome

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

      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.

      Teacher tip

      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.

      Equipment

      Pupils will need wires, an LED and a device with block-based programming software that can be used to program a physcial controller. Examples use Microsoft MakeCode https://oak.link/makecode

      Licence

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

      Lesson video

      Loading...

      Prior knowledge starter quiz

      6 Questions

      Q1.
      Match these terms to their correct definition.

      Correct Answer:input,data that is sent to a program to be processed

      data that is sent to a program to be processed

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

      information that is produced by a computer

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

      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

      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

      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

      the physical components of a computer

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

      the programs and applications that run on a computer

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

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

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

      a closed path through which electric current flows

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

      technology that allows devices to exchange data using radio waves


      To help you plan your 7 computing lesson on: Connecting micro:bits to other hardware, download all teaching resources for free and adapt to suit your pupils' needs...