Introduction: Make a Countdown Timer With Micro:bit

About: ElecFreaks is an open design house founded in March 2011. Our goal is to create rapid prototypes and give small-batch manufacture solution for makers and startups. With over 50% staff as engineers and expanded…

Countdown Timer is very common in our daily life. It helps to remind you to do something on time in case of any possible delay or error. For example, a pedometer or a baking timer. Today we are going to use micro:bit, power:bit and an acrylic base board with nylon watch band to create a simple countdown timer.

Step 1: Material Needed:

Step 2: Hardware Assembly

Firstly, fix your micro:bit onto power:bit with some screws.

Then, fix your power:bit onto the acrylic base board of the nylon watch band.

Step 3: Programming

Click to open Makecode, write your code in the editor area.

Set startup image to display the countdown time 60min.

Press button A, then decrease 10 minutes.

Once time has been set, press button B to start countdown. When it is finished, the buzzer alarms, the screen displays an "End" and the countdown time will be reset.

You can click Download in the bottom to save your code into micro:bit.

Step 4: The Whole Code

Here's the whole program in the following:

Step 5: ​Succeed

Now you have successfully created a countdown timer by your own. Let's try it!