Âé¶¹´«Ã½

Technology

How to program a device that plays with random numbers

With a little basic coding, Hannah Joshua shows you how to make a truly smart messaging device that can dispense advice whenever you shake it

By Hannah Joshua

5 June 2019

BBC micro:bit

David Stock for Âé¶¹´«Ã½

New stuff you need
BBC micro:bit starter kit

UNTIL now, everything we have made has been stupid. This week, we are giving a circuit a brain.

To do this, we will use a BBC micro:bit, a tiny entry-level . You write instructions on a computer, then plug in the micro:bit and download them. When you hook the micro:bit up to your circuit, it takes care of what happens when.

Go to the , click “Let’s code” and find the “New project” section. On one side, there is a menu of blocks, all of which are…

Sign up to our weekly newsletter

Receive a weekly dose of discovery in your inbox. We'll also keep you up to date with Âé¶¹´«Ã½ events and special offers.

Sign up

To continue reading, today with our introductory offers

or

Existing subscribers

Sign in to your account
Piano Exit Overlay Banner Mobile Piano Exit Overlay Banner Desktop