Make a Light Meter With Your micro:bit
Program your micro:bit so you can use it to sense light. 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!
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: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. Get creative and make any pattern in the block below.
3 - Show the light level.
Program your micro:bit to display the amount of light it receives from your environment. Use the forever block so that you can see the reading scroll continuously across the screen. Try these blocks:
Hooray! You Did It!
You made a light meter!
If you need help, click me to see the finished product!