Tag Archive for Tutorial

The Official Raspberry Pi Beginner’s Guide, 2nd Edition

The Official Raspberry Pi Beginner's Guide, 2nd EditionWhile 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.

Custom PC, Issue 191

Custom PC Issue 191This month’s Hobby Tech column takes a look at Nvdia’s first-ever entry into the maker market with the Jetson Nano, guides the reader through assisting the Internet Archive with its Sisyphean task, and takes a look at the Xiaomi Wowstick cordless screwdriver.

First, Nvidia’s offering. While the original Jetson TK1 single-board computer was sold through the since-departed high-street electronics outlet Maplin in the UK, its near-£200 price tag meant it wasn’t of much interest to the pocket-money shopper. Its successors in the Jetson family have been successively more expensive, culminating in the £1,199 Nvidia Jetson AGX Xavier reviewed last month. The Jetson Nano, by contrast, is just £95 – £101.50 if you include shipping – and is specifically aimed at makers and tinkerers.

The board uses a system-on-module (SOM) on carrier design, dominated by a massive heatsink. Although it’s perfectly possible to view the device as a souped-up and considerably more expensive Raspberry Pi, general-purpose computing isn’t Nvidia’s primary market: instead, it’s aiming to bring a new generation of developers into the CUDA GPU-accelerated computing ecosystem by using the Jetson Nano as a jumping-off point for deep learning and machine intelligence projects, including its own Jetbot autonomous robot platform.

The guide, meanwhile, walks the reader through using almost any PC to assist the Internet Archive with its goal of storing all the world’s information for immediate retrieval. Written as I was firing up a Warrior – the name given by the Archive Team to its distributed data capture systems – to assist with the archiving of the last bits of Google+ before its closure, the step-by-step instructions will let anyone contribute to the not-for-profit effort.

Finally, the Wowstick comes from a company better known in the UK for its cut-price smartphones: Xiaomi. Designed, as with much of the company’s output, to give a premium feel, the USB-rechargeable electric screwdriver is aimed at fine electronics work rather than flat-pack assembly – and does a surprisingly good job of it. Only limited torque for locked-down or larger screws and a terrible case whose tiny magnets are improperly attached let the bundle down.

For the full run-down on all this and more you can pick up Custom PC Issue 191 from your nearest newsagent or supermarket, or snag a digital copy from Zinio or similar services. Alternatively, a new subscription offer will get you the next three issues for just £5 – renewing at £25 every six issues if you don’t cancel beforehand.

Custom PC, Issue 189

Custom PC Issue 189This month, my regular Hobby Tech column opens with a look at a RISC-V based not-quite-off-the-shelf personal computer build by AB Open, walks readers through building a weather monitor powered by a Raspberry Pi and a Pimoroni Unicorn HAT, and marvels at the excesses of the computer retail scene in the 1970s and 1980s via David Pleasance’s Commodore: The Inside Story.

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.

The MagPi, Issue 77

The MagPi Issue 77If you’ve ever wanted to tackle an electronics project but didn’t quite know where to start, my latest article for The MagPi Magazine should get you up and running: it’s a look at resources for learning beginner-level electronics.

Centred, naturally enough, around the Raspberry Pi itself, my feature walks through a number of different resources: books, including Phil King’s Simple Electronics with GPIO Zero, all-in-one electronics kits of components and project sheets, online courses, and video tutorials for everything from connected LEDs and switches to the Raspberry Pi through to core concepts surrounding precisely what electricity is and how it works.

As with all Raspberry Pi Press publications, The MagPi Issue 77 is available for free download under a Creative Commons licence from the official website, or you can pick up physical copies in your favourite newsagent, supermarket, or from the comfort of wherever you are right now via the Raspberry Pi Press Store.

The Official Raspberry Pi Beginner’s Guide

The Official Raspberry Pi Beginner's GuideToday 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.

Custom PC, Issue 183

Custom PC Issue 183In Hobby Tech this month, there’s a look at a project which has genuinely transformed my mornings, a tiny temperature-controlled soldering iron with a hackable firmware, and the latest brain-melting program-’em-up from Zachtronics.

Starting with the game first, Exapunks caught my eye as soon as I saw it announced by developer Zachtronics. Taking the assembler programming concept of earlier titles TIS-100 and Shenzhen-IO, Exapunks wraps them up in a 90s near-future cyberpunk aesthetic alongside a plot driven by a disease called “the phage” which turns victims into non-functional computers. Because of course it does.

Anyone familiar with Zachtronics’ work will know what to expect, but Exapunks really dials things up. From the puzzles themselves – including one inspired by an early scene in the classic film Hackers – to, in a first for the format, the introduction of real though asynchronous multiplayer on top of the standard leaderboard metrics, Exapunks excels from start to oh-so-tricky finish.

The MiniWare TS100 soldering iron, meanwhile, sounds like it could be straight from Exapunks – or, given its name, TS-100: a compact temperature-controlled soldering iron with built-in screen and an open-source firmware you can hack to control everything from default operating temperature to how long before it enters power-saving “sleep mode.” While far from a perfect design – and since supplanted by the TS80, not yet available from UK stockists – the TS100 is an interesting piece of kit, with its biggest flaw being the need to use a grounding strap to avoid a potentially component-destroying floating voltage at the iron’s tip.

Finally, the project: an effort, using only off-the-shelf software tied together in a Bash shell script, to print out a schedule of the days’ tasks on my Dymo LabelWriter thermal printer. Using the code detailed in the magazine, the project pulls together everything from weather forecasts to my ongoing tasks and Google Calendar weekly schedule – along with a word of the day and, just because, a fortune cookie read out by an ASCII-art cow.

All this, and a variety of other topics, is available in the latest Custom PC Magazine on newsagent and supermarket shelves or electronically via Zinio and similar services.

Custom PC, Issue 180

This month’s Custom PC Magazine sees my Hobby Tech column take a look at TheC64 Mini, a rather annoyingly-stylised recreation of the classic Commodore 64, experiment with Raspberry Pi-powered cluster computing via GNU Parallel, and drink a toast to the memory of the late and lamented Rick Dickinson.

First, Rick. Best known for having been Sinclair Radionics’ – later Research, still later Computers – in-house industrial designer, Rick is the man responsible for the iconic look of the ZX80, ZX81, Sinclair Spectrum, and Sinclair QL, among other devices. While blame for their keyboards lies further up the chain, Rick did the best with his instructions to the point where his designs are still immediately recognisable today. Sadly, Rick had been in ill health of late, and recently passed; my article in this month’s magazine serves as a ode to his memory.

TheC64 Mini, then, feels like a bit of an insult, being as it is the modern incarnation of a device from US Sinclair rival Commodore. Created by Retro Games Limited – not to be confused with Retro Computers Limited, creators of the two-years-late-and-counting ZX Vega+ handheld console, but rather a separate company formed by a split between RCL’s directors present and former – TheC64 Mini appears, at first glance, to be a breadbin-style Commodore 64 that’s been shrunk in the wash.

While deserving plaudits for actually existing, unlike the ZX Vega+, TheC64 Mini isn’t exactly a stellar success: inside its casing, which is dominated by a completely fake keyboard, is a tiny Arm-based single-board computer running Linux and a hacked-around version of the Vice emulator. Its emulation suffers from input lag, something RGL originally attempted to blame on people’s TVs before releasing an update which reduced the problem without completely fixing it, and the bundled Competition Pro-style joystick compounds the problem by being absolutely awful to use courtesy of a rubber membrane design that should have been left on the drawing board.

Finally, the cluster computing tutorial walks the reader through creating a multi-node cluster – of Raspberry Pis, in this instance, though the tutorial is equally applicable to anything that’ll run SSH and GNU Parallel – and pushing otherwise-serial workloads to it in order to vastly accelerate their performance. In the sample workload, which passes multiple images through Google’s Guetzli processor, run-time went from 1,755 seconds in single-threaded serial mode to 125 seconds running on the eight-node cluster – housed in a Ground Electronics Circumference C25 chassis, because if you’re going to do something you should do it in style.

All this, and the usual selection of other interesting articles, can be found in your nearest newsagent, supermarket, or electronically via Zinio and similar digital distribution platforms.

Custom PC, Issue 179

Custom PC Issue 179This month’s Hobby Tech column takes a look at an open-source microcontroller-driven hobbyist oscilloscope and a book which aims to document art in video games, while also walking readers through the rather handy trick of setting up a reverse SSH tunnel.

First, the tutorial. Since Code42 announced that CrashPlan Home, my chosen off-site backup solution, was being discontinued, I’ve been looking into alternatives. A Raspberry Pi with a USB hard drive and a copy of Syncthing installed does the job nicely, except for the issue of management: once it’s off-site, I’d have to configure someone else’s router to forward a port so I can SSH into it. An easier alternative: a reverse SSH tunnel.

Where a traditional SSH connection goes from local device to remote host, a reverse tunnel goes from remote device to an intermediary device – in my case, a home server on my own network. Your local device then also connects to said intermediary device, and you have full access to the remote device regardless of whether or not it’s behind one or more firewalls or even whether you know its public-facing IP address.

The first of the reviews, meanwhile, is a little cheeky: while the device on test is based on the JYE Tech DSO138 open-source oscilloscope design and firmware, I’ve been using a clone rather than an original – having spotted it on offer during an Amazon sale and been unable to resist a bargain. While the conclusions I draw on the scope’s functionality and usability apply equally to both, a first-party JYE Tech version is likely to feature better build quality and certainly includes better support.

Finally, my review of the coffee table tome – yes, another one – Push Start: The Art of Video Games is one of those rare occasions where I’ve been disappointed by what should have been a product aiming for a very low bar. While the full-colour hardback publication includes plenty of high-quality pictures, it also includes some extremely low-quality screenshots as well – particularly noticeable at the beginning where vector games are captured as bitmaps using MAME’s default ultra-low resolution, and at the end where tell-tale artefacts show the use of third-party JPEG images rather than first-party captures. Worse still is the limited accompanying text, which is riddled with errors.

The latest Hobby Tech is available now from newsagents, supermarkets, and electronically via Zinio and similar digital distribution services.

Custom PC, Issue 174

Custom PC Issue 174This month’s Hobby Tech column takes a look at a very special eight-byte – not a typo – microcomputer, walks through turning a spare Raspberry Pi into a Nav Coin-mining cryptocurrency machine, and looks forward to the launch of the ZX Spectrum Next with a look at a deep-dive book detailing the original Spectrum’s neat Ferranti Uncommitted Logic Array (ULA) chip.

First, the Mini C88. Designed by the multi-talented Daniel Bailey as a more affordable version of his C88, swapping the field-programmable gate array (FPGA) on which he implemented his own processor core design for an Arduino Zero and the extremely clever Dynamic Binary Translation (DBT) technique, the C88 is designed to be about as simple as a computer can get. Based on a custom instruction set, the C88 has just eight memory locations of eight bits apiece and is programmed by toggling each bit using a series of pleasingly tactile switches while monitoring the process on the 8×8 LED matrix that serves as its display.

For regular readers, this will all sound familiar: the original FPGA-based C88 and its 32-byte bigger brother the C3232 were the subject of an interview back in Issue 155. While Daniel has still not turned the C88 into a kit you can head out and buy, the Mini C88 is definite progress in that direction – and, as always, anyone interested in the project should hassle him about it on Twitter.

For those with a Raspberry Pi and a desire to play with cryptocurrency, meanwhile, this month’s tutorial will be of definite interest: a guide to turning a Pi into a ‘Stake Box’ for the Nav Coin cryptocurrency. Designed as an alternative to Bitcoin, Nav Coin offers those who run network nodes rewards in the form of a five percent return on their coin holdings when locked up in this manner. Taking less than an hour to set up and requiring nothing more than a low-powered computer, it’s a great way to get involved – and the Nav Coin project itself definitely one to follow.

Finally, while waiting impatiently for my ZX Spectrum Next microcomputer to land – which, I’m pleased to say, has since happened – I enjoyed a re-read of Chris Smith’s excellent The ZX Spectrum ULA: How to Design a Microcomputer. Based on interviews and deep-dive analysis, the book investigates the tricks and techniques which allowed Sinclair Computers to build the ZX Spectrum micro at such a bare-bones cost – which, in turn, was thanks to clever use of an Uncommitted Logic Array (ULA) chip from Scottish electronics giant Ferranti. Effectively a write-once version of the modern FPGA, Ferranti’s ULA saw the number of components in the ZX81 drop to a quarter compared to the ZX80 and is key to how the ZX Spectrum does what it does.

For all this, and a bunch of other interesting things by people who aren’t me, pick up a copy of Custom PC Issue 174 from your nearest supermarket, newsagent, or digitally via Zinio and similar services.

Custom PC, Issue 171

Custom PC Issue 171This month’s Custom PC magazine has a bumper crop for fans of Hobby Tech: a four-page shoot-out of do-it-yourself handheld games consoles on top of my usual five-page column, which this time around looks at setting up Syncthing on a Raspberry Pi, building the Haynes Retro Arcade Kit, and my time running a soldering workshop at the Open Source Hardware User Group (OSHUG) UK OSHCamp gathering.

The workshop first: organiser Andrew Back got in touch with me shortly before the OSHCamp workshop day, held in Hebden Bridge as part of the annual Wuthering Bytes technology festival, was due to take place. The scheduled soldering workshop was at risk, he explained, as the person due to run it was no longer available. I was happy to help, and I’m pleased to report a great day was had by all assembling Cuttlefish microcontroller kits – despite the use of some particularly ancient soldering irons with tips which appeared to be made of freshly-hewn coal!

The Haynes Retro Arcade Kit feels like a device which could have been in the DIY console shootout, but it wouldn’t have fared well. Designed by Eight Innovation and slapped with the Haynes brand, the Retro Arcade Kit is a fiddly and distinctly unrewarding soldering kit which ends up as a particularly basic version of Pong. The coin activation system is its only redeeming feature: two pieces of thick solid-core wire sit side by side, and are shorted out by an inserted metal coin to start a fresh game. Not an original trick, but one well implemented – if you ignore the terrible instructions and poor build quality.

Syncthing, meanwhile, has been a mainstay of my toolbox for years. An open-source project designed to keep files on two or more computer systems synchronised, Syncthing is built with security and convenience in mind – and works a treat on the Raspberry Pi. Given that I was needing to find a new home for my off-site backups anyway, as my regular provider CrashPlan is ceasing its cheapest product line, it seemed natural to write up the process of turning a Pi and a USB hard drive into an off-site backup destination.

Finally, the four-page DIY console shoot-out is a reprint of the same feature as it appeared in PC Pro Issue 277 in mid-September. As before, four Arduino-compatible devices are covered: the Gamebuino, MAKERbuino, Creoqode 2048, and Arduboy.

All this, and the usual selection of things written by others, can be found at your nearest newsagent, supermarket, or electronically via Zinio and similar distribution services.