micro:bit for primary schools – mb4ps.co.uk

Slides:



Advertisements
Similar presentations
BBC Microbit Getting set up and making your first program.
Advertisements

Lesson 4 Accelerometer.
@TeacherToolkit, license CC BY-NC-ND 3.0
micro:bit for primary schools – mb4ps.co.uk
micro:bit for primary schools – mb4ps.co.uk
micro:bit for primary schools – mb4ps.co.uk
@TeacherToolkit, license CC BY-NC-ND 3.0
@TeacherToolkit, license CC BY-NC-ND 3.0
@TeacherToolkit, license CC BY-NC-ND 3.0
micro:bit for primary schools – mb4ps.co.uk
Counting the Score - BBC micro:bit Quiz Counter
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
Displaying sensor values while a robot is running
Music Cards Music Cards
Traffic light programming challenges
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Learning to Code with the MicroBit
Music Cards Music Cards
BBC Microbit.
BBC Microbit.
Lesson 4 Accelerometer.
micro:bit for primary schools – mb4ps.co.uk
Pairs/Threes 3 mins… who’s the rock, paper and scissors champion?
micro:bit for primary schools – mb4ps.co.uk
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
micro:bit for primary schools – mb4ps.co.uk
Getting Started with Physical Computing
Press Ad Screen-shot.
Micro:bit Radio Makecode.
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
Stopwatch Cards Stopwatch Cards
micro:bit for primary schools – mb4ps.co.uk
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Music Cards Music Cards
Stopwatch Cards Stopwatch Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Stopwatch Cards Stopwatch Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Tree protector.
Music Cards Music Cards
Tree protector.
Tree protector.
Presentation transcript:

micro:bit for primary schools – mb4ps.co.uk Radio – PXT Editor update Introduction Written by Neil Rickus. Licensed under CC BY-NC-SA 4.0

Objectives Send and receive messages using the micro:bit radio You’ll need at least two micro:bits for this session!

Using the micro:bit radio The micro:bit has an in built radio, which can be used to send and receive data between micro:bits A radio that can both send and receive is called a transceiver We could send text, numbers, or even information from the micro:bit’s sensors We first need to ensure the micro:bits send and receive data using the same channel, or group. We can use any number between 0 and 255 for the group

Sending text We can send messages using the radio send string block Download these instructions on to your first micro:bit

Receiving text We can display the messages received using the on radio received block with a show string block (receivedString is a variable) Download these instructions on to your second micro:bit Try pressing button A on your first micro:bit. The message should display on the second micro:bit

Challenges Make the first micro:bit also able to receive messages Make the second micro:bit also able to send messages Send different text depending on the button pressed Send (and receive) numerical values, rather than text (Hint: use radio send number and on radio received receivedNumber) Program Button A to select and display a random number, then Button B to send the selected number to the other micro:bit When shaken, program the last two numbers received to be added together and displayed on the screen When a button is pressed on either micro:bit, make both micro:bits display a countdown (from 5 -> 0) then show rock, paper or scissors