All tutorials

Spooky Signals

microbitedublocksBeginner ⏱ 20 mins

Overview

Can you send a ghost across the room without touching it? Let’s find out!

In this project you will learn how to send messages between two using . You will write a that keeps checking for messages and shakes, and use an to notice when your micro:bit is shaken. When a message arrives, it gets stored in a , and the code shows a ghost on the . Shake one micro:bit, and the ghost jumps to the other one!

Before you start, you’ll import the tools your code needs. Each step adds a little more to your ghost game, so take your time and test as you go.

🎯

What you'll learn

  • How to connect two micro:bits using radio
  • How to use an accelerometer to detect a shake
  • How to use a while loop to keep checking for messages
  • How to store a message in a variable
  • How to show a picture on the LED Matrix