Tag Archive for Programming

Custom PC, Issue 185

Custom PC Issue 185In my regular Hobby Tech column this month you’ll find a detailed review of the Raspberry Pi 3 Model A+ single-board computer, another of the ever-so-slightly less-powerful Digirule2, and of Adam Fisher’s exhaustive Valley of Genius: The Uncensored History of Silicon Valley.

First, the Raspberry Pi. The first model to use the A+ form factor – smaller PCB, only one USB port, full-size display (DSI), camera (CSI), and HDMI ports, analogue audio-video (AV) – in the last four years, the Pi 3A+ is an impressive beast for cramming the full performance of the larger, more expensive Pi 3B+ into a smaller form factor. I was concerned, upon first unpacking, that the smaller PCB would undo the good work on the thermal-transfer front that made the Pi 3B+ such a good improvement on the original Pi 3B; a quick test under a thermal imaging camera, though, showed that I was worrying over nothing.

The Digirule2 is a markedly different beast. While it’s a single-board computer, it’s one which is designed more for fun than functionality: built into the form factor of a ruler, complete with inches and centimetres marked in binary along the upper and lower edges, the Digirule2 is inspired by classic machines like the Altair 8800. Press a series of buttons to program a particular memory location; press another button to switch to the next; and press a third to see your program run on the built-in LEDs. One particularly impressive feature is an eight-slot program storage, allowing you to save and load your programs directly on the device – and all without having to hook up your punch-tape reader/writer.

Finally, Adam Fisher’s Valley of Genius is a book in the mould of Fire in the Valley: an attempt to document the rise and, frankly, continued rise of Silicon Valley and the companies it has birthed. Culled from over 200 individual interviews, the book uses direct quotation rather than any attempt to weave a narrative but dodges dryness by weaving multiple subjects’ remembrances into each themed chapter. The final effect is less an interview and more a conversation between some of the industry’s biggest names, from the birth of the mouse right through to the modern age.

To read the full column, pick up Custom PC Issue 185 from your nearest newsagent, supermarket, or electronically via Zinio and similar distribution platforms.

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 182

Custom PC Issue 182In my Hobby Tech column this month, I take a look at the disappointing Planet Computers Gemini PDA, the significantly less disappointing Proto-Pic Program-o-Tron, and the recent updates designed to make the Raspbian operating system for the Raspberry Pi significantly more welcoming to newcomers.

First, the Gemini PDA. I’ve long been a fan of the clamshell personal digital assistant (PDA) form factor, and it was with a heavy heart that I finally hung up my Psion Series 5 after it became clear that smartphones had won that particular war. Now, the format is back courtesy of Planet Computers and the crowdfunded Gemini PDA – a design based on the Psion Series 5 and put together by one of the staff responsible for the original, but which misses its mark at almost every turn.

At its heart, the Gemini PDA is an Android smartphone – even the non-4G version, which is simply an Android smartphone with the cellular radio removed. While it’s possible to run a Debian-based Linux on top, the experience is poor – but, that said, no more poor than the buggy Android build supplied with the device, which insists on booting up in German despite being clearly marked as a UK model. The hardware, too, disappoints: performance under Linux is not where it should be, and while the keyboard is a near-perfect match to the original Psion design the clever sliding hinge mechanism is entirely missing in favour of a loose and flimsy metal kickstand that fails to provide nearly enough support.

Many thanks must go to the National Museum of Computing (TNMOC), which kindly provided an original Psion Series 5MX PDA for direct head-to-head comparison during the review.

The Program-o-Tron, after a disappointing start to the month, proved considerably better. Again crowdfunded, the Proto-Pic device is designed to make life easier for those working with Atmel ATmega microcontrollers. Rather than having to program each chip individually from a PC, the Program-o-Tron allows you to hold six hex files on an SD card and flash them onto a chip inserted in the ZIF socket at the push of a button – and, even better, to take a dump of the contents of a chip, including its fuse settings, to clone it without ever needing to touch the original program code.

Finally, the recent update to Raspbian operating system for the Raspberry Pi brought a couple of changes for the better: a lightening of the load when it comes to pre-installed software, complete with a tool to add packages back in on-demand, and a first-run welcome wizard which walks newcomers through configuring the Wi-Fi networking, localisation settings, and choosing a new password. The latter is particularly welcome: since launch, the default for Raspbian has been to keep the ‘pi’ and ‘raspberry’ username and password combination, making it easy for attackers to gain access to systems accidentally or deliberately connected to public networks. By asking users to choose a new password on first boot, the hole is closed.

To read more, pick up Custom PC Issue 182 from your nearest newsagent, supermarket, or digitally via Zinio or similar distribution platforms.

Custom PC, Issue 181

Custom PC Issue 181In this month’s Hobby Tech column I take a look at two LED-adorned educational electronics kits, the Kitronik :GAME ZIP 64 and the Kano Pixel Kit, along with Mark Hardisty’s latest retrogaming project, The Classic Adventurer.

Kitronik’s :GAME ZIP 64, which will henceforth be known as the much easier to both read and type Game Zip 64, is a clever little add-on for the BBC micro:bit educational platform. Designed to mate with the BBC micro:bit’s edge connector, the Game Zip 64 adds 64 individually-addressable RGB LEDs, a major upgrade on the single-colour 25-LED matrix on the BBC micro:bit itself, buttons to form a four-way directional control pad, two fire buttons, a piezoelectric buzzer, and – interestingly – a vibration motor.

While the sample Python programs – Snake and Pong – are pretty poor, Kitronik has produced a series of lesson plans around the device which are absolutely fantastic, and put the £40 asking price well into ‘bargain’ territory for anyone looking to move on from the built-in features of the bare BBC micro:bit itself.

The Kano Pixel Kit is, on the face of it, a similar device: a matrix of 128 LEDs – twice the number of the Game Zip 64 – dominate the front, but control is limited to a function dial and a couple of buttons. It’s also Kano’s first truly standalone product, eschewing the normal Raspberry Pi for an on-board Espressif ESP-WROOM-32 microcontroller. As with the Kano Computer Kit, the Pixel Kit’s software – which, sadly, is not available for mainstream Linux, despite coming in a Raspberry Pi variant – is fantastic, but its development cost is likely behind the eyebrow-raising £75 asking price.

Finally, Mark Hardisty’s latest project – after putting his groundbreaking tome on the history of Gremlin Graphics to bed and recreating some classic artwork in Inlay – is The Classic Adventurer, a magazine dedicated to the glory days of interactive fiction. Available in print and also, all credit to him, as a free-as-in-beer DRM-unencumbered PDF download, each issue is packed with brilliant art and fascinating articles ranging from interviews to reviews with some behind-the-scenes stuff thrown in for good measure. It’s a fantastic project, and definitely one to follow.

All this, plus the usual raft of other people’s work, can be found at your nearest newsagent, supermarket, or electronically via Zinio and similar digital distribution platforms.

 

Custom PC, Issue 178

Custom PC Issue 178This month’s Hobby Tech has a pair of two-page spreads on two very exciting, yet decidedly different, pieces of hardware – the Raspberry Pi 3 Model B+ and the Gamebuino Meta – along with a look at an update to the Arduino Create platform which brings early support for single-board computers.

First, the Raspberry Pi 3 Model B+. As the name suggests, the new board isn’t quite a full generation above the existing Raspberry Pi 3 Model B. It is, however, a considerable upgrade – primarily thanks to a new packaging for the BCM2837 system-on-chip, now known as the BCM2837B0, which vastly improves its thermal performance and boosts its speed from 1.2GHz to 1.4GHz. Elsewhere, the board includes an upgraded and simplified power supply system, gigabit Ethernet – though limited to around 230Mb/s throughput in real-world terms – and dual-band 802.11ac wireless network capabilities. Naturally, the review also includes thermal imaging analysis – this time using a new overlay technique which, I’m pleased to say, offers a significant improvement in image clarity over my previous approaches.

The Gamebuino Meta, on the other hand, is a very different device to its predecessor. Upgraded from an ATmega microcontroller to an Arm chip, the Gamebuino Meta boasts a colour screen, programmable RGB LED lighting, a general-purpose input/output (GPIO) header with ‘developer backpack’ accessory for easy prototyping – in short, it’s a serious upgrade over the device I reviewed back in Issue 134. Despite the upgrades, though, it’s still extremely accessible, allowing users to write their own games using the Arduino IDE and the Gamebuino library with ease.

Finally, Arduino Create. I’ve been meaning to take a look at the cloud-based development environment for a while, but it wasn’t until it added support for single-board computers like the Raspberry Pi – on top of the Arduino boards it already supported – that I found an excuse to dive in. What I found is somewhat rough around the edges, but shows promise: a fully-functional IDE right in the browser, but with the ability to push sketches – with very little modification for the Raspberry Pi – to devices remotely.

All this, plus the usual raft of things I didn’t write, can be found between the crisp paper covers of Custom PC Issue 178 at your nearest supermarket, newsagent, or electronically via Zinio and similar digital distribution services.

HackSpace Magazine, Issue 1

HackSpace Issue 1I’m proud as punch to announce the launch issue of HackSpace Magazine, from the creators of The MagPi Magazine, a Creative Commons-licensed monthly publication aimed firmly at the hobbyist, tinkerer, maker, and crafter community – and you’ll find a four-page head-to-head of education-centric games consoles within.

Designed to sit alongside The MagPi, which focuses on the Raspberry Pi community, HackSpace’s remit is considerably broader: you’ll find everything from features on rival single-board computers through to non-electronic projects – including, in the launch issue, tips on smoking your own bacon and building a three-foot siege weapon from wood.

My contribution to today’s launch issue is a ground-up revisit to four handheld games consoles aimed at those looking to write their own games: the Gamebuino, MAKERbuino, Creoqode 2048, and Arduboy. I’ve written about these four devices in the past for a more general audience, but for HackSpace I was free to really dive into what makes them special – and, of course, include all the latest updates and features since the last time they were reviewed.

As with The MagPi, each HackSpace Magazine issue is available on the day of release for free download under the permissive Creative Commons licence. If you’d like to read the launch copy for yourself you can simply download a PDF from the official website, while print copies are available for purchase online and from all good magazine outlets.

 

The Official BBC Micro:bit User Guide

The Official BBC Micro:bit User GuideToday marks the launch of The Official BBC Micro:bit User Guide, the culmination of a year-long project to create the most complete and accessible guide to using the BBC’s amazing low-cost embedded computing platform everywhere from the home and the hackspace to the classroom.

Written in partnership with the Micro:bit Educational Foundation, The Official BBC Micro:bit User Guide is a collaborative effort. From project editor John Sleeva who worked so tirelessly on The Raspberry Pi User Guide and has brought that same energy to The Official BBC Micro:bit User Guide and technical editor David Whale who made sure that not a semicolon was out of place to the small army of typesetters, proofreaders, copy editors, and others at publisher J. Wiley & Sons, The Official BBC Micro:bit User Guide owes its existence to far more than the person whose name appears on the cover.

Special thanks, too, must go to Zach Shelby, chief executive of the Micro:bit Educational Foundation, for his early support of the project and chief technical officer Jonny Austin who worked to see the project through from start to finish and provided exhaustive feedback to ensure it launched in the best possible condition – not to mention offering his perspective of the BBC micro:bit’s meteoric rise around the globe in the book’s foreword.

Inside the 300-page publication you’ll find step-by-step instructions from unboxing the BBC micro:bit and learning about its components to programming it in JavaScript Blocks, JavaScript, and Python, as well as practical projects which make use of its sensors, buttons, display, and radio module. You’ll have the opportunity to build everything from a wearable rain-sensing hat to a hand-held game, and links to further resources from lesson plans and community-driven content hubs to add-on hardware to expand the BBC micro:bit’s already impressive capabilities are also included.

The Official BBC Micro:bit User Guide is available now in print and electronic formats from Amazon UK, Amazon US, Kobo, Waterstones, Target, O’Reilly, WH Smith, Booktopia Australia, and direct from Wiley, while it can be ordered in at other booksellers under ISBN 978-1119386735.

For those looking for non-English resources, translations are currently in the works with a French edition confirmed for early next year and more expected to follow in due course – and if you’d like to see the book in your own native language, get in touch to discuss how to make that happen!

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.

PC Pro, Issue 277

PC Pro Issue 277This month’s issue of PC Pro includes a four-way Battle Royale of DIY handheld games consoles, starting with the MAKERbuino and Creoqode 2048 also reviewed in this month’s Custom PC and including the original Gamebuino and Arduboy to complete the round-up.

There’s never been a higher focus on teaching kids to program – not even during the height of the microcomputing boom in the 1980s, when every home had a Spectrum and every school a BBC Model B partially funded by the government’s Computers in Schools initiative – but there’s a risk of turning kids off if all they’re doing is moving sprites around on a screen. To address this, a number of inventors have come up with physical devices to target instead: from the BBC micro:bit, the spiritual successor to the original Acorn-designed BBC Micro, to the handheld consoles in this month’s group test.

Each of the consoles on test have two things in common. The first is obvious: the focus is more on writing your own games, rather than just playing things other people have created. The second lies under the hood: all four consoles on test are based on Atmel microcontrollers and are compatible with the popular Arduino IDE programming environment.

There are more differences than similarities, though. The Creoqode 2048 is the most physically impressive – and imposing – machine on test thanks to its large footprint and bright RGB LED display, but falls down with poor supporting documentation and rebranded off-the-shelf parts sold at a massive markup; the Arduboy is, by contrast, the tiniest on test with a wallet-friendly design but limited capabilities. The Gamebuino has long been one of my favourite Arduino-compatible projects, but the MAKERbuino takes the concept a stage further with small hardware improvements and a shift from a pre-assembled unit to a solder-it-yourself kit using entirely through-hole components.

If you want to know which device walks away as the king of the hill, though, you’ll have to pick up the latest issue of PC Pro either physically at all good newsagents and supermarkets or electronically via Zinio and similar distribution services.