Make: Magazine, Volume 83

Make: Magazine Volume 83It’s been a year since the last time I put together a Boards Guide for Make: Magazine, which can only mean one thing: I’ve put together another Boards Guide for Make: Magazine, along with two feature articles: a look at how Espressif’s ESP32 and Raspberry Pi’s RP2040 are having a barnstorming year in the face of rivals’ stock shortages and how RISC-V is seeing an explosion of interest in the maker sector.

First, the guide. An annual tradition, the Make: Boards Guide is a pull-out which aims to serve as an at-a-glance reference for the most popular, interesting, well-established, or increasingly simply “in-stock” development boards. It covers microcontroller boards, single-board computers, and field-programmable gate array (FPGA) boards – and, this year, sees a major refresh with some long-established entries being dropped either as a result of ongoing availability problems or their manufacturers’ choosing to discontinue the parts.

In addition to the pull-out, I contributed an article which takes a look at the ongoing supply chain issues in the electronics industry from a different perspective: how good it’s been for two companies able to fill in the gaps in their competitors’ product lines, Espressif and Raspberry Pi. I’d also like to offer my thanks to Eben Upton for taking the time to talk to me on the topic.

Espressif, in fact, forms a central pillar in my second feature for the issue: the rise of the free and open-source RISC-V architecture in the maker sector. Espressif was one of the first big-name companies to offer a mainstream RISC-V part, and has since announced it will be using RISC-V cores exclusively – and it’s no surprise to see others in the industry taking note. The feature walks through a brief history of the architecture, its rivals, and brings arguments both for and against its broad adoption in a market all-but dominated by Arm’s proprietary offerings. As always, thanks go to all those who spoke to me for the piece.

Make: Magazine Volume 83 is available now at all good newsagents or digitally as a DRM-free PDF download on the Maker Shed website.

Make: Magazine, Volume 79

Make: Magazine Volume 79This month brings with it my first cover feature for a new client, and it’s one of which I’ve long been a fan: Make: Magazine, the maker-centric electronic hobbyist publication, now in its 79th volume.

For this issue, its biggest of the year, I contributed two features. The first is the biggest: the Boards Guide 2021, the latest version of the magazine’s annual pull-out reference to the latest single-board computers and microcontroller development boards around. It’s an undeniably handy guide, offering everything from key specifications – right down to the number of analogue inputs you’ll find on general-purpose input/output headers, as but one example – to up-to-date pricing, though the latter is rather more variable than usual thanks to continued supply chain issues and component shortages.

Having been provided with a list of the boards to be included, I went through and fact-checked all the specifications – filling in blanks where necessary. At one point, faced with a board for which no dimensions were publicly listed and for which the creator couldn’t be immediately contacted I turned to an unusual approach: estimating its size from a perspective-corrected image of the board, based on the spacing on the 2.54mm header. When I finally obtained official measurements just ahead of deadline, my estimate turned out to be accurate to two significant figures – and I can’t say I wasn’t thrilled!

The second feature, also available on the Make: Magazine website, takes a look at Raspberry Pi’s first in-house microcontroller, the RP2040, and its rapid adoption by third-party board makers. For this, I initially researched a list of nearly 80 RP2040-based devices – pulling in key specifications and features, as with the larger Boards Guide feature – which editor Mike Senese and I then narrowed down to a shortlist to be featured in the magazine and online. Finally, I prepared a brief write-up to accompany the shortlist.

Make: Magazine Volume 79 is available at all good newsagents now, and is available for print and digital subscription on the official website.

The Official Raspberry Pi Handbook 2022

The Official Raspberry Pi Handbook 2022The latest issue of The Official Raspberry Pi Handbook, an annual aimed at those looking to find out what they can do with their Raspberry Pi, is out now – and in it you’ll find my in-depth coverage of the Raspberry Pi Pico microcontroller board.

Within the special dedicated Raspberry Pi Pico section of the annual is my two-page introduction to the board, an in-depth spread covering its specifications and the various components which make up the hardware – with plenty of high-quality photography, taken in my in-house studio – and an explanation of exactly what a microcontroller is and how the RP2040 at the heart of the Raspberry Pi Pico works.

You’ll also find my guide to programming the Pico in MicroPython and C/C++, an interview with chief operating officer James Adams and senior engineering manager Nick Francis, comment from Eben Upton, a simple hardware “hello, world” tutorial in MicroPython, and a step-by-step guide to safely soldering headers onto the Raspberry Pi Pico’s general-purpose input/output (GPIO) pins.

There’s also a brief overview of my book, Get Started with MicroPython on Raspberry Pi Pico – which, for those who want to explore the topic further, is available as a free PDF download under a Creative Commons licence.

The Official Raspberry Pi Handbook 2022 is available in all good newsagents and bookstores now, online with global delivery, or as a DRM-free download under a permissive Creative Commons licence.

The MagPi, Issue 108

The MagPi Issue 108This 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 data logger, which makes use of the microcontroller’s ability to run saved code away from a computer and its flash file system.

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, this latest tutorial – one of the last in the book – covers file handling in MicroPython, which can often trip up new users: opening a file for writing erases any previous contents, giving you an empty file if you’re not careful.

The tutorial then moves on to reading and formatting temperature data from the on-board sensor, storing it in a file for later loading, and even running the Raspberry Pi Pico without being connected to a Raspberry Pi or other computer – making use of a special file name to load code on boot without user interaction.

The MagPi Issue 108 is available at now at all good newsagents and supermarkets, online with global delivery, or as a Creative Commons-licensed DRM-free zero-cost PDF download on the official website.

The MagPi, Issue 107

The MagPi Issue 107This 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 temperature sensor, using the analogue-to-digital converter (ADC) built into the RP2040.

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 tutorial builds in the same way as the other projects in the book – introducing core concepts then building step-by-step from a minimum-viable project up to a fully-functional completed device.

As with other tutorials written for the book, full source code – in MicroPython – is provided, along with a wiring diagram which shows how to wire up a potentiometer using two or three pins and why that makes a difference to how it works. The project can be attacked with no additional hardware, however: the temperature sensor is built into the RP2040 microcontroller on board the Raspberry Pi Pico, and readers are free to skip building the potentiometer circuit if they don’t have the component lying around.

The MagPi Issue 107 is available at now at all good newsagents and supermarkets, online with global delivery, or as a Creative Commons-licensed DRM-free zero-cost PDF download on the official website.

The MagPi, Issue 106

The MagPi Issue 106This 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.

The MagPi Issue 106 is available at now at all good newsagents and supermarkets, online with global delivery, or as a Creative Commons-licensed DRM-free zero-cost PDF download on the official website.

The MagPi, Issue 105

The MagPi Issue 105This month’s The MagPi Magazine includes a six-page tutorial I originally wrote as part of Get Started with MicroPython on Raspberry Pi Pico: The Official Guide, my well-received guide to physical computing on Raspberry Pi’s first-ever microcontroller development board: a two-player reaction-testing game.

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 MagPi Issue 105 is available at all good supermarkets and newsagents, online with global delivery, or as a Creative Commons-licensed DRM-free no-cost PDF download on the official website.

The MagPi, Issue 104

The MagPi Issue 104Inside The MagPi Magazine this month you’ll find five pages of step-by-step tutorial walking through the creation of a functional traffic light simulator using the Raspberry Pi Pico microcontroller board – taken from my latest book, Get Started with MicroPython on Raspberry Pi Pico: The Official Guide.

All the projects in the book, the traffic light simulator being no exception, work step-by-step in building the simplest possible incarnation of each then adding increasing complexity – and in doing so introducing new concepts. In the case of the traffic light simulator, it starts off as a simple set of three LEDs which are under timed control.

As the project progresses, the reader adds a button to act as a trigger for a pedestrian crossing – which adds the concept of threading, taking advantage of the second CPU core on the Raspberry Pi Pico’s RP2040 microcontroller – before finishing the project with a buzzer providing audible feedback for when it’s safe to cross.

The MagPi Issue 104 is available in all good supermarkets and newsagents now, online with global delivery, or as a Creative Commons-licensed DRM-free PDF download on the official website.

The MagPi, Issue 103

MagPi Issue 103This 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.

The MagPi Issue 103 is available at all good supermarkets and newsagents, online with global delivery, or as a Creative Commons-licensed DRM-free no-cost PDF download on the official website.

The MagPi Magazine, Issue 102

The MagPi Issue 102This 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.

MagPi Issue 102 is available now from all good newsagents and supermarkets, online with global delivery, or as a DRM-free PDF download under a free-as-in-speech Creative Commons licence. The Raspberry Pi Pico is also the topic of my latest book, Get Started with MicroPython on Raspberry Pi Pico: The Official Guide.