Ping Pong

Total points possible Uses
10 Two Micro:bits, Battery pack with 2 AAA batteries, Radio, LED Display

Description

In this project, we will use the radio on the micro:bit to send messages from one microbit to another. You will light up an LED when a message is received so that it looks like the people holding the micro:bits are playing ping pong.

Basic Task

Collect points for these stages:

Tasks Points
Read the radio tutorial sheet. Write code to transmit and receive messages. Print the message sent on the REPL. 2
Add some code so that the message is sent when button A is pressed. 1
Connect the battery pack to the second micro:bit. Upload the same code the second micro:bit. 2
Test the pair of micro:bits. You should be able to send and receive messages. 2
When a message is received, light up an LED for a second. 1
Keep the score on each device. Count the number of messages received. 1
If button B is pressed, display the score. 1