Signal lights

Larry was not alone in the Grove. While trekking, he met another explorer like himself. She was called Wandering Wanda. But after a few minutes of silence, they both realized that despite the being grateful for the company, they’d rather enjoy the Grove alone. But then again, they admitted that it was probably safer not be alone. So they came up with an idea. They’d stay far away from each other but still keep in touch. Maybe a little light signal with an agreed series of flashes like a code of sorts? They also agreed on a set of colour codes to indicate whether they were OK, needed help or that the other should seriously start running for his or her life because there was a hungry bear in the vicinity…

What Will Happen

When the micro:bit is shaken, the Red LED module will flashes for a while and when it is flipped over, the Blue LED module will flashes.

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 on-board accelerometer as a substitute for conventional switches
  • Programming multiple digital input pins
  • Disable LED grid especially when there is a need to use more than one digital Tembusu connector

Additional Challenge

  • Try adding another LED module (e.g. Green LED)
  • Experiment with different micro:bit’s in-built sensors such as the temperature and light sensors