Micro:bit Light Sensor Programming

Micro:bit Light Sensor Programming

Assessment

Interactive Video

Computers, Instructional Technology, Science

6th - 7th Grade

Hard

Created by

Patricia Brown

FREE Resource

This video tutorial guides viewers through creating a program using MakeCode software to work with a photocell and a micro:bit. The program's objective is to display a down arrow when it's dark and an up arrow when it's light. The tutorial covers setting up a forever loop, creating and assigning variables, implementing conditional logic with if-else statements, and finalizing the program to display the correct arrow based on light conditions.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main objective of the program discussed in the video?

To display a smiley face on the micro:bit.

To show arrows based on light conditions using a photocell.

To play music when it gets dark.

To change colors based on temperature.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of loop is used to continuously check the light conditions?

Do-while loop

While loop

For loop

Forever loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of creating a variable in the program?

To count the number of loops

To link it to a pin for reading light values

To store the user's name

To display text on the screen

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of pin reading is used for the photocell?

Digital read pin

Analog read pin

Serial read pin

Pulse read pin

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What condition is checked to determine if it is dark?

If the photocell value is greater than 650

If the photocell value is equal to 650

If the photocell value is less than 650

If the photocell value is not equal to 650

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is displayed on the micro:bit when it is dark?

An up arrow

A down arrow

A smiley face

A heart

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the photocell value is not less than 650?

The program stops

An up arrow is displayed

The micro:bit beeps

A down arrow is displayed

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?