Countdown timer

Timers are essential items that are useful to help us keep to specific pockets of time especially when we need to cook or doing something within a time limit. We can buy countdown timers off the shelf or we can build our own personalized version.

What Will Happen

Press the button A and B on the micro:bit to choose the number of seconds the timer would count down to. To begin, shake the board to start the timer. Once the timer reaches 0, the buzzer will sound off until the timer is reset again.

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 buttons to change the value of a variable
  • Playing tones on the buzzer when a condition is fulfilled

Additional Challenge

Try changing the countdown number to an animation instead and customise your own alarm tune.