Light sensor

It occurred to Larry that in the great outdoors of the Grove, there weren’t 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’d 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 didn’t 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.

Kindly 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.

To download Dr Bit PC software kindly click hear.

To download the Dr Bit app kindly select one of the links below.

To download Dr Bit PC software kindly click hear.

To download the Dr Bit app kindly select one of the links 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