Presentation is loading. Please wait.

Presentation is loading. Please wait.

Micro:bit Radio 2 Makecode.

Similar presentations


Presentation on theme: "Micro:bit Radio 2 Makecode."— Presentation transcript:

1 Micro:bit Radio 2 Makecode

2 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?

3 Transmit Multiple Messages
My Microbit

4 How do you code choices and decisions?
IF then ELSE Logic

5 If then else Logic – Weather Example
IF it rains then bring an umbrella IF it snows then wear boots ELSE wear sunglasses

6 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

7 Problem – how to know who sent a radio message
Aaron Justyn Nathalie

8 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

9 Sender Radio Send Number Nathalie 1 Justyn 2 Aaron 3

10 If then statement blocks


Download ppt "Micro:bit Radio 2 Makecode."

Similar presentations


Ads by Google