Micro:bit - Introduction to loops

 Key Stage: Key Stage 2  Coding Language: Micro:bit  Resource type: Lesson plan + teacher guide

Resource overview

Creating clear and simple code makes fixing, or debugging, your code much easier. Using loops to simplify your instructions is a great way to start writing efficient code. In this lesson get the class moving as they learn about loops through dance, before moving on to create a simple game using loops and your micro:bit.

Lesson plan   Teacher guide  
  • Key resource information

    • You will need: Laptops or desktop computers, BBC micro:bits (one per computer), https://microbit.org, music and enough space to dance.

     

  • Teaching assessment opportunities

    • Have the class play each other’s animations and give feedback
    • Did everyone use the same loop blocks?
  • Lesson length

    • 45 minutes

     

  • Pupil objectives

    • "I can explain what a loop is in computer programming, where I might use one and for what purpose”
    • “I understand the operation of a process and its outcome. I can structure related items of information.”
    • “I can demonstrate a range of basic problem solving skills by building simple programs to carry out a given task, using an appropriate language.”. 

Related resources

Introduction to Micro:bit

The BBC Micro:bit is an external device designed to introduce children to the basics of coding through physical computing. It's a great way to help your class understand the relationship between code and the devices it controls. Use this lesson to introduce the micro:bit and help your class get started with physical computing.

Downloading your code

Use this guide to get to grips with downloading your code from the micro:bit website to your device, before introducing micro:bits into your classroom.

What is the Micro:bit

Use this handout to show your class the different features of the micro:bit and where they are on the device.

Any questions?

Code Playground is all about offering the support you need. If you have a question, comment or suggestion, please don’t hesitate to get in touch. We’d love to hear from you.