Make a Countdown Timer With Micro:bit

by ElecFreaks in Circuits > Electronics

6972 Views, 4 Favorites, 0 Comments

Make a Countdown Timer With Micro:bit

fp.jpg

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.

Material Needed:

Hardware Assembly

1.png
2.png
3.png

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.

Programming

4.png
5.png
6.png

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.

The Whole Code

Here's the whole program in the following:

​Succeed

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