Year 6
Finding your way
Lesson details
Key learning points
- 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](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707206195%2Foiqtkmswo6nqt2dji1uk.png&w=640&q=75)
Shake.
String.
Yes.
Q2.
Which of the following can be used to capture inputs on a micro:bit? (Tick 2 boxes)
LED lights.
USB port.
Q3.
Which of these statements is correct?
When you read the value of a variable the value changes.
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](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707168919%2Fs0qm2b8uxrvvhezur6af.png&w=384&q=75)
E
N
S
Q2.
The image below is an example of...
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707168924%2Fjlnuuccewtbyzyvhoaze.png&w=640&q=75)
An algorithm
Code
Task
Q3.
Which of these is a conditional statement in the code below?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707168929%2Fpwzk4ccvljtmofjbodyu.png&w=640&q=75)
forever
set heading to (>)
show string (heading)