Micro:bit Compass Tutorial
Have you thought of using your BBC micro:bit to find your way? Follow these steps and you will impress your friends with this by never getting lost again!
You will need :
Step 1 : Print the Compass
Simply download the STL file for the compass using the download button on this page. If you want to print a chain, you can download Simone Fontana's one, it's support free!
Next, you will have to slice the parts. That means to generate a code, representative of your 3D part which your printer will be able to understand. This action is called “slicing” because your printer prints layer by layer and the software needs to calculate the path that the printer's nozzle will follow. Make sure to use the appropriate slicer for your 3D printer, ask your teacher if you need help!
Here are the settings for printing your compass: speed at 70 mm/s, 0.2mm layer height, 10% infill, temperature between 200ºC and 240ºC.
Step 2: Flash your micro:bit
You can download the code by clicking on the link below or on the zip file on this page. Click on “Compile” to download the code to your computer. Drag and drop the file into the micro:bit icon on your computer section.
LOOK OUT! Every time you reset the device you will need to calibrate the compass by moving the micro:bit in a circle.
The compass on the micro:bit returns a number between 0 and 360. This value represents the angle between the current position of the micro:bit and North.