LED Light Control with Micro:bit

LED Light Control with Micro:bit

Assessment

Interactive Video

Computers, Instructional Technology

5th - 8th Grade

Hard

Created by

Amelia Wright

FREE Resource

This video tutorial demonstrates how to write code to make an LED light flash using a micro:bit. The LED is connected to pin 1 and GND, and the code is written using a forever block. The tutorial explains how to use digital write commands to turn the LED on and off with pauses in between, creating a flashing effect. The video also shows how the code works in an emulator, where pin 1 turns orange to indicate the LED's state.

Read more

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of connecting the GND alligator clip to the short wire of the LED?

To provide power to the LED

To increase the brightness of the LED

To complete the circuit and allow current flow

To change the color of the LED

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is pin 0 reserved for speakers in the code?

To avoid interference with the LED

To keep it available for audio output

Because pin 0 is not functional

To use it for another LED

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does setting 'digital write pin 1 to 1' accomplish in the code?

It turns the LED off

It increases the LED brightness

It turns the LED on

It changes the LED color

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How long does the LED stay on when a pause of 500 milliseconds is added?

1 second

250 milliseconds

500 milliseconds

2 seconds

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the effect of setting 'digital write pin 1 to 0' in the code?

It turns the LED on

It changes the LED color

It increases the LED brightness

It turns the LED off

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the forever block in the code?

To change the LED color

To stop the code after a few cycles

To repeat the code indefinitely

To run the code once

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What visual feedback does the emulator provide for the LED?

It turns pin 1 orange on and off

It increases the brightness

It displays a color change

It shows a blinking LED

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main outcome of running the complete code?

The LED changes color

The LED turns off permanently

The LED flashes on and off

The LED stays on continuously