For this challenge we will use the microbit and a couple of LEDs to act as the indicators lights of a car. Our aim is to use the built-in accelerometer sensor of the mincro:bit to detect if it is being…
Have you ever seen a lightning flash or heard the thunder of lightning and wondered how close you were from the lightning strike? Have you noticed that there often was a delay between the flash of light and the clap…
During a gold rush, gold miners use different techniques to find traces of gold hidden in the ground. One technique that miners use is gold panning. It consists of scooping some gravels and clear water in a pan which is…
In this challenge we will use the BBC micro:bit to control a RGB LED to create a gradient light effect where the LED will fade from red to purple, to blue, to purple and back to red. To do so…
In this challenge we will create a game for the BBC micro:bit. Imagine you have been asked to bring a cupcake to Her Majesty the Queen Elizabeth II. You have picked the best cupcake from the kitchen and placed it…
For this challenge we are creating a game of Tetris to play on the BBC micro:bit. The game will be based on the following four shapes: The game will use the following inputs: Button A: Move current brick to the…
For this challenge you need to code your micro:bit so that when you shake the micro:bit a picture appears randomly. There should be three possible pictures: A picture of a rock, A picture of a pair of scissors, A picture…
For this challenge you will design and write a program to play against the BBC micro:bit. The micro:bit will display a random number between 0 and 100. It will then ask the end-user whether they believe the next number will…
In this challenge we will write a Python program to randomly shoot an arrow on a target. We will then use Pythagoras’ Theorem to calculate the distance between the arrow impact and the centre of the target. This distance will…
In this challenge we will code our BBC micro:bit to create a “rolling dice” animation. Our code will generate random numbers between 1 and 6 to create the animation and will include 8 frames. The last frame will be the…