Micro:bit - Using the accelerometer

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

Resource overview

Lots of modern devices are able to tell what position they are in using built in accelerometers to measure their precise orientation. The Micro:bit's accelerometer can be used in the same way so you can use it as a controller or a sensor to start or interrupt your program. Use these resources to help your class learn the basics of how to use the accelerometer.

Lesson plan   Teacher guide
  • Key resource information

    • You will need: Laptops or desktop computers, BBC micro:bits (one per computer), https://microbit.org

     

  • Teaching assessment opportunities

    • Try the first activity again – or use the step counters during a PE lesson. 
    • Did the micro:bits work? 
    • Who had the most steps on their counter after the activity?
  • Lesson length

    • 45 minutes

     

  • Pupil objectives

    • "I can explain what an accelerometer measures, and can code my micro:bit to use the accelerometer in a meaningful way”
    • “I can design and construct models and explain my solutions.”
    • “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 conditionals

Conditional statements are all around us in everyday life and in computing. Use everyday examples to bring conditionals to life and get the class moving with an offline activity before creating a Rock, Paper, Scissors game using the micro:bit.

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.