Make a Remote Light Sensor With Your micro:bit

Program your micro:bit so that you can use it to sense light and send the reading to another micro:bit. Every computer processor is equipped with a light sensing device.  You can utilize the micro:bit's light sensor to measure the amount of light in the surrounding environment

Morse code fruit.png
New project.png

1 - Start a new project in MakeCode

Go to "MakeCode.microbit.org" to start a new project by clicking the new project icon above. Click the purple plus box labeled "New Project" to begin.

2 - Make your micro:bits talk to each other. 

Make a radio group number for your micro:bits. This creates a channel to allow them to talk to one another. Try these blocks:

1_basic.png
Start Block.png
5_radio.png
Radio Group ID.png
Need Help_ Heres a Tip.png

3 - Make your micro:bit light up. 

Program your micro:bit to light up its LEDs on start. LEDs are the lights on the front of the micro:bit. Try these blocks:

1_basic.png
Show LEDs.png
Need Help_ Heres a Tip.png

4 - Send the light level.

Program your micro:bit to send the measurement of light it reads to the other micro:bit. Try these blocks:

1_basic.png
Forever.png
5_radio.png
Screen Shot 2019-07-09 at 3.43.05 PM.png
2_Input.png
Screen Shot 2019-07-09 at 3.50.39 PM.png
Need Help_ Heres a Tip.png

5 - Display the light level.

Program your second micro:bit to display the light level it receives. Try these blocks:

Need Help_ Heres a Tip.png
5_radio.png
Receiver block.png
8_Variables.png
Screen Shot 2019-06-25 at 2.29.31 PM.png
1_basic.png
show number.png

Hooray! You Did It!

You made a light meter!

If you need help, click me to see the finished product!

Morse code fruit.png