Micro:bit Radio 2 Makecode
Radio Messages Problem: 3 microbits are transmitting messages to the same radio set group. I received a radio message. How do I know which club member sent it?
Transmit Multiple Messages My Microbit
How do you code choices and decisions? IF then ELSE Logic
If then else Logic – Weather Example IF it rains then bring an umbrella IF it snows then wear boots ELSE wear sunglasses
ELSE is Optional IF it rains then IF it snows then IF it is sunny then You can use a series of IF statements without an ELSE Example: IF it rains then bring an umbrella IF it snows then wear boots IF it is sunny then wear sunglasses
Problem – how to know who sent a radio message Aaron Justyn Nathalie
One Possible Solution Each sender will transmit a unique number The receiver will decode the number using an if then statement blocks to determine who sent the message
Sender Radio Send Number Nathalie 1 Justyn 2 Aaron 3
If then statement blocks