Finding your way

Finding your way

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. In this lesson, we will use the compass on the micro:bit as an input device. We will initially design and create a program to display the direction in which the micro:bit is pointing before turning it into a navigational device.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

3 Questions

Q1.
What is the name of the variable in the code snippet below?
An image in a quiz
Correct answer: Answer.
Shake.
String.
Yes.
Q2.
Which of the following can be used to capture inputs on a micro:bit? (Tick 2 boxes)
Correct answer: Accelerometer.
Correct answer: Buttons A and B.
LED lights.
USB port.
Q3.
Which of these statements is correct?
When you read the value of a variable the value changes.
Correct answer: When you read the value of a variable the value remains.
When you read the value of a variable, the value is replaced.

3 Questions

Q1.
If the compass heading is 310, what will be displayed on the micro:bit?
An image in a quiz
E
N
S
Correct answer: W
Q2.
The image below is an example of...
An image in a quiz
An algorithm
Code
Correct answer: Program flow
Task
Q3.
Which of these is a conditional statement in the code below?
An image in a quiz
forever
Correct answer: If compass heading (<45)
set heading to (>)
show string (heading)

Lesson appears in

UnitComputing / Sensing

Computing