While today’s big news is the launch of the Raspberry Pi 4 single-board computer – which I have treated to a wealth of benchmarks over on Medium – it comes with a supporting product release: the second edition of the popular Official Raspberry Pi Beginner’s Guide, updated for the new hardware.
Inside the book, which is being made available for purchase in a print edition and for free download and redistribution under the Creative Commons Attribution-ShareAlike-NoCommercial licence, the content has been overhauled and updated for the Raspberry Pi 4 and latest Raspbian ‘Buster’ operating system. From the two HDMI ports to the new USB Type-C power connector, all imagery and instructions are bang up-to-date for today’s new hardware release.
The Official Raspberry Pi Beginner’s Guide 2nd Edition is also being bundled with the Raspberry Pi 4 as part of the Raspberry Pi Foundation’s official starter pack: those opting to buy their Pi that way will receive the Raspberry Pi 4, microSD with NOOBS and Raspbian ‘Buster’ pre-loaded, power supply, case, keyboard, and mouse, plus a printed copy of the book to help get them started.
As with the first edition, there’s more to the book than just plugging it in and clicking around the Raspbian desktop: you’ll find step-by-step instructions for programming in Scratch and Python, hardware projects for the Raspberry Pi’s GPIO port, and instructions and examples which use the Sense HAT and Camera Module accessories.
The book is available now in print from all good bookshops and Raspberry Pi resellers, in the Raspberry Pi Store in Cambridge, or can be downloaded for free under the Creative Commons licence on the official Raspberry Pi website.
First, the PC. The majority of PCs on desks around the world today are based on processors which use the x86 architecture or its 64-bit equivalent; a small handful are based on similar Arm chips to the ones you might find in your smartphone; and an even smaller number are powered by things like Zilog Z80s, MOS 6502s, and Motorola 68000s belonging to people who just don’t like to throw away a perfectly good decades-old system. The system built by AB Open recently, though, is different: it’s based on RISC-V, an open instruction set architecture (ISA) for which anyone can – given time, money, and a fair smattering of expertise – build a chip.
“It might be some time before there’s an off-the-shelf chip that can compete with x86 on raw performance and traditional benchmarks,” AB Open’s Andrew Back, who for full disclosure is a client of mine, admits, “but the open nature of the ISA, and the ecosystem developing around it, is driving a renaissance in novel computer architectures.” By way of proof: a fully-functional Linux-based desktop PC, built in a custom-designed laser-cut chassis, created using the SiFive HiFive Unleashed development board and Microsemi expansion board.
From a PC you can browse the web on to one which flashes a few lights: the Raspberry Pi weather monitor is a remix of a project I published in Issue 153, to use a Pimoroni Unicorn HAT LED matrix to graph energy usage in my home. This time, the same hardware is repurposed to show animated weather icons based on data downloaded from OpenWeatherMap – and, despite the low resolution of the LED matrix, it works an absolute treat.
Finally, Commodore: The Inside Story sounds like it should be an exhaustive history of the company behind one of the world’s biggest-selling home computers. It isn’t. Instead, it’s a two-part affair: the first is a series of personally recollections, presented in a very similar fashion to the stories you might hear if you took author David Pleasance to the pub and asked him about his time working in Commodore’s sales and marketing division; the second is a collection of guest chapters, and as fun as it is reading about orgies in Consumer Electronics Show hotels and drink-driving incidents the second half is, for me, the better half.
All this, and a raft more, can be found at your nearest newsagent or supermarket; the electronic version, meanwhile, is enjoying a brief holiday while background administration relating to its recent switch of publishers takes place.
Today sees the release of The Official Raspberry Pi Beginner’s Guide, my latest educational book on the remarkable single-board computer and its software and the first to be made available for free download and redistribution courtesy of a Creative Commons Attribition-ShareAlike-NoCommercial licence.
Written in partnership with Raspberry Pi Press, The Official Raspberry Pi Beginner’s Guide walks newcomers through a tour of the Raspberry Pi and what it can do, setting up both the hardware and the software, learning how to navigate the Raspbian desktop, how to write programs in Scratch 2 and Python 3, and even building custom circuits that use the Raspberry Pi’s general-purpose input-output (GPIO) header. If that weren’t enough, there are chapters on using the Sense HAT add-on board, the Raspberry Pi Camera Module, and a handy list of additional resources for when you’ve finally exhausted the book itself.
While it’s my name on the cover, this book is very much a team effort. I’d like to thank everyone at Raspberry Pi Press who was involved in its creation, from the authors of the original projects pulled in and updated in this new publication to eternally-patient project editor Phil King, fantastic technical editor Simon Long, amazing illustrator Sam Alder, and a whole host of others without whom the book would be nowhere near as good as it has turned out.
The book is available to buy now in all good newsagents, supermarkets, and bookstores, or direct from Raspberry Pi Press. The digital edition, as a Creative Commons-licensed PDF without any digital rights management (DRM) restrictions, is available from The MagPi website now.
Back in March, the release of the Raspberry Pi 3 Model B+—the Pi 3 B+ to its friends—brought a chance to take stock and review just how far the project had come since its launch via a series of benchmarks. Now the launch of the Raspberry Pi 3 Model A+ brings a bold claim: a dramatic drop in size, weight, and price over the Pi 3 B+, but without any loss in performance.
Readers of my regular Hobby Tech column this month will find a BBC micro:bit-driven tutorial alongside two reviews covering the remarkable Raspberry Pi Zero W microcomputer and the fascinating Delete by Paul Atkinson.
The idea for the tutorial came about while working on a chapter of my upcoming Micro:bit User Guide, and seemed like a perfect fit for the readers of Custom PC Magazine: turning the low-cost yet extremely flexible micro:bit into an addressable USB-connected 5×5 LED matrix and having it display current CPU load in a constantly-updating bar graph. Naturally, the same technique could be used to graph almost anything.
The secret lies in MicroPython’s REPL, an interactive interpreter which can run on the micro:bit and accept commands via the USB serial port. By switching the micro:bit into REPL mode, it can be slaved to another system over USB. The result: the entire program code, written in Python using the serial, time, and psutil libraries, exists purely on the host machine. A quick bit of Blu-tack later, and my monitor was wearing a CPU monitor which worked even when the display was off.
The Pi Zero W, meanwhile, was a device to which I had been looking forward for quite some time. An upgraded version of the original £5 Raspberry Pi Zero microcomputer, the Pi Zero W differs in only one respect: it has a built-in radio module, the same BCM43438 as found on the far larger and more expensive Raspberry Pi 3.
While the addition of the radio module, which offers Bluetooth, Bluetooth Low Energy, and 2.4GHz Wi-FI connectivity, almost doubles the price of the Pi Zero W to £9.60, it’s money well spent. In almost every Pi Zero project I have built, I’ve ended up using a USB OTG adaptor and low-cost USB Wi-Fi dongle to add network connectivity, and having it on-board – even at a slightly higher cost compared to a USB-connected solution – makes life considerably easier.
Finally, Delete. Billed as “a design history of computer vapourware,” Paul Atkinson’s coffee table book is packed with high-quality photographs – and, for the rarer machines, the occasional rescaled JPEG exhibiting unfortunate compression artefacts – covering machines from an upgraded Sinclair QL to a bright yellow IBM that never left the drawing board. Each comes with pages on its history, with interview subjects detailing features and failures alike, and while not all machines were strictly vapourware few are likely to have a place in the average vintage computing collection. In short: if you like old computers you’ll like Delete, which is available now from Amazon and other bookstores under ISBN 978-0857853479.
As always, you can read the whole column and a whole lot more by picking up Custom PC Issue 166 from your nearest supermarket, newsagent, or electronically via Zinio and similar services.
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.
It’s a special week for the Raspberry Pi Foundation: it’s celebrating its fourth birthday with the launch of the new Raspberry Pi 3. It’s a special day for me, too: the latest MagPi magazine boasts a total of thirteen pages of my content, including the cover splash: a detailed and thorough look at the new model.
Boasting on-board Wi-Fi (a community request since the original model launched four years ago), Bluetooth 4.1, Bluetooth Low Energy, and a faster 64-bit ARMv8 processor, the new Pi 3 is a bit of a beast. My cover feature for the magazine begins with a look at those behind it with a double-page spread featuring interviews with project co-founder Eben Upton and the Foundation’s director of hardware and the man responsible for circuit design James Adams – and a massive thank-you to both for sparing the time to talk to me at one of their busiest ever periods!
The feature then moves on to a look a the board itself, with a hero photo of the board spread across another two pages. Each major feature of the board, from the shiny new 64-bit BCM2837 system-on-chip (SoC) processor to the BCM43438 radio module – which required me to get out the microscope in order to capture its markings – has a call-out with close-up photography and an explanation of how it has changed since the Raspberry Pi 2.
Next up is a benchmark spread, which required me to come up with a detailed suite of tests. After some experimentation, I settled on a selection of classic benchmarks – SysBench CPU in single- and multi-threaded modes, Linpack with and without NEON support, Whetstone, Dhrystone, SysBench memory read and write, Ethernet throughput, Quake III Arena timedemo performance, and power draw at load and idle. As an added bonus, I also came up with a way of measuring general-purpose input-output (GPIO) performance under Python, writing a simple benchmark to toggle a pin on and off as quickly as possible and measuring the speed with a frequency counter connected to the GPIO header.
The next double-page spread looks at helping the reader get started with the new device. I walk readers through modifying an existing Raspbian installation to boot on the Pi 3 by editing config.txt, setting up the Wi-Fi module, enabling true OpenGL acceleration on the graphics processor, and how to write programs to get the best performance on the Pi 3. Sadly, I was unable to explain how to use the Bluetooth 4.1 and Bluetooth Low Energy features, as software support was not available at the time of writing.
The spread then ends with a look at five things you could do with a Pi 3 in order to take advantage of the new features and boosted performance. My work for the magazine continues, though, with a review of the Proster VC99 multimeter and Pimoroni pHAT DAC, before coming to a close with a one-page news piece regarding the production status of the popular Raspberry Pi Zero – helping to explain why it has been so difficult to get hold of and settling concerns that it may be bumped to the back of the production queue now the Pi 3 is out.
All 13 pages of my content, and plenty of other stuff by people who aren’t me, are available from your nearest supermarket or newsagent, or as a free PDF download under a Creative Commons licence from The MagPi’s official website.
This month’s Hobby Tech column for Custom PC magazine is something of a Pi-extravaganza, featuring a tutorial on how I built a Python-powered doorbell so I wouldn’t miss deliveries when I’m in the upstairs office and a review of the Wolfson Audio Board add-on. If you’re not a Pi-fan, fear not: there’s also my write-up of the first RetroCollect Video Games Market event in Leeds.
That’s a good place to start, in fact. The brainchild of RetroCollect founder Adam Buchanan, the RCVGM brought sellers and buyers from across the UK under the roof of Leeds Town Hall to see what happened. The turn-out was far higher than expected, with a queue snaking through the building and half-way around the outside, but those who stuck with it and got inside were in for a treat.
Exhibitors at the event included people selling 8-bit inspired Hama-bead art, hand-made game-themed jewellery and clothing, and hardware and software from the early 8-bit era right the way through to modern day. Personal highlights included a tour of BetaGamma’s Bas Gialopsos’ latest creations, including hot-rodded Spectrums and a composite video adapter for the Atari 2600, and a chance to chat with Philip Murphy about his North-East Retro Gaming events where over a hundred arcade cabinets, classic consoles and pinball tables are set to free play for the weekend.
For the Pi fan, the tutorial this month demonstrates how a relatively simple hardware hack – a switch connected to the GPIO port – can be used to bring some intelligence to every-day objects. Although I work from home, I often miss deliveries because I’m listening to music and can’t hear the doorbell. While I could have purchased a wireless door-chime with two receivers, I had Pis and switches a-plenty and decided to go for a homebrew solution with Twitter integration – with great success.
Finally for this month, the review of the Wolfson Audio Board. Kindly provided by CPC, the board connects to the GPIO header on the Model A and Model B Revision 2 – but not Revision 1 – Raspberry Pi boards and provides a considerable upgrade to its audio capabilities. To get a full idea of what it can do, you’ll have to buy the magazine – but its highlights include SPDIF digital audio inputs and outputs, high-definition playback, on-board amplification and even a pair of MEMS microphones for stereo recording.
All this, plus a bunch of fascinating stuff that I didn’t write, can be yours at your local newsagent, supermarket, or digitally via services like Zinio.
Those of you who follow my every move may remember a few projects I created for Dennis Publishing’s Computeractive publication, centring around the Raspberry Pi and Arduino single-board systems – in particular the three-part series walking newcomers through creating software and hardware accessories for the Pi, which proved extremely popular with readers. So popular, in fact, that Dennis has extracted the tutorial on building a switch-based game controller and republished it in the MagBook Raspberry Pi for Kids.
If you missed it the first time around, the tutorial was designed as the follow-up to an earlier guide on writing a simple snake game in Python. Using microswitches, resistors, a segment of stripboard and a soldering iron, readers are shown how to add a dedicated game controller – connected through the Pi’s general-purpose input-output (GPIO) header – to the system and modify the game’s source code accordingly. Reader feedback was good, and the relatively simple circuit makes it a logical choice for the MagBook’s target audience – although younger kids should, naturally, be supervised when using a soldering iron.
The MagBook also makes heavy use of my photography, both in my tutorial and throughout the rest of the publication where various images of my Pis can be found gracing its pages. Sadly, in an editorial oversight, my name appears to have been missed off the list of contributors – but I’m sure that will be quickly corrected in a future edition.
The Raspberry Pi for Kids MagBook is available in newsagents and supermarkets now, or via Amazon.
Since I wrote the Raspberry Pi User Guide over a year ago, the project has changed dramatically. The Raspberry Pi Foundation has grown in size and stature, a new hardware revision has been released, the Model A finally hit the streets and users have been treated to dramatic improvements in the quantity, accessibility and quality of the software available.
As a result, I’m pleased to announce the release of the Raspberry Pi User Guide Second Edition. Significantly longer than the original release, the book has been thoroughly updated to cover the Model A, Model B Revision 2, and the Camera Module. Additional new features include step-by-step instructions for using the Raspberry Pi Software Configuration Tool, the New Out-Of-Box Software (NOOBS) installer, and various other tweaks to bring it bang up-to-date.
For those who haven’t taken the plunge into the world of Raspberry Pi yet, congratulations: you can now pick up a considerably better book to help you get started. For those who have already bought a copy of the First Edition, a consolation prize: I have negotiated with the publisher, Wiley & Sons, to produce an updated ‘Second Printing’ of the First Edition in eBook form. If you’ve purchased the First Edition in electronic format, delete and re-download the title to receive various free updates including Model A and Model B Revision 2 details. You’ll know if your particular store has updated the title, as there’ll be a sash at the top-right explaining the updated content.
The Raspberry Pi User Guide Second Edition is available from all good – and plenty of not-so-good – book sellers throughout the world and is also an official stock item of the Raspberry Pi Swag Store, profits from which go to help the Foundation complete its work in pushing the envelope of computing education both at home and abroad. High levels of interest in the title – the First Edition has at this point sold around 100,000 copies world-wide across its various translations – do mean that you may have a short wait for stock, though – so if you’re hoping to buy it as a Christmas present and see it available from somewhere, I’d advise against delaying your purchase.
Electronic copies of the Second Edition are at the time of writing hard to come by but, as with the First Edition, expect to see it in Kindle, Google Play Books, iBooks, PDF, ePub and various other proprietary and non-proprietary formats – as well as DRM-free via O’Reilly in the US – in the very near future.
"This guide is amazing, very on point with relevant and updated information for all ages." "Excellent! A+!" "Well done. This is what I like most in Raspberry Pi. The documentation." "The book and the hardware would be a great Christmas present for the clever kid (of any age) in your family." "10/10" - OpenLibra
"Not only should it be an essential purchase with the micro:bit, I would recommend getting the book before getting the micro:bit. Definitely recommended." "This is an amazing educational tool." "For a newcomer I would recommend this book and the BBC micro:bit. Together, they will make an excellent coder/DIY enthusiast out of you or your child." "This is definitely the book to get you started." "The best book on micro:bit I've found so far." "A wealth of information on micro:bit and it's easy to read." "Just started reading your book, and it's exactly what I was looking for."
"I'm constantly reading tech manuals. This book is above and beyond ANY tech manual I have ever read! It is readable, understandable and a fine companion for the Pi." "I have been using computer manuals for 40 years and this is one of the best I have ever read." "All I was looking for is combined in this fantastic book." "I bought this book on my Kindle and it has transformed my understanding." "A brilliant book to help you out." "This book is a must have and works very well on my Kindle - thank you so much for writing it."
I've said it before, and unfortunately I'll probably say it again after this: a reviewer should never be accepting payment from the subject of a review. By all means ask if I'm interested in reviewing something, but don't offer me a bung for doing so. The outlets pay, not you.