DIY Digital Compass Using micro:bit

DIY Digital Compass Using micro:bitMAKER:Chen Liang/Translation:Fun Without End

The micro:bit mainboard integrates an electronic compass module. This tutorial teaches you how to make a compass using micro:bit. This project is very simple and is suitable for beginners who are just starting with micro:bit.

Materials List

DIY Digital Compass Using micro:bitDIY Digital Compass Using micro:bitmicro:bit ×13V battery holder (with JST connector) ×1CR2032 AAA ×2CR2032 AA ×2

3D Printed Case (Optional)

DIY Digital Compass Using micro:bitDIY Digital Compass Using micro:bitPrint a suitable case. The 3D model can be downloaded from the project file library:https://maker.quwj.com/project/111

Electronic Compass

DIY Digital Compass Using micro:bit1. Input: The micro:bit has a magnetic field sensor, similar to a traditional compass needle, sensing the magnetic field generated by the Earth. The micro:bit library can convert the sensor information into a 360-degree value (relative to north).

2. Output: The micro:bit has a 5×5 LED matrix that can display 8 directions (North, Northeast, East, Southeast, South, Southwest, West, Northwest).

Reference address:https://tech.microbit.org/hardware/

Notes on Magnetic Field Direction

DIY Digital Compass Using micro:bitPlease note that the magnetic field sensor and the LED are mounted in different directions on the PCB.

When you look at the side with the LED, the direction of the magnetic field display is inverted. Alternatively, you can process the readings counterclockwise starting from north.

Setting Angle Values

DIY Digital Compass Using micro:bit

Input is a 360-degree value converted into eight output directions. The following are the settings for angle values.

23 – 68 NW68 – 113 West113 – 158 SW158 – 203 South203 – 248 SE248 – 293 East293 – 338 NEOthers North

Programming

DIY Digital Compass Using micro:bitFor the online simulation link, please click:https://makecode.microbit.org/_RfA4jH2Rae78Downloading is very simple; just copy the HEX file to the micro:bit to get it running.

If you are not familiar with micro:bit, you can download the beginner’s guide from the official website. Please click:https://microbit.org/guide/quick/

Calibrating the micro:bit Compass

DIY Digital Compass Using micro:bitIf you are using the micro:bit magnetic field sensor for the first time, the LED matrix pattern will display “TILT TO FILL SCREEN”.

Please click the following link to view the video to help calibrate the micro:bit electronic compass.https://support.microbit.org/support/solutions/articles/19000008874-calibrating-the-micro-bit-compass

Completion

DIY Digital Compass Using micro:bitThe micro:bit electronic compass is a very simple project, and there are many more projects you can try with micro:bit. I recommend you to give it a try.https://microbit.org/ideas/ and more tutorials on micro:bit.

Project file library address:

http://maker.quwj.com/project/111

via instructables.com/id/Microbit-Compass/

Links in the article can be clicked to read the original text at the end

DIY Digital Compass Using micro:bit

More Exciting Content

Raspberry Pi Video Surveillance Solution motionEyeOS

Arduino + Servo Finger Spinner Robot

Making LED Matrix Color Lights with Raspberry Pi and Arduino

Creating an LED Scrolling Display with Arduino

Playing with micro:bit MicroPython on Raspberry Pi

How cool is it to combine your Raspberry Pi with a night vision camera?

DIY Digital Compass Using micro:bit

Leave a Comment