Search results
Compass {Introduction } This tutorial shows you how to create a program that displays which direction the micro:bit is pointing. Let’s get started! {Step 1} First, store the ||input:compass heading|| of the micro:bit in a variable called ||variables:degrees|| in the ||basic:forever|| loop.
- Crashy Bird
First, we are going to add a sprite for the bird from the...
- Games
Here are some cool game projects that you can build with...
- Rock Paper Scissors V2
Rock Paper Scissors V2 {Introduction } Build a “Rock Paper...
- Hot Potato
In this game, you will start a timer with a random countdown...
- Dice
Go further - Try adding some Music blocks to make a sound...
- Tools
Make a Digital Balance Make a Digital Dice Make a Trundle...
- Heads Guess
This is a simple remake of the famous Heads Up! game. The...
- Morse Chat
Morse Chat {Introducing Sky } 🐷 Meet Sky, the pig! Sky can...
- Crashy Bird
Step 1: Make it What is it? Turn your micro:bit into a simple compass which shows its bearing from magnetic North in degrees. How it works. Your micro:bit has a built-in compass sensor called a magnetometer. You can use it to measure the Earth’s magnetic field and use it as a compass.
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.
Learn how to use an if statements to run code run code depending on whether a condition is true or not. We will be learning how to create a compass with If statements, Forever, Variables, Assignment Operator, Comparison Operator, Show String, and Show LEDs.
Build a compass with your micro:bit* online editor https://makecode.microbit.org* setup your code editor and video https://youtu.be/HRtzLjkqIJk* questions an...
20 kwi 2019 · In this post, I’ll be explaining the compass sensor – showing how to use it and walking through a simple program to turn your micro:bit into a working compass. The compass sensor on the micro:bit For this program, I’ll be using the micro:bit blocks in Microsoft MakeCode .
20 maj 2024 · This video shows how to write code to make the micro:bit into a compass using the compass sensor embedded on the micro:bit. It is an intermediate level coding activity. It utilized if/then...