BBC Microbit.

Slides:



Advertisements
Similar presentations
Introduction to TouchDevelop
Advertisements

Learning the skills for programming Advanced Visual Programming.
BBC Microbit Getting set up and making your first program.
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
A-level Computing Programming challenge 1: Fizzbuzz
Bbc microbit Lesson 3 – Temperature hot medium.
micro:bit for primary schools – mb4ps.co.uk
Starter Activity Instructions: Complete the starter sheet Planner
micro:bit for primary schools – mb4ps.co.uk
Exploring Computer Science Lesson 4-10 – Part 1
@TeacherToolkit, license CC BY-NC-ND 3.0
@TeacherToolkit, license CC BY-NC-ND 3.0
Lesson 4 – Glowing pendulum
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.
micro:bit for primary schools – mb4ps.co.uk
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
BBC Microbit.
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
Dance Cards Dance Cards
micro:bit for primary schools – mb4ps.co.uk
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
And and or…and RANDOMNESS
Objective of the lesson
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Binomial Distributions
Dance Cards Dance Cards
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Lesson 2.
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Dance Cards Dance 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
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
JavaScript 101 Lesson 8: Loops.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Dance Cards Dance Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

BBC Microbit

Objective of the lesson Use Block Editor to make electronic dice All of you will: Shake the Microbit to create a random number 0 to 5 Most of you will: Display dice images for numbers 1 to 6 Some of you will: Create different dice e.g. an 8 sided dice

Electronic Dice 2 Program the Microbit so that when it is shaken a dice image comes up randomly Add an ‘on shake’ loop Add a variable called item Change the name of the variable to be RandomNumber

Set the RandomNumber variable to be either 0,1,2,3,4,5 An If do, else condition

Add if RandomNumber = 0 This will show the dice image of the number six (because we do not have a random number 6)

Click on the cog and add in an ‘else if’. If the RandomNumber = 1 It should display the dice image of a 1

Challenge Continue to add else if statements in for the remaining numbers Modify the code so that the dice only shows numbers 1,2 or 3 Modify the code so that the dice only shows numbers 1,2,3,4,5,6,7 or 8

Answers