Custom PC, Issue 229

Custom PC Issue 229For my Hobby Tech column in this month’s Custom PC Magazine I’ve taken a look at the Blink smart-home security camera ecosystem, and in particularly its new doorbell camera, the shiny Raspberry Pi Pico W, and built a custom Linux distribution for the Microchip PolarFire SoC Icicle Kit.

My interest in the Blink ecosystem is not purely academic. Having recently purchased a new house, I saw the opportunity to deploy a cost-effective camera system while documenting the process for Hobby Tech – and I’m pleased to report that Blink, which is entirely battery-driven bar a mains-powered “Sync Module, made things easy. The hardware was initially photographed in my studio then installed on-site with additional imagery captured, before being tested over a period of weeks to iron out teething problems.

The Raspberry Pi Pico W, meanwhile, is a near-identical clone of the Raspberry Pi Pico microcontroller board – but this time it’s brought a radio along for the ride. At the time of writing, only Wi-Fi was available – with Bluetooth present in hardware but not yet enabled in the firmware – but that’s enough to vastly expand the possibilities for projects driven by the Raspberry Pi Pico and its RP2040 microcontroller. Better still, the price has been kept low: at £6 including VAT, it’s near-impossible not to recommend the Raspberry Pi Pico W.

Finally, I reviewed the PolarFire SoC Icicle Kit back in Issue 224 – and one of my biggest complaints was with the pre-installed Linux distribution, which was extremely spartan and not a little buggy. It may have only been five months since that review was published, but things have change for the better – and to prove it I used Microchip’s documentation and Yocto Linux board support package (BSP) to build a much more polished Linux operating system for the board.

All this and more is available at your nearest newsagent or supermarket, online with global delivery, or as a free download 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.

Custom PC, Issue 212

Custom PC Issue 212In my Hobby Tech column for Custom PC this month I take a look at the intriguing and somewhat awkwardly-named BBC Doctor Who HiFive Inventor Coding Kit, the low-cost Raspberry Pi Pico, and a comic billed as “for hackers, by hackers”: Robert Willis’ Initiating Paraneon.

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.

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.