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

Slides:



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

Bbc microbit Lesson 3 – Temperature hot medium.
@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
Starter Activity Instructions: Complete the starter sheet Planner
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
Lesson 4 – Glowing pendulum
micro:bit for primary schools – mb4ps.co.uk
Career Pictures.
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
Dance Cards Dance Cards
Traffic light programming challenges
BBC Microbit.
BBC Microbit.
BBC Microbit.
Dance Cards Dance Cards
BBC Microbit.
Dance Cards Dance Cards
micro:bit for primary schools – mb4ps.co.uk
Dance Cards Dance Cards
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Dance Cards Dance Cards
Stopwatch Cards Stopwatch Cards
micro:bit for primary schools – mb4ps.co.uk
Getting Started with Physical Computing
Dance Cards Dance Cards
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
Stopwatch Cards Stopwatch Cards
micro:bit for primary schools – mb4ps.co.uk
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
Lesson 1 – using the LED lights
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
Oil Spill Cleaner-upper
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Oil Spill Cleaner-upper
Presentation transcript:

micro:bit for primary schools – mb4ps.co.uk Sessions 4 and 5 – PXT Editor update Animations and brightness Written by Neil Rickus. Licensed under CC BY-NC-SA 4.0

Objectives Alter the brightness of the LEDs Use a variable to alter the brightness Trigger events with the buttons

Altering LED brightness Last time we made an animation We’re now going to make a heart fade in What blocks do you think we could use?

Altering LED brightness These instructions will make a heart flash

Challenges Make your heart fade in more gradually Get the LEDs to dim, then go brighter

Using variables We can use a variable to store the brightness Create a new variable called “myBrightness” by clicking on Make a Variable from the Variables block We’ll then set this variable to zero when the program starts

Using variables Through using the variables, we can reduce the number of instructions we need

Challenges Alter the speed of the fade by: Changing the length of the pause Altering the brightness increase

Programming events We can make the heart only appear when you shake the device

Challenges Make the heart go brighter if you press button A – try this block Make the heart go darker if you press button B Make the heart vanish if you press A and B at the same time Make the heart go brighter if you tilt the micro:bit screen upwards Make the heart go darker if you tilt the micro:bit screen downwards