Light sensor
It occurred to Larry that in the great outdoors of the Grove, there were no streetlights that came on when it was dark. And if he was going to be trekking in the woods for mot of the day, there was a strong possibility that he would be stomping around in the dark when evening came… and he was NOT a fan of the dark (see Makersuit Larry in micro:bits First Steps). But he did not want to spend his afternoon sitting in camp waiting for nightfall.
Was there a way to have a light to come on as it got dark? That way, it would also become a marker for him to follow back to camp.
What Will Happen
When the light level falls to a certain threshold, the LED light will blink intermittently.
Connection Guide
Block Editor Code
Click the button below to download the block editor code for this challenge. The hex file is contained in a zip folder.
Refer here for instructions on importing code into Micro:bit.
This code can be imported into the micro:bit block editor.
Dr Bit Code
Click the button below to download the Dr Bit solutions for this challenge.
The Dr Bit file is contained within a zip folder.
Download Dr Bit PC software using the link below.
Download the Dr Bit app using the link below.
Learning Points
- Using external sensor module
- Programming digital input pins
Additional Challenge
- Add a buzzer module to alert user of the impending night fall
- Experiment using the LED grid for additional illumination too
Keep in touch
We would love to keep you up to date with all of our latest news, offers and new products.
If you would like to subscribe to our mailing list please click the button below.
Contact Us
ScienceScope Limited
Downside School
Stratton-on-the-Fosse
Radstock
BA3 4RJ
enquiries@sciencescope.uk