BBC Microbit.

Slides:



Advertisements
Similar presentations
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
Advertisements

BEGINNER PROGRAMMING Lesson
BBC Microbit Getting set up and making your first program.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
Hacking Minecraft on the Raspberry Pi using Python Lesson 2 1.
Title Category #1 Category #2 Category #3Category #
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.
Starter What is BBC micro:bit?
Bbc microbit Lesson 3 – Temperature hot medium.
Lesson 1 – Getting to know your Microbit
EQUATION IN TWO VARIABLES:
Starter Activity Instructions: Complete the starter sheet Planner
By Sanjay and Arvind Seshan
Lesson 4 – Glowing pendulum
Objective of the lesson
BBC Microbit.
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
BBC Microbit.
Stopwatch Cards Stopwatch Cards
BEGINNER EV3 PROGRAMMING Lesson
BBC Microbit.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
Game Controller Lesson Three.
BEGINNER PROGRAMMING LESSON
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BEGINNER PROGRAMMING LESSON
Global Challenge A bag for Juliane Lesson 2.
BBC Microbit.
Objective of the lesson
Global Challenge Flashing Wheels Lesson 3.
Game Controller Lesson Two.
Stopwatch Cards Stopwatch Cards
micro:bit for primary schools – mb4ps.co.uk
True or False: {image} is one-to-one function.
Getting Started with Physical Computing
INTERMEDIATE PROGRAMMING LESSON
Global Challenge Flashing Wheels Lesson 3.
Objective of the lesson
BBC Microbit.
Scratch Summer Session 2
micro:bit for primary schools – mb4ps.co.uk
Global Challenge Flashing Wheels Lesson 3.
Stopwatch Cards Stopwatch Cards
Global Challenge Flashing Wheels Lesson 3.
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Global Challenge Flashing Wheels Lesson 3.
Stopwatch Cards Stopwatch Cards
Lesson 1 – using the LED lights
Global Challenge Flashing Wheels Lesson 3.
Objective of the lesson
Stopwatch Cards Stopwatch Cards
Global Challenge Flashing Wheels Lesson 3.
Presentation transcript:

BBC Microbit

Objective of the lesson Use Block Editor to make a Windmill All of you will: Make a rotating windmill animation Most of you will: Make button A stop the windmill animation Some of you will: Make button B start the windmill animation

Windmill We will create a windmill animation Add a ‘forever’ loop Add a series of LED images with short pauses between to show a rotating windmill

Now we will replace the forever with a ‘while True loop’ This lets the animation run as long as a condition is True

Create a new variable. Call it rotating. Set rotating to true This means that this variable is ‘on’ Change the while ‘true’ to while ‘rotating’

Therefore whilst the variable ‘rotating’ is true (or on), then the program in the while loop will run Now add a ‘on button A pressed loop Add in the rotating variable and set it to false Now the variable ‘rotating’ is true (or on) and the windmill animation in the while true loop runs When the button A is pressed, the variable ‘rotating’ is false (or off) and the windmill animation in the while true loop stops running

Challenge Change the program so that button A stops the animation Change the program so that button B starts the animation

Answers