Lesson 3 - this is where I thought I'd introduce the radio communications. Getting the micro:bits to interact with each other should make the lessons a bit more interesting.
In the last post I mentioned that the boys also wanted to try programming Minecraft mods. We did try one lesson, but it was a bit of a learning curve for all of us, just working out how to connect to and run the development environment in the browser. I think I need to go away and run through it in advance otherwise progress is too slow and everyone gets frustrated.
So I decided to carry on with the micro:bit.
Send a Message
The first project was simply to get the micro:bits to send messages to each other. I showed them how to set up a program to show a received radio text message and then send a text message.
They then coded the buttons to send three message (A, B and A+B).
That was quite fun to press the button and see the message appear on the other micro:bit.
Here's the code my eldest, Anton wrote:
Hide and Seek
So - we had established that the micro:bits could talk to each other. Now I wanted to establish how the signal strength could be used to determine how close to each other the micro:bits are.