To complete this tasks you will want two additional tabs open:
- Make Code Editor Tutorial
- OneNote ClassNotebook
What can we measure with digital tools?
There are many types of digital sensor. The Microbit has the ability to measure all of these
- Sound
- Light
- Temperature
- Motion - orientation
- Location (Magnetism)
- Radio Signals
Spend some time looking at these two programs and try to decide what they do. How do they work? Ask your partner what they think.
Compass
The compass can detect magnetic fields such as the Earth’s magnetic field.
As the micro:bit has this compass, it is possible to detect the direction it is moving in.
The micro:bit can detect where it is facing and movement in degrees.
This data can be used by the micro:bit in a program or be sent to another device.
Follow the Tools - > Compass tutorial to build your own
What is a variable?
Variables are used in computer programming to store specific values within a program.
For example, the variable in this program is the compass heading something between 0 and 360.
NB - there is a oddity in this code that is is mirrored when on the simulator but it is correct on the hardware! Why would this be....?
Now build the program with your partner.
Plenary and Innovations
Good design is all about inclusivity and accessibility while ensuring the tool is reliable and fit for purpose.
Can you think of ways to make this tool more inclusive?
How would you innovate this tool for someone who is blind or with poor vision?
How could you make this tool more accurate for someone who goes hiking?