Paper ball game

Make throwing fun! Build your very own electronic game. Players will try to land a wastepaper into a cup or container.

What Will Happen

The light sensor is to be embedded into the base of the cup or container. Each time a paper ball lands inside, the sensor will be covered and the LED grid will display a score increment. The first to reach 5 points wins. The buzzer is used to provide additional indication each time someone scores.

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 light sensor as analog input and buzzer as digital output module
  • Use conditional flags and loops to ensure there are no false triggers (e.g. covering the sensors will not increase the score indefinitely)

Additional Challenge

  • Change existing threshold value (500) for different ambient illumination.
  • Add musical tunes before and after the game.