This month’s issue of The MagPi Magazine includes another of my tutorials for those looking to get started with the MicroPython platform on the Raspberry Pi Pico microcontroller: a Pico-powered burglar alarm driven by one or more passive infrared sensors.
Originally written as part of Get Started with MicroPython on Raspberry Pi Pico: The Official Guide, my guide to physical computing on Raspberry Pi’s first-ever microcontroller development board, the burglar alarm tutorial builds up step-by-step from introducing a single passive infrared motion sensor to interfacing with multiple sensors, printing status reports over the serial console, and triggering a piezoelectric buzzer in place of a real alarm’s rather louder horn.
As with other tutorials written for the book, full source code – in MicroPython – is provided, along with wiring references designed to make it as easy as possible to add the components to a Raspberry Pi Pico installed on a solderless breadboard. There’s scope for further extension, too: adding break-beam sensors, glass-break sensors, or a code pad for disabling and enabling the alarm on-demand.
As with all projects in the book, the reaction game is designed to build up gradually. The reader is first taken through wiring up a simple circuit with a single LED and a single button, using one to trigger the other. Gradually, the complexity is increased: using the LED to trigger a countdown stopped only when the button is pushed, giving the user a look at how quickly they can react.
The project’s culmination comes with the integration of multiplayer: two buttons are used, and whichever player hits their button first is declared the winner. It’s a simple game, admittedly, but a surprisingly competitive one – and one which introduces a range of core concepts for input handling, timing, and conditional statements.
The BBC Doctor Who HiFive Inventor Coding Kit is an interesting mash-up of ideas. From the BBC’s side is the Doctor Who IP, with current Doctor Jodie Whittaker loaning her voice to the step-by-step programming lessons which are unlocked with a single-use code included in the box; SiFive, meanwhile, provides the hardware platform, a hand-shaped microcontroller development board based on its RISC-V microcontroller cores.
It doesn’t stop there, though: the HiFive Inventor was originally launched solo as a device “inspired” by the BBC micro:bit – an inspiration which runs so deeply it’s entirely possible to use BBC micro:bit accessories with the HiFive Inventor’s edge connector. Now, the board is available exclusively as part of the BBC bundle – though apart from a new colour, it’s entirely unchanged in design.
The Raspberry Pi Pico, on the other hand, is a lot simpler to trace: it’s a wholly in-house creation from Raspberry Pi, representing both its first microcontroller board and the first outing for its RP2040 microcontroller chip – the first product of its application-specific integrated circuit (ASIC) team. Designed to offer a wealth of functionality, including clever programmable input/output (PIO) state machines, at a very low cost, the Raspberry Pi Pico is proving a device to watch.
Finally, Initiating Paraneon is a short graphic novella designed to act as a precursor to Robert Willis’ upcoming Paraneon comic book series. Billed as being written by hackers for the next generation of hackers, it’s a book that wears its inspiration – from 2000 AD to The Matrix – on its sleeve, but sadly never truly comes out of the shadow of its forebears.
Custom PC Issue 212 is available now at all good supermarkets, newsagents, and online via the official website.
This month’s The MagPi Magazine carries my six-page guide to getting started with physical computing projects using the newly-launched Raspberry Pi Pico, the first microcontroller in the Raspberry Pi family.
Taken from my book, Get Started with MicroPython on Raspberry Pi Pico: The Official Guide, the tutorial walks the reader through programming the Raspberry Pi Pico using MicroPython – starting with the physical computing equivalent of “hello, world,” lighting up an LED. No additional hardware is needed for this part: the Raspberry Pi Pico includes a surface-mount user-addressable LED at the top of the board.
The reader is then shown how solderless breadboards work, introduced to importing MicroPython libraries and handling delays, how external LEDs require resistors, how to read a button input, and finally how to put it al together into a simple circuit which can toggle the LED based on the user’s button presses.
This month’s MagPi Magazine celebrates the launch of the new Raspberry Pi Pico with my 14-page feature introducing the first Raspberry Pi microcontroller, the first in-house silicon which powers it, and walking the reader through getting started programming the device with MicroPython – as well as talking to three of the people behind the effort.
Built around the RP2040, the first silicon chip produced by Raspberry Pi’s in-house ASIC team, the Raspberry Pi Pico is a fascinating device. While accessible enough for education, thanks to MicroPython support and a breadboard-friendly layout, it’s also designed to work as a module for industrial and embedded projects – and even launches with a port of TensorFlow Lite for machine learning work.
My feature begins with a look at the Raspberry Pi Pico and the RP2040, covering all the major features from RP2040’s programmable input/output (PIO) to the handy single-wire debug (SWD) header at the bottom of the Raspberry Pi Pico. As always, there’s plenty of photography.
The feature then moves on to an interview with Nick Francis, senior engineering manager, James Adams, chief operating officer, and Eben Upton, chief executive officer, covering the work done on both RP2040 and Pico, their hopes for the device, and how it aims to pack a surprising amount of functionality into a £3.60 gadget – “cheap as chips,” Adams told me.
Finally, the feature closes with a series of hands-on tutorials walking the reader through setting the Raspberry Pi Pico up on their Raspberry Pi or other computer, flashing the MicroPython firmware, and working on their first physical computing program.
Today’s launch of the Raspberry Pi Pico, an affordable breadboard-friendly development board accessible enough for education and powerful enough for industrial use, comes alongside the launch of my latest book: Get Started with MicroPython on Raspberry Pi Pico: The Official Raspberry Pi Pico Guide.
Building on my earlier title The Official Raspberry Pi Beginner’s Guide, Get Started with MicroPython on Raspberry Pi Pico offers newcomers to both the Raspberry Pi Pico and the MicroPython programming language an easy way to get started. Building up from an introduction to the board, electronic circuit concepts, MicroPython in general, and MicroPython on the Raspberry Pi Pico specifically, the book walks through a series of physical computing projects – some requiring only the Raspberry Pi Pico, others using low-cost and readily-available additional hardware components.
Each successive project introduces a new concept, from simply lighting an LED and reading a button input to using hardware interrupts, running code on the second CPU core, and making use of the on-board non-volatile flash memory to store logged data. By the end of the book, the reader should know how to use all the most important features of the Raspberry Pi Pico in MicroPython – even if they started knowing nothing about electronics or programming at all.
As always, thanks must be given to those who helped during the production of the book. Particular thanks must go to Ben Everard, who acted as co-editor and also contributed a chapter on using I2C and an appendix on using the programmable input/output (PIO) functionality; Sam Adler, too, returned to provide eye-catching illustrations without which the book would be a considerably duller read.
Also to be thanked are those who provided technical assistance: Alasdair Allan, Aivar Annamaa, Damien George, Gordon Hollingworth, Graham Sanderson, and Andrew Scheller, along with all those who proofed the book ahead of publication. Not forgetting, of course, others at Raspberry Pi Press who work to bring these books to life and to shelves across the world.
First the Raspberry Pi HQ Camera Module. The third full revision of the Camera Serial Interface (CSI)-connected low-cost camera add-on for Raspberry Pi and compatible single-board computers – after the original Raspberry Pi Camera Module was replaced with a higher-quality Sony sensor upgrade – the HQ Camera Module is built around a 12.3-megapixel Sony IMX477 sensor, offering increased resolution and improved low-light performance.
The biggest change, though, is that the lens has gone: Instead of a small plastic lens pre-fitted to the sensor, the HQ Camera Module accepts C- and CS-mount lenses – the same type of lens you’d find for security camera sensors. Two lenses make up the official offerings – a 6mm wide-angle and a 16mm telephoto – with third parties selling various alternatives including microscope-style macro lenses.
The Wio Terminal has a sensor of its own, but it’s not a camera: it’s an almost-all-in-one development board built around Microchip’s ATSAMD51 system-on-chip. Packed into a plastic housing with 2.4″ 320×240 colour LCD, the development board includes buttons, joystick, buzzer, LED, light sensor, and an infrared emitter – but, oddly, no battery, which needs to be added using an external accessory which considerably increases the device’s bulk.
Perhaps the most interesting feature of the Wio Terminal, though, is its general-purpose input/output (GPIO) header: a 40-pin female header, it shares the Raspberry Pi pinout and allows the Wio Terminal to act as a standalone device or to be connected to a Raspberry Pi as a Hardware Attached on Top (HAT)-style accessory – though doing so without some kind of extension cable covers the sensors on the underside.
Finally, Japansoft is a follow-up to the impressive Britsoft which follows exactly the same format: selected bite-sized extracts from interviews with notable game developers, only this time – as the name implies – looking at the Japanese games industry rather than the British. Where Britsoft culled its material from interviews carried out for the 2014 documentary From Bedrooms to Billions, Japansoft isn’t an original publication either: everything within comes from John Szczepaniak’s The Untold History of Japanese Game Developers and is simply reformatted to match the style of Britsoft.
That’s not to say Japansoft isn’t worth reading, but it does mean that anyone who has already seen Szczepaniak’s work will find nothing new. It also makes no effort to fact-check any of the claims within, instead placing a warning that its contents do not represent “a verified factual account” of the history presented.
Custom PC Issue 205 is available now from all good newsagents, supermarkets, and online with global delivery from the official website.
First, the Argon 1 Pi 4 case. Externally, this looks a lot like the Argon One reviewed back in Issue 188; internally, though, things have been shifted around to provide support for the latest Raspberry Pi 4 single-board computer – and the brown-outs caused by the smart power and cooling board drawing too much power are now a thing of the past.
As with its predecessor, the Argon 1 Pi 4 is impressively solid and does a great job at cooling the Raspberry Pi 4 by using the aluminium housing as a heatsink – even running a heavy synthetic workload, the temperature didn’t reach the minimum required to activate the built-in PWM-controlled cooling fan. It also adds some neat features, such as a labelled and colour-coded GPIO header, neater cabling through the shifting of audio and video ports to the rear, and a smart power button.
Shortly after the review was completed, but thankfully before the magazine went to press, the power board on the Argon 1 Pi 4 died – thankfully without taking the Raspberry Pi 4 with it. The review was updated accordingly, and since then Argon 40 has been stellar in attempting to resolve the problem – paying to have the faulty board returned for analysis and replacing both the faulty board and the entire unit in order to get things back up and running. While it will be a short while before it’s clear whether the failure was a one-off or not, it’s certainly impossible to fault the company’s customer service ethos.
The Sipeed Longan Nano, supplied by Seeed Studio, is an interesting beast: costing less than $5, the board is based on a low-power RISC-V microcontroller with a breadboard-friendly board design and a built-in low-resolution colour LCD display. For the money, the hardware is absolutely incredible – especially as Seeed has even designed a rough but serviceable acrylic case for the board, bundled at no additional cost.
The software and documentation, however, is definitely an issue. The libraries provided failed in a variety of ways – including an inability to use printf() or open a serial port – and the English documentation is extremely sparse. Particularly lacking is anything to demonstrate the use of the LCD – bar a single example program documented using Chinese in-line comments.
Finally, Arcade Game Typography. I’ve reviewed a lot of retro-computing coffee-table books over the years, but Omagari’s book is the first to concentrate solely on fonts and typography as used in classic arcade games – and given Omagari’s work as a designer for Monotype UK, it’s fair to say he knows his stuff. The result is a fascinating book, and one which is currently available in a limited 1,000-copy hardback print run from Read-Only Memory if the standard paperback isn’t shiny enough for you.
Custom PC Issue 197 is available on supermarket and newsagent shelves now, or can be ordered for global delivery from the official website.
My Hobby Tech column focuses this month on the Raspberry Pi 4, the amazingly inexpensive M5Stick-C microcontroller platform, and Zach Barth’s game design retrospective Zach-Like.
The column opens with the Raspberry Pi 4 review, a two-page look at the layout, features, functionality, and performance of the latest single-board computer from the Raspberry Pi Foundation. As always, there’s plenty of photography – including thermal imagery, using an in-house process I developed to get the most detail possible by combining visible light and infrared photography into a single print-resolution image.
My look at the M5Stick-C, part of the M5Stack family of products, needs no such clever photography – though there is a shot of the device on my wrist, thanks to a bundled watch strap mount. Designed around the low-cost ESP32 microcontroller the M5Stick-C includes buttons, a full-colour screen, Wi-Fi and Bluetooth connectivity, LEDs, a range of sensors, a built-in battery chargeable over USB Type-C, and the aforementioned watch strap plus a wall-mount bracket, LEGO-compatible mounting bracket, and even a built-in magnet – and all for under £10 excluding VAT. It may not be perfect, but it’s certainly cheap enough.
Cheaper, though, is Zach-Like, a collection of game design documents charting the early days of Zach Barth and his company Zachtronics. Initially available as a limited-run print edition on crowdfunding site Kickstarter, Zach-Like is now available as a free electronic download on Steam in PDF format – and comes with a huge selection of bonus content, including playable versions of several unreleased games and prototypes. At £10, Zach-Like would be a bargain; for free, it’s astonishing.
You’ll find the full column, and a lot more, in Custom PC Issue 193 at your nearest supermarket, newsagent, or on any one of a selection of digital distribution platforms.
First, the ruler-computer. Designed by Brads Projects, the Digirule2 is – as the name suggests – a second-generation design of a compact microcomputer which is also a functional ruler. Printed onto a single circuit board and built around a PIC32 microcontroller, the Digirule2 is inspired by the classic MITS Altair 8800: its memory is displayed on a series of LEDs, and is programmed one bit at a time using push-button switches.
Where the Digirule improves on the Altair, aside from being considerably more affordable and not taking up a huge chunk of your desk, is in having memory slots for saving and loading programmes. These slots come pre-loaded with demonstrations ranging from simple reaction games to a neat persistence-of-vision hack, while the edges of the board are printed with measurements – in binary, naturally – in both centimetres and inches.
The cards, meanwhile, are something a little less technical but no less geeky. Designed by 8bitkick and sold by the Centre for Computing History to fund its restoration and preservation works, the Games Consoles Collectable Cards partner high-quality colour images of classic videogame consoles with statistics that can be compared for a nerdy game of Top Trumps. They also partner well with the Home Computers Collectable Cards, an earlier release now repackaged to match, though sadly the two decks use different statistics and thus can’t be combined into a single mega-deck.
You can read both reviews, and a lot more beside, by picking up a copy of HackSpace Magazine Issue 16 from your nearest newsagent or by downloading a copy for free under a Creative Commons licence from the official website.