Micro:bit Radio 2 Makecode.

Slides:



Advertisements
Similar presentations
We like to play. By Room? Insert photo. We like the rain. Insert photo of students dressed for rainy weather, umbrellas etc.
Advertisements

Decision Structures - If / Else If / Else. Decisions Often we need to make decisions based on information that we receive. Often we need to make decisions.
My Internet Safety Guide I have used scratch to program a guide to internet safety using QR codes.
If Statements, Try Catch and Validation. The main statement used in C# for making decisions depending on different conditions is called the If statement.
Chapter 13 Control Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display Control Structures Conditional.
1 Valid and Invalid arguments. 2 Definition of Argument Sequence of statements: Statement 1; Statement 2; Therefore, Statement 3. Statements 1 and 2 are.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program.
Sentences & Fragments. Sunny and warm tomorrow. A strong wind broke my umbrella.
if (condition) { // always either true or false then clause } if (condition) {// always either true or false then clause } else { // optional else clause.
 Demonstrate use of a “for loop” in the design and development of a Java program to calculate the total of a one-dimensional array of 6 integers.  Design.
WHAT’S THE WEATHER LIKE???  Is it hot today?  Is it freezing today?  Is it cold?  Is it rainy today?  Is it cloudy today?  Is it windy today?
What's the weather like ? 1 :click here! 2 :play!.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 4- 1.
Copyright © 2012 Pearson Education, Inc. Chapter 4: Making Decisions.
S A B D C T = 0 S gets message from above and sends messages to A, C and D S.
Weather and Daily Activities CLIL LESSON 1º ESO Grupo Donos.
Section 3 - Selection and Repetition Constructs. Control Structures 1. Sequence 2. Selection 3. Repetition.
Weather Symbols. Which of these symbols do you think represents rain? * **** * * ****
Chapter 9 IF Statement Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
Python – Making Decisions Lecture 02. Control Structures A program that only has one flow is useful but limited. We can use if statements to make these.
What’s up class?. What is your favorite terrain?! One person at a time say your favorite terrain! “My favorite terrain is the forest!” “My favorite terrain.
What is your favorite season?
Copyright © 2012 Pearson Education, Inc. Chapter 4: Making Decisions.
4 1 Array and Hash Variables CGI/Perl Programming By Diane Zak.
Making Decisions. 4.1 Relational Operators Used to compare numbers to determine relative order Operators: > Greater than < Less than >= Greater than.
Chapter 4 Making Decision Csc 125 C++ programming language Fall 2005.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Making Decisions.
Copyright 2003 Scott/Jones Publishing Making Decisions.
Chapter 1 Building Responsibility
Copyright © 2012 Pearson Education, Inc. Chapter 4: Making Decisions.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 4: Making Decisions.
MIT App Inventor Lesson 4 – Decision Making. Agenda Comparisons ◦ Relational Operators Conditions (state checking) ◦ Boolean Operators.
Chapter Making Decisions 4. Relational Operators 4.1.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 4 Making Decisions.
Seasons and The Weather. winter summer wear I know!!! I don’t know!!! snow It’s snowing sunny It’s sunny A hat, a scarf, & mittens.
What is Communication?. Communication / The process of sending and receiving messages / Must achieve understanding / Whenever you are awake and in the.
Basic Conditions. Challenge: ● Ask the user his/her name ● If it’s “Wally,” jeer him ● Pause video and try on your own.
VB Conditionals If Then, Select Case. If Then Useful computer programs typically have to make a lot of decisions. In VB, If…Then code is used for decision.
Decision Structures. Spacecraft Divine Vessel V will orbits earth 14 times in 21 hours First manned spacecraft of China, only the third country that can.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 4: Making Decisions 1.
I have used Scratch, to program a guide to internet safety. This is done by using QR codes to make it more interactive and interesting for people playing.
Lecture 6 – Selection FTMK, UTeM – Sem /2014.
Copyright 2004 Scott/Jones Publishing Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 4 Making Decisions.
When doing If statements in Python, they follow this logic: If Condition to test: “What to show if condition is true” Else: “What to show if condition.
 Sender (also known as the Encoder)  Person or being who transmits (sends) a message  Message  Idea or information that the sender wants to convey.
Vocabulary by: Danielle Fair. Intrapersonal Communication Communication with yourself.
Words to Describe the Weather
Chapter 4: Making Decisions.
Stage 7: Bee: Conditionals
Words to Describe the Weather
Chapter 4: Making Decisions.
EKT150 INTRODUCTION TO COMPUTER PROGRAMMING
Lesson 22. My Favourite Season!
Chapter 4: Making Decisions.
Seasons Winter Spring Summer Fall.
Words to Describe the Weather
BBC Microbit.
And the text with form..
The communication process model
Alternate Version of STARTING OUT WITH C++ 4th Edition
Stage 8: Maze: Conditionals
BBC Microbit.
Selection Control Structure
Three Special Structures – Case, Do While, and Do Until
Visual Basic – Decision Statements
Micro:bit Radio Makecode.
Program Flow.
Chapter 3: Selection Structures: Making Decisions
It is sunny! It is hot! It is hot in summer. It is shining and bright. Level2-5호 It is shining and bright. Level2-5호 Level2-5호 It is hot!
Presentation transcript:

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