Micro:bit Mine Clearance Alarm

Hello, let’s try the compass on the micro:bit today! A digital compass is an input sensor that detects magnetic fields. Your BBC micro:bit has an inbuilt compass that can detect the direction in which it is facing. I am going to make a mine clearance alarm project today.
Firstly let’s have a look at where the compass stays on the micro:bit:
Actually, the compass could be regarded as a module to measure the magnetic field strength in various directions. The magnetic field strength can be understood as the attractive force of the magnets we usually play with. And of course, it could tell us the directions. Now let’s try our gameplay today.
Detect if there is any magnetic hidden somewhere, if yes, program to display a sad face or display a happy face.
Materials required:
Firstly, judge the magnitude of the magnetic field, if it is bigger than a certain value, execute the program in the module. Here I set the value to 400. You could change this value to adapt the sensitivity of the measurement.
Here judge if the magnitude is over 400. If yes, set to display a sad face; or with a happy one.
You can try hiding the magnet and use our micro:bit to easily find the position of the magnet!
If you have any ideas or opinions, please feel free to contact us via services@elecfreaks.com.
Share this post
About the Author

ELECFREAKS focuses on microbit and publishes interesting articles
Related Posts
Introduction to the history of the BBC micro:bit
New BBC micro:bit-micro:bit V2
How to make a meme with micro:bit ?
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Comments