Microbits - Lesson 3 - 7B1 - 7B2

Microbit Lesson 3 - Loops
Loops
1 / 24
volgende
Slide 1: Tekstslide
ComputingLower Secondary (Key Stage 3)

In deze les zitten 24 slides, met interactieve quizzen, tekstslides en 1 video.

Onderdelen in deze les

Microbit Lesson 3 - Loops
Loops

Slide 1 - Tekstslide

Touch Logo
Button A
Button B
Pins
Accelerometer
Compass
Reset Button

Slide 2 - Sleepvraag

How did you use selection when you created the rock paper scissors game?

Slide 3 - Woordweb

Lesson Objective
By the end of today's lesson you will be able to create a program on the microbits that use a loop (iteration) to control the led lights on the Microbits.

Slide 4 - Tekstslide

Slide 5 - Video

Slide 6 - Link

Challenge - Loops with the Microbit
In this example we are going to use recursion (a loop within a loop) to make the red LED light up all the LED's on the Microbit.

Can you use the highlighted components to complete the challenge?

Slide 7 - Tekstslide

The Solution

Slide 8 - Tekstslide

Python 
Loops continued...

Slide 9 - Tekstslide

Lesson Objective
By the end of today's lesson you will be able to create a program on the microbits that use a loop (iteration) to control the led lights on the Microbits.

Slide 10 - Tekstslide

Why are loops useful?

Slide 11 - Tekstslide

What are loops?

Slide 12 - Tekstslide

Space Invaders Game
This next task is CHALLENGING. You may not get all of the parts completed. You must complete the tasks in order, so Part 1 first, then part 2 etc...
You are going to build the Space Invaders game. This will run on the Microbit. You will need to "Watch the video for 30 seconds, pause it and then do what you saw in the previous 30 seconds". 
YOU MUST NOT JUST WATCH THE VIDEO AND LET IT PLAY THROUGH AS YOU WILL NOT REMEMBER THE STAGES!
Part 1 - https://www.youtube.com/watch?v=ImPEoy-d_3w

Extension Task - Magic 8 Ball


Slide 13 - Tekstslide

Magic 8 Ball
Click here for the tutorial - You will need your headphones!

Slide 14 - Tekstslide

Extension

Slide 15 - Tekstslide

Slide 16 - Tekstslide

Plenary

Slide 17 - Tekstslide

A Microbit has an accelerometer, what does this do?
A
Measure temperature
B
Measure Movement
C
Measure direction
D
Measure light

Slide 18 - Quizvraag

What is the part within the blue box called?
A
Compass
B
USB Connector
C
CPU
D
LED Lights

Slide 19 - Quizvraag

When button A is pressed what will happen?
A
Hello will show on the Microbit
B
A heart will show on the Microbit
C
Hello followed by a heart will show on the Microbit
D
Nothing will happen

Slide 20 - Quizvraag

What do you think this code makes?
A
Calculator
B
Clock
C
Mood Generator
D
Dice

Slide 21 - Quizvraag

What do we call the section of code in the blue box?
A
Loop
B
Input
C
Selection
D
Variable

Slide 22 - Quizvraag

What is the purpose of a loop?
A
To print a message.
B
To repeat a set of commands multiple times.
C
To delete code.
D
To end a program.

Slide 23 - Quizvraag

Which loop should you use if you want to repeat a set of commands a specific number of times?
A
If statement
B
While loop
C
Do-while loop
D
For loop

Slide 24 - Quizvraag