Create a simple program to run on two micro:bits that shows the strength of the Bluetooth signal between them.
When two micro:bits are sending messages to each other, you can get an idea of how close they are by looking at the signal strength. The stronger the signal, the closer the micro:bits are to each other.
Use this code to show the strength of the connection between two micro:bits. Make sure you and your partner broadcast a different number to the rest of the class.
To get the signal variable, click on the little cog at the top left and drag the signal block inside.
Test your code on two micro:bits.
The strength of the radio signal ranges from -128 (weak) to -42 (strong).
Move the micro:bits closer together and further apart to see the change in signal strength.