Make a Countdown Timer with micro:bit
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.
1 x Power:bit 1 x Micro:bit 1 x Acrylic Base Board with Nylon Watch Bands 2 x cr2032 battery
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.
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. Here's the whole program in the following:
Now you have successfully created a countdown timer by your own. Let's try it! Our Facebook:https://www.facebook.com/ElecFreaksTech/?ref=bookmarks Twitter:https://twitter.com/elecfreaks