Programming the micro:bit with MicroPython

Lead Image © victor kuznetsov, 123RF.com

Little Bit

The tiny micro:bit single-board computer from the BBC can be used both as an alternative and as a handy companion to the Raspberry Pi. Get started with this simple yet versatile machine.

The Raspberry Pi single-board computer (SBC) and its countless variants can be used for any project imaginable: from learning to code and building a personal server, to exploring the Internet of Things, to building robots. Because it's a computer that runs a full-blown operating system, Raspberry Pi requires some technical skills and effort to master, and it can be overkill for some projects. Of course, Arduino provides a simpler and more approachable physical computing platform. But wouldn't it be great if you could find a device that combines the versatility of Raspberry Pi with the simplicity of Arduino?

Enter BBC micro:bit [1]. It's probably unfair to call this tiny machine (Figure 1) a mere cross between Raspberry Pi and Arduino, because micro:bit is a unique and innovative device in its own right, and it has several advantages that make it a worthy alternative to both Raspberry Pi and Arduino. The most obvious advantage is the price: At ~£13 (~$17), micro:bit is cheaper than most Raspberry Pi and Arduino models. Unlike Raspberry Pi, you can use micro:bit right out of the box without going through the rigmarole of downloading an image file, burning it onto an SD card, and then booting and configuring the system. This also means it's practically impossible to make micro:bit unbootable or brick the board altogether. Better still, micro:bit has on-board physical buttons, an LED array, and sensors.

The board supports the MicroPython dialect of the Python scripting language, so you build simple projects right away with a minimum of effort. Similar to Raspberry Pi, micro:bit features a GPIO port, so it's possible to use the board with sensors, motors, and other devices. Add in low power consumption, and you have a board that can be put to a variety of practical uses. The best part is that you can use a Raspberry Pi to program and manage micro:bit.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • The Pi Wire

    Arduino’s “Invent Your Future” Contest; Fedora for Rasp Pi; New Raspberry Pi Kits for Windows IoT Core; micro:bit Education Foundation.

  • News

    Google bring AI to Raspberry Pi, Raspberry Pi Zero W board, British invasion: micro:bit comes to Adafruit, and more news from around the globe!

  • Welcome

    Our cover says "Boards Galore!", and we're not kidding. Last issue, we reviewed the LeMaker HiKey and the Banana Pi M3. This issue we add the Odroid-C2, Pine A64+, LeMaker Guitar, BBC micro:bit, and C.H.I.P. Each of these small-board computers (SBCs) have strengths and weaknesses, so you have to understand the needs of your project to choose wisely.

  • New Products

    What's new in the SBC, IoT, and maker realm.

  • Diving Deep

    The past year has seen a continued emphasis on STEM (science, technology, engineering, and mathematics) education in English-speaking countries.