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.
In this month’s Hobby Tech column I take a look at how GL shaders can make the video output from emulators – in particular DOSBox – look an awful lot closer to how you remember the same software running on real hardware, review the Argon One M.2 case for the Raspberry Pi 4 family of single-board computers, and take a look at an unusual children’s book: Big Data Girl by Fred Wordie with illustrations by Santiago Taberna.
First, the shaders. Few would argue that the move away from bulky and power-hungry cathode-ray tube displays to modern liquid-crystal displays was a bad thing, except for possibly vintage game enthusiasts. The “pixel art” of old, you see, was never meant to show big, blocky, individual pixels: the CRT would smooth and blend things as a by-product of its relative inaccuracy, meaning when you fire up a classic like Doom or Moraff’s World and feel disappointed in its appearance it’s not entirely down to rose-tinted spectacles.
Shaders, typically but not exclusively written in GL Shader Language, can help. In the opening piece for this month’s column, I look at how these handy add-ons can turn the block output of an emulator into a surprisingly convincing simulation of a CRT – complete with curvature and overscan, if that’s your wont. The difference in appearance is little short of astounding – though it may take some customisation before you’re fully satisfied with the results.
The Argon One M.2, meanwhile, looks externally a lot like the previous entries in the Argon One case family. There’s the same metal shell, which doubles as a heatsink and means the built-in temperature-controlled fan rarely activates, the same magnetic cover hiding a colour-coded and silkscreened general-purpose input/output (GPIO) header, and the same layout which puts all the Raspberry Pi’s various ports to the rear for neater cabling.
Where the new design differs is in a larger base, which hides the circuitry for converting an M.2 SATA SSD into a USB-attached storage device. Unlike the NESPi 4, reviewed back in Issue 210, this one works properly in USB Attached SCSI (UAS) mode, giving a throughput of 387/300MBps read/write on a test SSD rated at 500/320MBps.
Finally, Big Data Girl is a bit of a departure for the column, as it’s a children’s book – but one with a difference: Wordie’s crowdfunded title aims to introduce the concept of “big data,” anthropomorphised as a friendly little girl, highlighting both how useful it can be and how it can impact your privacy. It’s a smart idea, and Taberna’s illustrations are fantastic, but serves more as a conversation starter for parents already familiar with the concepts than a stand-alone guide to the subject.
Custom PC Issue 213 is available now at all good supermarkets, newsagents, digital distribution platforms, and from the official website with international delivery.
First, the Raspberry Pi 400. The first device to come from Raspberry Pi with an explicit design focus on producing a consumer device, rather than a bare-bones educational circuit board, the Raspberry Pi 400 packs the core technology from the Raspberry Pi 4 Model B into a keyboard housing to produce an almost-all-in-one PC reminiscent of a classic Atari 400, Sinclair ZX Spectrum, or Commodore VIC-20.
For the Custom PC review, I investigated the device’s internals – a custom-designed single-board computer which is the largest Raspberry Pi ever made, along with the first to include a heatsink in the form of a large slab of metal attached to the system-on-chip – and ran the system through a series of benchmarks to check its performance and thermal characteristics.
Similarly, the RetroFlag NESPi 4 saw a few benchmarks – focusing primarily on whether its small and always-running internal fan could keep a Raspberry Pi 4 cool and how the clever SATA-to-USB adapter, which accepts a 7mm SSD disguised in a plastic housing shaped after a NES cartridge, handled throughput. Sadly, testing also revealed a few issues with the otherwise-clever casing – in particular the fact that the SATA adapter is unusable in the Raspberry Pi’s default USB Attached SCSI (UAS) operation mode and takes a performance penalty if you manually override it.
Finally, Ubuntu 20.10 is the first release of Canonical’s Linux distribution to prove the company’s promise that it will treat the Raspberry Pi family as a first-class citizen going forward. In addition to 32- and 64-bit variants of the Ubuntu Server operating system, available in earlier releases, Ubuntu 20.10 is available in a new Ubuntu Desktop release – which includes a full graphical user interface and a handy range of pre-installed software, along with support for installing more via the apt package manager or Canonical’s Snap Store platform.
Custom PC Issue 210 is available at all good supermarkets and newsagents now, or online with global delivery from the official website.
I’ve been doing a lot of work with MicroPython of late, so it made sense to cover the software for Hobby Tech. Developed by Damien George as part of a crowdfunding campaign launched in 2013, MicroPython takes the popular Python programming language and ports it to microcontrollers – both dedicated PyBoard ranges and third-party hardware. It’s also the inspiration for CircuitPython, a port developed by Adafruit and designed with educational use in mind.
The RasPad 3, meanwhile, is a device I wanted to love. Built in an intriguing wedge shape, the kit takes a Raspberry Pi 4 single-board computer and turns it into a touch-screen tablet. The third in the series, and the first supporting the Raspberry Pi 4, the RasPad 3 is a great idea let down by poor execution – everything from a low-quality display and buggy software to dismal battery life and an incredibly noisy fan.
Finally, The Games That Weren’t is the latest coffee table book from Bitmap Books, based on the website of the same name by Frank Gasking. Built around the same core concept as Phil Atkinson’s Delete, The Games That Weren’t looks at video games – and a small number of related hardware projects, like the Commodore 65 – that never made it to market. At 643 pages it’s a hefty tome, but sadly let down by some high-profile absences – the ‘Van Buren’ build of Fallout 3 is present, but Fallout Online is nowhere to be found as just one example – and a woolly approach to research and citation which leans heavily on weasel-words like “it’s thought,” “some sources say,” and “it’s believed.”
My introductory Raspberry Pi book, The Official Raspberry Pi Beginner’s Guide, has now been released in a fourth edition, bringing updates for the Raspberry Pi 4 8GB, Raspberry Pi 400, and new software revisions.
Bundled with every Raspberry Pi Desktop Kit sold, and available in paperback and free-as-in-speech Creative Commons-licensed DRM-free PDF, The Official Raspberry Pi Beginner’s Guide has proven incredibly popular. The latest release includes updates to reflect changes in the Raspberry Pi OS and bundled software, alongside coverage of the all-in-one Raspberry Pi 400 and higher-specification Raspberry Pi 4 8GB.
The new edition is also now available in translation for the first time: As well as the original English edition, The Official Raspberry Pi Beginner’s Guide can now be read in French, German, Italian, and Spanish, with additional translations in the works. As always, my thanks go out to the translation team at Raspberry Pi Press for making that happen.
The Official Raspberry Pi Beginner’s Guide 4th Edition is available to buy now in all the above languages with global delivery from the official website; it can also be downloaded under free-as-in-speech terms as a Creative Commons-licensed PDF file, unencumbered by DRM. For anyone considering picking up a Raspberry Pi 400, a print copy of the book is also bundled in the Raspberry Pi 400 Desktop Kit as well as in the Raspberry Pi 4 Desktop Kit.
The 3D printing feature was born of a personal cost – literally, money I spent after diving head-first into the world of SLA 3D printing having been tempted by a low-cost entry-level printer. While the printer itself cost around £150, I spent as much again on the accessories required to get good results – from resin and cleaning tools to an ultraviolet curing station and the FEP sheets which form the bottom of the resin vat.
While the feature focuses on SLA printing, which uses a resin cured by exposure to ultraviolet light, there are costs associated with the more common FFF 3D printers too – including finding ways to protect the plastic filament they use from moisture.
Any readers of a certain vintage will likely remember the original RISC OS, an operating system developed initially for Acorn’s Archimedes family then for the later Risc PC. While Acorn itself went away, RISC OS didn’t – and the launch of the original Raspberry Pi, powered by Arm technology which started life at Acorn, gave it a shot in the arm.
RISC OS Direct is an effort to take the modern RISC OS and make it approachable for newcomers, rather than experienced RISC-takers. As a result, it includes a selection of applications pre-installed – from word processors to web browsers – and a handy-dandy wallpaper which doubles as a quick-reference guide. More detailed documentation is also provided, including electronic copies of programming manuals, for those who want to dive deeper.
Computing Across America, finally, isn’t a new book: It was published in the 1980s by Steven Roberts, the self-styled “high-tech nomad” who sold his house and possessions to cycle across America on a custom-built “Winnebiko” with little more than a TRS-80 Model 100 microcomputer for company. While now out of print, the title is available to borrow from The Internet Archive – and makes for fascinating, if often salacious, reading.
Custom PC Issue 207 is available now at all good supermarkets, newsagents, and online with global delivery from the official website.
Issue 202 is not the first time the ZX Spectrum Next, a crowdfunded effort to not only recreate the classic Sinclair machine using modern hardware but to answer the question of what could have been if it weren’t for the microcomputer crash and subsequent sale to Amstrad: the internal hardware was reviewed way back in Issue 176 in the form of the board-only backer reward.
The ZX Spectrum Next is more than just a motherboard, however: its design includes a “toastrack”-inspired chassis and keyboard straight from the drafting board of sadly since-departed former Sinclair industrial designer Rick Dickinson – his last project, it would turn out. The fully-finished hardware, chassis and all, was due to arrive in backers’ hands in January 2018 – but only now, more than two years late, is the hardware finally being delivered.
Thankfully, it’s been worth the wait. Issues with the keyboard’s reliability have been ironed out, errors in the original hardware design resolved, and the firmware which drives the on-board field-programmable gate array (FPGA) updated and tweaked. The 28MHz accelerated mode, missing from the original review, is back, and the custom operating system works smoothly and without issue.
Sega Arcade Pop-Up History is another nostalgia-driven walk down memory lane, but rather than looking at home computers of the 1980s it covers Sega’s “taiken,” or “body sensation,” arcade cabinets – machines which moved to match the on-screen action. The written material is, however, limited: the bulk of the book is given over to card pop-up models of six cabinets, which is a definite first for Hobby Tech.
Finally, the Raspberry Pi Imager. Borrowing shamelessly from Balena’s Etcher, Imager is a tool from the Raspberry Pi Foundation which offers a cross-platform simplified graphical user interface for not only writing disk images to microSD cards but for downloading them too. The flow is just seven or eight clicks long: open Imager, bring up the list of supported operating systems, choose one and confirm, bring up the list of target storage devices and confirm, and flash. There’s even a verification stage, to confirm the image is correctly written – and you can point it at manually-downloaded disk images if your favoured operating system isn’t in the default selection.
My Hobby Tech column this month opens with a look at a surprisingly swish programming environment for the Nintendo Switch, of all things, walks through the creation of a power-saving networked display using the Pimoroni Inky wHAT and a Raspberry Pi, and looks at a book which purports to chart the history of Apple Macintosh gaming.
First, the programming environment. Fuze4 Nintendo Switch, available now on the Nintendo eShop, builds on the Fuze BASIC programming language originally developed for the Raspberry Pi and reviewed – alongside its BBC Micro-inspired housings – in Issue 124 and Issue 136. This time around, though, the language is considerably less BASIC and more like a hybrid between BASIC, Python, and a bit of C thrown in for good measure. It’s also less focused on things like sensor reading and GPIO control – for obvious reason – and instead designed specifically for a single task: making games.
There are aspects that need polish – in particular the sharing of created projects, which at present can only be done via Nintendo’s clunky friends-list system – but overall Fuze4 Nintendo Switch is impressive. You’ll want a keyboard, but once you get started it’s easy to build some impressive projects – one demo supplied with the game showcases a fluid 3D engine with dynamic lighting, created in a remarkably short number of lines.
The Inky wHAT project, meanwhile, was largely a means of documenting something I created for my own use: an electrophoretic display that would display the output of the schedule printer I detailed in Issue 183 without needing to print on physical paper. There’s a twist, too: after finding that the only box-frame available that would fit the project depth-wise was too large, I created a mock-up of an Amiga Workbench desktop to frame the smaller Inky wHAT display – and the effect is surprisingly convincing.
Finally, Richard Moss’ The Secret History of Mac Gaming was a pleasure to read, though a few aspects of Apple’s history are presented from the eyes of a fanboy rather than a historian. Switching between recollection, research, interview content, and contributed material, the book does a great job of documenting the largely-forgotten history of gaming on Apple Macs – though it could have benefited from another editing and layout pass, in particular to avoid the recurring issue where screenshots either appear out-of-order or without any reference in the text.
As always, the latest Custom PC Magazine is available from all good newsagents and supermarkets, or can be ordered for worldwide delivery from Raspberry Pi Press.
Following on from releasing the world’s first magazine with a computer on the cover, for which I provided the launch documentation that made up the historic MagPi Magazine Issue 40, Raspberry Pi Press has done it again: Its new publication, Get Started with Raspberry Pi, once again includes a cover-mounted computer – this time the more powerful Raspberry Pi 3 Model A+ – along with a case and pre-loaded microSD card with adapter.
The book, as its name suggests, is designed for absolute beginners to the Rasbperry Pi – but it’s not a replacement for my Official Raspberry Pi Beginner’s Guide, now in its third edition. Instead, it offers a broader but shallower overview of what the Raspberry Pi can do – starting with setting it up and moving on to both hands-on projects and an overview of community projects and third-party add-on hardware.
Inside Get Started with Raspberry Pi you’ll find a range of contributors’ work, including of course my own: The set-up guide and instructions on using the Raspbian desktop and other software, much taken from the Official Raspberry Pi Beginner’s Guide, bear my hallmark; the book also republishes the Raspberry Pi 3 Model A+ launch feature I wrote for The MagPi Magazine Issue 76, which includes an overview of the device, detailed benchmarking including how it relates to ever other model in the Raspberry Pi range, and an interview with its creators.
Those looking to get the bundled Raspberry Pi 3 Model A+ will need to head to their nearest supermarket, newsagent, or order a copy with free worldwide delivery from the Raspberry Pi Press Store; as with most Raspberry Pi Press publications, Get Started with Raspberry Pi is also available for free download under a Creative Commons licence – though, obviously, the download doesn’t include the cover-mounted computer!
The latest version of my beginner-focused Raspberry Pi book, The Official Raspberry Pi Beginner’s Guide, is now available – and it brings with it a major change to the projects included within.
The Second Edition release of the book concentrated on bringing the popular publication – bundled with all Raspberry Pi Desktop Kits – up-to-date for the release of the Raspberry Pi 4 and the Raspbian ‘Buster’ operating system. This Third Edition, meanwhile, migrates the programming and electronics projects to newer versions of their respective development environments: Scratch 3 and the Thonny IDE.
Thonny, the default integrated development environment for Python programs, is largely just a visual change: the latest version of the software simplifies the user interface compared to earlier releases, so all instructions and screenshots in the book have been updated accordingly.
Scratch 3 is a bigger shift. As well as coming with a refreshed user interface, Scratch 3 changes certain core aspects of its operation compared to Scratch 2 – with the result that Scratch 2 programs aren’t guaranteed to work within Scratch 3 without modification. This Third Edition updates all the Scratch-based projects to ensure they work correctly in Scratch 3, complete with all-new instructions.
The Official Raspberry Pi Beginner’s Guide Third Edition also includes a number of other improvements, from updates for other new and changed software through to a few minor errata from earlier editions.
The Official Raspberry Pi Beginner’s Guide Third Edition is available now from all good bookshops and e-tailers, while a free PDF copy can be downloaded from the MagPi Magazine website – or you can order a print copy for international delivery.