MicroBit Final Task
MicroBit Final Task
What is it?
This simple compass will show you which way is North.
How it works
Step 2: Code it
Step 3: Improve it
Make the compass more accurate by reducing the range of bearings: make the
number 45 smaller and 315 bigger.
Add other points of the compass to show when the
micro:bit is pointing East, West and South. Must do it
Can you show more directions?
Add sound so it makes a noise when pointing North so someone who is
visually impaired can use the compass.
Test your code for all values above
1. Reflection
Task 2
2. Create a code to show all numbers from 0 to 1000 using 3
inputs.
Remember: Any decimal number can be written in form of
Units, Tens, Hundreds, etc
Example: 26 = 20 + 6
587 = 500 + 80 + 7
b) 7
c) 23
d) 112
e) 777
f) 1000
3. Place a screenshot of your code here
4. Change your code to show all negatives numbers up to -1000
5. Test your code. Show the teacher the following numbers
a. -1
b. -25
c. -100
d. -534
e. Place a screenshot of your code here
6. Explain your code and highlight the difference between code 1
positive numbers) with code 2 (negative numbers)
For the first code (positive numbers), when you start the Micro Bit, it
sets the number to 0, when you press A, the code adds 1 unit. When
you press B, the code adds 1 ten, and when you press A and B, the code
adds 100 to the number. And when you press P1, it shows you the
number string.
For the second code (negative numbers), is it the exact same thing but
instead of adding it’s subtracting the number instead.
The difference is that you subtract the numbers instead of adding.
Criteria