"It’s Here! The BFCM Sale of the Year – Grab Your Favorites!"

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.

Material Needed:

1 x Power:bit 1 x Micro:bit 1 x Acrylic Base Board with Nylon Watch Bands 2 x cr2032 battery

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.

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. Here’s the whole program in the following:

Succeed

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

Leave a Reply

images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
images
Children’s Programming Education is the Future Trend
images
Technical verification! Nezha series products can complete WRO competition tasks
images
Let's take part in the Ceremony of the New Factory of ELECFREAKS together!
images
Bluetooth Bee(HC-05 and HC-06) User Guide
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Monthly Archive