The Official BBC Micro:bit User Guide

The Official BBC Micro:bit User GuideToday marks the launch of The Official BBC Micro:bit User Guide, the culmination of a year-long project to create the most complete and accessible guide to using the BBC’s amazing low-cost embedded computing platform everywhere from the home and the hackspace to the classroom.

Written in partnership with the Micro:bit Educational Foundation, The Official BBC Micro:bit User Guide is a collaborative effort. From project editor John Sleeva who worked so tirelessly on The Raspberry Pi User Guide and has brought that same energy to The Official BBC Micro:bit User Guide and technical editor David Whale who made sure that not a semicolon was out of place to the small army of typesetters, proofreaders, copy editors, and others at publisher J. Wiley & Sons, The Official BBC Micro:bit User Guide owes its existence to far more than the person whose name appears on the cover.

Special thanks, too, must go to Zach Shelby, chief executive of the Micro:bit Educational Foundation, for his early support of the project and chief technical officer Jonny Austin who worked to see the project through from start to finish and provided exhaustive feedback to ensure it launched in the best possible condition – not to mention offering his perspective of the BBC micro:bit’s meteoric rise around the globe in the book’s foreword.

Inside the 300-page publication you’ll find step-by-step instructions from unboxing the BBC micro:bit and learning about its components to programming it in JavaScript Blocks, JavaScript, and Python, as well as practical projects which make use of its sensors, buttons, display, and radio module. You’ll have the opportunity to build everything from a wearable rain-sensing hat to a hand-held game, and links to further resources from lesson plans and community-driven content hubs to add-on hardware to expand the BBC micro:bit’s already impressive capabilities are also included.

The Official BBC Micro:bit User Guide is available now in print and electronic formats from Amazon UK, Amazon US, Kobo, Waterstones, Target, O’Reilly, WH Smith, Booktopia Australia, and direct from Wiley, while it can be ordered in at other booksellers under ISBN 978-1119386735.

For those looking for non-English resources, translations are currently in the works with a French edition confirmed for early next year and more expected to follow in due course – and if you’d like to see the book in your own native language, get in touch to discuss how to make that happen!

Custom PC, Issue 165

Custom PC Issue 165This month’s issue of Custom PC Magazine marks a milestone: four years since I started writing my Hobby Tech column. To celebrate, three reviews spanning its five pages: the Ryanteck RTk.GPIO, the Kitronik Micro:bit Inventor’s Kit, and the Pimoroni GPIO Hammer Header – the only piece of electronic equipment I’ve ever reviewed installed with a hammer.

First, the RTk.GPIO. The brainchild of Ryan Walmsley, interviewed back in Issue 129, the RTk.GPIO is designed to bring all the joy of the Raspberry Pi’s general-purpose input-output (GPIO) header to any PC with a free USB port. A surprisingly sizeable red-hued circuit board, the RTk.GPIO includes a Pi-compatible 40-pin GPIO header with pin-out on the silkscreen. A quick pip install of the Python library later, and you can pretty much take any RPi.GPIO program and have it run natively on your Windows, Linux, or macOS machine.

Perhaps the biggest power of the RTk.GPIO is in assisting with the development of software for Pi add-ons, using the extra computing power of a desktop or laptop to make your life easier then allowing you to transfer your program to a real Raspberry Pi with minimal changes once complete. Its only real downside, in fact, is price: it’s more expensive than picking up a Raspberry Pi Zero and turning it into a USB device, though undeniably smoother to use.

The Kitronik kit, meanwhile, is one of a range of add-ons I’ve been playing with for my upcoming Micro:bit User’s Guide. Based around a GPIO expansion board for the micro:bit’s edge connector, the kit comes with mounting plate, solderless breadboard, jumper wires, and all the components you need to work through the included full-colour tutorial book – plus, in the version I picked up, the micro:bit itself, though the kit is also available without for those who already have the BBC’s miniature marvel.

In the years I’ve been playing with hobbyist electronics, I’ve seen these kits go from the most hastily thrown together things to extremely polished collections of hardware – and Kitronik’s kit definitely sits at the right end of that spectrum. There are nits to be picked, such as the lack of a handy plastic parts box for storage and no use of the lovely breadboard overlay sheets that make the Arduino-centric ARDX kit so easy to use, but it’s hard to imagine someone buying the Kitronik kit and being disappointed.

Finally, the GPIO Hammer Header. I’ve long been a fan of Pimoroni’s products, but the Hammer Header is by far both the simplest and the smartest I’ve seen. Designed for anyone who has purchased a Raspberry Pi Zero and wants to make use of the unpopulated GPIO header but who doesn’t fancy firing up a soldering iron, the kit makes use of cleverly-shaped pins which can make a suitable electrical connection purely mechanically.

The kit gets its name from the acrylic jig used for installation: assemble the jig with the Pi Zero in the middle, then give it a few sharp raps with a hammer to push the pins home. Male and female variants are available, allowing you to quickly install headers on both the Pi Zero and compact pHAT add-on boards, and to my surprise both installed quickly, easily, and without a single poor joint – and in a fraction of the time of soldering all 40 pins by hand.

For all this, and more, pick up the latest Custom PC Magazine from your nearest supermarket, newsagent, or digitally via Zinio or similar services.

Custom PC, Issue 154

Custom PC Issue 154In this month’s Hobby Tech column I take a good long look at the BBC micro:bit, CubieTech’s latest Cubietruck Plus (Cubieboard 5) single-board computer, and a pack of Top Trumps-inspired playing cards based on vintage computers.

Beginning with the micro:bit, I was lucky enough to be on the receiving end of a press sample when the much-redesigned educational device was finally ready to ship to schools across the UK. Based on the ARM Cortex-M0 microcontroller and boasting integrated Bluetooth Low Energy (BLE), the micro:bit’s main selling point is its excellent support: the web IDE includes four languages suitable for everyone from absolute beginners to experts, there is documentation galore, and the BBC’s TV output includes shows which remind me of the glory days of the BBC Micro and its related programming.

At least, that would be a selling point if the board was actually up for sale. Despite having now mostly fulfilled its promise to ship free micro:bits to all Year Seven pupils in the UK, the BBC has still made no announcement about commercial availability for the educational gadget. Those whose appetites are whetted by the review, then, are best off looking at the CodeBug on which the micro:bit was based, or the new Genuino/Arduino 101 if Bluetooth LE support is a requirement.

The Cubietruck Plus, meanwhile, is an altogether different beast. Kindly supplied by low-power computing specialist New IT, the board is – as the name suggests – a follow-up to CubieTech’s original Cubietruck. The old dual-core processor is long gone, replaced with an Allwinner H8 octa-core chip that blazed through benchmarks with aplomb – and without hitting the boiling-point temperature highs of the rival Raspberry Pi 3.

Sadly, there’s one piece of information that didn’t make it into the review: shortly after the issue went to press, security researchers discovered a debug vulnerability left in Allwinner’s customised Linux kernel which allows any application on the system to gain root permission. Although affecting only selected operating systems, it’s something to be aware of if you’re in the market for an Allwinner-powered SBC.

Finally, the playing cards. Created by start-up 8bitkick following a successful Kickstarter campaign, the deck is nostalgia in a box. The idea is to bring the Top Trumps concept of collectable, trivia-esque comparison gaming to vintage computing: the cards feature everything from the Acorn Atom to the TI-99/4A, plus a joker in the deck in the form of the Raspberry Pi 2 Model B.

The cards are printed with a very high quality finish, but it’s the source of the images that is of most interest: rather than take the pictures itself, 8bitkick has instead scoured the web for images in the public domain or licensed as Creative Commons. It’s no theft, though: while most Creative Commons licenses allow for even commercial reuse if properly attributed, 8bitkick has promised to upload the full deck design to its website for free download and printing.

All this, plus lots of interesting things by people who aren’t me, is only a short trip to the newsagent’s away – or you can stay exactly where you are and grab a digital copy from Zinio or similar services.

Linux User & Developer, Issue 165

Linux User & Developer Issue 165For my regular review in Linux User & Developer this month I had the great pleasure to spend time with the BBC’s first serious hardware project since it teamed up with Acorn in the 80s: the BBC micro:bit.

Originally known as the Micro Bit, the micro:bit is a teeny-tiny microcontroller-based educational programming platform based on the CodeBug. Like the CodeBug, the micro:bit uses a 5×5 LED matrix on its front side as its main method of communicating with the outside world; unlike the CodeBug, the micro:bit includes built-in Bluetooth Low Energy support as well as a gyroscope and magnetic compass, along with the two-button input layout the two share.

With the backing of the BBC, and a major funding drive from Barclay’s which has seen a micro:bit promised to ever Year Seven pupil the UK entirely free of charge, it’s no surprise to see that plenty of companies are involved in the project. At launch, the device boasted no fewer than four programming languages – three provided by Microsoft – in its web-based IDE, along with a neat smartphone app built by Samsung allowing for Bluetooth LE-based interaction and even wireless flashing of programs.

Based on the ARM Cortex-M0 microcontroller (and, oddly, a significantly more powerful Cortex-M0+ which is used exclusively to handle the USB Mass Storage implementation, allowing for mbed-style drag-and-drop flashing without the need to install drivers or a toolchain locally) the micro:bit is impressive, as is the wealth of documentation and supporting materials the BBC has compiled. There’s a catch, mind you: so far, the BBC has not announced commercial availability – meaning we have no idea how much the gadget is going to cost people not included in the generous Barclay’s-funded giveaway programme.

For the full low-down, plus a lot more interesting stuff written by people who aren’t me, head to your local magazine outlet or stay where you are and pick up a digital copy via Zinio or similar services.

Custom PC, Issue 150

Custom PC Issue 150There’s a bit of a theme to four of the five pages that make up this month’s Hobby Tech column, and with little surprise: I’ve been focusing on the Raspberry Pi Zero, that remarkable £4 microcomputer which is still proving impossible for retailers to keep in stock. That’s not to say it’s entirely Pi-themed, though: I found room for a look at the lovely CodeBug, too.

Naturally, the first thing I had to do when the Raspberry Pi Zero – a fully-functional Raspberry Pi microcomputer, equivalent in specification to the Raspberry Pi Model A+ but with twice the RAM at 512MB and a new 1GHz stock speed for the BCM2835 processor. The fact that the Raspberry Pi Foundation was able to pack all that into a device around half the footprint of the already-tiny Model A+ is impressive enough, but with a retail price of just £4 the Pi Zero is nothing short of revolutionary.

Sadly, my hope that stock issues would be cleared up by the time the issue hit shop shelves proved unfounded: while stock has appeared at the official outlets several times since the Pi Zero launched, it has immediately sold out again – making the device difficult to get hold of and leaving the market rife with sandbaggers flogging the £4 device for anything up to £50 on auction sites. My recommendation: be patient, keep an eye out the official outlets, and don’t reward the sandbaggers with your custom.

With the Pi Zero in hand, I figured a tutorial would be a logical next step. Perhaps one of the most impressive demonstrations of the new form factor’s flexibility comes in turning it into a true random number generator (TRNG) – at least, what Broadcom claims is a TRNG – for a USB-connected server or PC, improving security for a tenth the cost of the nearest off-the-shelf TRNG. While I used the simple method of attaching a USB-to-TTL serial adapter to the Pi Zero’s GPIO header, it’s even possible to create the same device with a single USB cable for data and power by replacing the stock kernel with one tweaked for USB OTG use – a cost-saving trick for another column, perhaps.

Finally, the CodeBug. I’d been planning on reviewing this for some time, but getting my hands on a sample proved tricky until oomlout was kind enough to loan me a unit from the device’s original crowd-funding campaign. Designed for educational use, and the inspiration for the BBC’s much-delayed micro:bit, the CodeBug is a microcontroller with on-board inputs and outputs and a built-in battery connector. Programmed using a modified version of the block-based Scratch language, it’s a great tool for teaching basic computer concepts – and I now have my hands on a few upgrades for the device, which will be appearing in a future issue.

All this, plus a bunch of stuff written by people who aren’t me, can be yours with a trip to any good newsagent, supermarket, or from the comfort of wherever you’re reading this via Zinio and other digital distribution services.