Starter Activity Instructions: Complete the starter sheet Planner Stationary Bags Away Instructions: Complete the starter sheet Colour in the squares so that they match coordinates http://www.classtools.net/random-name-picker/63_jBYccc List all the hardware and software you can think off Explain the difference between input and output device Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Objectives All learn how to show LEDs on the LED screen Most learn how to run code when an input button is pressed Learn the function of the accelerometer Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Smiley face You are going to create pictures using the LEDs. Step 1 – go onto www.microbit.co.uk Click create code: Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
TASK1 - Smiley face Drag out a show LED block from the basic tab. Tick the boxes to make a smiley face Press run to see what happens on the onscreen Microbit. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Objectives All learn how to show LEDs on the LED screen Most learn how to run code when an input button is pressed Learn the function of the accelerometer Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Task 2 – winking smiley face Drag out one more show LED block with a normal smiley face and press run to see what happens now. Drag out another show LED block with a winking face and press run to see what happens. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Task 2 - smiley face Go into the input tab and drag out a ‘on button A pressed do’. Drag this block and wrap around the 3 show LED blocks and run this. This time you will need to press the A button on the onscreen Microbit. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Extension Program so that when the B button is pressed your microbit goes from happy to sad to really sad. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Objectives All learn how to show LEDs on the LED screen Most learn how to run code when an input button is pressed Learn the function of the accelerometer Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Lets code another program. Click on New project on the Microsoft Block Editor box. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Microbit, Variable
Lets code our another program. Rename your project “DICE” On the left are your code blocks, just like scratch they are split into sections and different colours. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Lets code another program. Open up the input tab and drag into your script area on shake do. We then need to create a variable and call it roll. Insert the for green loop block and click the drop down menu and select new variable call it roll Insert a match block picking a random number and drop this in the 2nd loop box and change the range to 6. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Lets code another program. Then insert a if logic box with a maths 0=0 block with a basic show LED block underneath You then need to insert the variable roll into the first equals statement and then a 1 into the second equals statement. Then draw out a 1 ticking the boxes you would like to light up. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Lets code another program. Right click the if statement and duplicate (just like scratch and put underneath the IF block. Change the 2nd number to say 2 and change the ticks so that a 2 will light up. Keep doing this for all 6 numbers. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Lets code another program. Then press compile. Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable
Objectives All learn how to show LEDs on the LED screen Most learn how to run code when an input button is pressed Learn the function of the accelerometer Keywords: Buttons, Hardware, Software, Input, Output, Accelerometer, Micro:bit, Variable