BBC Microbit.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Bbc microbit Lesson 3 – Temperature hot medium.
micro:bit for primary schools – mb4ps.co.uk
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Music Cards Music Cards
Music Cards Music Cards
Music Cards Music Cards
Dance Cards Dance Cards
BBC Microbit.
Music Cards Music Cards
Objective of the lesson
BBC Microbit.
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
Game Controller Lesson Three.
Dance Cards Dance Cards
Game Controller Introduction.
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
BBC Microbit.
Building Blocks of a Program Lesson 2
BBC Microbit.
BBC Microbit.
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Global Challenge A bag for Juliane Lesson 2.
BBC Microbit.
Objective of the lesson
Music Cards Music Cards
Global Challenge Flashing Wheels Lesson 3.
Dance Cards Dance Cards
Music Cards Music Cards
Global Challenge A bag for Juliane Lesson 2.
Dance Cards Dance Cards
Global Challenge Flashing Wheels Lesson 3.
BBC Microbit.
Global Challenge Flashing Wheels Lesson 3.
Global Challenge A bag for Juliane Lesson 2.
Global Challenge Flashing Wheels Lesson 3.
Global Challenge A bag for Juliane Lesson 2.
Music Cards Music Cards
Dance Cards Dance Cards
BBC Microbit.
Global Challenge A bag for Juliane Lesson 2.
Music Cards Music Cards
Global Challenge A bag for Juliane Lesson 2.
Dance Cards Dance Cards
Dance Cards Dance Cards
Global Challenge A bag for Juliane Lesson 2.
Global Challenge A bag for Juliane Lesson 2.
Global Challenge A bag for Juliane Lesson 2.
Global Challenge Flashing Wheels Lesson 3.
Music Cards Music Cards
Music Cards Music Cards
Lesson 1 – using the LED lights
Global Challenge Flashing Wheels Lesson 3.
Dance Cards Dance Cards
Music Cards Music Cards
Global Challenge Flashing Wheels Lesson 3.
Dance Cards Dance Cards
Presentation transcript:

BBC Microbit

Objective of the lesson Use Block Editor to make a Beatbox All of you will: Make Pin 0 produce a beating sound Most of you will: Make a button control the tempo Some of you will: Use light to control the beatbox

Beatbox We will use the Pins on the Microbit to make a sound when we touch them Add an ‘on P0 pressed’ block Add a ‘while True’ block so that the code will continue to play (once the P0 pin is pressed the condition stays true)

Add in a note a beat length and a pause between notes Add an on button A pressed and change the tempo

Challenge Can you program P1 and P2 to play different notes Can you program button B to slow down the temp

Using light to control the music Add an ‘on buttonA pressed do’ loop Add a variable and call it sound. Set this variable to equal the ‘light level’

Add an ‘if do’ loop. Make it so that if the light level is less than 25 Make it then play a ring tone C

Challenge Add in ‘else if’ statements and make it so that if the light variable is less than 50, it plays note D Carry on so that if the light variable is less than 100, it plays note E; if the light variable is less than 150, it plays note F; if the light variable is less than 180, it plays note G; else it plays note A. Changing the light level should now make the microbit play a tune

Answers