RASPBERRY PI
PROJECTS BOOK
200
PAGES
of ideas &
inspiration
WELCOME
ust over seven million Raspberry Pis
J have been sold around the world.
That makes this credit card-sized PC
one of the most successful computers the
UK has ever made. It’s quite amazing really,
that a tiny UK charity, dedicated to making
computing and computer science affordable
and available to people from all walks of life,
should end up with such an incredible success
story on their hands.
You can learn more about the Raspberry Pi
Foundation’s charitable and educational aims
at raspberrypi.org, but regardless of what you
want to do with your Raspberry Pi – be it for
fun, for education, or as a proof of concept for
a multimillion-dollar invention – The Official
Raspberry Pi Project Book has something to
inspire, help, and guide you on your journey.
Whatever you decide to do with your Pi, I hope
you have fun doing it.
Russell Barnes
This bookazine is printed on paper sourced from This official product is published by Raspberry Pi (Trading) Ltd., Mount Pleasant House, Cambridge, CB3 0RN. The publisher,
sustainable forests and the printer operates an editor and contributors accept no responsibility in respect of any omissions or errors relating to goods, products or services
environmental management system which has referred to or advertised in the magazine. Except where otherwise noted, content in this magazine is licensed under a
been assessed as conforming to ISO 14001. Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0). ISSN: 2051-9982.
PAGE 06
Projects 60 64
155 ANONYMEBOX
Stay anonymous online while using 174 PI-DIGIAMP+ WITH PI-CASE+
any connected computer Hi-res audio DAC and amplifier in one
164 RASPBERRY PI CASE SUPER-TEST small board
156 PIPSTA
Four third-party Pi cases are tested 176 SWANKY PAINT
Turn your Raspberry Pi into a portable
to the max Retro-style paint program for pixel artists
printer with this clever case
Raspberry Pi
GET
STARTED
WITH
RASPBERRY PI
Learn everything you need to know to become pro with your Pi
3 A tour of Raspbian
for learning code, creating
amazing projects, or just simply
also a smaller version of the Raspberry
Pi that you can use. The Raspberry
4
to power a home theatre. While Pi Model A+ is a cut-down version of
Installing & updating software the Raspberry Pi is generally the original Raspberry Pi, with a little
very easy to use once you know less power at its disposal and fewer
5 Use the GPIO pins how, it’s that initial learning
experience that can be a bit
connections on it. It’s favoured by
people who like to make big physical
tricky for some. projects, due to its diminutive size and
Have no fear, though: we’ve low power requirements. It also has
put together the ultimate guide only one USB port and no Ethernet port,
Let me help to getting started with your making it slightly less useful to some.
you get started very own Raspberry Pi, from
learning what all the ports and
pins on your Raspberry Pi are
for, to actually getting it up and
running with your own monitor,
mouse, and keyboard.
Whatever you want to use your
Raspberry Pi for, you need to
start here with the basics.
Audio out
This looks like a headphone
socket because that’s exactly
what it is. A 3.5mm jack to be
precise, this allows you to connect
the Pi to computer speakers,
or you could even plug in your
favourite headphones and have
a Raspberry jam.
MicroSD card slot
A little SD card is used as the
Raspberry Pi’s hard drive. This
is where the operating system
will live once you’ve put it on
there. Most computers won’t
be able to directly connect to
a microSD card, but you can
get an adaptor that plugs into
normal SD card slots. Power
This is the kind of small charging
port you might find in your HDMI port
smartphone. This micro-USB This is an HDMI port, the kind you’ll
port means you can power the find on the back of most modern
Pi with the right kind of mobile TVs and computer monitors. Use
phone charger or directly from a standard HDMI cable to connect
your PC – however, it’s best your Raspberry Pi to your chosen
to use the official Raspberry Pi screen, to see (and hear) whatever
power supply to make sure the Pi it’s doing. You’ll definitely need to
is getting enough power. plug it in to set up the Pi.
SYSTEM
Here, you can set whether your Pi boots to
the desktop or the command line (CLI), set
up autologin, and change password. There
is also an overscan setting which is useful
for getting rid of the black border around
your desktop if there is one.
INTERFACES
Under this tab, you can enable or
disable various interfaces on the
Raspberry Pi, including the camera
and other connectors.
PERFORMANCE
Here, you can set up overclocking and SOFTWARE
GPU memory allocation to optimise CONFIGURATION TOOL
performance for the particular task you Once Raspbian has booted and is Since Raspbian doesn’t take up
want to perform (e.g. HD video playback). showing the desktop, click the much space to begin with, you
Menu button at the top left of need to tell it to use your entire SD
LOCALISATION the taskbar to open the main card if you want to make use of all
This tab enables you to set up the correct menu. From there, select the the free space on it to store files.
language, time zone, and keyboard layout. Preferences option and then So, click the Expand Filesystem
Raspberry Pi Configuration from button under the default
the submenu. System tab of the Raspberry Pi
Setting up a media centre This opens a tool which can be Configuration menu, and then
used to configure various options reboot your Pi when prompted –
on your Raspberry Pi. Note that choose Shutdown from the Menu,
you don’t need to change most then select Reboot and hit OK.
of these options at this point, Read more about the
but one that is important is the configuration tool’s other options
‘Expand Filesystem’ option. at the top-right of this page.
02
The Raspberry Pi comes with many
install it, operating systems you can use,
use it! which you could manually install INSTALL SD CARD
yourself if you wish. There’s a While that’s downloading, you’ll
much easier way to install these need to get your SD card ready to
OSes, though, and that’s via work on your Raspberry Pi. This
the New Out Of Box Software, will require you to format it, so
or NOOBS. It holds all the latest if there are any files on the card
versions of the Raspberry Pi you want to keep, now’s the time
operating systems and you can to take them off. You’ll need to
grab it from the download page at: install the SD Card Formatter 4.0
raspberrypi.org/downloads. tool to prepare the card, which
We prefer to use the full version can be downloaded from the SD
of NOOBS, as it comes with Association: bit.ly/1alC3Wp.
Raspbian already downloaded, Once you’ve formatted your
making the process slightly faster SD card, extract the files from
than with NOOBS Lite. However, the NOOBS zip folder and put
all the other operating systems will them all on the card. That’s it:
be downloaded as they install, on NOOBS is installed to your SD
both versions of NOOBS. card and ready to use!
04
along with a mouse and keyboard.
Finally, when everything you need
is plugged in, you can attach the INSTALL RASPBIAN
power cable to the Raspberry Pi. The Raspberry Pi will turn on and
display some text on the screen –
you can ignore this until it gets to
Alternative operating systems a menu which lists all the available
operating systems. It allows you to
PIDORA ARCH OPENELEC RISC OS select multiple OSes at once, but
A bit like Raspbian, A very basic operating An OS to turn the A throwback to your right now we just want to use the
but based on a different system that works entirely Raspberry Pi into a school days, RISC OS one that’s called Raspbian. This is
core operating system. from a command line, home theatre PC, is what used to be on the main operating system for the
This is something no mouse and keyboard complete with the Kodi old Acorn computers. Raspberry Pi, with all the official
people a bit techy required. You’ll really need software that plays The Raspberry Pi is in apps, software, and learning
can use for a slightly to know your computers music and videos as many ways derived documents. Upon selecting
different Raspberry Pi. to start with this. well as web video. from them. Raspbian, click on Install and it
will begin the Raspbian installation
process, which may take a little
while to complete.
A TOUR OF RASPBIAN
Access the various These icons let you quickly The various open windows This area offers
Top menus, programs launch certain programs, are listed on here; much quick access to
right and settings for such as the browser, like in other operating tools such as WiFi
icons Raspbian; almost the terminal, and the systems, you can click to ensure your
everything you do Mathematica programs for between them when you Raspberry Pi is
will start here hardcore maths and graphing need to change location running just fine
WIRELESS
INTERNET
This shows
the state of
your internet
connection;
solid blue
lines means
it’s connected!
VOLUME
Control the
volume
of your
Raspberry Pi
from here.
This will work
whether
you’re getting
sound from
the HDMI
port or via
headphones.
PROCESSING
POWER Programs and apps are Windows here work just
The Raspberry categorised to make them like any other kind of
Raspbian should
Pi, while small, easier to find – if you can’t operating system: you
feel familiar to
has a lot of find the app you’re looking can drag them, change
most PC users
processing for, you might need to go their shape, and close
power. This through all of them them using your mouse
tells you how
much is in
Raspbian looks and works very The Menu is where all the programs software. The globe picture is the
use, so if it’s
similarly to the kind of operating and apps live; just like in any other Raspberry Pi browser, your access
running a little
systems you’re used to, except operating system, you can access point to the internet. The cabinet
slow and this
that the menu is now at top of them from here and they’ll open represents the file system of
gauge is at
the screen! Raspbian is based on up in a new window. You’ll find all Raspbian, allowing you to browse
100%, you’ll
something called Debian, which
know why.
TIME
is a version of Linux, a highly
customisable operating system that The cabinet represents
Set the time to
be anywhere
can be tweaked enough to run on
the Raspberry Pi. It works extremely the file system of Raspbian
in the world! well, and even on the tiny Raspberry
The Raspberry Pi it will almost feel like using the settings in here as well, in case any documents or images you have
Pi relies on the a normal computer! you want to tweak the way Raspbian saved onto your Raspberry Pi. The
internet to tell There are a few important icons looks and works. picture of the screen is the terminal,
it what time on the top panel that you should Next to the menu is a row of and it’s what you use to run
it is. make sure you’re aware of. quick-start icons to quickly launch commands via text on the system,
something you might have to do for the Menu and press Shutdown.
more advanced projects. This makes sure everything is safely
The file system of Raspbian is a disconnected and turned off before
little different from something like the entire computer turns itself
Windows. Instead of having a C:/ off. As the Raspberry Pi doesn’t
drive with a My Documents folder have a power switch, you’ll have to
and programs kept in Program Files, manually unplug the Pi to fully turn
everything is spread out in multiple it off standby, and you’ll have to The Raspberry Pi should now be
folders on the root, or top of, the file unplug it and plug it back in to turn connected to the internet! It will
system. What could be considered it on again. automatically set all its options
My Documents is a folder called Pi Raspbian is quite a simple from your router that will let it
in the Home folder on the root. You interface, then, very similar to how talk online. Open the browser
may see it referred to as the ‘home you may have used computers in and go to your favourite website
directory’, and that’s why. the past. You’re now ready to start to make sure it works. The Pi will
To turn off the Raspberry Pi when learning how to code and create your remember your wireless details
you’re done for the day, you go to own excellent projects! and connect whenever it’s on.
Raspbian asks you to agree to an sudo apt-get update sudo apt dist-upgrade
installation with a simple press of Y
The GPIO port is one of the most We’re going to wire up an LED
powerful tools at the Raspberry Pi’s bulb to be programmable from the
disposal, allowing you to connect Raspberry Pi, to turn it on and off
directly to an electronic circuit to again a few times. For this, you
control it. In such a system, the Pi will need a breadboard prototyping
is referred to as a microcontroller. circuit board, an LED, a 50-ohm
This is what makes the Raspberry resistor, and some wires. Refer to
Pi great for big projects, as you can our Fritzing diagram on the right,
use it to program a machine or to see how it’s wired up; the
circuit, and even have it connect to negative end of the LED goes to
the internet via the other Raspberry a ground pin on the Raspberry Wire the circuit up just like this
Pi functions so that it can control Pi (which is where the flow
contraptions with web data. of electricity ends), and a PIN 1 PIN 2
Each of the GPIO pins can do programmable pin goes through the
something different and very 50-ohm resistor to provide power +3V3 +5V
specific. At the basic core, though, to the LED when it’s turned on.
you can have them provide power Open up IDLE, the Python
GPIO2 / SDA1 +5V
consistently to part of a circuit, programming software, and
program a power switch to one of create a New file. Save it as led.py,
GPIO3 / SCL1 GND
the pins, and even have it sense and input the code from the
GPIO4 TXD0 / GPIO14
a change over the pins (thanks code listing. What the code does
to resistance). These three basic is first tell Python to use the GPIO
GND RDX0 / GPIO15
functions allow you to do a lot, and module so we can connect to the
can be programmed with Python. GPIO pins, by importing the module. GPIO17 GPIO18
We then import the time module
import RPi.GPIO as GPIO so we can create a delay between GPIO27 GND
import time commands. We then tell the code to
GPIO.setmode(GPIO.BOARD)
treat the GPIO pins as the number GPIO22 GPIO23
they are on the board, and to turn
GPIO.setup(7, GPIO.OUT)
the seventh pin into an output. We +3V3 GPIO24
GPIO.output(7,True) alternate between True and False so
time.sleep(1) that it turns the pin on and off. Once GPIO10 / MOSI GND
GPIO.output(7,False)
time.sleep(1) it’s cycled a few times, it will print
GPIO.output(7,True) the message ‘Done’ into IDLE, and GPIO9 / MISO GPIO25
time.sleep(1) finally turn off the GPIO pins.
GPIO.output(7,False) GPIO11 / SCLK CE0# / GPIO8
You can do a lot more with GPIO
print “Done” if you want to, and this is a good
way to start before moving on to GND CE1# / GPIO7
GPIO.cleanup() bigger projects.
GPIO0 / ID_SD ID_SC / GPIO1
GPIO5 GND
GPIO6 GPIO12
GPIO13 GND
You can connect directly to the Raspberry Pi without needing any special slots over the pins PIN 39 PIN 40
PROJECTS
SHOWCASE
There’s no better way to be inspired into action than to see what
the rest of the Raspberry Pi community is making (and how)…
20
16. 22
28
30
32
Projects
20 L EGO-LUTION OF PI 52 CANDYPI
The history of the Pi Trigger this classic
in the form of a Lego candy dispenser from
diorama your phone
22 R
ASPBERRY PI 54 MCMASTER FORMULA
CLUSTER HYBRID
A computer cluster built Pi provides the telemetry
from 40 Raspberry Pis for this smart racing car
24 IDATA TRUCK 57 PROJECT AQUARIUS
The Pi-powered lorry A Pi paludarium to
that tweets back to base recreate the Amazon
rainforest
26 SNES PI CASE
Raspberry Pi disguised 58 ONE CONTROLLER
40 as a Super Nintendo TO RULE THEM ALL
console Retro gaming console-
cum-arcade controller
28 SOUND FIGHTER
Duelling pianos battle 59 DIGITAL ZOETROPE
it out in Street Fighter A modern take on the
Alpha classic animation device
30 RASPBERRY PI VCR 60 IOT CHESSBOARD
Pi digital media centre in A smart physical board
a 1980s portable video for playing internet
player chess
52 74 32 LED MIRROR 61
FLAPPY BRAIN
This Pi-powered panel Control a Flappy
is no ordinary mirror Bird-style game with
brainwaves
34 RASPBERRY PI
ARCADE 62 LIFEBOX
Get nostalgic with this Two species battle it out
wooden arcade cabinet on this ingenious LED
box
36 #OZWALL
Retro art installation 64 PIPLATEBOT
built from antique Unique mini-robot built
televisions in an off‑the-shelf Pi
case
38 H.A.L. 9000
Fully functioning 66 COFFEE TABLE PI
homage to 2001: A An arcade cocktail
Space Odyssey table for authentic retro
gaming
40 PWNGLOVE
Nintendo’s notorious 68 JOYTONE
Power Glove is Unique musical
reinvented instrument made from
joysticks & lights
42 MATHEMATICA
68 TELESCOPE 72 RASPBERRY PI
Use Wolfram’s NOTEBOOK
Mathematica language Beautiful retro-styled
for stargazing mini‑laptop computer
44 #HIUTMUSIC 74 NIN10DO
Retro-style Twitter- This 3D-printed homage
powered internet radio can also play Sega
games
46 POCKET PIGRRL
Portable retro gaming 76 PISCAN
in a compact Game Boy A home-made Amazon
case Dash product scanner
MAKERS:
THE NEXT GENERATION
The Raspberry Pi is inspiring a new generation to learn how to hack and make
amazing projects. We chat to four young makers about their impressive
creations and achievements, and why they do them with the Raspberry Pi…
on to Objective-C and released for robotics at a Raspberry Jam… What is it you love about
several apps on the iOS App Store. I have tested all sorts of Pi add- the Raspberry Pi?
Since discovering the Pi, he’s on boards, from LED to analogue, It’s really cheap; I can afford
learnt to code in Python and has leading me to build my own. a few of my own and I’m not
built his own autonomous robots, always worrying about breaking
enhancing them with a variety of How did the idea for the PiPiano an expensive computer. It’s
sensors. He also helped 4tronix come about? portable, easy to ferry from event
to develop the Pi2Go. A regular I wanted to create a piano with to event. It’s got an amazing
Raspberry Jam attendee, he has my Pi, but adding switches to community, which enables me to
run many different workshops. a real piano would be a wiring meet cool people, learn lots and
Remarkably, Zach conducted a nightmare… My solution was to have amazing opportunities. It has
successful crowdfunding campaign create a simple, piano-style add- lots of documentation and a great
on Indiegogo in early 2015 for his on for the Raspberry Pi, which forum for learning anything with
PiPiano musical add-on board includes buttons in a piano octave it. It is very programmable [and]
(bit.ly/1wsBmci), raising nearly formation and a piezo transducer it can plug into electronics, unlike
twice the original goal. for sound output. After trying it on most computers.
Amy
Name: Amy Mather
Age: 16
Location: Manchester
Studying: 9 GCSEs (already
has an A* in
Computing)
Twitter: @minigirlgeek
What’s so great about What advice would you give
the Raspberry Pi? to other young coders?
lready into electronics It doesn’t matter if you Just get involved, find out where
A at the age of 12, Amy
integrated an Arduino
accidentally blow bits up on it –
you can get another one! Or if the
all the local events are, and get
involved with the community;
kit into a model volcano for SD card corrupts, it’s not the end you’ll definitely learn a lot more
a school homework project, of the world: you can reformat from talking with other people who
which she was then asked to it. The Pi allows you to make all are interested in similar things,
demonstrate at Manchester’s first kinds of remarkable projects and rather than just sitting alone at
Mini Maker Faire. After getting there are so many awesome add- home and doing it by yourself.
hold of a Pi, she learnt Python on boards. Also, the community’s
and created her own version of really welcoming and friendly,
Conway’s Game of Life, even so they’re open to any of your
outputting the display to an questions. I think the whole
LED matrix. Most notably, Amy environment is just amazing.
teaches both adults and children
to code and works closely with the Do you have any new Pi-based
STEM network to inspire other projects planned?
young people to get involved in My school has just asked me if I
computer science. This has led have any ideas for ways that we can
to her giving keynote speeches link the coding club and the STEM
at many prestigious technology club. So I’m thinking about how
events. At ICT 2013 in Lithuania to help them through the use of
she received an award as the Raspberry Pi-based projects. I’ve BIG PROJECT: PI-LIFE
European Digital Girl of the Year. helped out with teaching coding
workshops and I’m currently
Amy first came to the attention of the international
How did you get started with leading a series of soft electronics
Raspberry Pi community after giving an impressive
programming? workshops as the volunteering
presentation of her Python version of Conway’s Game
I first got interested in coding section of my Silver Duke of
of Life – a zero-player game simulating cellular
when I was about 12, following Edinburgh Award.
replication – at the 2013 Manchester Raspberry
a Manchester Girl Geeks
Jamboree (raspberrypi.org/amys-game-of-life). In it,
workshop that I attended that And you also make speeches
she enthused about her love of coding and detailed
was an introduction to JavaScript at numerous events?
how she developed various implementations of Life,
using Codecademy. I thought Yes, I speak at quite a lot of
including one with the Pi outputting the resulting
Codecademy was an amazing conferences, about how we can
patterns to an 8×8 LED matrix via a connected Arduino
platform for learning how to get more kids involved in STEM
Mega. Since then, she’s created a more compact
code and I continued with their (Science, Technology, Engineering,
version using a Pi-Lite LED add-on board.
courses (you can find out more and Mathematics) and why it’s
at codecademy.com). really important that we do so.
Lauren
What do you especially like
about the Pi?
One thing that I really love is its
Name: Lauren Egts versatility. I’ve used it in a variety
Age: 16 of projects, and seen it used in
Location: Stow, Ohio even more! The Pi is so small that
Studying: High School it can be used practically anywhere,
(Hathaway Brown) which means it can be used in [so
Twitter: @laurenegts many different] projects.
BIG PROJECT:
PI VIDEO WALL
During her internship at NASA, Lauren
– working with fellow intern Nick
Patterson – did a proof-of-concept
project to create a Pi-powered video
wall (go.nasa.gov/1DYEa2v). Since
they only had access to what was
in the NASA G-CVIS Lab at the time,
different-sized monitors were used,
but the end result was still impressive.
The setup involved connecting four
Pis to a master computer via a router.
The PiWall software package
(piwall.co.uk) was used to split up
the video display into four tiles, one
for each monitor. Lauren hopes to
improve the setup when she returns
Plugging directly into the Pi’s to NASA.
GPIO pins, the PiPiano is an
impressive add-on board.
Matt
Name: Matt Timmons-Brown
Age: 16 BIG PROJECT:
Location: Bartlow, THE RASPBERRY PI GUY
near Cambridge
Studying: 11 GCSEs
Twitter: @RaspberryPiGuy1 Why did you decide to set up Matt’s YouTube channel
your own YouTube channel? (youtube.com/user/TheRaspberryPiGuy) has
I am a very recent convert to the been running for over two years now and has
etter known as The ways of Pi. As a result, I originally proven immensely popular, amassing over 42,000
B Raspberry Pi Guy, Matt
runs a YouTube channel
found computing a fairly hard
subject to get into; there is all of
subscribers. “Dedicated to teaching the masses how
to make the most of their Raspberry Pi computer”, it
dedicated to Raspberry Pi video this foreign jargon and sometimes provides a plethora of step-by-step video tutorials.
tutorials. Amazingly, he only it can be incredibly confusing… In These range from basic setup to attaching various
started coding and making September 2012 I realised that I add-ons and creating numerous projects – including,
around three years ago, upon had built up a considerable amount of course, robotics. The latest addition is the
discovering the Pi Foundation’s of knowledge on the subject and Raspberry Pi Robots series, which Matt hopes “will
credit card-sized PC. So far I thought it would be a great side engage people in computer science through the
he’s created projects of varying project to teach people some of the most exciting medium: world-conquering robots.”
complexity, including a Pi- stuff I’d had so much fun learning.
controlled model railway, but I turned to YouTube as a way of
Get making!
his real passion is robotics doing this because I found the most
– in particular, making two- easy way to learn something is
wheeled robots and pushing by watching someone go through
their abilities to the max. His something step by step… On Our young experts offer a lot of good
latest project involves building 1 September 2012, The Raspberry advice for how to get started with
coding and making…
an accessible robotics platform, Pi Guy was born and I have been
with a complete set of learning publishing videos ever since; I am > There are lots of free online
resources, such as Codecademy,
materials, using 4tronix’s Pi2Go- just about to hit the 2 million view to help you learn to code. Just
Lite. To this end, he has filmed a barrier on YouTube, something I Google ‘coding courses’.
YouTube series called ‘Raspberry never imagined! > Look out for local events and get
Pi Robots’. involved – it’s much more fun than
What’s so great about the Pi? trying to do it alone at home!
How did you first get involved There is no other product out > Events such as Maker Faires and
with making? that there has the same ethos: Raspberry Jams can give you ideas
to try, and a place to exhibit your
I am the quintessential Raspberry to teach people about computing projects and make contacts.
Pi product: a schoolboy who by introducing them to a [new]
> Join a robotics team if you’re
now has a love of computer experience. After all, how many interested in making robots and
science because of the Pi… In single-board computers has the entering them into competitions.
the summer of 2012 I managed average person seen? How many > Even if something seems hard to
to get my hands on my first Pi terminals have they programmed in? start with, keep trying: if you set
your mind to it you’ll achieve it. And
and ever since then I have been Scratch that, how many people have
you’re never too young to start!
in love with programming, actually programmed?! The Pi is a
> However, remember to always
making (robots!) and computer gateway to the world of computers
have fun with what you’re doing.
science. The Pi opened my eyes and [has] introduced me to a lifetime If you don’t like something, don’t
to computing and for that I am interest… It has inspired millions waste your time with it.
incredibly grateful! and continues to do so.
LEGO-LUTION OF PI
Ozzy, Jasper and Richard Hayler celebrate their
collection of Raspberry Pis the only way they know how
hen Richard Hayler isn’t “I didn’t get round to it straight it in a school, and finally, a Pi being
W working for the Foreign
Office, he’s a Raspberry Pi
away, and it languished on my list
of ‘things to do’. Then I was lucky
strapped to a rocket, ready to launch
up to the ISS to celebrate Astro Pi.”
enthusiast, CoderDojo mentor, and enough to get a free Pi 2 on the day Each stage of the design boasts a
Code Club volunteer. “Pretty much of launch by tracking down the more modern model of the Raspberry
everything else revolves around my Element14 PiCycle (bit.ly/1DpL9Es), Pi, Richard explains, not to mention
sons, who love getting involved with which reinvigorated my interest in the addition of a couple of ‘Easter
all things Pi,” he says. the idea. eggs’, including a rather suspicious-
Besides test-driving his “I asked the boys if they had any looking group consisting of a pirate,
educational material, Richard’s ideas of how to make the pictures monkey, robot, and ninja.
sons Ozzy (aged 8) and Jasper (9) more exciting than just a bunch of What’s next for the Haylers?
are often to be found hacking and Pis on a desk, and they immediately “[We’re] putting together some
making with the Pi. Their latest suggested this.” hardware based around the Model A+
creation is this rather marvellous After discussing a few ideas, for kite-mapping photography,
Lego scene designed to celebrate the Richard’s youngest, Ozzy, suggested that will record the altitude and
evolution of everyone’s favourite creating a Lego timeline showing orientation of the kite, and use it
credit-card-sized PC. the Pis being used in different ways. to have some intelligence about
“I recently liberated my Rev 1 “This morphed into a scene which when (and when not) to capture an
Model B from the BrickPi robot and follows the Pi from the design image.” You can see more of the
thought that it would be nice to take phase, through manufacture in a Pi Haylers’ Pi timeline, and learn more
some photos of all the different factory, to being loaded onto a lorry. about the family’s other projects, at
versions I own,” explains Richard. Then we have some children using richardhayler.blogspot.co.uk.
RASPBERRY
PI CLUSTER
David Guill shows us what happens when he’s
left in a room with 40 Raspberry Pis, two 24-port
switches, 5TB of storage, and an ATX power supply
iDATA TRUCK
A Raspberry Pi-powered lorry? It’s not as strange as you think,
Quick as Andy Proctor shows us how he automates deliveries with Pi
Facts raving the often-congested decided that I wanted to push a Python, learning along the way,
> Andy learned
to program for
B motorways of Great
Britain, we find our hero
button and send a tweet.”
The transition from being a
and within six weeks I had created
the box with the four buttons that
this project
Andy Proctor – lorry driver and successful business owner to a you see now.”
> The community truck hacker extraordinaire – lorry driver hadn’t had the best The iData Truck was born and
has already
live-tweeting his schedule as he impact on Andy, and his wife not only did the buttons tweet
begun making
his code better picks up, and delivers, the nation’s encouraged him to play about out his current status, it emailed
shipping containers. There’s with his new Raspberry Pi on their his office – a task he would have
> Most of the
electronics much more to his tweets than honeymoon. With a background been doing manually anyway.
come from a meets the eye, though, and it all as an electrician, website builder He published a video on YouTube
SunFounder
started with him finishing up his and tinkering with computers and describing his setup, which got
starter kit
previous business and becoming electronics as a kid, some of the Pi picked up by the Raspberry Pi
> Andy uses
a lorry driver. came naturally to him. Foundation and even the BBC.
an iPhone to
connect his Pi “I was tweeting ‘#m25’ and Andy isn’t finished yet, though.
to the internet ‘#m12’, and I noticed it was Humble beginnings “I only have four things I can
> There will being retweeted automatically. I “I started off with Tweepy and transmit,” he laments. “So now
soon be a live contacted the guy who was doing it Scratch to make some lights what I’m doing is a barcode-
camera stream
and he told me it was powered by flash, and built a little box with a scanning version. I’ve printed off
from his lorry
a Raspberry Pi and a bot. I looked board for the lights, which made loads of barcodes which I can stick
up what a Raspberry Pi was and me happy! I then did the same in to the back of my time sheet and
HOW TO
REPORT IN
WITH iDATA
TRUCK
> STEP 01
Press the button
When Andy loads or unloads,
he presses one of the four
preselected buttons on the iData
Truck so he can let his company
know what he’s up to.
> STEP 03
Email and tweet sent
An email is sent off to Andy’s
company to let them know of
his status, and a tweet is sent to
the @iDataTruck Twitter feed for
everyone to see what he’s up to.
Left The
information on
the iData Truck
stream is always
expanding.
Andy initially
had trouble with
duplicate tweets
until he started
using timestamps
SNES PI CASE
What happens when you turn a Super Nintendo into a Raspberry Pi?
Quick F-Zero becomes Raspbian, among other things…
Facts ou walk into a room and tells us. “[Also] how they were Just about everything he could
> It took two
weekends to
Y see a SNES. A classic,
a legend, one of the
solving particular problems… then
taking those ideas and improving
connect through the SNES has
been done in that way, and just
complete greatest videogame consoles to on them in my own creative way.” about everything uses the original
> This is a US ever be crafted by the hands of His own creative way is frankly port locations. USB and Ethernet
SNES, hence man. Beside it is a cartridge of the incredible. Instead of just fitting the are routed through the two front
the purple
and angles original F-Zero, perhaps not the Raspberry Pi into an empty case, he controller ports, the HDMI is in
best in the series but an excellent soldered parts of it directly to the the old AV out, the power has been
> Some of the
printed circuits game nonetheless. You slam it in original motherboard of the broken converted, and an on/off switch
are scratched (gently though, they’re both 25 SNES he was working on. Most of has been fitted into the aerial
off to make years old), flick the power switch, the work on this project was the connector. That’s not the best
it work
and look for a controller. Suddenly, physical customisation part. part, though:
> The original
a Raspberry Pi logo shows up. “The software side is easy since “In my design, I’ve moved the
power light
is fixed to a This isn’t a Super Nintendo. It’s there are a numbers of solutions SD card from the Raspberry Pi and
GPIO pin a Raspberry Pi case that used to be out there that have already been connected it inside an actual game
> F-Zero is one a Super Nintendo. proven to be successful. The cartridge. I’ve noticed a few more
of Mark’s “Like most great ideas, [I got it] majority of the work I’ve done is failed boots than normally would
favourite SNES
from watching others and seeing with the physical part, and is easily be expected. Other than that, it
games
what they were building,” Mark 90-95% of the time invested.” works beautifully!”
SOUND
FIGHTER
Cyril Chapellier and Eric Redon have brought a new
dimension to the phrase ‘duelling pianos’ with
an installation designed to turn two pianos into
controllers for a game of Street Fighter Alpha 3
e seamlessly transformed and recently reopened to the on a very tight schedule. “The
“W two classical upright
pianos into PlayStation 2
public as a cultural space, offering
a wide spectrum of entertainment
go-ahead was given on 1 October
[2014], the shooting of the teaser
controllers using custom choices, such as live concerts, video was to take place on 12
analogue piezo triggers, a Pi B+, workshops, and live radio shows,” November, and the live event on
and Arduino Unos, and created a the pair explain on their blog. the weekend of 14 November.”
specific Python 3 firmware to map To celebrate the reopening, The video shows classical
a classical playing style onto the Cyril and Eric worked on the pianists Alvise Sinivia and Léo
Street Fighter Alpha 3 gameplay, overarching concept of bringing Jassef, from the Conservatoire
including combos and the like,” ‘an alternative visual identity to National de Paris, duking it
explain the French duo. music’, which led to the idea of out as Street Fighter’s principal
The concept was pitched for trying to bring the general public characters, Ryu and Ken. You can
the reopening of the Maison back in touch with classical music see it at youtu.be/7v2B71RUaqQ.
de la Radio, a historical radio and classical instruments (like Learn about the making of
building in the heart of Paris. the piano) in this completely new the ‘Sound Fighter’ installation
“The building has been the and unique way. in incredible detail on Cyril
home of the French public radio While the concept was gladly Chapellier and Eric Redon’s blog,
stations for more than 50 years accepted, the project itself was at foobarflies.io/pianette.
Everything is stored
inside the case, meaning
you just need to power it
The VHS is a four- and control it
port USB hub that
connects to the Pi
located on the side of
the case. The screen
is on the other side
Quick
Facts RASPBERRY PI VCR
> The project An Eighties video player or portable digital entertainment centre?
took six months
to complete Spoilers: it’s the latter, and it looks truly amazing…
> Martin has
ortable video playback old enough to know what one of them with modern tech, with the
P
many similar
broken devices is a modern concept, right? those is, ask your parents (or better Pi running the show, a powered
ready to
upcycle Before magical internet- yet, Siri). You did have to hook it USB hub housed in a pop-out VHS
connected phones in our pockets, up to a TV, but being able to lug it tape, an Arduino-powered clock,
> His next project
is to upgrade there were portable DVD players in around was quite a novelty really, and a 15˝ HD TV panel integrated
a Seventies cars. Laptops had DVD drives and taking inspiration from portable into the back of the unit.”
cassette player video software a bit before that as stereos of the age. The whole setup runs Raspbmc,
> The Pi well, so perhaps it’s a little older This version is slightly different, the XBMC spin of Raspbian, and
community
than you might initially consider. though, as its creator Martin also allows you to stream from
helped a
lot during Meet the Sharp VC2300H and Mander explains very succinctly: places like YouTube and the
construction have your world turned upside “I picked [this] up for ‘spare BBC iPlayer via WiFi. There’s
> This is Martin’s down. This contraption from the or repair’ on eBay for £6 – a even a built-in IR sensor for
first major Pi ancient past of 1981 was able to play top-loading VCR that unusually media remotes.
project
video stored on magnetic tape and stands upright and has a carrying “I’d made several other projects
housed in a big plastic rectangle – handle. I stripped out all of the combining retro TVs and LCD panels
also known as a VHS. If you’re not internal circuits and replaced before, but these were always tied to
GET
WATCHING!
>STEP-01
Turn it on!
There are several buttons required
to turn the full thing on. First the
switch for the mains supply, then
Some of the the switch to activate the lights
physical buttons
are used for fun and clock and other fun things, and
lights and exposing finally the switch for the Pi.
the USB ports, and you
can just about see the
Pi through the side
I stripped out all of the internal circuits ports are for the Pi – don’t worry,
you don’t need to put it back in.
A camera
is mounted on the
front of the panel
LED MIRROR
It’s not every day that you are able to see yourself in a whole
Quick new light, but the LED mirror has managed to crack it
Facts e wouldn’t say Johan ten a Raspberry Pi Camera Module,” displayed images are very abstract,
RASPBERRY PI
ARCADE
Save money at the arcade and
Don’t just limit yourself
to arcade games, as
EmulationStation lets you
play from retro consoles
#OZWALL
For his flagship art installation in Nashville, Joseph Hazelwood brings
old and new video technology together with the Raspberry Pi
he #OZWall video “A visitor to OZ will walk in the “Right now we have it displaying
T installation, the brainchild
of Joseph Hazelwood, sits
Escaparate and be drawn into an
interactive multimedia experience.
one large image and switching
content via video editing, but in
in the ‘Escaparate’, the focal point We like to think of this installation the long run we plan to use the
of Nashville Tennessee’s centre for as a canvas for other artists to Raspberry Pis to switch content
world-class contemporary art, OZ build upon, and that’s the beauty and to make the wall more
Arts (ozartsnashville.org). of open source and platforms like dynamic and interactive. We
Before becoming a hotbed for the Raspberry Pi.” may also add cameras, motion
creatives, the space was actually Hazelwood has effectively detectors, and other sensors to
a cigar warehouse that held over retrofitted six vintage TVs with the room/building for all manner
100,000 of the owner’s private modern LCD panels, though he of interactivity.”
cigar blends. plans to double this to 12. “Each TV You can learn more about the
“From what I’m told, it was is outfitted with its own Raspberry #OZWall video installation and
originally one of the largest cigar Pi 2. We used the code from the Joseph Hazelwood’s fascinating
humidors in the world,” quips CCFE Pi Wall project (ccfe.ac.uk/ penchant for juxtaposing
Hazelwood, before getting to the computing_projects.aspx) and old and new technologies at
crux of the project. tailored it to our needs. hazelwoodlaboratories.com.
H.A.L.
9000
Willem Koopman opens the pod bay
doors on his latest Raspberry Pi project:
a fully functioning H.A.L. 9000
Quick
Facts
> It took seven
days from
conception to
PWNGLOVE
The infamous NES peripheral, the Power Glove, has been the butt of
presentation
> Cory’s son many jokes and centre of a lot of nostalgia. What happens when you
helped with
the soldering don’t need the rose-tinted glasses any more?
> The Power
et’s face it, once you take the memory my 12-year-old was information security, Cory
L
Glove was
an official off your rose-tinted glasses self was deprived of, thanks to wanted to try something else:
Nintendo
and forget the quotes and the marketing genius behind “I wanted to do something
licensed
product memes surrounding cult 1980s Power Glove’s capabilities,” different, mainly because where
adver-film The Wizard, you’re left Cory explains to us. “I saw other I am today professionally is rooted
> It accepts two
Wii Remotes as with a barely functional peripheral people doing all sorts of projects in tinkering – not only with
controllers that is very much a product of its with Power Gloves and I thought computers at a young age, but also
> It was created time. The Power Glove was a novelty it would be a perfect match to pair videogames... I wanted to be the
as part of a and, while it captured the minds of it with retro NES gameplay.” kid from the ‘now you’re playing
‘show-off’
meetup
many young children, it never quite The PwnGlove was originally with power’ ad. Which is exactly
lived up to its promise at the time. created for Cory’s information why I added the NeoPixel array.”
Apparently, it’s this exact reason security meetup’s ‘Hacker As well as being a pretty good
that got Cory Kennedy motivated. Show-off Contest’, where he had fit for the inside of the Power
“The PwnGlove was a project 15 minutes to wow the crowd with Glove, the Raspberry Pi came
rooted in the desire to build his invention. Although the focus in very handy for enabling
Bluetooth, Arduino interaction, “It leverages all the original aren’t working), and they are set Above Left An
Arduino can be
and access to the actual games. components, modified physically up now to do things like allowing found in the
“The bodywork was tough, a bit to cut [out] the non-essential the Konami code and switching the original circuit
compartment,
mainly trying to resist the urge to PCB, to allow for room for new colour and pattern sequence on the plus a screen and
take away from the original look components. There are four NeoPixel array.” Raspberry Pi on
the wrist
too much,” Cory says, regarding original bend sensors (thumb, Cory is forever making tweaks
actually getting everything into index, middle, and ring), which to his PwnGlove, improving it in
and around the glove. “I say connect to an analogue multiplexer minor ways to solve what he sees
that, but then I take a look at the living in the palm housing, as problems, but admits that most
monstrosity it has become and I which sends that data back to the people don’t even notice.
have to say... It now reminds me of Arduino. This is all piped over “To be honest, the reactions
the Back to the Future DeLorean.” Bluetooth back to the Raspberry Pi. it gets from people, especially
He did try to use as much of the The wrist pad buttons are mostly kids, certainly makes those
original parts as possible, though. intact (programming buttons imperfections disappear.”
Quick
Facts MATHEMATICA
> The whole
thing only took
a few hours
to make
On its own, it’s impressive enough, Raspberry Pi. Tom uses a serial-to-
USB adaptor to do this, then boots
but Tom has added a few more tricks up the Pi.
#HIUTMUSIC
Creative technology agency Knit built an internet radio
with a difference to entertain Hiut Denim’s workforce…
idea to help customers connect with but the ‘save’ button saves the
the boutique jeans company. current track to a favourites
“We wanted to facilitate a playlist and a tweet is sent from
dialogue between Hiut and their the @HiutMusic Twitter account,
fans through the emotion of sharing the request.” What’s
music, creating an opportunity for more, the backlit display on the
customers to have an impact on front of the #HiutMusic jukebox
the people that make their jeans,” changes colour based on how
explains Jack Chalkley, head creative far away the track request was
technologist at Knit. sent. The further the sender, the
It’s powered by an internet- warmer the colour displayed. “For
connected Raspberry Pi, which uses example, a request from Wales
the Spotify and Twitter APIs in a would turn the display light
rather novel way. “It plugs into yellow, whilst a request from New
the existing sound system on the Zealand would illuminate deep
factory floor and fans can request red,” explains Jack.
a track by posting a tweet that You can learn more about the
includes #HiutMusic, the artist, and #HiutMusic jukebox at
track title,” says Jack. The tweet is weareknit.co.uk. Above Capacitive touch sensors are used for the ‘skip’
and ‘save’ buttons
POCKET
PIGRRL
Adafruit’s Ruiz brothers are back with a
2015 refresh of their brilliant Nintendo
Game Boy project that’s half the size
and twice the fun of its predecessor…
Below The files you need to 3D-print the chassis are available
for download on the project’s webpage. If you don’t have
a printer, you can order 3D printed parts online
Below Here you can see the audio amp (top left) and the
power charging unit (top right). The three wires leading to
the side of the chassis control the power switch
Right The Pi
mascot, Babbage
Bear, beats Felix
Baumgartner by
reaching 39km
SPACED OUT Dave Akerman’s frequent and eye-catching forays to the edge of space
have made him the Raspberry Pi’s foremost near-spaceman
t may have proven to be and the results have been nothing High-profile
I one small step for man,
but space travel has
less than stunning.
Dave is a high-altitude
performances
One of his most high-profile
certainly been one giant leap ballooning enthusiast who has recent performances came on
for the tiny Raspberry Pi. When been tethering Raspberry Pis to the BBC 2 show Stargazing Live on
the makers of this bare-bones helium balloons and sending them 20 March 2015. Dave was invited to
computer came up with the to the edge of space since 2012. His rub shoulders with the likes of the
device, no one in their wildest hobby and choice of computer have European Space Agency astronaut
dreams would have thought it been attracting much attention Paolo Nespoli and Paul Franklin,
would boldly go where few other since, leading to a rather hectic life the visual effects supervisor of the
machines have travelled before: for the software programmer, and Hollywood movie Interstellar.
Below Dave to the stratosphere and back. But helping to show further evidence Stationed at Leicester
Akerman and
Heston Blumenthal thanks to the Pi community’s very of the adaptability of the Pi. racecourse, Dave was asked to
during filming for own ‘spaceman’ Dave Akerman, In the Pi’s lifetime, Dave has launch a 434MHz (RF link) balloon
the celebrity chef’s
UK TV series that is exactly where it has been, appeared on television, become equipped with ‘Pi in the Sky’
something of a YouTube sensation, telemetry boards to capture stills
and worked with a celebrity chef, and video from above the clouds
making him one of the most of the solar eclipse taking place
well-known users in the ever- that day. The Raspberry Pi soared
growing Pi community. Not that to a maximum altitude of 30km,
he’s complaining about becoming taking in images, before popping
a Pi celeb. “The Raspberry Pi and landing in a field just south of
had two big effects [on my high- Leighton Buzzard - a huge success
altitude ballooning]: the addition which delighted viewers and the
of live images and all of the media BBC. “It was just a shame that
attention,” Dave tell us. “I expected there was so little time to explain
the former, but not the latter. It’s all the flight,” says Dave. “The
been good, though.” images shown weren’t near our
The Pi is an ideal device, it’s not rocket science – it does encompass many
fields, such as physics, weather prediction, how the
receive end is a bit trickier, and is of Dave’s flights will remain, most
inside the LoRa chip. generally done with a ham radio notably the Pi Camera Module
“The Pi is an ideal device, allowing receiver and a PC.” which replaced the original
the telemetry to be automatically Dave has carried out four webcam on the balloon’s payload.
uploaded to the internet for LoRa test flights so far, the “The Pi camera quality was a big
display on a map,” says Dave. “It first of which landed on a golf improvement on the webcam,” he
also becomes possible to upload course during a competition. tells us. “It was lighter too, which
messages to the balloon tracker.” “The payload was collected by helps. Previously, I used Canon
LoRa will replace the traditional one of the golfers, who wrapped it compact cameras for stills, or a
RTTY (radioteletype) balloon round his trolley, which explained Kodak camcorder for video.”
tracker for Dave, even though the fact that the landing position
the older system is very easy to kept moving!” Another test Video capture
program and has been used for flight had two LoRa trackers, one Such video-taking capabilities
around 95 percent of amateur receiving data from the first and have proven to be very useful,
high-altitude balloon launches in then relaying to the ground over especially during some of the
the UK. “It’s essentially the same an RTTY link. “Most impressive, publicity-generating stunts that
as RS232 serial communications, though, was a trial of high-data- Dave has pulled. His favourite
with the ones and zeroes being rate images, where the incoming involved taking a 20cm-tall
denoted by two slightly different packets managed to saturate teddy bear – the Raspberry Pi
radio frequencies,” explains Dave. the uplink on my admittedly mascot, Babbage – to an altitude
“On the Pi, all that’s needed slow ADSL internet,” Dave adds. of 39 kilometres and dropping
is to connect the serial port to “More work is needed, but this it from the sky. He wanted the
a small radio transmitter via a does look promising.” toy to rival human daredevil
Below The potato
few resistors, and then send the Yet even though LoRa modules Felix Baumgartner, who had set
in space, as filmed
from a GoPro data out of the serial port. The are being introduced, some aspects the world record by skydiving
from a height of 38,969 metres
in October 2012.
For the 2013 Babbage flight,
the teddy dropped at speeds of
up to 200 miles per hour as a
fitted camera filmed what the toy
‘saw’. Landing four hours later
in a field near Shaftesbury, the
teddy – which contained a Pi and
a tracking device in its stomach
– was intact, and its endeavours
eventually came to be watched
by more than 160,000 YouTube
users. “I wanted that downward
video of the [Baumgartner] jump,
but with a slightly lower budget
and rather less seriousness,”
For the 2013 Babbage flight, Heston’s reaction when he learned things for the
first time. We then had to drive up and down the
CANDYPI
Delicious jelly
beans, kept
tantalisingly out of
reach inside their
glass prison
e remember going to
Quick
Facts
MCMASTER
FORMULA HYBRID
> The car is
quarter the size
of a regular
Formula 1 car
W
engine hen the engineering electrical division of McMaster the Raspberry Pi steps in. “What
students from McMaster University’s Formula Hybrid and the Pi does for us is handle all of
> It can do 0-100
km/h in three University in Canada EcoCAR 3 teams. He tells us that our communications. Essentially,
seconds flat started working on their entry the Raspberry Pi has been crucial it’s both the dashboard computer
> It has a top for the 2015 Formula Hybrid and to the car’s success. “We’re a and our team radio. It also gives us
speed of EcoCAR 3 competitions, they knew pretty big team, between 70 and 90 a few new features along the way,
150km/h
they’d need more than raw muscle people. But our project is entirely simply because it’s so powerful.”
to get a podium finish. Not that student designed, built, and tested. Good telemetric data is essential
their race car lacks muscle: it packs The students do everything.” when building a race car. “We
a 15KW in-hub motor for the front McMaster has been entering have live up-to-date information
wheels, and a 250cc motorcycle the Formula Hybrid and EcoCAR 3 about everything that’s happening
engine for the rear wheels. competitions for several years now in the car,” says Jonathan. “We
The challenge was bringing and had pretty much perfected the use a wireless adapter known as
all the technology together and physical car: “It has a very clever a Bullet [BULLET WirelessHART
keeping the car going. McMaster’s monobox,” asserts Jonathan. “It’s Adapter], which is built for a
secret weapon was a Raspberry one big fibre tub.” variety of outdoor uses. We have
Pi 2, used to gather telemetry Physically the car was fine, but one at either end: one in the car
data and send it to the team on that’s not enough to win a race. and one in the pits.”
the trackside. “We do a lot of electronics in the The telemetry data enabled
We caught up with Jonathan car,” says Jonathan, “a lot more McMaster students to analyse the
Moscardini, LV lead for the than we need to” and that’s where car as it raced around the track,
which helped them fix a variety of
INSTALLING
A RACE-CAR
COMPUTER
Above The Raspberry Pi 2 sits behind the dashboard and powers the display. When
the car is racing, it automatically sends telemetric data to the team in the pits
>STEP-03
Trackside telemetry
The Raspberry Pi is hooked up to a BULLET
WirelessHART Adapter, which communicates
with another Bullet at the trackside. Data
captured by the Raspberry Pi is sent wirelessly
Above The car is much smaller than a Formula 1 car, but with a top speed of 150km/h to the team working on the car.
it is much more than a standard kart
AMAZING PI
PROJECTS
8 imaginative creations that innovate and inspire
Project Aquarius
Two brothers recreated the Amazon rainforest
in their home, including indigenous flora and
fauna. Weather, sound, and lighting effects
produce accurate day and night cycles…
B
rian Corteil is a Cambridge Raspberry (bit.ly/1lYZkDg).” digitalLumberjac’s arcade joystick
Jam regular and founding member of the driver (bit.ly/1xHKQCz) also proved to be the best
Cambridge Makespace (makespace.org). way for Brian to interface the joystick and buttons to
Brian is well known in the Raspberry Pi community the Raspberry Pi’s GPIO pins.
for the remarkable quality of his projects and their Brian keeps an excellent log of his many Raspberry All images
stunning attention to detail. Pi projects, including the building of robots, on his courtesy of
Alex Eames
“I wanted to make something my two boys could website: corteil.co.uk/Blog. www.raspi.tv
set up and play with, without me being around,” he
tells us about his distinctive retro gaming project.
“It’s also a great honeypot to draw people in to my
table when I show off at Maker Faires and Raspberry
Make it HAPPEN
Jams [see sidebar on the next page].” Brian is one of the founding members of Cambridge
Brian’s retro gaming console-cum-arcade Makespace (makespace.org), which gives him full
controller is certainly that, and it should be of little access to the tools and equipment (like 3D printers
surprise that it’s just as neatly presented on the and laser cutters) he uses in his projects, not to
inside as it is on the outside. mention the expertise of fellow members.
“I used one of the laser cutters at the Cambridge While trailing its US equivalent, the UK maker
Makespace to cut [and] engrave the box and back- scene is growing fast, with new locations popping
plate. I also used Inkscape (inkscape.org) up all the time. Try searching online for ‘maker
to design the back-plate and modify the box spaces’ or visit hackspace.org.uk.
design from Steve Upton’s box-generating script There are also numerous online services that will
(officeoffairetrade.com). The RetroPie SD card do the 3D printing or laser cutting for you and send
image takes care of the software side of things the results by post.
Organise
YOUR OWN JAM EVENT
Raspberry Jams are a great way to get
together with like-minded hackers
and makers. They’re also the best
place to find inspiration and help to
build amazing Raspberry Pi projects.
You can find a Raspberry Jam near
you by pointing your web browser to
raspberrypi.org/jam. Can’t find an
event near you? Don’t worry – it’s
easy to set up your own! Here are a
few tips from Cambridge Raspberry
Jam (camjam.me) organisers Mike
Horne and Tim Richardson:
A
lbert Hickey is a coordinator of the Egham Kickstarter. Here are two examples
Raspberry Jam. His latest project uses a we’ve got our eyes on…
MindFlex band (a Mattel game from 2009) to
read your brainwaves and convert the data to allow you
to play a version of Flappy Bird with nothing but the
NATUREBYTES WILDLIFE
power of your mind.
CAM KIT
The Naturebytes
In a recent interview with Alex Eames on RasPi.TV
Wildlife Cam Kit
(bit.ly/1FEvmNK), Albert explained more: “The
incorporates a
headband features a little piece of metal that you put
Raspberry Pi and
against your temple and it reads your brainwaves.” It’s
a Raspberry Pi
connected to an Arduino that converts this information
Camera Module
into usable data that’s then passed over to the
that’s triggered by a
Raspberry Pi and used as controller input for the game.
PIR motion sensor,
“Just search online for ‘MindFlex Arduino Hack’ and
to help just about
you’ll come up with a page that explains how do it.”
anyone take candid shots of birds
Albert used Pygame to create Flappy Brain on the
and animals in their natural habitat.
Raspberry Pi and, much like the game on which it’s
The team’s Kickstarter campaign
based, you need to move the protagonist (in this case a
(kck.st/1Ndsg99) proved a great
tiny brain) past a series of obstacles.
success. Find out more about
Unlike Flappy Bird, though, the brain automatically
this heat-sensitive camera trap
moves up the screen – to move it down (and past
at naturebytes.org.
the obstacles), the user needs to concentrate; Albert
demonstrates by doing mental arithmetic to move
it down. To allow it to move up again, Albert blinks BIGBOX-3D
Images courtesy repeatedly to break his concentration. Amazing! Learn BigBox-3D
of Alex Eames
www.raspi.tv more at winkleink.blogspot.co.uk. incorporates two
of our favourite
things in the world
LIFEBOX
Quick
Facts
Creating artificial intelligence on the Pi may sound like the start
of the robot uprising, but the LifeBox isn’t taking any chances,
and has imprisoned them in lights…
> The project
here are so many different
took two
months to
complete
T type of light-display
projects on Raspberry
Powered only by a Raspberry
Pi, the AI isn’t quite able to take
over the world, but it makes for
Pi that you could be forgiven a really cool experiment
> Ferran learnt
how to laser- for thinking that the LifeBox
cut wood for
was just another neat
the project
little programmed series
> It is apparently
of LEDs. This would be
not inspired
by Conway’s a huge mistake to make
Game of Life because the little lights are
> The code is a lot cleverer than you could
available on imagine: they’re alive. Well,
GitHub:
sort of. At the very least, they
bit.ly/1T8VKtC
have been programmed with
> There’s a mini
behaviour. Instead of launching
version in
development into a thesis on when artificial
intelligence can be classed as alive,
we’re going to concentrate on the
LifeBox itself. Here’s what it says
on the side of the box:
“In this box live two pixelic
entities, the blue and yellow
species. These two species
compete to survive and reproduce,
feeding with the white mana that
grows under [their] feet.
“Each species has eight
configurable variables that can
change their behaviour. The white
mana also has five parameters
that determine their behaviour
and also rule the future of the
two species that feeds.
“Learn the basic concepts of
programming and biology being
Two species fight it out Laser-cut wood creates
the god of these entities, varying for limited resources this sharp, intriguing-
all the parameters and seeing the on this ever-changing looking box that houses
LED display the components
consequences of your actions in
the LifeBox!”
Quick
Facts
> PiPlateBot took
two weeks
to design
PIPLATEBOT
Drawing inspiration from the turtle robots of old, Robert Doerr
and build
created a Raspberry Pi robot with the components hidden inside
> Turtle robots
were first used a Bud Pi Plate case. Say hello to PiPlateBot…
in the 1940s
obert Doeer is no stranger The Pi Plate’s circular design case. An EZO power bank sits on
R
>They were
developed to building robots. He’s enables easy access (you twist off top of the Raspberry Pi and RoboPi
because few
computers
the owner of Robot the top) and there is space inside boards, and works as a battery.
had monitors Workshop, an organisation for additional components. Robert Finally, a USB WiFi adaptor enables
> They’re often dedicated to restoring classic immediately decided to see if he wireless communication via SSH.
controlled robots, and has entered two robots could place a Raspberry Pi, along “Those that have seen it really like
using a into BattleBots (the US version of with all the parts required to build the robot and ask where I bought
language
called Logo Robot Wars): Crash Test Dummy a moving robot, inside the case. it,” Robert says with pride. “The
and Crash Test Junior. “It is the only Raspberry Pi-based completed robot really looks like a
> They’re named
after Alice in But this is no battle droid. robot that I know of built using an finished project, so they assume it
Wonderland’s When Robert saw a Bud Pi Plate off-the-shelf Raspberry Pi case,” may be sold in stores.”
Mock Turtle case (budind.com), he was struck he claims. “I tried to use as many The powerful RoboPi board
by how similar it looked to the Raspberry Pi-type products in the (mikronauts.com) is an important
turtle-style robots used to train construction as I could.” component. “The Raspberry Pi is
computer science students. It was “Getting everything to fit was great at the high-level thinking,
“definitely [like] the early turtle the biggest hurdle,” says Robert. while the Parallax Propeller chip
robots like the Terrapin Turtle He cut two rectangular holes in the on the RoboPi board is a great I/O
[ones] and the early Tasman Turtle base of the Pi Plate enclosure, and controller for offloading all the
robots,” says Robert. glued servos to the bottom of the real-time tasks.”
BUILDING THE
PIPLATEBOT
Above The finished product is a friendly-looking turtle-style robot that can sense
objects in front of it
>STEP-01
Cutting and mounting
If you have an idea for a project,
Holes cut in the base allow the wheels to fit, and glue
sets the servos in place. Furniture gliders attached to
just go for it! You’ll never get it the front and rear stop PiPlateBot from wobbling.
>STEP-03
Power and motion
The RoboPi comes with libraries for both C
and Python that are used to control the servos.
An HC-SR04 sonar sensor is fitted: this enables
Above A standard smartphone battery pack is squeezed on top of the boards PiPlateBot to sense its surroundings.
and inside the case
COFFEE TABLE PI This fully fledged cocktail arcade cabinet, apparently masquerading
Quick as a coffee table, is one of those Pi projects everyone wants to do…
Facts s you probably know, Pi in every single issue of the
> The project took
a few weeks to
A the Raspberry Pi, while
an excellent educational
magazine. Graham Gelding is one
of the few to take on this task.
complete
tool, is big among the maker Not only that, he’s gone a step
> The Perspex community. The kind of folks who further and created the ultimate in
over the
like to create machines are always classy, grown-up arcade gaming
screen can get
scratched easily on the lookout for a tiny computer apparatus: a cocktail arcade
by kids controller, one that can power cabinet (although it has a slight
> Donkey Kong their project with the smallest twist, as he likes to refer to it as
is Graham’s footprint. Along with the makers, his ‘coffee table’).
favourite game
any tiny computer released to “It was an attempt to recreate
to play on it
the market also tends to attract a the classic arcade cocktail
> It does actually
great deal of attention from the cabinet,” Graham tells us, “but
get used for
resting cups of arcade gaming community, looking in a way that can fit into a lounge
coffee on for the next thing to power their room. It’s also a way of introducing
> There will be no work-in-progress MAME cabinet. my kids to the games that I had
kit, so use the With this cross-section of interests growing up.
Instructables
for one device, it’s a wonder why “I also wanted to try some
guide
we haven’t seen full-size arcade woodworking and needed a project Above The insides are neatly arranged
and very chunky, just like any good arcade
cabinets powered by a Raspberry for my Raspberry Pi. The idea of machine should be
A Raspberry Pi and
Arduino Mega are
housed inside the case
Quick
Facts
> Dave used
Express PCB
(expresspcb.com)
to do the
JOYTONE
A unique musical instrument made from joysticks, lights, and powered
board layout
by the Raspberry Pi. We talk to the Joytone’s maker...
> The Joytone
survived six very so often we come across “Acoustic instruments are Joytone’s hexagonal grid exposes
weeks in the
kids’ area of the
Toronto Film
E a project so spectacular we
have to share it. Joytone is
designed around the physical
phenomena that produce sound,”
musical patterns that are normally
obscured by the quirks of common
Festival one such creation. Designed and says Dave. “A violin is smaller acoustic-style interfaces, like the
> The parts for crafted by engineering expert Dave than a cello because shorter strings white and black keys of a piano.
the Joytone Sharples, the Joytone is a unique make higher notes, not because it’s “Each joystick plays one note and
cost around
$1,050
musical instrument played using an convenient for the player.” the motion of the joystick affects
array of mini-joysticks. Electronic instruments, like the volume and character of the
> Around 16,000
people saw it “I’ve always wanted to be able to synthesizers and electric guitars, note,” explains Dave. “The way
at the Toronto play a musical instrument,” says don’t have to reproduce these the notes are distributed across the
Film Festival Dave, “and a couple years ago I took limitations. There’s no inherent perfectly hexagonal grid means
a music theory class to see if that reason for an electronic instrument that all kinds of musical patterns
could help me learn piano.” to resemble the acoustic tool it is become clear.
Rather than learning the piano, derived from. “Every major chord has the same
Dave had a revelation about So Dave set about creating a finger shape, no matter what note
musical structures. “I became unique new musical instrument you start on,” he continues. “This
fascinated with the patterns that made sense. “Joytone is a is true of minor chords, scales or
associated with musical structures unique new musical instrument any other kind of musical structure,
and realised how beautifully simple that features a hexagonal grid of making [the Joytone] much easier to
music can be,” he reveals. 72 joysticks,” he tells us. “The learn and play.”
WHAT PARTS
ARE USED?
>STEP-01
72 joysticks
The interface of the Joytone comprises these mini-
Above A laser cutter being used to cut the piece of acrylic. joysticks (picked up from eBay). The clear plastic grips
enable light from LEDs to shine through.
Integrating period of six weeks,” Dave says, us he’s got enough leftover parts to Above Pushing a
the Raspberry Pi “so I did some research at the build another instrument.
stick up controls the
kind of waveform
This build is the second iteration Exploratorium in San Francisco to “I have lots of plans for other produced; left to
right controls how
of Joytone and is the one that see how they build their exhibits. musical inventions,” he says. flat or wide the
introduces the Raspberry Pi to the “[The Joytone] saw about 16,000 “I’m going to iterate on the note is
design. “The first Joytone had to visitors this year and I’ve been joystick idea but investigate some
Top left The Joytone
function though a nightmarish rat’s showing it around to my friends. other form factors. I’d also like to is a spectacular-
nest of wires inside,” Dave recalls. Everyone seems to have a good make something more compact looking modern
musical instrument
“In the two-brain design I time with it, and I’m curious to and portable.”
used for the Joytone, the Arduino see what could happen with some Left A sturdy
does all the analogue-to-digital serious practising. My favourite Making musical wooden case is
used to house all
conversion and the Raspberry Pi moment so far was a write-up from instruments of the components
does all the audio synthesis. I like a six-year-old blogger who visited If you are interested in following
to use it on a Raspberry Pi because I the TIFF exhibit. in Dave’s footsteps, it’s worth
can just tuck it inside the enclosure “I’m glad that the Joytone is knowing that you don’t have to
and focus completely on the back from the TIFF exhibition build a device as complex as the
instrument. I taught myself a little because I can practise on it now. I Joytone. “Anyone could wire
bit about PCB routing, and with the only finished it a day or two before up a joystick to an Arduino and
help of some friends they came out I had to ship it out! Even with the start sending MIDI notes to their
perfectly,” he says. relatively short amount of practice computer,” says Dave, and “you
time I’ve had, I can play almost any could make a simple musical
Showing off scale or chord with ease.” instrument in an hour or two.”
the Joytone Despite the apparent complexity, Budding musical creators
Part of the inspiration for building Dave claims that the Joytone was should just “go for it,” he tells
a more powerful iteration of pretty simple to build. It was us. “There’s a great community
the Joytone was the Toronto “extremely tedious because there of people building new musical
International Film Festival (TIFF). are so many joysticks.” instruments, and lots of inspiring
Dave was asked to provide Joytone It isn’t a cheap project to make, work already documented. PureData
for part of the digiPlaySpace either: “The parts for the Joytone is a wonderful tool to experiment
exhibition at the show. cost about $600, most of which is with quickly, and the Raspberry Pi
“I had to design it to run for the lights and joysticks.” Dave is a friendly platform for musical
continuously and withstand also spent an additional $450 on inventions. Learning a little music
thousands of visitors over a the custom PCBs, though he tells theory is also really helpful.”
RASPBERRY PI
NOTEBOOK
Adafruit’s star makers, the Ruiz brothers, are back
with another stunning handheld Raspberry Pi project…
Above It’s a thing of beauty and a cracking weekend build, assuming you have access to a 3D printer
NIN10DO
Quick
Facts
A 3D-printed Raspberry Pi-powered Nintendo Entertainment System
that can also play Sega games
hen you’re a magician
> The first version
took about
W looking to make your
tricks - sorry, illusions –
The Nin10do keeps the flap,
but repurposes it for human
interface input
A small NES-style case that
contains the Raspberry Pi
and many other electronics
two months
better, you have several paths to
> The case is go down. You could start buying
made of XT-
CO-Polyester or recreating other people’s work;
instead of however, that’s not entirely
the normal original, and you risk other people
ABS plastic
having seen it already. What truly
> Daniel now has great magicians do is to create
plans and the
confidence to their own illusions – original
develop his Pi tricks that wow an audience with
box of tricks a wonderful show. Creating tricks
> A future version and illusions for people-sized
will be made
magic sounds similar to another
with laser-cut
acrylic hobby: that of being a maker.
Makers love the Raspberry Pi,
> It’s not a trick,
it’s an illusion and this is where professional
magician Daniel Spies found
himself at the end of 2014.
“I wanted to start learning
how to program in Python so I
Below A 3D
could integrate a Raspberry Pi in
modelled and
printed chassis complex magic acts,” Daniel tells
allows for the
us. “The Raspberry Pi would be
perfect fit for
the project great for starting special music
PISCAN
One project builder turned a Raspberry
The software installation
checks the scanned barcode
against an open-source
database of products
Right A list of
recently scanned
products. Placing
a tick next to the
product enables
you to shop for
that item
SETTING UP PI SCAN
£ $ €
CROWDFUNDING'S
GREATEST HITS
T
he low cost of the Raspberry or registrations of interest on a
The Raspberry Pi is the perfect Pi, coupled with its appeal to corporate website. While only around
maker tool, so it makes sense hackers and tinkerers, has two in five Kickstarter campaigns
launched an explosion of hardware reach their funding goal, the right
that it has played a pivotal role projects – from simple plastic cases, idea at the right time can earn a
in some of the best crowdfunding to entire spin-off devices powered by fortune, as proven by our rundown
a Pi at their heart. For many, the only of the biggest successes from the
stories ever told… thing stopping them from taking Raspberry Pi community.
their project from the workbench to It’s a heady mixture that has
market is a lack of funds, something featured some stunning successes,
crowdfunding sites like Kickstarter along with a perhaps surprisingly
£ and Indiegogo aim to solve. small number of failures. If you’ve
$ Crowdfunding serves several ever wondered about the secret of
valuable purposes for smaller crowdfunding success, we’ve spoken
businesses and individual makers: it to those who have been there and
allows them to raise funds to bring done that, to bring you the advice
a product to market without having you need to know in order to succeed,
to go through traditional funding while avoiding the pitfalls that have
channels, like bank loans or venture caused others before you serious
capital; it enables them to quickly upset along the way.
gauge the demand for a particular
product and receive feedback on its
€ design ahead of mass-production;
and it can help build buzz around
a product launch.
For customers – ‘backers,’ in
crowdfunding parlance – it provides
access to hardware that would
otherwise not be readily available,
along with a feeling of being part of
the journey to market that doesn’t
come from simple pre-orders
KANO
The top-grossing crowdfunding Despite its record-breaking Since shipping Kano, the team
campaign in Raspberry Pi history funding run, Kano – as is common behind it has continued to build
by quite some margin, Kano raised with crowdfunding projects – on its success with the creation
nearly £1 million in November ran into some trouble during of Kano Challenges, educational
2013, with a premise that at first production. The first Kano units contests designed to further
seems laughably basic: a Raspberry were due to ship in June and encourage children to get involved
Pi starter kit bundle. July 2014, but problems with the with programming and computing.
Positioning the project as ‘a HDMI cables, keyboard battery,
computer you make yourself’, flashing the SD cards, the
Kano bundled an off-the-shelf power supplies, and even
Raspberry Pi with carefully the plastic case, meant
selected accessories, including that the first kits didn’t
an eye-catching orange keyboard ship until September and
and trackpad, and a customised it was October before
operating system. Its real potential the majority of backers
came with the unveiling of Kano received their rewards.
HDMIPi
The HDMIPi campaign raised notable for another reason than portable screen was needed for
£261,250 – far in excess of its its sky-high funding, though: the Pi – we all wanted one – but
£55,000 goal – from 2,523 backers the project was a joint venture there wasn’t anything out there
to produce a low-cost high- between electronics professional under £100. We thought it ought
resolution display. HDMIPi is Dave Mellor of Cyntech and to be possible to make that
Alex Eames of review and happen, and we were right, but it
tutorial site RasPi.TV, who wasn’t easy.”
acted as the public face of While the crowdfunding
the campaign. campaign was a great success,
“I’d been doing the project hit difficulties during
RasPi.TV full-time fulfilment, which led to some
for 18 months, with backers receiving their displays
no income from it, almost a year late – a common
before HDMIPi,” theme in hardware campaigns.
Alex explains. “The actual driver board design
“It was Dave came partly from ideas [that]
Mellor of backers suggested during the
Cyntech who campaign,” Alex recalls. “We
approached me liked them because they made
about the project in the the product unique, but they were
first place, after talking to the probably the biggest cause of the
guys at the Milton Keynes Jam. delays; in hindsight, we could
“It was obvious to all of us have probably delivered months
that a small, inexpensive, earlier if we hadn’t listened.”
SLICE
The creation of FiveNinjas – a under user control, a wireless with features such as SATA storage
group comprising members of remote control, and an internal hard connectivity, missing from the
Sheffield-based Pi accessories drive for storage. The Slice focuses standard Raspberry Pi hardware.
maker Pimoroni, the Raspberry more on playback of local content Like the majority of crowdfunded
Pi Foundation itself, and music rather than streaming, although projects, Slice has been hit by
producer and technology trainer Mo WiFi connectivity was unlocked as numerous delays. The rewards were
Volans – Slice raised an impressive a stretch goal when the campaign scheduled to be with backers by
£227,480 to build a media playback hit £100,000. It includes a slick user November 2014, but it took until the
set-top box based around the then interface and excellent compatibility end of February 2015 for the first
new Raspberry Pi Compute Module. with various file formats, along Slice packages to begin shipping.
Rather than taking the retail
Raspberry Pi hardware as the
basis for the project, as many
other campaigns have done, the
€ Compute Module – an industrial
Raspberry Pi variant based around
the SODIMM form factor, designed
to act as a plug-in computer-on-
module for a custom-designed
carrier board – allowed FiveNinjas
greater control over the final design
and layout of the project.
The result is a sleek aluminium
box featuring a smart LED strip
FLOTILLA
Flotilla, in fourth place with Despite not having the benefit of iterations of the design of the
£146,680 raised, is the second being first, Flotilla easily surpassed system; the software has been
Kickstarter campaign to come the £74,134 raised by Picade. in development for six months.
directly from the Sheffield The company has a few ideas for Really, it’s much closer to being
warehouse of Pimoroni, and takes avoiding the delays that plagued finished this time around, and I
aim at the educational market with its original project, too. “We guess that’s what we’ve learned:
a range of smart input and output spent a year working on Flotilla the more stuff that you leave
modules which can be easily before we put it on Kickstarter,” unfinished, the more things
programmed from a Pi. Jon reveals. “With Flotilla, we’ve that can go wrong to trying
Pimoroni made a name for already been through six or seven to finish it.”
itself in crowdfunding circles by
launching the first project to go
live on Kickstarter UK: the Picade.
“We actively wanted to be first.
We’d heard that Kickstarter was
coming in the UK, so we made
sure that our campaign was ready
and [that] we were there ready to
press the button,” explains Jon
Williamson. “We just stood there
at ten to midnight, pressing F5
until the live button became live,
and we were the first to press it,”
adds a laughing Paul Beech.
PI-TOP LAPTOP
The only top-ten grossing Raspberry as the ideal platform for teaching Top Ten
Pi crowdfunding campaign to use beginners about computing, but
RASPBERRY
Indiegogo rather than the more with a focus on hardware rather
PI CROWD-
well-known Kickstarter platform, than software. FUNDING
London-based Jesse Lozano and The Pi-Top campaign closed CAMPAIGNS
Ryan Dunwoody’s Pi-Top project in December 2014, and the team
looked to encourage people to behind it worked hard to keep > Kano
learn computing by building their backers informed, as well giving £987,976
(1,522% funded)
own Raspberry Pi-powered laptop. them all a free upgrade to the
With £112,130 raised, more than Raspberry Pi 2 from the planned > HDMIPi
£261,250
double its original goal, first-generation model. While the
(475% funded)
the campaign certainly team had hoped to ship the devices
> Slice
caught the interest of to backers in May 2015, there were £227,480
the community. delays and the first batch was finally (253% funded)
While much of the shipped in October. > Flotilla
publicity surrounding the As with most crowdfunding £146,6W80
campaign focused on the projects, the Pi-Top is going on (448% funded)
hardware side – including general sale once the backers who > Atlas 3D
the team’s decision to funded its journey from prototype £141,940
(7,333% funded)
3D-print the chassis’ to production have received their
master, then injection- rewards. Indeed, visitors to the > Pi-Top Laptop
£112,130
mould for mass-production team’s website (pi-top.com) can (217% funded)
– Pi-Top promised more: like now pre-order a Pi-Top kit, with or
> BrickPi
Kano, the project positions itself without a Pi included. £82,286
(6,752% funded)
> Ziphius
ATLAS 3D
£80,873
(102% funded)
CROWDFUNDING
FAILURES
Not every crowdfunding project date but in January 2015, Azorean production,” Azorean’s Cristina
ends in success, of course. Overall, admitted that it would be August Gouveia explained. “We spent
61 percent of Kickstarter campaigns before devices shipped – leaving more, much more, time than we
fail to make their funding goal; of backers clamouring for refunds. were expecting.”
these, more than half never even “The delays were caused mainly Those issues may now be resolved,
reach one-fifth of the way. These, by the difficulty moving from but there’s a more serious problem
however, are the lucky ones, failing the prototype that we had at on the horizon: a lack of funds.
gracefully and without anyone the time and the need to adapt “That delay has caused us some
ending up out-of-pocket. More it to the new tools of mass- financial struggles, so we need to
get additional investment,” Cristina
Alfredo January 27
I am not happy at all with your last estimations (August
CROWDFUNDING GLOSSARY
2015). I want a REFUND, as I am sure this product won’t
be released.
Backer Someone who contributes money to a
crowdfunding campaign, known as a ‘funder’ on
Frank January 30 some sites.
I would like a refund. This has gone far longer
than you estimated. Campaign An attempt to raise funds through
one or more crowdfunding sites, usually limited to
a 30‑day period.
Justin January 22
I thought we were supposed to get an update in early
January? Another deadline missed?
Creator The individual or company behind
a crowdfunding campaign.
FINDING £
CROWDFUNDING
SUCCESS
For those who want to follow in the its original target. “That should
footsteps of campaigns like Kano, not be an afterthought - that
HDMIPi, and Slice, it’s all too easy should actually be baked into
to be blinded by the sums of money the campaign. It ties into really
on offer and leap in without proper concrete things, like what you
preparation. Convincing people to price your product at and what you
part with their cash is only the start promise for a delivery date.
of the process. “It also factors into the softer
“You [need] to have your plan side of developing a product, which
together for manufacturing, is who are you going to be selling
and then have a second one in it to, what are their tastes, wants
the waiting if things go really, and needs? You should understand
really well, before you launch that clearly before you start the
your campaign,” advises Dexter campaign and communicate that
Industries’ John Cole, whose with your manufacturer, because
LEGO‑based BrickPi robotics kit they’ll play a big role in whether you
Above The Dexter Laboratories’ BrickPi raised over 67 times its original target raised £82,286 – over 67 times have a successful campaign or not.”
TUTORIALS
As well as giving you inspirational ideas for projects, our detailed step-by-step guides
show you exactly how to make them and learn more about the Raspberry Pi…
90 110
94
114
100
16.
Tutorials
88 WATCH IPLAYER 110 SCRATCH MULTIPLE-
Download BBC CHOICE QUIZ
TV shows as high- Amaze your friends
definition MP4 files with your own Scratch
quiz game
90 SHOOT IN
SLOW-MOTION 112 ADD A SCRATCH
Shoot slow-motion GAME TITLE SCREEN
videos with the Camera Make your Scratch
Module game look more
professional
92 FACE DETECTION
WITH OPENCV 114 ADD A SCRATCH
Detect faces in photos HIGH-SCORE TABLE
using the OpenCV Keep a record of
library players’ best scores in
your game
130 94 WATER DROPLET
PHOTOGRAPHY 116 BUILD A SPACE
Capture split-second
SHOOTER IN SCRATCH
Create an impressive
photos of water
3D space shooter using
droplets colliding
Scratch
96 MAKE A PWM 120 PRINTING WITH
CANDLE LANTERN RASPBERRY PI
Simulate a flickering Learn how to install and
candle with pulse- configure a printer on
width modulation the Pi
98 BUILD A 122 3D PRINTING WITH
STROBE LIGHT OCTOPRINT
Control multiple LEDs Control your 3D printer
with a transistor for a from any web browser
strobe effect
124 CONTROL YOUR PI
100 HACKING THE REMOTELY WITH VNC
RASPBIAN DESKTOP – Learn how to control
PART 1 your Raspberry Pi
Explore Raspbian’s from afar
LXDE desktop
132 environment
126 SCROLL TEXT ON THE
UNICORN HAT
102 HACKING THE Use the 8×8 matrix of
RASPBIAN DESKTOP – RGB LEDs to display
PART 2 messages
Change the desktop
128 MOVE A SERVO BY
appearance using WAVING YOUR HAND
LXPanel Control a servo with a
104 HACKING THE flick of the wrist using
RASPBIAN DESKTOP – UltraBorg
PART 3 130 STREAM STEAM
Customise Raspbian’s GAMES TO PI
Openbox window Play PC games
140 manager remotely from your
Raspberry Pi
106 HACKING THE
RASPBIAN DESKTOP – 132 MINECRAFT PI
PART 4 CODING TIPS
Alter the appearance Pro coding tips and
of desktop applications mini programs for
Minecraft Pi
108 SONIC PI:
TIPS & TRICKS 140 MINECRAFT SPLAT
Sam Aaron shares top Create an exciting
tips for his marvellous two-player game in
music box Minecraft Pi
WATCH iPLAYER
ON RASPBERRY PI Download BBC TV programmes as high-definition MP4 files
You’ll (without any DRM) for offline viewing on your Pi or other devices
Need
et_iplayer is a fabulous, open source utility >STEP-01
> A decent-
sized SD card
G program which allows you to see what’s
currently available from the BBC’s iPlayer
Update your package lists
We’re going to install some software. The first thing
(minimum 8GB) website and download any TV programmes you want. you should do when you install software in Raspbian
> A broadband You can choose resolutions between 512×288 and is – at the command prompt – type sudo apt-get
connection 1280×720, so you can pick one that suits your viewing update (and press ENTER), which updates your
> A few lines device and storage capacity. There’s no DRM on these package lists. Then it’s a good idea to sudo apt-
of code: files (although the BBC’s terms state that you are only get upgrade (pressing ENTER again) once all your
github.com/
raspitv/ allowed to keep them for 30 days), and because they software packages have been updated to their latest
get_iplayer are BBC programmes, there are no adverts either, versions. It can take upwards of 30 minutes if you
> A TV, or a making it perfect to use for films. haven’t done this recently. Then you need to add
monitor and
speakers
Get_iplayer enables
you to download
films and TV shows
from the BBC
iPlayer service
DO I HAVE
ENOUGH SPACE?
Use the
command df -h
to see if you have
enough space
left on your
SD card.
SHOOT IN SLOW-MOTION
WITH THE CAMERA MODULE
In this tutorial, the Average Man shows us how to shoot slow-motion videos
You’ll with the Camera Module and convert them to play on almost any device
Need
low-motion video has been used in the film >STEP-01
> Raspberry
Pi Camera
S industry for years – think of all those great
action movie scenes with people jumping
Connect the Camera Module
The first thing you need to do is connect the Camera
Module
from explosions, or ‘Bullet Time’ made famous by the Module to your Pi. Make sure your Pi is turned off first.
> Internet Wachowski Brothers in The Matrix trilogy. Be careful - the Camera Module is very sensitive to
connection
It’s actually really easy to make your own slow- static, so ground yourself by touching something like a
> Something fun motion videos with your Pi using the Camera Module. radiator before you start.
to film
We’ll get you set up and guide you through a short The Camera Module ribbon cable connects to the
code listing that will let you record short 30-second socket on your Pi nearest the HDMI port. Use the
videos that will automatically convert to MP4, so you phrase ‘metal to metal’ to remember which way round
can play it back on just about any device… to push it in – the metallic side of the camera cable
should face the metal HDMI port. Gently pull up to
release the clip and slip the ribbon cable in, then just
The Camera Module can do push the clip back down firmly and check it’s secure.
more than high definition: it
can do high speed too
>STEP-02
aremaC iP yrrebpsaR
A1346
SUNNY
P5VO4A Configure the Camera Module
3.1 veR
– the metallic side of a package called gpac. At the command prompt, type the
the camera cable fits
nearest the metal of following, then follow the on-screen instructions:
the HDMI port sudo apt-get update
sudo apt-get install gpac
RECORDING TIPS
Be prepared
Make you have good lighting and a steady mount
for your Camera Module. Also, charge your portable
power options if you’re shooting outside. Finally, don’t
forget to use an SD card with enough storage space.
What to shoot
How about shooting a remote-controlled car skidding
round a corner? Perhaps a ball being thrown or
other sports? What about an animation drawn on a
notepad, slowed right down?
>STEP-04
Test the camera
The Camera Module has
Let’s make sure everything’s working as it should a fixed-focus lens and a
by testing the camera with a couple of terminal wide recording angle
commands. With a screen connected, open a terminal
window and type raspistill -o test.jpg. The
picture should appear on the screen for a short time Code e
Languag
and an image should be saved to your Home directory.
If it doesn’t work, check you typed the command Slowmotion.py >PYTHON
correctly, or turn off your Pi and reconnect the camera
ribbon cable before trying again.
import os
>STEP-05 import time
Create a Python script
We’ll be using Python to create our slow-motion print(“Starting program”)
video script. Open your favourite text editor (the time.sleep(2)
Leaf text editor in Raspbian is perfect) and copy the
##### Record the slow motion video #####
code opposite, being careful not to misspell anything # ‘-w’ sets the width # ‘-h’ sets the height
along the way. You don’t need to copy the comments # ‘-fps’ sets the frames per second (90 maximum - for slow motion)
(lines starting with #) - Python just ignores them. The # ‘t’ sets the time in milliseconds (30000 = 30 seconds)
script uses the OS Python library to carry out terminal # ‘-o’ sets the output filename
commands like you’ve typed them in directly.
print(“Recording started - 30 seconds”)
Save your file as slowmotion.py in your os.system(“raspivid -w 640 -h 480 -fps 90 -t 30000 -o vid.h264”)
Home directory (/home/pi).
print(“Recording complete. Please wait...”)
>STEP-06 time.sleep(2)
Run the script ##### Convert the raw recorded video file to playable mp4 #####
To run the script, simply open a terminal window, # ‘-add’ is the name of the raw video we want to convert
type cd and hit RETURN to ensure you’re in the Home # The second filename is the output mp4 file
folder, then type sudo python slowmotion.py. # (we use the same name followed by ‘.mp4’)
You will see the status of the script printed in your
print(“Converting video. Please wait...”)
terminal window as it carries out its commands,
os.system(“rm -f vid.mp4”)
and the Camera Module’s LED will light up while os.system(“MP4Box -add vid.h264 vid.mp4”)
it’s recording.
The script will end when the video has been print(“Video conversion complete”)
converted. You can watch the video on your Pi straight time.sleep(2)
away by using omxplayer, which is included in
print(“Closing program”)
Raspbian. Simply type omxplayer vid.mp4. time.sleep(2)
You could also copy your video onto any other
device, like your tablet or smartphone.
FACE DETECTION
WITH OPENCV You’ve got a Raspberry Pi Camera Module? You’ve taken a few images?
You’ll Let’s do something really clever and use them to detect faces…
Need
ou’ve set up your motion-triggered webcam, >STEP-01
> An internet
connection
Y but that pesky dog keeps triggering it. How
do you figure out if that alert is someone
Install OpenCV
By default, OpenCV isn’t shipped with Raspbian.
> Camera poking around or Fido searching for socks again? Never fear – everything is a simple apt-get away. First,
Module (or In this tutorial, we’ll show you how to get your we need to install OpenCV. In a terminal, type: sudo
webcam)
Raspberry Pi to separate the dogs from the faces, apt-get update, press ENTER, then: sudo-apt-get
> OpenCV using the computer vision library, OpenCV. install python-opencv libopencv-dev and follow
We’re going to make a simple Python script that the instructions. We’ll see if it’s installed correctly by
will work its way through a directory of pictures, running the Python interactive interpreter and loading
copying the ones that have faces in them. Not only the OpenCV module. Type: python (and ENTER), then
that, it’ll also draw a box around each face. import cv (and ENTER again). If everything is installed
correctly, you should see an empty prompt. If you see
something along the lines of ImportError, go back and
aremaC iP yrrebpsaR
A1346
DISPLAY
3V3 5V
GP2 5V >STEP-02
GP3 GND
GP4 GP14
Understanding Haar-like features
PWR IN GND GP15 We’re going to use an algorithm called a ‘Haar cascade’.
GP17 GP18
GP27 GND Because computers have no understanding of what
GP22 GP23
3V3 GP24
a face looks like, we have to give it a rule book. In
GP10 GND this case, a Haar cascade describes the ‘brightness
GP9 GP25
GP11 GP8 signature’. A face contains two eyes surrounded by skin.
GND GP7
CAMERA
DNC DNC
The area surrounding the eye is a different intensity to
GP5 GND the eye itself. A Haar cascade describes these patterns to
GP6 GP12
A/V provide us with a way to detect faces (and other objects).
GP13 GND
GP19 GP16
GP26 GP20
GND GP21 >STEP-03
GPIO
Begin the code!
Enough chit-chat! Let’s write some code. We need
USB X2 USB X2 to import the various libraries we are going to use
and set some sensible defaults for the Haar detector.
ETHERNET
WATER DROPLET
PHOTOGRAPHY
Have you ever wanted to capture those split-second photographs of water droplets
colliding? Now you can with a Raspberry Pi-controlled solenoid and camera trigger!
his tutorial shows you how to build a project any current generated by the solenoid from going
You’ll T that will allow you to capture those beautiful, back into the NPN transistor. Once the GPIO pin goes
Need
carefully timed photographs where water high, the current can flow from 12V to GND, enabling
droplets are colliding. From assembling the hardware the solenoid to open the valve and allowing the liquid
with a solenoid, to writing the code to drive it, you’ll to pass through. We only open the valve briefly, just
> Solenoid valve be doing your own droplet collision photography in enough to allow a drop through at a time.
> 1× IN4001 no time. After that, you can have all sorts of fun using
diode different types of liquids, with different colours and The diode is to
viscosities. And hopefully you’ll get some shots that prevent current
> 1× TIP120 generated by +12v
Power you can hang on your own wall! the solenoid
Darlington going back to
transistor
>STEP-01 the transistor
> Shutter
release cable
GND GND
>STEP-05
Get the lighting right
You’ll need to use a flash to freeze the movement of
the liquid. Otherwise you’ll get blurred images, even
if your camera is on a tripod. An off-camera flashgun
triggered by a sync cable is a really good idea, as it
allows you to move the flash into all kinds of interesting
positions. Oh, and keep the flash power low for shorter
flash durations, giving you sharper images. And you can
always use two or three flash units at lower power for
shorter flashes still.
MAKE A PWM
CANDLE LANTERN
Set a romantic mood with your Raspberry Pi by simulating a flickering
You’ll candle effect using pulse-width modulation…
Need
his tutorial is intended as a gentle – not to >STEP-01
> A coloured
LED T mention romantic – introduction to GPIO
(general-purpose input and output) pins on
Pick a resistor for your LED
A resistor will limit the current that flows through
> Breadboard
your Raspberry Pi, and how to control them in Python. the LED. Different colour LEDs have different current
> Female-to- We’ll be creating our romantic candle-like mood limits, so you’ll need to check the specifications
male jumper
cables
lighting using a random number generator to make where possible. 100 ohm or 220 ohm will definitely
an LED flicker at different intervals. In addition, its work, though your LEDs might end up being dimmer
> Resistor
(100 ohm
brightness will be varied using a technique called PWM than usual. The equation for working out resistance is
to 330 ohm) (pulse-width modulation), which effectively controls as follows:
what percentage of the time the LED is turned on. We R = (3.3V – LED VOLTAGE) / LED CURRENT
will also take a look at the output of the pins on an Our yellow LED needs a voltage of 1.8V – 2.2V and
oscilloscope, so that we can see how the code translates has a typical current of 20mA, so: R = (3.3V – 2.0V)
to the electrical signals that make things tick. / 0.02 (which is 65 ohms). A resistor with a value
between 65 and 130 ohms is ideal here, but a lower
_ _ value will make your LED brighter.
+ a b c d e f g h i j +
>STEP-02
1 1
DISPLAY
3V3 5V 2 2
GP2 5V 3 3
GP3 GND 4
5
4
5
Setup the breadboard
GP4 GP14
PWR IN GND GP15 6 6 Unplug your Pi and follow the breadboard illustration
GP17 GP18 7 7
GP27 GND 8 8 setup. Make sure you use the same GPIO pin we have, as
GP22 GP23 9 9
3V3 GP24 10 10 only a couple are capable of pulse-width modulation (on
GP10 GND 11 11
GP9 GP25 12 12
the B+). We’re using GPIO number 18 for PWM, which is
GP11 GP8
>STEP-03
USB X2 USB X2 25 25
26 26
27 27
ETHERNET
28
29
28 Get coding!
29
30 30 Once you’ve wired up the project, power up your Pi and
+ _ a b c d e f g h i j + _
begin coding using an editor of your choice (or opening
a terminal and typing nano candle.py will do).
A pulse width modulation-
capable GPIO pin is used to Once we’ve imported the libraries we need, the
control the brightness of the LED setup function organises our program and starts PWM
>STEP-05
Packaging it up
Now that the script is started when the Pi boots,
you could package it up into a nice container using
a portable phone charger as a power supply. There
are plenty of candle holders that can be fashioned
out of paper if you search the internet. Paper is ideal,
especially with lots of holes in, since the LED probably
for us. The flicker function sets a random brightness isn’t throwing out much light.
by calling the set_brightness function, then sleeps
for a random time. This function is then wrapped up >STEP-06 Below A candle
in an infinite while loop within the loop function, Presentation, presentation, presentation lantern that obscures
which handles the all-important cleanup of the GPIO The candlelight project is surprisingly effective, but the view of the
inside is perfect for
library when CTRL+C is pressed by the user. presentation is key in matters of the heart, so you disguising the LED
may want to spruce up your project before you use it and hiding your Pi
>STEP-04 on a loved one. Pretty
Test your creation lanterns are available
Exit your editor and run the code by typing sudo very cheaply from most
python2 candle.py into a terminal (unless using department stores; just
Raspbian Jessie, you need root privileges to access the make sure you select
GPIO pins). Now you’ve tested it, you can exit with one that obscures the
CTRL+C and we’ll make it run at boot. This way, the Pi view of the interior. If
can run headless and not need any user interaction. the lantern isn’t big
At the terminal, type: sudo nano /etc/rc.local, enough to fit the Pi and
then add the following line: python2 /home/pi/ breadboard, solder the
candle.py & (but make sure you put this in the line resistor to the LED and
before exit 0). Don’t forget to save the changes. hide the Pi behind it.
Language
Candle.py >PYTHON
import RPi.GPIO as GPIO def flicker():
import time # We want a random brightness between 0% and 100%.
import random # Then then we’ll hold it for a random time
# between 0.01 and 0.1 seconds to get a nice flicker
# Set the PWM output we are using for the LED # effect. Play with these values to make the effect
LED = 18 # suit your liking
set_brightness(random.randrange(0, 100))
def setup(): time.sleep(random.randrange(1, 10) * 0.01)
global pwm
# The wrapper around the flicker function makes sure the
# GPIO uses broadcom numbering (GPIO numbers) # GPIO hardware is cleaned up when the user presses CTRL-C
GPIO.setmode(GPIO.BCM)
# Set the LED pin as an output def loop():
GPIO.setup(LED, GPIO.OUT) try:
while True:
# Start PWM on the LED pin at 200Hz with a flicker()
# 100% duty cycle. At lower frequencies the LED except KeyboardInterrupt:
# would flicker even when we wanted it on solidly pass
pwm = GPIO.PWM(LED, 200) finally:
GPIO.cleanup()
# Start at a brightness of 100%
pwm.start(100) # setup the hardware
setup()
def set_brightness(new_brightness):
# Sets brightness of the LED by changing duty cycle # start the flickering
pwm.ChangeDutyCycle(new_brightness) loop()
anyone are known to suffer from photosensitivity, never import RPi.GPIO as GPIO
look directly at the LEDs, and never run it for prolonged import time
periods or any faster than four flashes per second.
# First we initialise some constants and variables
TRANSISTOR = 17
>STEP-03 BTN_SPEED_UP = 27
BTN_SLOW_DOWN = 22
Working with push buttons DELAY_CHANGE = 0.005
Electricity always takes the path of least resistance.
In the circuit diagram, you can see that a GPIO pin # Never use a strobe light any faster than 4 flashes per sec
is connected to a leg of each push button. The leg is DELAY_MIN = 0.125 # 1/8 = ‘4 on 4 off’ flashes
also connected to ground (0V) via a 1K resistor. This is delay = 0.2
def setup():
termed a pull-down resistor because when the button
# Next we initialise setup of the GPIO pins
isn’t pressed, the signal is pulled down to ground. GPIO.setmode(GPIO.BCM)
The other leg is connected to 3.3V. When the button GPIO.setup(TRANSISTOR, GPIO.OUT)
is pressed, the two sides are connected again. There is GPIO.setup(BTN_SPEED_UP, GPIO.IN)
less resistance to 3.3V and the GPIO input goes high, GPIO.setup(BTN_SLOW_DOWN, GPIO.IN)
which we can detect in our code listing on the right.
# This will call a function when the speed up or slow down
# buttons are pressed
>STEP-04 GPIO.add_event_detect(BTN_SPEED_UP, GPIO.RISING)
Wire up the circuit GPIO.add_event_callback(BTN_SPEED_UP, speed_up)
Let’s get the circuit built, but don’t forget to turn GPIO.add_event_detect(BTN_SLOW_DOWN, GPIO.RISING)
GPIO.add_event_callback(BTN_SLOW_DOWN, slow_down)
your Pi off first. It’s important to remember that
each LED is connected to the transistor in parallel. def speed_up(channel):
This means that they are all effectively connected to global delay
the output of the transistor (and not chained in any # Take away the delay change value from the delay time.
way). This being the case, you can scale up the design # Make sure the delay doesn’t go less than the minimum
# safe rate for use of stroboscopic lighting.
on the breadboard as much as you want, within the
delay = delay - DELAY_CHANGE
specification of the transistor and power supply. In if delay < DELAY_MIN:
the case of our setup, that would be 20 LEDs or less. delay = DELAY_MIN
The file browser is created by The taskbar is a panel created by The window borders and
PCManFM. The desktop itself is LXPanel. Panels can be customised title bars are created by
also created by the file manager, by the addition of plug-ins – this one Openbox, which manages
which allows icons and folders shows the menu, quick launch bar the list of windows
to be placed on it and active tasks list currently on display
HACKING THE
RASPBIAN DESKTOP
PART 1: WHAT IS LXDE?
In the first part in a series of four, Simon Long talks us through
Raspbian’s desktop environment, LXDE…
f you’ve used the desktop environment on LXDE is a user interface which sits on top of a
Below Openbox
manages the
I Raspbian, rather than the command line,
you’ve seen LXDE. The Lightweight X Desktop
system called X, a client-server windowing system.
When an application starts, it requests a window in
appearance of
Environment is the software which creates the desktop which to work from the X server program; the server
window title bars,
including the graphic user interface (GUI) that appears when you type also takes care of things like detecting mouse and
buttons to minimise,
maximise, and close
startx from the Raspbian command line – the desktop, keyboard input, and putting windows on the screen.
a window the windows, the taskbar; all are parts of LXDE. But X itself provides only the barest elements
of a GUI – there are numerous environments that
can sit on top of it and make the result look nicer,
and LXDE is one of these. It’s a very good fit for the
Raspberry Pi because, as the name suggests,
it is lightweight in terms of processor and memory
usage, and so works well on a lower-powered device
like the Raspberry Pi.
LXDE itself consists of several different pieces
of software, all with specific tasks. The more
important of these are described in the ‘LXDE key
components’ box on the next page.
HACKING RASPBIAN’S
DESKTOP PART 2:
CUSTOMISING LXPANEL
In part two of his series, Simon Long shows us how to change
the appearance of the Raspbian desktop by playing with LXPanel
XPanel is a component of LXDE (Lightweight
L X11 Desktop Environment), the desktop user
interface included as part of Raspbian. As the
name suggests, LXPanel is responsible for generating
panels – windows that overlay the desktop which can
be used for menu bars, application launchers, and other
general system functions.
By default, a single panel is displayed on the Pi’s
desktop, which is used for the menu bar at the top of
the screen. LXPanel also allows multiple panels to be
used on the same screen, so it is possible to have a
second panel displayed at the bottom, to be used as an
Right The Panel application launcher, for example. Panels are always
Applets tab on the
attached to one edge of the screen, but the edge can be
Panel Preferences
dialog allows the top, the bottom, or even the sides.
plug-ins to be
Each panel can be customised to contain a selection
added, removed,
and rearranged of user interface components. These components
HACKING RASPBIAN’S
DESKTOP PART 3:
CUSTOMISING OPENBOX
In the third part of his series, Simon Long talks us through
how to customise Raspbian’s window manager, Openbox
penbox is a component of LXDE
O (Lightweight X11 Desktop Environment),
the desktop user interface included
as part of Raspbian. Openbox is the window
manager – the software which is responsible
for drawing the windows in which applications
display their contents.
When an application opens, it requests a window
from the window manager of the size required for
what the application needs to display. The window
manager creates the window, and draws the title
bar and border. The window is then passed to the
application, which draws its contents.
This mechanism may seem complicated, but it
means that all windows created in the system will have
Right The Openbox the same overall visual appearance. The alternative
Configuration
Manager allows
would be for each application to create its own title bar
various aspects of for each window it requires, and the result would be a
the way a window
is displayed to
less consistent appearance, particularly when multiple
be modified applications run simultaneously.
Radio buttons, file and The appearance of The menu bar contains custom
colour browsers, and widgets such as tabs, widgets, such as buttons that
even the borders used to sliders and buttons is highlight in a specific colour when
group widgets into boxes taken from the current the mouse hovers over them; this
take their appearance GTK theme is achieved by modifying both
from the theme code and theme
HACKING RASPBIAN’S
DESKTOP PART 4:
CUSTOMISING
APPLICATIONS
In the fourth and final part of his series, Simon Long talks us through
how to customise the appearance of applications running on the
Raspbian desktop…
pplications written to run under Raspbian’s That’s in an ideal world anyway. Unfortunately,
A desktop environment, LXDE, make use of one
of a number of user interface toolkits.
things aren’t quite that ideal, because there are a
number of different toolkits out there, and it is up
A UI toolkit provides reusable code for standard to the application developer to choose which one to
UI elements, such as windows, menus, and buttons. use. LXDE itself is written using a toolkit called GTK+
This serves two main purposes. First, it makes (GIMP Toolkit), and most of the applications included
creating new applications a lot faster for the in the Raspbian image also use GTK+. However, there
developer, as it isn’t necessary to create the code for are others – you may see applications written with a
a button from scratch every time one is needed in toolkit called Qt - and even with GTK+, there is extra
an application. Second, it ensures that applications complexity due to there being multiple versions in
look and behave in a consistent fashion – a button use: you’ll find applications which use version 2.x and
in one application will look exactly the same as in version 3.x, and they can look significantly different.
every other application, and will display the same All very interesting, but why should a user care? One
behaviour (such as changing appearance when it is of the advantages of using a UI toolkit is that it can be
clicked) everywhere in the system. themed. In other words, while the toolkit ensures that
Above The first page of the lxappearance application lists the Above Other pages of lxappearance allow colour schemes,
themes installed on the system and shows what each widget icons, fonts, and cursors to be customised
looks like in them
every button looks the same as every other button, the desktop, so feel free to explore the other tabs and
the user can change the theme to make buttons look options. For instance, the Widget tab also allows you
the way they want them to, while keeping them to change the system font, which is used for all text
consistent across all applications. By changing the displayed inside a window. (Note that to change the
GTK+ theme, you can make everything on your font used for the title bar of a window, you need to
Pi’s desktop – including the menu bar – change its change the font used by Openbox – see the previous
appearance at the same time. tutorial for details of how to do this.)
IMPORTANT
• Sonic Pi 2.4
is required.
SONIC PI
TIPS & TRICKS
To update to the
latest version,
type these two
commands into
the terminal:
• sudo apt-get
update
• sudo apt-get
The creator of Sonic Pi, Sam Aaron, shares some of his
install sonic-pi
top tips for budding electronic musicians of all ages…
guitar into an effects pedal of your choice and then into
THERE ARE NO MISTAKES the amplifier, but Sonic Pi makes it much easier! All you
need to do is to choose which section of your code you’d
This is the most important lesson. The best way to like the FX added to and wrap it with the FX code.
learn is to just try. Try lots of different things; stop
worrying whether your code sounds good and start sample :loop_garzul
experimenting with as many different synths, notes,
FX, and parameters as possible. You’ll discover a lot of 16.times do
things that make you laugh, because they sound awful, sample :bd_haus
and some real gems that sound truly amazing. Just sleep 0.5
drop the things you don’t like and keep the things you end
do. The more ‘mistakes’ you allow yourself to make,
the quicker you’ll learn and discover your own sound. If you wanted to add FX to the :loop_garzul sample,
you’d just tuck it inside a with_fx block, like this:
with_fx :flanger do
sample :loop_garzul
end
with_fx :echo do
16.times do
sample :bd_haus
sleep 0.5
end
end
MAKE A
Programming in Easy Steps. He also
co-wrote Raspberry Pi For Dummies.
sean.co.uk
twitter.com/musicandwords
MULTIPLE-CHOICE
QUIZ IN SCRATCH Dazzle your friends with your own quiz game, containing hundreds
You’ll of questions! How many can they get right in 30 seconds?
Need ists are used to remember lots of information, over the table to highlight it and then press CTRL+C to
> LibreOffice –
L but adding items to them block by block can
take a lot of time and Scratch code. In this
copy it. It’s easier if you highlight from the bottom up.
Be patient when the screen scrolls!
if not installed,
open a terminal project, you’ll see how you can import (or bring in)
and type:
sudo apt-
large lists from other places, so you can easily make a >STEP-02
get install
quiz game with hundreds of questions. As you create Create your question files
libreoffice this game, you can use your own favourite background Start LibreOffice Calc and paste in the table using
and sprites, and arrange them with enough space for CTRL+V. Click OK. This might take a minute or two to
> List of capitals
by size – the answers to appear. Perhaps you can add your own work. Click above your cities column to highlight it.
wki.pe/List_ question list? Anything works, as long as each answer
of_national_
only applies to one question.
capitals_by_
population
Above Copy the capital cities table from Wikipedia into LibreOffice
Calc to make it easy to extract the columns separately
>STEP-03
Importing your data into Scratch B
Start Scratch. Click the Variables button and make a list.
Call it cities and make sure it’s for all sprites. When the
empty list appears on the Stage, right-click it and click
import in the menu. Browse to the files you just created,
and double-click your cities text file. The list on the Stage
will be filled with the cities from your file. Repeat the
process to make a list called countries and fill it with your
countries file. Your list files should be the same length.
Right-click the list boxes on the Stage and choose hide.
>STEP-04
Set up your variables
Through the Variables part of the Blocks Palette, make
variables called question number (used to remember
which question/answer pair we’re asking), score, shuffle
choice and temporary storage (used for shuffling the list
of options), and wrong answer (used when making the list
of wrong options). You also need to make a variable called
player guessed to remember which answer the player
chooses, and a list called possible answers. Make all
these variables and the list ‘For all sprites’.
C
>STEP-05
Make the main game code
The main game code uses three scripts (Listing 1). Add
them all to the cat sprite. The game uses broadcasts to
pass control to the various parts of the program, including
on the same sprite. The ‘ask a question’ section picks a
random question number from the list of countries and
makes a list of possible answers. It includes the correct
answer, and two wrong answers which must be different LISTING 2
from the correct answer. The code then shuffles this list to
put the answers in a random order, before using a broadcast
to make the answer sprites appear and show their answers.
>STEP-06
Make the answer sprites
Import a new sprite to use for showing the answer. We’re
using Gobo. This sprite has five short scripts (Listing 2).
Make the variable answer choice, but click the button
to make it ‘For this sprite only’. If the game shows all
the same answers when you run it, you probably made a
mistake here! When you’ve finished this sprite, right-click
it and duplicate it twice. In the copies, change the value of
the answer choice variable at the top to 2 for the first one
and 3 for the second one. Happy quizzing!
ADD A TITLE
SCREEN TO YOUR
SCRATCH GAME To make a professional-looking game, follow these steps
You’ll to add a title screen with instructions and a fun animation
Need book has a cover, a film has its credits, and >STEP-01
> One of your
A an album has its artwork. Only with the right
presentation do these things feel professional
Write your game
We recommend you try adding a title screen to our
own Scratch
games, or and complete. In the same way, a great game starts example game Cat Catcher before you add one to your
you can use with a title screen that draws players in and provides own game. To make Cat Catcher, first bring in the
our simple
instructions. It’s especially important if you want sprite Gravity Marble from the Things folder. It comes
example here
to share your game, as you won’t be there to explain with some scripts for controlling it with the cursor
it when it’s played. In this article, you’ll see how keys. Add Listing 1 to your cat sprite. Together, these
you can add a title screen to a basic game. The same two sprites make a game where you’re challenged to
techniques will work for most simple games, so why see how quickly you can catch the cat ten times with
not try adding a title screen to your own games, too? the marble. We’ve added the playing field background.
>STEP-03
Create your title screen sprite
This is the sprite that will tell the player how to play,
and it can be animated, too. For our game, we’ve
brought in another cat sprite. Add Listing 3 to it.
There are three parts to this: one part displays the title
animation and instructions; another part starts the
game when the sprite is clicked; and a third part hides
the sprite when the game begins. You’ll need to make a
variable called game status, which all sprites will use
>STEP-04
Replace your green flag scripts
Now, you need to go through your game sprites (the
game cat and the marble in our example) and change
their scripts so they don’t start when the green flag
is clicked any more. For each sprite and each of its
scripts, replace the block when green flag clicked LISTING 2
with the block when I receive play game. Add
>STEP-05
Replace the forever loops
Some of your in-game sprites might have forever
loops. These will keep running, even when the
title screen is showing and the sprite is hidden. To
avoid this causing unwanted results, replace the
forever block on your in-game sprites with the
forever if block. Give the block the condition
game status = game (using your variable game
status and the = Operator block). You might also
have events that are triggered, such as when there is
a key press. To stop these working on the title screen,
wrap an if block around the entire script after the
when [space] key pressed block and give it the
condition game status = game, too.
>STEP-06
Start a new game
When your game finishes, you can show the title
screen again by adding a Control block to broadcast
title screen. For example, you could add it to the
end of Listing 1 in our game. Players can once again
start a new game from the title screen. That will keep
them in the game and encourage them to keep playing LISTING 4
until they’ve got a score they can brag about! You
might need to make some other tweaks for your game
(each one is different, after all), but following these
steps should enable you to add a title screen to most
simple games, to make them look more polished.
ADD A
HIGH SCORE
TABLE TO YOUR
SCRATCH GAME Keep players coming back for more by keeping a record of the best scores,
You’ll and telling them how they measure up
Need
his project features scripts that enable you to >STEP-01
> One of your
Scratch games.
T create a high score table, and then add new
scores to it if they’re high enough. There isn’t
Make your game
You’ll need a game to add this script to – either one
Pick a favourite!
an easy way to display and hide a list from within of your own, or one that you’ve programmed from
your program, so the scripts also tell players how they a book or magazine. Try playing the game a few
ranked and what the next highest score is, so they times to work out the likely scores. Some games
know how close they came to beating it. This code will award a few points, some hundreds, and some
work with most simple games, but you might need thousands. The starting numbers in your high score
to make some changes if your game invites players table should present a challenge to players, but not
to play again, or has scripts that continue when the be completely unachievable. Take care with your
game has ended. own games: if you’ve spent days playing them in
development, they’ll be much easier for you than
anyone else.
>STEP-02
Tick the box
in the Blocks
Add your high score sprite
Palette to see The scripts for the high score can all go on the
the list and edit
same sprite. This sprite will tell players if they
its values. No
cheating, now! got a high score. It could be the main character of
your game, the sprite used on the title screen (see
the tutorial on pages 112-113), or it could be a new
sprite. We’ve added the sprite royalperson for our
high score table. You’ll find it in the ‘people’ folder,
The sprite checks even though it looks like a dog. It’ll be in the way
the player’s score during the game, so add Listing 1 to hide it when
and tells them
how they did the green flag is clicked.
LISTING 1 LISTING 2
LISTING 3
BUILD A
SPACE SHOOTER
IN SCRATCH
William H Bell walks us through how to create an impressive 3D space shooter using
nothing more than Scratch and some clever coding techniques…
cratch is a great programming language craft. The main laser system is also operational. The
S for testing out a range of concepts. Scratch
programs typically involve controlling one or
heroic pilot has to shoot through or dodge the debris.
A point is awarded each time a piece of debris is
more sprites on the screen. Computer games where destroyed with the ship’s lasers. If the debris crashes
the characters are controlled from a distant view are into the spacecraft, then the shield of the spacecraft
third-person games. Games can be more exciting will be damaged. After the shield has been completely
when the human player looks through the eyes of broken, the spacecraft will explode.
the central character in the game, however. This is
normally referred to as a first-person game. Perspective
In this article, some of the principles of constructing In real life, objects that are far away appear to be
a first-person game are introduced. The player is the smaller. One example of this is a set of railway tracks.
pilot of a spaceship that is drifting through a debris Looking down railway tracks and into the distance,
field. The main engine has gone offline, causing the the tracks appear to become closer together. This can
spaceship to drift through the debris at a constant be applied to a computer game, where objects need
speed. However, the spaceship still has working to be shown as being in the distance. When an object
thrusters on the top, bottom, left and right of the becomes closer to a player, the object should become
larger on the screen.
Right Hit the
space bar to fire In this game, a one-point perspective is used. This
the ship’s lasers to means that distant objects appear to come from the
destroy debris; if it
crashes into you, centre of the screen. Rather than draw a lot of very small
your shield (green images at the vanishing point, it is more sensible to
bar) will deplete
assume a viewing plane. The viewing plane corresponds
to the distance at which objects become visible. The two
diagrams at the top-left of page 117 show the vanishing
point as it appears on the screen, and the position of the
viewing plane. In the illustration of the viewing plane,
the z-axis points from the centre of the screen straight
towards the player and is perpendicular to the x-y plane.
If the spacecraft has no velocity along the x-y plane
and an object appears at the viewing plane with a
y−axis
Vanishing point
x−axis
Infinity
Viewing plane
Lasers
The lasers were drawn as another sprite. The size
of the Laser sprite was carefully matched to the
SpaceShip sprite by copying the SpaceShip costume
to check where the lasers would appear on the screen.
When the green flag is pressed, the Laser sprite
is set to appear just below the SpaceShip sprite.
Therefore, it is in the foreground but not as close as
the cockpit. The lasers are fired by pressing the space
bar. To make the game a little bit harder, the lasers
fire for a second and then recharge for a second. This
means that the player should not hold down the space
bar, but only fire the lasers when needed. Similar to
Right Each the SpaceShip sprite script, the Laser sprite only
costume is used
recognises the space bar when the number of shield
for one of four
shield states points is greater than zero.
Possible extensions
Other features could be added to the game. The
spacecraft could collect shield tokens or be able to use
a wider laser beam to destroy more than one object
at once. Alternatively, the principles demonstrated
within this program could be used to create a first-
person car racing game.
PRINTING
WITH YOUR
RASPBERRY PI In an excerpt from Bruce Smith’s Raspberry Pi Insider Guide,
we learn how to install and configure a printer on the Pi
f you intend to use your Raspberry Pi in a configuring printers is a bit of a black art, as it has
I home office or to learn programming, you’re
sure to want to print out your results. In
been for many years on Linux, not least because
there are so many makes and models of printer.
this excerpt from the book Raspberry Pi Insider Guide Often, the real trick is picking the correct printer
(brucesmith.info/?p=14), we look at the software to from the lists that are presented by the system.
use and how to configure it. It is important that you know the exact make
One of the few areas where the Raspberry Pi has and model of your printer, as the software that
been a little disappointing is in the use of printers translates the information from the page you are
Fig 1 The CUPS
configuration and the associated printer support. Most operating printing to ensure the correct output onto paper
screen, as seen
systems attack the issue of printers head-on, is dependent on this. This software is called the
through the
web interface but Raspbian is not one of these. Installing and printer driver.
UNCHAINING YOUR 3D
PRINTER WITH OCTOPRINT
Gina Häussge shows how to turn your 3D printer into a WiFi-enabled network
printer you can control from any web browser, using a pre-made Pi SD card image
ay goodbye to the cable salad of tethering your Let’s get started
You’ll S desktop PC or laptop to your 3D printer. With First, go to github.com/guysoft/OctoPi, click on the
Need
OctoPrint, there exists a 3D printer remote download mirror linked there and download the most
control that you can easily run on a Raspberry Pi and recent version of OctoPi. This might take a while. While
use from any web browser, giving you full control and the download is running, let’s first prepare your desktop
> OctoPi image
github.com/ monitoring capabilities. And thanks to the OctoPi PC or laptop so that connecting to the server later will
guysoft/OctoPi distribution, getting this set up and ready to go is as only require entering ‘http://octopi.local’ into your
> Camera Module easy as flashing an image to an SD card and booting browser! OctoPi uses something called ‘mDNS’ (also
raspberrypi.org/ your Pi from it. known as ‘Bonjour’ or ‘zeroconf’) to broadcast this
products/
We might try to convince ourselves to the address on the local network and make it discoverable
camera-module
contrary, but let’s face it, 3D printers do smell a by other PCs that understand mDNS. Since not all
> USB WiFi dongle,
e.g. raspberrypi.
bit strange and can produce quite a racket while systems support this out of the box, we now need to
org/products/ they are working multiple hours on your latest make sure yours will know what to do.
usb-wifi-dongle three-dimensional creation. How to achieve that depends on what operating
> Compatible That’s why I sat down a couple of years ago now to system you are running. Linux users should make sure
3D printer create OctoPrint, a free and open-source remote control that libnss-mdns is installed. On Debian and Ubuntu, a
bit.ly/1LXZf4b
and monitoring solution for 3D printers that is targeted simple sudo apt-get install libnss-mdns should
> Class 10 SD card at the Raspberry Pi. It allows you to control and monitor take care of that. Windows users need to install Bonjour
(minimum 4GB)
all aspects of your 3D printer and its print jobs just as if Print Services for Windows, which can be downloaded
you were sitting in front of it, even if it’s on the other from Apple at support.apple.com/kb/DL999. After
side of your house in the garage - or on the other side of installation, you’ll need to make sure that your Windows
the world. Firewall allows traffic on UDP port 5353 and that
Let me show you how to get this up and running in mDNSresponder.exe has network access. Mac users are
no time, powered by OctoPi, the customised SD card lucky: for them, mDNS should be supported out of the
image created by Guy Sheffer that merits the label box by the operating system, without the need to install
‘batteries included’. anything else.
CONTROL YOUR PI
REMOTELY WITH
VNC SOFTWARE Learn how to control your Raspberry Pi from afar, whether
You’ll you’re at the office or stuck using 4G on the train home
Need s pocket-friendly as the Pi is, you can’t take >STEP-01
> VNC Server
A it everywhere. At some point, you’ll find
yourself with nothing but a smartphone
Installing VNC Server
Start by opening LXTerminal and running:
software
or computer for company, and it just won’t be the curl -L -o VNC.tar.gz http://bit.ly/1ILmo8p
> VNC Viewer
same. Fortunately, thanks to RealVNC, there’s a tar xvf VNC.tar.gz
software
way to remotely access your Pi’s desktop – even if Once everything’s downloaded, navigate
> A VNC licence
you’re running it headless. This tutorial will talk to its location and run:
(free or paid)
you through the basics of setting up VNC Server sudo dpkg -i <VNC-Server-package-name>.deb
> A client device
on your Pi and connecting to it from a client device <VNC-Viewer-package-name>.deb
(such as a
mobile phone) using VNC Viewer. We’ll also look briefly at Virtual Note: You’ll need to replace the angle brackets
Mode, and how you can use it to gain visual access to and their contents with your own package names,
a headless Raspberry Pi. e.g. VNC-Server-5.2.3-Linux-ARM.deb; this will
also install VNC Viewer, meaning your Pi can take
control of other computers if you wish.
The client device
displays the Pi’s Next, download VNC Viewer to your client device,
desktop, exactly such as a mobile phone. This can be done for free
as it appears on
the monitor through either realvnc.com/download or the iOS
or Android app store.
>STEP-02
Licensing VNC Server
VNC Server must be licensed with a Free, Personal,
or Enterprise licence. To obtain one, visit
realvnc.com/products/vnc and choose the
right option for you; while a Free licence will
provide you with basic remote control, you’ll
miss out on features such as encryption, system
authentication, file transfer, chat, and dedicated
product support. For the purposes of this tutorial,
The Pi is remotely however, a Free licence will be fine. Once you have
controlled by the
client device (in a key, apply it at the command line with:
this case an iPad) sudo vnclicense –add <license-key>
Note that VNC Viewer will not need to be licensed.
STARTING VNC
SERVER IN
SERVICE MODE
To automatically
start VNC Sever
in Service Mode
when your
Pi is turned
on, run: sudo
update-rc.d
vncserver-
x11-serviced
defaults
Left Controlling
your Pi from a
Windows desktop
>STEP-03 >STEP-05
Controlling your Pi locally Navigating your Pi on a smartphone
VNC Server is usually run in Service Mode or Virtual When connecting from a smartphone for the
Mode; if your Pi is headless, only the latter will work, first time, controlling your cursor may feel strange.
so skip to step 6. Create a new password for Service Instead of navigating your Pi like you would your
Mode with sudo vncpasswd /root/.vnc/config.d/ phone’s web browser, you should try to see your
vncserver-x11, then type in a password. Service phone as a laptop touchpad controlling a cursor. This
Mode gives full access to your Pi’s desktop. Run sudo provides accurate control of your Pi’s high-resolution
/etc/init.d/vncserver-x11-serviced start. desktop, despite the small screen of your device.
Now open VNC Viewer on your client device. Type your Drag your finger across your screen to move the
Pi’s private IP address (see VNC Server’s dialog box, cursor. The visible desktop automatically scrolls with
or run ifconfig) and connect. You’ll now have visual you. To left-click, tap anywhere once; double-tap to
access to your Pi. For detailed setup instructions, refer double-click. More gestures are available by clicking
to realvnc.com/products/vnc/raspberrypi. the ‘?’ in the app toolbar.
MAKE TEXT
SCROLL ON THE
UNICORN HAT
The Unicorn HAT provides a compact and colourful way to display
You’ll scrolling messages on your Raspberry Pi. Here’s how it’s done…
Need t’s easy to get colourful special effects >STEP-02
> Unicorn HAT
Language
fontmaker.py (Listing 1) >PYTHON
scroller.py (Listing 2)
shell, and use SHIFT+CTRL+C to copy it all. It starts
and ends with a curly bracket and might span more
than one screen. Paste it in place of the curly brackets,
where font_dictionary is defined near the top of import unicornhat as unicorn
Listing 2. Now your scroller program has the font data import time
it needs. Save your program. unicorn.rotation(180) #adjust for your Pi's orientation
unicorn.brightness(0.4)
#warning: Altering this value can make LED VERY bright!
>STEP-05 font_dictionary={} # paste in your font dictionary here
Restart and install software string_to_show=raw_input("Enter the text to scroll: ")
There appears to be a conflict between Pygame and the scroll_rows=[[0]*8]*8 #blank space at start of message
Unicorn HAT, so you can’t use them both in the same
for character in string_to_show:
session. If you see random flashing on the Unicorn HAT
if character.upper() in font_dictionary:
when you run the scroller program, this is probably character_rows = font_dictionary[character.upper()]
the reason why. Restart your Raspberry Pi now. If you else:
haven’t already installed the Unicorn HAT drivers, go character_rows = font_dictionary['-']
into the command line and issue the command: for i in range(8):
scroll_rows[i] = scroll_rows[i]+character_rows[i]
\curl -sS get.pimoroni.com/unicornhat | bash scroll_rows[i] += [0] #gap between letters
DISPLAY
Echo
Trig
VCC
USB X2 USB X2
ETHERNET
PiBorg.org
ultraBorg
You’ll
Need MOVE A SERVO
> UltraBorg
WITH A FLICK
OF THE WRIST
piborg.org/
ultraborg
> HC-SR04
sensor
> Servo motor The UltraBorg helps you use servos and sensors with your projects.
> 4× AA or AAA Here you’ll make a servo move by waving your hands like a lunatic…
battery holder
hen building robots, we tend to think of three-pin cables between the UltraBorg and the GPIO
All items are
available from
piborg.org or
W walking or driving robots, but they can
take many different forms. Servos are an
header. Make sure the cables are fitted so that the
pin marked ‘1’ on the UltraBorg is connected to pin 1
third-party inexpensive form of robot motor and they’re used in on the GPIO header – that’s the pin that is closest to
vendors
many robots, such as planes (UAVs), robotic arms, the SD card slot.
and even remote-controlled (RC) cars. Ultrasonic
sensors are another useful bit of robot-building >STEP-02
kit. You can use them to determine how far away Connect the servo
things are from the robot, which is ideal for collision Next, we connect the servo to one of the three-pin
avoidance. Both are cheap and easy to obtain, so in connectors. The servo connections are numbered
this project we’re going to demonstrate how you 1 to 4, with #1 towards the middle of the board.
can use both of them together to build a very simple You may use any combination of the four available
robot that responds to motion. connectors; for this project, we want to connect the
servo up to the #1 connector. Make sure the servo is
>STEP-01 connected the correct way around: the ground (also
Connect the UltraBorg called GND, -VE, or 0V) wire should be connected to
Start by removing the jumper that is fitted on the the pin closest to the edge of the board. Servo cables
two-pin connector in the middle of the board. With may vary in colour, but usually the ground wire is
the Raspberry Pi powered off, connect the pair of black or brown.
STREAM STEAM
GAMES TO YOUR
RASPBERRY PI
The Raspberry Pi can do a lot of things, but maybe you didn’t know
You’ll that you can use it to stream your favourite games from your PC
Need
ometimes it’s just not convenient to play the application we are using on the Pi to stream, to
> Nvidia GTX 650
graphics card
S latest PC games on your clunky, noisy PC. It’s
either tucked in the corner of the bedroom
work. To make sure you have all of the dependencies
installed, use the following command:
or higher
or under the stairs, right where it’s bound to disturb
> GeForce other people from the moment you press Start to play. sudo apt-get install libopus0 libasound2
Experience
geforce.com/
Never fear, though, because it’s possible to play libudev0 libavahi-client3 libcurl3 libevdev2
geforce- your favourite triple-A PC games from the comfort
experience of any TV in the house using nothing more than a Once this has been done, we can install Moonlight,
> Raspbian suitable graphics card, a Raspberry Pi, and this guide… after we have configured the sound.
> Internet
connection >STEP-01 >STEP-02
Install dependencies Configuring sound
Before we begin, you will need to make sure that To make sure that we have sound coming out of the
you have all the dependencies installed; typically, HDMI port, we need to edit the boot configuration file
these will already be installed with Raspbian. The and add a line of text. To edit the boot configuration
dependencies are essential for Moonlight, the file, you will need to enter the following command:
This will then bring up the Pi’s nano text editor. There are many options
that can be added to the
You will want to go to the end of the file and enter
this line:
>STEP-04
Setting up Moonlight
First of all, you will need to get the IP address of your
Windows PC on the network. Go to the Command
Prompt (in Accessories) on the PC and enter:
You’ll
Need MINECRAFT: PI
CODING TIPS
> Raspbian
> Minecraft:
Pi Edition
> Python 2
editor (IDLE)
BUILD A HOUSE
The quickest way to make a house in Minecraft: Pi
Edition is to use code and the API. By programming a from mcpi import minecraft
house rather than building it by hand, it can be any mc = minecraft.Minecraft.create()
size you want – 10 blocks across or 100!
Create a simple program which will use the pos = mc.player.getTilePos()
Below Create
massive houses in setBlocks() function, once to create a cube
the blink of an eye 10×10×10 of wood (17) and then again to create a mc.setBlocks(pos.x + 0, pos.y + 0, pos.z + 0,
using just a few
lines of code cube of air (0) 9×9×9 inside the wooden cube. pos.x + 10, pos.y + 10, pos.z + 10, 17)
Right Change
the position of
the ‘camera’ in
Minecraft and get
a different view of
the world
134
134 The Official Raspberry Pi Projects Book raspberrypi.org/magpi
MINECRAFT PI CODING TIPS Tutorial
MAKE THE WORLD ‘READ-ONLY’ LEARN THE HEIGHT OF THE WORLD
Are you fed up with Steve having free rein to destroy If you want to code structures to always be ‘on top’ of
your beautifully crafted world? Or would you prefer it the land, you need to know how high the world is – or,
if lava didn’t burn down your creation? put another way, how far the air comes down!
Using the setting() function in the API, you can In Minecraft the height is the Y coordinate, while X
make your world ‘immutable’ – something which is and Z are the horizontal dimensions – if you pass X
unable to be changed. Start a new script with: and Z coordinates to the API function getHeight(),
it’ll return the Y coordinate. In a new program, type:
You can use this setting to create a new script for x in range(pos.x, pos.x + 10):
which will pit your building skills against a friend, for z in range(pos.z, pos.z + 10):
giving you 1 minute to make the best building you y = mc.getHeight(x,z)
can before turning the world read-only again. mc.setBlock(x,y,z,78)
from mcpi import minecraft What other types of block could you cover the world
from time import sleep in? Lava perhaps?!
mc = minecraft.Minecraft.create()
Below Cover Minecraft in snow by using the API to find the height of the world
mc.setting("world_immutable", True)
mc.setting("world_immutable", False)
sleep(60)
mc.postToChat("Stop – Who’s is the best?")
mc.setting("world_immutable", True)
MORE MINECRAFT
CODING TIPS & TRICKS
Have you exhausted the Minecraft: Pi basics available from
You’ll raspberrypi.org/resources? And completed our tips on pages 132-135?
Need Here are another five tips and mini-programs to experiment with…
> Raspbian
Above Use torches like a pro, automatically placing them around a block
# create torches
Or even better, change the block which was hit, from mcpi import minecraft
using setBlock() to give Steve the Midas touch and from time import sleep
make every block he hits turn to gold:
mc = minecraft.Minecraft.create()
138
138 The Official Raspberry Pi Projects Book raspberrypi.org/magpi
MINECRAFT PI CODING TIPS Tutorial
Measure how far
Steve is away
from home
posNow = mc.player.getTilePos()
alculatethedifferencebetweenthex,y
C
and z coordinates of the two positions xDiff = startPos.x - posNow.x
yDiff = startPos.y - posNow.y
zDiff = startPos.z - posNow.z
Multiplythedifferencebyitself(itssquare)
xSquare = xDiff * xDiff
ySquare = yDiff * yDiff
Add all the squares together
Addallthesquarestogether zSquare = zDiff * zDiff
mc.postToChat(distance)
This program uses this calculation to display how
far the player is from where they started. So the sleep(1)
further they move away, the greater the distance. See
how it works by copying the following code example
into IDLE or your favourite text editor (don’t forget to Try changing the program to show the distance between
save it with the .py file extension): the player and a random diamond block you have created.
MINECRAFT SPLAT holds two values: 13 for green and 14 for red.
140
140 The Official Raspberry Pi Projects Book raspberrypi.org/magpi
MINECRAFT SPLAT Tutorial
points = [0,0]
mc = Minecraft.create()
mc.postToChat("Minecraft Splat")
BUILD THE PITCH delay, to let the players get ready, and a message to
let them know the game has started.
The game needs a pitch where the action can take
place; it’s a glass ‘room’ with two glass walls running sleep(3)
down the middle. mc.postToChat("Go!")
Find the buildPitch function in your program:
Run the program. You should see the pitch appear
def buildPitch(mc, pos): around your player and the message to ‘Go!’.
pass
players = mc.getPlayerEntityIds()
start = time()
142
142 The Official Raspberry Pi Projects Book raspberrypi.org/magpi
MINECRAFT SPLAT Tutorial
Left Splatoon
on the Nintendo
Wii U console is
colourful and fun
team = players.index(hit.entityId) % 2
pointsScored = splatBlock(mc,
hit.pos.x, hit.pos.y, hit.pos.z, team)
points[0] += pointsScored[0]
points[1] += pointsScored[1]
Find a friend with a Raspberry randomisation to splatter the blocks around the
block that was hit as well.
Pi, challenge them to a game After your code to splat the block, loop through
each of the blocks around the one which was hit:
144
144 The Official Raspberry Pi Projects Book raspberrypi.org/magpi
MINECRAFT SPLAT Tutorial
Language
MCSplat.py >PYTHON
# import modules # post the message to the screen
from mcpi.minecraft import Minecraft mc.postToChat("Minecraft Splat")
from mcpi import block
from time import sleep, time # find out the host player's position
from random import getrandbits pos = mc.player.getTilePos()
REVIEWS
& SUPER-TESTS
Discover the best Raspberry Pi add-ons, software, and books by reading
our expert reviews and group tests…
154
16. 161
155
164
158
Reviews
148 PI DESKTOP 168 MEARM
SUPER-TEST Affordable open-source
Which operating robot arm for beginners
system should power
your Pi? 169 UBUNTU MATE 15.04
Lightweight version
154 SKYWRITER HAT of Ubuntu for the Pi
Gesture-based control
with a wave of your hand 170 FUZE BASIC V3
Try out the classic
155 ANONYMEBOX BASIC language on
Stay anonymous your Pi
online while using
any computer 171 PI SUPPLY PAPIRUS
Build an e-reader with
156 PIPSTA this low-power E Ink
Turn your Raspberry Pi display HAT
172 into a portable printer
172 RASPBERRY PI
157 4TRONIX PLAYHAT TOUCHSCREEN
Beginners’ board for
The official 7˝
physical computing
touchscreen has
158 DISPLAY-O-TRON impressive capabilities
3000
Stylishly decorated mini
174 PI-DIGIAMP+ WITH
LCD display for your Pi
PI-CASE+
Hi-res audio DAC
159 RASPIO DUINO and amplifier in one
An easy way to wire up small board
your Pi to an Arduino
176 SWANKY PAINT
160 WEAVED IOT KIT Retro-style paint
Designed to take program for pixel artists
the fuss out of port
forwarding 177 THE FUZE
Pi workstation
161 PROPELLER HAT comprising a case and
A handy HAT to help keyboard
you rapidly prototype
projects 178 VELLEMAN 3D
178 PRINTING PEN
162 PIBORG ULTRABORG Is this pen an affordable
Combined ultrasonic
alternative to a 3D
sensor and servo
printer?
driving board
180 ADAFRUIT HDMI
163 CAMJAM EDUKIT 2
BACKPACK
Explore the world
Portable touchscreen
of sensors with this
available in 5” and 7”
affordable kit
models
164 RASPBERRY PI CASE
SUPER-TEST 181 WITTY PI
Four third-party Pi Set your Pi to routinely
181 switch itself on and off
cases are tested to
the max 182 RETRO GAMING
166 4TRONIX AGOBO GROUP TEST
A no-solder, low-cost Three of the best
robot to build and emulator packages
play with for the Pi
SoundIfI
Snappy Core
stuff
MagPi
MagPi Film
Raspberry Pi Desktop
SUPER-TEST
Print Me
Recycle Bin
Raspbian notes
+
All Settings
Pidora Snappy Ubuntu Core
Packing the power of Fedora into the Fast and futuristic, but may be a little too
Raspberry Pi advanced for most users
Compatibility: Raspberry Pi 1 Compatibility: Raspberry Pi 2
URL: pidora.ca URL: developer.ubuntu.com/en/snappy
Pidora is a remix of the popular Fedora flavour Snappy is the most recent OS for the Pi. Users
of Linux. Currently in its fifth version, the Pidora expecting standard Ubuntu with its Unity desktop will
distro has come a long way since 2012, but it be surprised. Snappy is a command-line affair aimed
still stands in the shadow of Raspbian. Pidora is squarely at developers looking to build web servers
part of NOOBS, but adoption and support has and Internet of Things (IoT) devices. The apt-get
been dropping ever since Raspbian became the function is replaced with snappy, which offers some IMPORTANT!!!
recommended installation. great innovations regarding software deployment.
Pidora looks every bit as powerful as its Snappy Ubuntu Core offers a range of new
bigger brother, but badly needs optimisation features that are ideal for server and IoT developers
– + – +
+
The recommended distro keeps going from Flashback from the 1980s that’s still going
strength to strength strong today
Compatibility: Raspberry Pi 1 and 2 Compatibility: Raspberry Pi 1
URL: raspbian.org URL: RISCosopen.org
Raspbian is based on Debian Wheezy/Jessie but Created during the heyday of Acorn Computers, RISC
optimised for the Raspberry Pi hardware. Technically, OS was designed explicitly for the ARM chipset and
Raspbian isn’t the official OS and isn’t affiliated with the has been kept alive by a small team of dedicated
Raspberry Pi Foundation. However, its ‘recommended enthusiasts. RISC OS is ultra-fast, but hails from a time
installation’ status, along with plenty of documentation before the modern GUI metaphor had settled, and its
and support, make it feel official. Raspbian is definitely WIMP (Windows, Icons, Menu and Pointers) interface
the place for newcomers to start. has more than a few quirks.
TEST 1 TEST 2
Installation Hardware support
Hello, World!
We started our test using SD Formatter 4 to wipe Pidora gets a black mark because it doesn’t support
our SD cards and installed NOOBS (New Out Of Box the Raspberry Pi 2. Attempting to choose Pidora
Software). NOOBS enables you to choose from a list in NOOBS brings up: ‘Warning Incompatible
of operating systems, including three on test here: Operating System(s) Detected’. We tried anyway,
Raspbian, RISC OS, and Pidora. but got a blank screen for our troubles. So for
Raspbian (Wheezy) starts up with a Software the rest of this test, Pidora was relegated to our
Configuration Tool that enables you to reclaim space Pi Model A.
on the SD card, change the password, choose boot Meanwhile, Snappy Ubuntu Core only supports
options, and enable support for the Raspberry Pi the Raspberry Pi 2, which leaves a considerable
Camera. Pidora has a more basic Setup Agent, which amount of Raspberry Pi devices out of the loop.
walks you through creating the user account. RISC All of our distros had no trouble recognising
OS boots straight into the GUI. Installation was the keyboard, mouse, and network connection.
straightforward in all these operating systems. Where things became a little more complicated
Snappy Ubuntu Core is the exception in that it has was regarding accessories and GPIO. This is
to be installed manually, using the dd tool to copy files another area where Raspbian is rewarded by being
from the image file to the SD card. the recommended distro. We had little trouble
Print Me
Upon startup, you’re faced with a command line setting up our webcam and GPIO in both Raspbian
that informs you that apt-get has been replaced with and Pidora, but tutorials were easier to source for
snappy. (The password and login are both ‘ubuntu’). Raspbian. We couldn’t get the webcam to work
Because the Raspberry Pi doesn’t sport a clock in RISC OS; GPIO in RISC OS is possible, but it’s a
backed up by battery, the date in Snappy is set to confusing setup process.
1970 on start-up, and this prevents snappy software The RPi.GPIO package isn’t present in the
installation, so part of each startup process is using snappy list of software, so GPIO access is currently
date -s to correct the date. unavailable in Snappy Ubuntu Core.
World Map
Recycle Bin
TEST 3 TEST 4
Software support Programming and GPIO
Every OS comes with pre-installed software and can Both Raspbian and Pidora make it pretty
download and install additional software via the internet. easy to cover the basics of programming, and
In Raspbian, software is installed using apt-get or via accessing the GPIO is a case of downloading the
the Pi Store. correct library (such as RPi.GPIO for Python or
In Pidora, yum is used to install software, but you can Scratch GPIO).
install Apt from Yum if you prefer (and then install the Snappy Ubuntu Core comes with Python,
Pi Store manually). but without apt-get there was no way for us to
RISC OS has a built-in store where you can download install the RPi.GPIO tools. Snappy Ubuntu Core is
new software created by the RISC OS community. tremendously interesting to advanced developers
However, a heartbreaking aspect of RISC OS is that you though, and is an ideal platform for setting up
have to use BeebIT and ArcEm emulation software to your own web server, but beyond that it’s far from
run the rich library of older BBC Micro and Archimedes an ideal environment for learning to code. Distro
software, which you could do just as easily from any RISC OS is either a fantastic or dreadful
Linux distro. programming environment, depending on what
Ubuntu Snappy Core replaces apt-get with snappy: you want to learn. Press CTRL+F12 and enter
programs are split into frameworks and apps (which are basic to access BBC Basic, a fantastic starter
isolated like apps on mobile devices). Snappy installs language that brings tears to the rose-tinted eyes
programs using a transactional update system that of many a seasoned developer.
downloads components before updating or installing Beyond nostalgia, RISC OS is particularly good
(and can roll back programs to earlier versions). for low-level programming and learning assembly
It also supports WebDM, which enables you to connect language (BBC Basic features an inline assembler).
to your Pi from a web browser and install or remove Absent are many modern high-level programming
software. Snappy is very interesting, but very little languages. That said, RISC OS has its charms for
software is currently available. many fun projects.
TEST 5 TEST 6
Community and support Unique features
Hello, World!
Good community support is vital for getting the most Each of the operating systems has something
out of your Raspberry Pi. It’s unsurprising to learn different to offer. Raspbian has the most all-round
that Raspbian, as the recommended installation, has support, the widest range of programs, and is the
the best community support. most nurturing environment.
All of the projects from the Raspberry Pi Foundation Raspbian is also noticeably faster and less error-
and many other sites (raspberrypi.org/community) prone than Pidora. While Pidora’s lack of Pi 2 support
gravitate around Raspbian. makes any meaningful speed test impractical, we’d
Having said that, it’s worth noting that Fedora, put our money on Raspbian and Snappy Core’s armhf
the flavour of Linux behind Pidora, has a large and architecture beating Pidora in any speed test.
respectable community. In particular, Linus Torvalds, Pidora is worth investigating if you work on a
the initial developer of Linux, is known to use Fedora Fedora-based main computer, own a Raspberry Pi 1,
(even if somewhat begrudgingly). and want consistency between the two machines.
Of course, numbers and celebrity names aren’t Snappy Ubuntu Core has much to offer those
everything and the RISC OS community looking to play a part in the next wave of software
(RISCosopen.org/forum) is both dedicated and development. Developing Snappy apps isn’t a game
committed. It’s a small clique, though, and outside for newcomers, but the transactional deployment
of the community you’ll struggle to find much techniques seem worth learning. And it’s a good OS
Print Me
online documentation. Look instead to decent for setting up a web server. Whether you can make
books like David Bradforth’s First Steps with RISC anything out of it currently depends on your skill as
OS 6 and Bruce Smith’s Raspberry Pi RISC OS System a programmer, but we are looking forward to seeing
Programming Revealed. Snappy Ubuntu Core develop as an OS.
Snappy Ubuntu Core fares worst in this test with no RISC OS is nothing if not unique. We’ve made much
real community to speak of, but that’s only because it of its individuality throughout this group test. Suffice
is such a newcomer. Give it time. to say it’s a fantastic way to broaden your horizons.
World Map
Recycle Bin
+
All Settings Spec comparison
All Distros
BEST ON RUNNER
TEST -UP
www.raspberrypi.org
Save
£16/$21
Maker
Says
Control
your Pi with
a flick of
the wrist
Pimoroni
SKYWRITER HAT
Les Pounder reaches for the sky to uncover the secrets behind this
amazing gadget from the Pimoroni ‘Pirates of Sheffield’
ow we interact with at a range of 5cm. The board can How can you use Skywriter HAT
H technology is constantly
evolving – from the early
also detect touch input to a number
of positions on its surface.
in your next project? Instantly,
gesture-controlled gaming comes to
days of clunky keyboards to the Physically, the Skywriter HAT mind. Using Skywriter as a gesture
sensors we use to capture location measures 64mm wide by 56mm controller for a game of Pac-Man
Related
and orientation automatically. What tall with a depth of 5mm. On the perhaps, controlling your Big Trak
remains the most basic interaction Raspberry Pi A+, it fits neatly over with just a flick of your hand, or
is touch and, by extension, the top, and with a B+ it fits snugly launching a rocket with a tap. We
HOVER gestures. Gesture control can be in the space between the USB ports look forward to waving our hands
Using the same achieved using technologies such as and the display slot (DSI). around like Tom Cruise in Minority
MGC3130 near- Microsoft’s Kinect or OpenCV, but Report to take control of our next
field controller
chip as the
these are quite resource-intensive Code control project, using nothing more than a
Skywriter, Hover solutions. So a cheap, simple, and Along with a neat hardware gesture and some Python code.
boasts the same resource-light solution is needed; solution, the team have invested
I2C interface and
compatibility
step forward Skywriter. a great deal of time producing
a Python API (application
Last word
with Raspberry
Pi, Arduino Near-field sensing programming interface) for both
The Skywriter HAT is a small
and other
The Skywriter is the latest board Python 3 and 2.7, installable via the
single-board and well-constructed board
computers. from Pimoroni, the Sheffield- Pip package manager. Examples of
that sits neatly on top of your Pi
based maker of a number of how to use this board can be found
(as any HAT should). It’s a really
quality add-ons for the Raspberry in Skywriter’s GitHub repository
capable and versatile board
Pi. Designed for the Pi Model (github.com/pimoroni/skywriter-
that adds a novel form of input
A+ and B+, the Skywriter is a hat). We found the contents of to any project and the easily
gesture controller built around the test.py in the python/examples understood Python API will
MGC3130, a 3D gesture recognition folder very interesting, since it puts benefit coders of all abilities.
and tracking controller chip. It out lots of interesting debugging
£31/$39
uses near-field sensing to locate data, as well as helping confirm the
hoverlabs.co
the position of your hand in the air Skywriter is working properly.
£142/$219
Maker
Says
An easy
solution to
anonymise
you online
pi3g
ANONYMEBOX
With our every online move being monitored, can a Raspberry Pi-based
appliance keep you and your family safe online?
ince George Orwell OS, connect the Ethernet cable to so the developer has created an
S wrote 1984, the fiction
contained therein has
your router, and then insert the
Wi-Fi dongle before powering up.
easy-to-use method for updating.
Just download an archive from
become fact in our society. Big its website, copy it to a USB flash
Brother is indeed watching you. Easy configuration drive, and insert that into the spare
Your ISP can throttle your speed Once it’s on, it can be configured port on your Anonymebox. The
and governments can get hold via the browser of any device software is configured to act if an
of your browser history. One of connected to your router. The update is found. The Anonymebox
Ethernet cable to connect to your such as whatismyipaddress.com machine they use, though its
router, a Wi-Fi dongle, and a USB- will show that your location is in a ease belies its true power.
to-Ethernet adaptor. Building completely different country.
$85
the Anonymebox is very easy too: Tor needs to be regularly
adafruit.com
insert the SD card containing the updated to ensure protection,
£84 / $125
Maker
Says
The
little printer
with big
ideas
Pipsta
PIPSTA
Is this tiny, Raspberry Pi-friendly printer what your next
IoT project is waiting for? Russell Barnes finds out…
I
t’s not unusual for workings are completely self- It comes with two types of thermal
computers to be built contained, it only takes up a single printer rolls to get you started –
into your computing USB port, so all your GPIO pins are a standard thermal paper roll and
experience. For example, Apple has left well alone. a label roll, which has a sticky back
done a roaring trade putting them The Pipsta is compatible with that can be applied immediately
£12/$18
Maker
Says
A great
way to
learn GPIO,
in either
Python or
Scratch
4tronix
4TRONIX PLAYHAT
Les Pounder looks at an affordable add-on board aimed at introducing
physical computing using simple inputs and outputs
Tronix is perhaps best colourful and well built, with 4Tronix has included example
4 known for its range of components that have been programs to illustrate how the
Related
Raspberry Pi-powered thoughtfully picked with tiny PlayHAT works. The strandtest
robots, such as Pi2Go and, hands in mind. script runs various animation
more recently, the A+ powered sequences on the NeoPixels,
PIBRELLA Agobo. But 4Tronix is not just Setting up while the playhat script has
Pibrella offers about robots. The Derby-based Installation is remarkably easy, further NeoPixel demos, but also
LEDs, button, company also develops add-on requiring only a download of comes with a simple dice game
and buzzer
just like the boards to enable children to the libraries, along with code that illustrates how the board
PlayHAT, but it learn computing. It started with examples from 4Tronix’s GitHub can be utilised to create a novel
also offers four the PiDie, a 3×3 LED board that repository. Upon installation, it method of output.
inputs, and four
outputs that enabled users to play dice games is wise to run the strandtest.py This is a simple and easy-to use
can be used and control traffic lights. Then script to ensure everything has board, with which much hacking
with external we saw the ultra-cheap Pi Stop been installed correctly. A quick and making can be done.
components,
such as motors traffic-light sticks that clipped word of warning, though: it would
and sensors. onto the GPIO. be wise to diffuse the NeoPixels Last word
The PlayHAT marks 4Tronix’s with a piece of paper, as they
first HAT board; a refinement of really are very bright. Not the most expansive or
those earlier two LED products, PlayHAT is programmed using feature-rich board on the
it combines them into one neat Python, but rather than use a market, but what it lacks in
package. Fitting neatly on top of bespoke module, it employs the features, it makes up for in its
the 40-pin GPIO present on the standard RPi.GPIO library to
price and ease of use. This is
a great ‘getting started’ board
A+, B+, and Raspberry Pi 2, the drive the buttons and buzzer.
for physical computing with
PlayHAT boasts an impressive The NeoPixels, on the other hand,
the Raspberry Pi.
nine multicoloured NeoPixel require the Adafruit NeoPixel
£10 / $15
LEDs, four push buttons, and library, contained in the GitHub
pibrella.com
a single buzzer. The board is download, to be used properly.
£18/$30
Maker
Says
3x16 character
display with three
RGB backlights to
give you D.I.S.C.O
capability
Pimoroni
DISPLAY-O-TRON 3000
Has Pimoroni’s art deco-themed Display-o-Tron add-on done the impossible and
dethroned the PiFace Control & Display?
he PiFace Control & Display over 12mm thick including the Those whose projects use the A+,
T made quite a splash at
launch, offering a simple
low-profile GPIO connector on
the rear, it adds just 6mm to the
B+, or Raspberry Pi 2 Model B –
support for which was added to the
Related
plug-in board – long before a height of any model of Raspberry Pi RPi.GPIO Python library used by
HAT was a thing – which provided and is designed to stay within the the Display-o-Tron around two
embedded Pi projects with a simple footprint of the compact Model A+. weeks after launch – will still retain
PIFACE two-line LCD display, a handful of Despite this, the Display-o- access to the extended header pins.
CONTROL & buttons, and a small joystick. Since Tron is brimming with features. Programming the display, LEDs,
DISPLAY
then, it has remained the king of Although it lacks the extra buttons and buttons is straightforward,
The PiFace
Control & Display the hill for any embedded project of the PiFace C&D, the display is with a quickly-installed library
is undeniably that doesn’t require a graphical a larger three-line, 16-character and handy example files for
bulkier than display, but Sheffield-based display with three individually everything from controlling
Pimoroni’s
Display-o-Tron, Pimoroni could change all that. controllable RGB LED backlights. VLC to play internet radio,
but the extra The first thing that strikes you A five-way joystick provides to playing a simple game.
buttons and about the Display-o-Tron 3000 directional control and push-to-
cheaper price –
in the UK, at is its appearance. As soon as you click activation for your projects, Last word
least – could remove it from the anti-static while the spare GPIO lines are
prove a worthy bag, you spot that it’s no ordinary broken out into a nine-segment
trade-off for The Display-o-Tron is
some projects. device. The board (also available LED bar-graph along the bottom mightily impressive for its
in HAT form) has been designed which illuminates on demand in diminutive size and boasts
with an art deco theme in mind, a retina-searing white. capabilities better than its far
featuring visual embellishments more sizeable rivals. It’s not
rarely seen on rival products. GPIO out particularly cheap, however,
The second thing you notice is That feature list does reveal one and takes up the entire 26-pin
the size. Compared to the PiFace drawback to the Display-o-Tron, header of older Pi models.
Control & Display it was so clearly however: it ties up the entire GPIO
£14 / $29
inspired by, the Display-o-Tron capabilities of the Raspberry Pi
piface.org.uk
is barely there. Measuring just Models A and B.
£12/$18
Maker
Says
Learn
Arduino
programming
on Raspberry
Pi RasP.iO
RASPIO DUINO
The Arduino and Raspberry Pi joined into one glorious package?
We grab a box of LEDs and buttons and starts hacking…
lex Eames is no stranger selection of Raspberry Pi GPIO Programmer option in the File
A to Kickstarter: he
was part of the team
pins, as the Duino covers 26 of the
40 pins present on the Raspberry
menu. After around a minute on
a Raspberry Pi B+, the sketch had
that brought us the excellent Pi 2 and the A+/B+ boards. uploaded and our LED blinked into
HDMIPi in 2014. Fresh from that Installation of the software life. We then wired up the Button
success, he has launched another for the Duino was a little tricky example, connecting the button to
product based on a successful and we did uncover one bug with 5V power, Ground, and finally PD2,
crowdfunding campaign. RasPiO permissions during installation which is digital pin 2 on an Uno.
Duino enables a Raspberry Pi – but, after a brief chat with Alex Uploading the sketch to the Duino
to work harmoniously with the Eames, this issue was resolved took less than a minute and we had
Arduino microcontroller board. and Alex has since done some a working push-button-controlled
Coming as a kit which requires work to refine the install process. LED. Alex has done a great job of
around 30 minutes to solder, making the Arduino accessible to
the Duino attaches to all models Arduino examples the Raspberry Pi community.
of Raspberry Pi via the GPIO So you will be thinking, can I use
pins and presents the familiar it just like an Arduino? Well, the Last word
ATmega328P microcontroller answer is a resounding yes! We
found in the most popular ran two tests that are the most The Duino really does provide
Arduino, the Uno. The digital and common ones when first dabbling the best features of the
analogue pins of the ATmega328P with Arduino: the Blink sketch and Arduino and shows that the
are broken out to a series of male Button sketch. We used the Blink Arduino and Raspberry Pi can
and female headers around the example found under Examples
work together to make bigger
and better projects. Alex has
board; providing both types of in the Arduino IDE and uploaded
created a lovely-looking and
connection is a nice touch and it to the board, ensuring that we
efficient board.
really goes the extra mile for first set up the Board and the
makers. Another nice touch is Programmer via the Tools menu,
breaking out the I2C, SPI, and a and then used the Upload Using
£15 / $23
Maker
Says
It will get
you flying
in the world
of micro-
controllers
Pimoroni
£16 / $25
Maker
Says
Precision
servo control
with ultrasonic
module
support
PiBorg
PIBORG
BORG ULTRABORG
A combined ultrasonic sensor and servo driving board, is the UltraBorg the all-in-one
add-on which roboticists have been craving?
esigned with the Raspberry functionality is controlled through tuning the servo limits as simple
D Pi in mind, but compatible
with any microcomputer or
an on-board PIC chip, which takes
the pressure off the Raspberry Pi’s
as possible, with sliders to adjust
the positions, and buttons to save
microcontroller that can talk I²C, processor and allows for accurate a startup position and set max/min
Related
the UltraBorg is aimed at robotics real-time control. rotation limits; these are saved
enthusiasts. Built to simplify the to the PIC processor’s EEPROM,
building of servo-based robots, the Easy to install which survives power cycles.
ADAFRUIT diminutive board provides support Installation of the board is The GUI is joined by a basic
16-CHANNEL for two device types: servos and straightforward using a simple demonstration program, showing
PWM/
ultrasonic sensors. software installation script available sliders for all four servo channels,
SERVO HAT
MINI KIT For servos, it provides four from PiBorg’s website, although along with distance reports from
Provided as a
channels of 16-bit control on a you’ll need to provide your own the four ultrasonic channels.
simple soldering bank of triple-pin headers on its 5V power supply. The board’s Elsewhere, the included Python
kit, this Adafruit left. This resolution, provided by a mounting holes are designed to allow examples make it easy for new
HAT may not
offer an easy
Toshiba pulse-width modulation it to be positioned in a variety of users to get started.
way to interface (PWM) chip and considerably orientations, including sharing the Pi
with ultrasonic higher than the 12-bit found on A+/B+ and Pi 2’s mounting holes and Last word
sensors, but can
control up to 16
most rival devices, indicates that piggybacking above to save space.
The UltraBorg is a great choice
PWM devices PiBorg has really thought its design The UltraBorg takes up the first six
for robotics projects, offering
– including through; this is confirmed by the pins on the GPIO header, leaving
servos. features rarely seen on servo
ability to save a startup position, the rest free – and while the limit of
control boards, but its four-
as well as maximum and minimum just four servos may seem troubling,
channel limitation – overcome
limits in the controller. it’s possible to daisy-chain multiple through daisy-chaining –
The ultrasonic portion of the UltraBorgs together to support as means it can get expensive for
board is, likewise, four-channel, many ultrasonic sensors and servos more complex projects.
£16 / $17.50 supporting the four-pin modules as your project requires.
adafruit.com common to most robot kits PiBorg has even thought to
and hobby supply shops. All include a simple GUI. This makes
£7 / $10
Maker
Says
The latest
addition to
the EduKit
family!
CamJam
CAMJAM EDUKIT 2
A tin full of tinkering kit, for less than a tenner.
Let’s take a look at CamJam’s second box of tricks…
he EduKit is a pocket- Python code. The worksheets Cost-effective
T money project box that’s
compatible with all
also cover creating an alarm
based on the PIR sensor, which
This kit and its predecessor are
very cost-effective and well-
Related
models of Raspberry Pi. Rather can detect movement; you supported starting points for
than produce an add-on board, the could, for example, trigger a anyone interested in getting
CamJam team have packaged all sequence of LED flashes and started with the GPIO pins on
EXPLORER the components needed to build buzzer sounds. One of the more the Raspberry Pi. While there
HAT PRO a number of physical computing challenging worksheets uses the are plenty of practical project
A more projects into a rather handy tin. DS18B20 sensor to read ambient examples included with the kit,
expensive
solution than
A follow-up to CamJam’s original temperature, but it can also it can be applied to countless
the EduKit. EduKit, the second edition is entitled be safely placed into liquid for other projects and ideas and even
However, with ‘Sensors’ and contains a lot of accurate measurements, perhaps a used with different electronics
analogue inputs,
capacitive touch
electronic components – enough to great cross-curricular activity for platforms. The accompanying
sensors, and a make six starter projects. In the kit introducing the Pi into a science online worksheets are excellent
motor controller you’ll find LEDs, buzzers, wires, and lab. Another worksheet focuses quality, and provide solid
featuring an H
Bridge, this is
a breadboard – as we did in the first on the LDR sensor to measure the instructions that get progressively
a great add-on EduKit – but there’s also a light- light in a room. Since it produces more challenging as you learn.
board for many dependent resistor (LDR), passive analogue values (something that
project types.
infrared sensor (PIR), and a DS18B20 the Raspberry Pi can’t process), Last word
temperature sensor inside. the EduKit 2 includes a capacitor,
A very high-quality, yet cost-
which will be charged and timed
effective starting point for
Worksheets using Python code to get the
many physical computing
So, what can you make with readings. The charge time is
projects. An essential purchase
these components? Using the six dependent on the flow of energy
for home and school learners.
downloadable worksheets, you controlled by the LDR, thus giving
£18 / $22.95
can start by controlling the LED the user an estimated analogue
shop.pimoroni.com
and buzzer with some simple value. It’s nicely done.
RASPBERRY PI
CASE SUPER-TEST
While the official Raspberry Pi case is cool, blogger Richard Waterworth compares
four of our favourite third-party alternatives for the B+ and Pi 2…
pi-supply.com
£9 / $14
SHORT OVERAL
CRUST PLUS
WINNERL
The Short Crust Plus is a fairly minimal The Short Crust Plus offers plenty of
Raspberry Pi case. It comes in two different ventilation on the bottom of the case, and
colour options for the base (black and white), the release trigger (also found underneath)
If you’re looking for a cleanly
designed, modern-looking
and this allows you to alter the overall look. allows you to easily remove your Pi. In
case with all the mod-
The top of the case is a smooth glossy finish, terms of cost, the Short Crust is reasonable
cons, you should definitely
which can turn into a fingerprint magnet, considering the high-quality plastic used.
consider the Short Crust Plus.
but it’s easily cleaned. The main base of It also comes with non-slip rubber feet and
the case is a rougher matte finish, which screw holes in the base, should you wish to
compliments the top perfectly. mount it under a desk or on a wall. Score
BEST
modmypi.com VALUE pimoroni.com thepihut.com
£22 / $35
Maker
Says
The
easy-peasy
robot for the
Raspberry Pi
Model A+
4tronix
4TRONIX AGOBO The Agobo is designed to cut a few corners in its pursuit of simplicity.
Gareth Halfacree puts it to the test…
he Pi2Go and lower- the battery holder in place, then Despite its low price, the Agobo
T cost Pi2Go-Lite wheeled
robots from UK-based
four brass pillars to support the
Pi itself. Unlike the Pi2Go, the
feels solid and robust. The thin
wheels don’t offer the traction
4tronix have proved popular, Agobo is compatible exclusively of its full-sized competitors, but
but there is still a gap in the with the Model A+ – a sensible the metal-geared N20 motors are
Related
market for a no-solder and even design choice, given its battery- surprisingly powerful for their
lower-cost option suitable for sipping power characteristics. size. The use of an off-the-shelf
educational use. Enter the Agobo. This attaches upside down and lipstick-style USB battery is
PHENOPTIX
Unlike the somewhat bulky connects to a female GPIO header clever, and it can run the device
MEARM
kit-form Pi2Go design, the Agobo on the Agobo board, and is then for a considerable time per
A desktop
robotic arm, is a single circuit board which secured in place with four screws charge, although the length of
the MeArm arrives with all the components and an optional but attractive the cable and the need to leave
requires a PWM pre-soldered. That’s not to say protective acrylic plate. it dangling from the back like a
controller add-
on for Pi use, but it’s ready-to-go: a small bearing The Agobo is billed as a tail is somewhat disappointing.
offers amazing assembly needs putting together hackable robot, and it certainly The downloadable Python code
control in an and screwing to the front, which is. The GPIO header is replicated examples are clear and work well.
open hardware
can be fiddly when the extended at the front of the board for the
Last word
package.
screws and spacers are required. addition of any extra hardware,
You’re well advised to do this over and a separate I²C breakout
While parts of its assembly
a container that will catch the makes the connection of sensors
can be fiddly and it lacks the
smaller ball bearings when the very simple if the on-board line-
features of its more expensive
cover slips from your fingers. following sensors aren’t enough
competition, the Agobo is a
for your needs. An optional
perfect introduction to simple
Trickiest part add-on dubbed the PlusPlate
wheeled robotics for owners
The bearing assembly is the provides a large prototyping area,
of the low-power Model A+.
£33 / $55 trickiest part of the process by programmable RGB LED, and an
phenoptix.com far, however. Once that’s fitted, nRF24L01-compatible socket for
there’s a single bolt to secure the addition of a radio module.
FREE
Maker
Says
An open
source OS for
exploration,
creation,
and play
– free for
Raspberry Pi
Kano.me
KANO OS BETA 2.0.0 Les Pounder tests a Raspberry Pi distro for kids, designed to teach
important computing concepts via a series of games and challenges…
he Kano first appeared as with setting up your Pi via a drop into a terminal and use
T a crowdfunding campaign
in late 2013. The startup
series of Matrix-style challenges.
Once set up, you’re presented
apt-get to install.
Kano’s interface is rather
sought $100,000 to produce a with a fresh interface that offers lovely, but at times it really did
Raspberry-Pi-powered computer common applications such as struggle to catch up with us and
kit that anyone could make. Sonic Pi, Scratch, and Minecraft. there were times, such as when
Related
They went on to smash their What’s particularly novel about loading the apps menu, where we
funding target, raising $1.5m, and Kano’s approach to learning is had to wait for a few seconds for
have subsequently successfully the team’s use of gamification the screen to populate. However,
RASPBIAN fulfilled rewards to their backers. (learning via a challenge-based Kano is a good choice for small
The default The latest Kano offering ships system), to encourage the user children who want to experience
operating as a kit consisting of a Raspberry to stick with it and make more learning for themselves, and
system for the
Raspberry Pi has Pi 2, case, speaker, and a rather progress. Each of the challenges could be used as a stepping stone
recently had a snazzy wireless keyboard. In built into Kano incentivises you on their learning pathway.
user interface this kit you will find a microSD to progress via an achievements
overhaul and
is now a lovely card with a copy of the Kano OS, scheme which tracks your Last word
looking and but you can download the OS progress and shares your status
well-supported for free via the Kano website with the other Kano users via
Kano OS is a bright and fun
platform way to learn computing and it
for projects. (kano.me/downloads). Kano World, an online resource
serves the target demographic
for additional Kano projects
rather well. Children and
Gamification created by members of the
parents can enjoy learning at
The latest version of the project’s community. As Kano is based
their own pace thanks to the
Raspbian-based operating upon Raspbian, it’s easy to update
clever games within.
system, Kano OS 2.0.0, provides a your software via the built-in
FREE
slick and child-friendly interface. updater, and if you require more
raspberrypi.org
On your first boot, you are tasked applications then you can easily
£33 / $55
Maker
Says
The
pocket-sized,
affordable
open-source
robot arm
phenoptix.com
MEARM
Russell Barnes tests an affordable, open-source robot arm
designed to get learners started with physical computing
hey’re at the core of you can buy a full MeArm kit, precision, you’re entirely missing
T industry and they’re soon
to be at the forefront of
including everything you need to
build a complete MeArm (minus
the point of the MeArm. That
said, we were happy with its
modern medical surgery. Robot an add-on board to drive the accuracy and its ability to recreate
arms also make brilliant learning servos), for just £33 / $50. predefined movements.
tools, especially for those wanting The design itself is very clever While there are plenty of
to utilise the GPIO pins on their and over the course of 2014 its options available to drive the four
Raspberry Pi. Historically, robot creators, Ben Gray and Jack servos (or even the option to buy a
arms have been just north of Howard, tweaked the design fully soldered Adafruit 16-channel
affordable for the average bedroom through four iterations, gradually servo HAT from phenoptix.com),
FREE
Maker
Says
We have
done what
we can to
optimise the
build for the
Raspberry
Pi 2
ubuntu-mate.org
FREE
Maker
Says
Ideal platform
for learning
and teaching
computational
thinking
Fuze
FUZE BASIC V3
Just like Lucy Hattersley, a whole generation of coders cut their teeth
on BASIC; follow in their footsteps with FUZE BASIC V3…
ew things divide the sudo raspi-config and enable I2C aside, this throwback is faintly
F programming world
as much as BASIC
support to get it to work, though,
but a preconfigured boot image for
ridiculous in the modern world.
The mere presence of line numbers
(Beginner’s All-purpose Symbolic newcomers is said to be on the way. and, God forbid, the GOTO
Instruction Code). Once a There’s a lot to discover in the function is enough to make most
standard inclusion with all home latest version. It includes new sprite programmers shudder.
Related
computers, BASIC was the first handling tools, enabling rotation, While you can define procedures,
language an entire generation size, and transparency. You can also this isn’t an object-orientated
of programmers discovered. import, rotate, and scale images, programming (OOP) language.
ARM BBC FUZE BASIC has quietly earned and new audio tools enable music The argument that children should
BASIC V its reputation as the best version playback and up to four channels move from Scratch directly to
ARM BBC
of BASIC for the Raspberry Pi. Part of sound effects. These join a stack another OOP language carries some
BASIC V is
included of this success can be put down to of comprehensive functions that water. But it could be argued the
with RISC OS sales of the FUZE Workstation (see make programming more fun. FUZE leap between Scratch and Python
(an option
page 177) to schools – you don’t BASIC can control a Maplin USB is too big for many newcomers, and
in NOOBS).
While it’s not need one to run FUZE BASIC. This Robot, draw on-screen graphics, FUZE BASIC is a great intermediate
as feature-rich provides a huge range of high- and manage GPIO. step that’s fun to use.
as FUZE BASIC
quality support materials: Project
V3, plenty of
manuals and Workbooks, Reference Guides Is FUZE good for you? Last word
guides are and Project Cards, all available FUZE BASIC V3 comes with a
available. The new sprite and sound
as free downloads. text editor and we found it ran
functions enhance an already
programs windowed by default.
creative learning platform,
Installing FUZE BASIC V3 So it feels more up-to-date than
but it’s the wealth of support
In previous versions, FUZE BASIC many versions of BASIC. Mind you,
materials that really make it
was installed using a preconfigured it still starts with a command line
special. Shame you have to sign
boot image (based on Raspbian). (known as Direct Mode) where
up to download it, though.
Now it is installed as a separate you can use line numbers and
FREE
download. We did have to dive good old-fashioned commands
riscosopen.org
into the Advanced Options using like LIST and RUN. Nostalgia
Maker
Says
Add low-
power display
tech to your
project today!
PiSupply
PI SUPPLY PAPIRUS
Les Pounder is keen to build his own e-reader with this low-power
E Ink display HAT, but can he?
Ink screens are an Raspberry Pi Camera Module. processing library, to convert
E attractive proposition for On the reverse you’ll find that a images to display on the screen.
Related
single-board computers, battery is fitted, to enable real- The hardware itself is very
but the biggest issue generally time clock functionality. well developed and built,
faced by users is the rather demonstrating the great care
EMBEDDED cumbersome array of breakout Software situation and attention to detail paid by the
ARTISTS boards required. To solve this, Currently, the software development team. The software
2.7-INCH Pi Supply has unleashed its latest installation is not for the faint- is another matter, but is still a
DISPLAY
E Ink add-on board, which uses hearted, and there were times work in progress. We have been
An inexpensive
development
the HAT (Hardware Attached on when the method wasn’t easy assured that the installation and
board for those Top) standard. to discern. However, with some demos will be ready for everyone
who wish to PaPiRus is an E Ink display and assistance, we were able to install to hack easily when the final
tinker with
E Ink displays.
controller board that has been the necessary software and run versions are released.
It’s not as neat designed to fit seamlessly onto the demos to test functionality.
as PaPiRus. the 40-pin GPIO found on the The demos supplied reveal Last word
Model A+, B+, and Pi 2. It offers how to use the various functions
a standard connector, to which of the PaPiRus and we were
PaPiRus is a great hardware
platform, fitting neatly upon
a range of different-sized E Ink pleased with the inclusion of a
the A+ and creating a small
displays may be fitted. For our temperature sensor and real-
footprint for projects. The
review, we opted for the largest time clock, enabling our Pi to
software is still in development
version, which has a diagonal retain the correct time without
and will hopefully improve with
size of 2.7 inches. Attaching the network connectivity. One
the help of the community.
screen to the board is simple, of the most powerful demos
£21 / $ 32
and uses a latch mechanism very is ImageDemo.py, which
bit.ly/1eXGaRN
similar to that of the official uses PIL, a Python image-
Maker
Says
Turn
your Pi into
a tablet or
infotainment
system
Raspberry Pi
RASPBERRY PI
TOUCHSCREEN DISPLAY
Related
The official 7˝ Touchscreen Display for Raspberry Pi is here,
but does it live up to expectations?
HDMIPI
t’s been a long time output from one the Raspberry Pi flexibility and allows you to power
I
The first screen
for the Pi was coming, but the official for the first time. both the screen and Pi in a couple
funded by
Raspberry Pi Touchscreen This high-quality 800×480 of different ways. It’s possible to
Alex Eames
of RasPi.TV on Display is here. It’s the first HD-ready display doesn’t connect either connect it to the Pi with 5V
Kickstarter. product to make use of the DSI directly to the DSI, though. and ground jumper wires, or via a
It was a great
port at the rear of your Raspberry Instead, it utilises an adaptor board micro-USB connector. This means
community
effort. Pi, meaning you don’t need to use which handles the power and you can power the Pi and screen
the HDMI port on your Pi to get signal conversion. The DSI cable with a single micro-USB wall wart,
video output. Why is that useful? comes from the Pi and connects though you’ll need to make sure
Not only does this mean that you to this daughter board, which has you’ve got a decent 2-amp supply.
don’t need to use a bulky HDMI exactly the same dimensions and
cable if you’re trying to make a mounting holes as a Raspberry Pi Quality package
small, self-contained
self touchscreen A+. There are only two connections You get a lot of technology for
project, but it also means you can needed: DSI and power. The £48 / $60. Along with the HD-
£75 / $110
output two different video signals, adaptor board takes care of ready screen and adaptor board,
hdmipi.com
via HDMI and DSI, for multi-screen the latter with a great level of you get all the stand-offs and
£48 / $60
Photos by Alex Eames – www.raspi.tv
screws you need to safely secure it Apple’s new force-touch technology Of course – and by Matt's own
to your Pi, a DSI ribbon cable, and for the iPhone 6s. admission – this barely scratches
four jumper wires for both power In a recent YouTube video the surface of what can be done
and communications. Pimoroni (youtu.be/Eah3Zq18OyM), Matt with the Touchscreen Display and
has also produced an excellent Richardson has demonstrated how some simple GPIO programming
Pibow-esque bezel with integrated Kivy, the popular and easy-to-use – we’ve got a great feeling that
stand in different colours. For a user interface creation library for Kivy is going to help bring a lot of
small premium, you can add your Python, can quickly and easily make brilliant ideas projects to the table.
chosen colour to the shopping good use of the touch elements
basket so you don’t have to worry of the Touchscreen Display, while
about propping the screen up or rigging up simple GPIO projects, too. Last word
3D-printing your own solution. In his example project, he has
Amazing picture quality,
created several on-screen buttons
ample connectivity options,
Touch friendly and a slider which interact with
and outstanding value for
The real star feature of the new his GPIO breadboard. Lights can be
money. Easily the best official
display, though, is its touch turned on by tapping the button,
Raspberry Pi add-on since the
capabilities. It’s actually capable of and PWM can be adjusted on the
Camera Module.
ten-point capacitive touch, opening fly with a slider to make it pulse
the door to some of the most faster or slower in response to your
advanced touch capabilities outside touch inputs.
Maker
Says
A full‑HD
audio quality
DAC and
amplifier
for the
Raspberry Pi
IQaudIO
PI-DIGIAMP+
PI-CASE+
WITH
Just add speakers: a complete hi-res audio DAC and amplifier in one
small board, no soldering required, with an optional stylish acrylic case
Raspberry Pi makes a great line out and headphone sockets The case is important, too, and
A audio streaming device, and
with the right add-ons is
which you get with the Pi‑DAC+.
The result is still spectacular,
IQaudIO also offers a good-looking
acrylic case which has cut-outs for
Related
capable of high-end performance as though: a complete audio streamer the speaker and power connections.
well as being cheap and convenient. to which you only need add speakers
The Pi has its own basic on-board and your preferred music source, Getting started
HIFIBERRY audio, but for the best sound you need such as Logitech Media Server, Assembling the DigiAMP+ is a
AMP+ either an external USB DAC (digital Apple AirPlay, Spotify, or simply an matter of screwing four spacers to
HifiBerry offers to analogue converter), or an add- attached hard drive full of music. the Pi, mounting the board, and
the Amp+,
which includes on board. An add-on is preferable, The Digi-AMP+ can also be used securing it on the spacers with
a standard since it will use the Pi’s I2S interface, in other projects where you need screws. Note that if you are using
resolution DAC, a dedicated digital connection that audio, such as in-car entertainment, the IQaudIO case, you also need
as well as the
DAC+ (hi-res avoids USB and reduces CPU load. custom digital jukeboxes, robotics, four small spacers which fit on the
DAC) and Digi+ IQaudIO already offers a DAC (the and more. The board is HAT underside of the Pi. We were using
(dedicated Pi‑DAC+), as well as a second board (Hardware Attached on Top) the case, so the next thing to think
S/PDIF digital
output). (Pi-AMP+) which provides a 2×20W compliant, which means it complies about is fitting the assembled
Class D amplifier on a board that with the official Pi recommendation unit into the case and attaching
mounts on the Pi-DAC+. for size and auto-configuration. the speaker cables.
Now the firm has combined the The Pi does not supply enough This is a slightly tricky operation,
two products into the Pi‑Digi‑AMP+, power for an audio amplifier, so the the reason being that the speaker
a single-board solution which also DigiAMP+ requires an additional 15V cables are secured with small
saves around 30% compared to power supply, such as the XP Power screws that are not accessible once
£45 / $65 buying the two previous products. VEH60US15 available from IQaudIO. the top of the case is fitted. Just
18V/60W The DigiAMP+ is based on the Texas This also powers the Pi itself, and to make this more fun, the case
power supply
Instruments TAS5756M chip and it is important NOT to connect USB is a jigsaw-like construction that
£18 / $26
supports up to 24-bit/192kHz PCM power as well, once the DigiAMP+ falls apart until the top is fitted,
hifiberry.com
audio. It is not all gain: you lose the has been fitted. which is why the guide suggests
Maker
Says
A perfect
tool for
creating
pixel art and
animation
WetGenes
SWANKY PAINT
Designed by and for pixel artists, does Swanky Paint deliver
on its promise of a modern Deluxe Paint? Lucy Hattersley finds out…
igital artists of a certain download tokens, each of which can and a selection of rendering filters
D age will remember fondly
the Commodore Amiga
be redeemed for a single download;
when a new version is released,
which simulate cathode-ray tube
displays. Even animations are
and, in particular, Deluxe Paint. another Dime must be spent to handled smoothly, and attractive
More than two decades after it was download it. images are easily created using the
discontinued, ‘DPaint’ still has Novel distribution method aside, various brushes and tools.
fans who will be pleased to hear Swanky Paint is straightforward The software, in alpha at
that there’s a spiritual successor. to install and run. A ZIP archive, present, is undeniably a work-in-
Developed by Bradford-based weighing in at just shy of 10MB, progress, but the team behind it
WetGenes, Swanky Paint will be contains all the versions bar are releasing improved versions
Related
immediately familiar to anyone the Android build. Copying the all the time. A pair of bugs
who worked in digital art back files to a Raspberry Pi acts as encountered during testing –
in the 1980s and 1990s. the installation; executing the preventing the mouse from being
MTPAINT Currently available as a cross- ‘gamecake.raspi’ application at the detected, and spamming text to the
Created by
platform alpha build, as well terminal loads the software itself. console – were quickly fixed and a
Mark Tyler and
maintained by as a Raspberry Pi-compatible Interestingly, an X desktop session new release issued accordingly.
Dmitry Groshev, executable, the download includes is not required: Swanky Paint can
mtPaint is a
versions for Linux on 32-bit and be loaded directly at the console,
very lightweight
image editor 64-bit PCs, Windows, and OS X, and or the Pi configured to boot directly Last word
with a pixel- there’s even an APK file for Android into Swanky Paint if required.
art bent.
devices. Swanky Paint is certainly When it loads, Swanky Paint
Although in the early alpha
stage of release, Swanky Paint
flexible. Sadly, the download is attractive and simple. DPaint-
shows real promise. For fans
process isn’t straightforward: inspired keyboard shortcuts make it
of Deluxe Paint, it’s certainly
available exclusively through quick to use, and there’s an amazing
worth trying out for its low cost
WetGenes’ Dimeload platform, amount of flexibility for pixel
FREE and wide range of features.
users must register an account, artists, including colour palettes
mtpaint.
then pay a minimum of $1 for based on classic computers like the
sourceforge.net
10 ‘Dimes.’ These Dimes act as Commodore 64 and ZX Spectrum,
THE FUZE
An attractive, robust workstation for the Raspberry Pi, but Ian McAlpine
wonders if it is more than just a keyboard and case?
he FUZE may appear to be switches, light sensor, and a The FUZE I/O board is unique
T just a case and keyboard,
but closer inspection
7-segment display. There are also
numerous breadboard wires of
to FUZE. It exposes a clearly
labelled Raspberry Pi 26-pin
reveals this to be a well-thought- different lengths, which help to header so other add-ons can be
out ‘workstation’solution that avoid the ‘bird’s nest’ appearance installed, but it also breaks out
encourages experimentation. It is of projects. Additionally, the T2-B the more common connections:
excellent for home use and ideal includes three superb spiral-bound Ground, 5V, 3.3V, PWM, plus eight
for schools. manuals: a 90-page FUZE BASIC buffered GPIO ports. As a bonus,
The FUZE is available in three tutorial and workbook, a 168-page the FUZE I/O board also offers
main versions: the T2-A, T2-B, and FUZE BASIC manual, and a “pocket- four analogue in ports and one
Maker
Says
It allows
you to build
3D structures
and shapes
Velleman
VELLEMAN
3D PRINTING PEN
Gareth Halfacree asks if this can be an affordable alternative to a 3D printer
D printing is an undeniably of its predecessors, taking the Controls are located on the
£59 / $90
once heated, indicated by an LED, The instructions supplied with the locking system – the filament pours
the filament is inserted into the pen, along with three coils of PLA out too quickly to be of any use.
rear and the feed button depressed filament, warn that the device is for The thin nature of the filament
until it appears from the nozzle educational use only; that certainly extruded by the pen is another issue:
at the front. seems to be the case in practice. Any when a 3D printer spends six hours
It’s here where things start to attempts to recreate the Parisian carefully placing thin lines of plastic
feel a little clumsy. The box shows landmark shown on the box will end down it’s no real problem, but after
someone using the pen to ‘draw’ a in frustration, and using the pen for a few minutes - nowhere near long
three-dimensional representation practical purposes seems unlikely. enough to create anything exciting -
of the Eiffel Tower; in practice, Treating the pen more like a true your arm will soon tire.
drawing something as simple as 3D printer and constantly moving
a wireframe cube is an exercise in
frustration. Without the heated bed
backwards and forwards to create
a solid surface almost works, but
Last word
of a 3D printer, the filament often the inaccuracy of a human operator Treated like the toy it is, the
curls or warps as you’re working; means that results are unattractive. Velleman 3D Printing Pen is an
once you leave the support of a 2D Worse, the speed control is near- interesting device, but it’s not
surface to create the vertical struts, unusable: a few millimetres into the something that can take the
the filament proves too soft for too slider’s movement, the speed goes place of even the cheapest of
long, although it’s possible to get from ‘glacial’ to ‘usable,’ but one true 3D printers.
somewhat better results by blowing millimetre past that - and easily
across the filament as you’re knocked into during use, thanks to
drawing, to cool and harden it faster. the slider’s position and lack of a
£61 / $75
Maker
Says
So small
and simple,
you can use
this display
with any
computer
that has
HDMI output
Adafruit
ADAFRUIT HDMI
BACKPACK
Les Pounder looks at a portable 5-inch touchscreen that has a clear
picture, on-board hardware, and comes ready to go
ortable screens for your we encountered was calibrating and keyboard, the most likely
P Raspberry Pi are becoming
more commonplace, but
the AR1100. The calibration
software is currently Windows
cause being the AR1100 reacting
to the event.
there has yet to be a neat and cost- only and is provided by the chip The screen is bright and easy to
effective portable display. Adafruit manufacturer, not Adafruit. With read, providing enough space to
has stepped into the breach and the touchscreen configured, work, even for applications such
built the HDMI Backpack. The we followed the guidance on as Scratch and Sonic Pi. The screen
Related
screen comes in 5˝ (12.7cm) and Adafruit’s website on how to edit does not come with a speaker,
7˝ (17.8cm) sizes, both with an our config.txt file to ensure the though, thus requiring the use of
800×480 resolution, which is correct screen resolution. an external speaker attached to the
HDMIPI ample for Raspberry Pi projects. 3.5mm headphone jack.
Funded via
a successful Powered by micro-USB This is a great screen that merges
Kickstarter, this Common connections We then powered up the screen portability with great design and is
1280×720 HD
Connection is made via an HDMI from an external power supply – another great Adafruit product.
screen inside a
custom case is a interface which connects to you can power the unit from the
rugged platform the built-in TFP401 HDMI/DVI Raspberry Pi itself and there are Last word
that’s suitable
decoder. Power is supplied via an instructions on how it’s done.
for children. Adafruit has always produced
on-board micro-USB, and this – At full power, the screen takes
quality components, and this
along with the HDMI – results in a only 500mA for the display and
screen is no different. The
very neat board. We tested the 5˝ the backlight; the latter can be
portability of the board, thanks
touchscreen version which comes controlled via PWM (pulse-width
to its decoder and power,
with an AR1100 touch controller, modulation), which can see the
makes the HDMI Backpack
again built into the board. The current draw reduced to 370mA.
great for any type of project.
AR1100 simulates a mouse and We found that when powering the
£75 / $117
enables control of the mouse via unit from a Pi, it became glitchy
hdmipi.com
the touch interface. One issue that once we unplugged the mouse
£10 / $16
Maker
Says
Real-
time clock
and power
management
for
Raspberry Pi
UUGear
WITTY PI
Set your Raspberry Pi to routinely switch itself on and
off again with this handy power management board
he Raspberry Pi is Having an On/Off button is the Raspberry Pi and log the time
T intentionally light on
features, and one of the
neat, but more important is the
wittyPi.sh script used to automate
to a file.
Witty Pi has three jumpers. One is
Related
things not included is a built- power functionality. The script used to determine if the Raspberry
in battery and real-time clock. is used to set the date, hour, Pi auto-starts when you connect
Witty Pi is a small extension minute and second to start up and the power. The other two can be
MINI RTC board that adds a clock battery shut down (although the second used to connect specific GPIO pins
MODULE
and real-time clock functionality function is absent from shutdown). to control startup and shutdown,
The Mini RTC
module adds to the Raspberry Pi. More Entering 15 07:30:00 ensures that offering some interesting electronic
a real-time importantly, Witty Pi provides the Raspberry Pi starts up on the integration options. Witty Pi is
clock to the
power management functionality, 15th day of the month, at 7:30 in the also beneficial for battery-powered
Raspberry Pi so
it can remember enabling it to start up and shut morning. You use ‘??’ as a wildcard: projects: these can run for weeks
the time when down a Raspberry Pi. ?? 23:30:00 starts the Raspberry Pi if you turn the Raspberry Pi on for
it starts up.
at 11:30 every night, and ?? ??:30:00 brief durations rather than keeping
It doesn’t
provide power Setting up the Witty Pi starts it up at half past every hour. it switched on.
management Setting up the Witty Pi is easy. There are limitations: you can’t
functionality,
though.
The expansion board connects to set Witty Pi to come on twice a day Last word
the 40-pin GPIO header on the or every Monday, for example.
Raspberry Pi, and a set of copper
Witty Pi is a simple extension
stand-offs can be used to mount Testing the Witty Pi that enables you to schedule
startup and shutdown for your
the board securely. The power We set up Witty Pi to come on at
Raspberry Pi. We would like to
cable is connected to the Witty Pi five minutes past every hour and
see more complex scheduling
(instead of the Raspberry Pi), and switch off at 15 minutes past every
options, but it worked perfectly.
pressing the On/Off button on the hour, and it performed admirably.
£5
Witty Pi automatically starts up We used a script in /etc/rc.local
thepihut.com
(or shuts down) the Raspberry Pi. to run each time we started up
RETRO GAMING
On Test
> RetroPie
blog.
petrockblock.
GROUP TEST
com/retropie Get your rose-tinted glasses at the ready: here are three
> PiPlay of the best emulator packages for the Raspberry Pi…
piplay.org
> Raspicade
sourceforge.
mulation is a wonderful thing. Much like
net/projects/
raspicade E an old police box or a 1982 DeLorean, it can
take us back in time to when we were driving
in a Grand Prix, saving the world from the brink of
destruction or simply creating lines out of falling
blocks while waiting for the bus. We have a rich
heritage of computer gaming, and with the help of the
Raspberry Pi 1 or 2, it’s beautifully preserved through
the emulation software we’re looking at today.
It’s not all rose-tinted glasses, though. Emulation
does have its issues, and chief among them is the
legal grey area surrounding ROMs. A ROM is a
dump of the game code contained in a file, so ROMs
represent your favourite games from yesteryear
when loaded into your chosen emulator.
Of course, that game code is copyrighted software,
created by companies with the specific goal of
making money. So how can you play retro game
ROMs legally? This is the grey area we face.
Obtaining retro-gaming ROMs is your own
responsibility, so we’ll leave you to make
your own investigations online.
Legality aside, emulation provides a
virtual museum of computing in your
home, and will most likely be used to
keep the knowledge of these times
alive, long after the hardware
has gone to silicon heaven.
Let’s get cracking…
PiPLAY
PIPLAY WAS CREATED BY AUTHOR AND RETRO FIEND SHEA SILVERMAN, VIA
A SUCCESSFUL KICKSTARTER THAT RAN IN MAY LAST YEAR
Best
FOR FEATURES
RETROPIE
RETROPIE IS THE DARLING OF THE EMULATION SCENE, THANKS TO THE MANY
TOP-CLASS ARCADE BUILDS THAT ARE POWERED BY ITS SLICK INTERFACE
Best
OF THE BUNCH
Final word
A seriously powerful and configurable experience that
offers the best overall experience for those who know
their stuff, or don’t mind taking the time to learn.
Score
Above All the Mega Drive games we tested performed well
RASPICADE FINALLY, WE LOOK AT RASPICADE, WHICH IS DESIGNED TO PLAY WELL WITH THE
SPECIFIC NEEDS OF ARCADE CABINETS AND INTERFACE WITH ARCADE-QUALITY
Best
FOR NEWBIES
Right Raspicade
rather confusingly
comes with
two Mega Drive
emulators
by default
Installation of Raspicade is equally as easy as the RetroPie. Given the latter fact, we reviewed using
other two emulation offerings on test, and it took Emulation Station 2 to ensure a fair test.
a grand total of ten minutes to get running from a First of all, we configured the joypad to work
standing start. with Emulation Station, which seemed to go well,
Raspicade is a little different to the others on test, but found that there was no way to create a default
inasmuch as it comes with a configuration script configuration, so we needed to repeat the process
that runs every time the Raspberry Pi boots. Among for each emulator we tested. Elsewhere, we found
other things, the script configures the audio output, two instances of ‘Sega Genesis’ in the interface; since
enabling you to choose between the 3.5mm audio jack the software used both PicoDrive and dgen Mega
and the HDMI port, something lacking from the other Drive emulators, we decided to test the latter, which
solutions. The script also handles your IP address and, is supported in all three options on test today.
in another interesting twist, allows you to choose As before, we tested all three Sonic games and
between three user interfaces: a simple Raspicade Streets Of Rage 3. All played fluidly, with no issues
bespoke interface, Emulation Station 1 (which is to speak of. Next, the SNES emulator handled Super
Below Raspicade
an older interface but very light on resources) and Mario World and Street Fighter 2 with ease, but Star Fox
and RetroPie share
the same interface Emulation Station 2, which comes as standard on refused to play along.
While we weren’t terribly surprised at that, we
were disappointed that Raspicade doesn’t offer
a PlayStation emulator, so we fired up the NES
emulator and tried a built-in game called Solar Wars,
which – unsurprisingly – worked really well.
Final word
Overall, Raspicade is a good retro-gaming distro, and
it provides a low barrier for entry for those wanting
to dip their toes into emulation for the first time.
Score
DOS
WHAT: Before Windows, there was DOS.
Short for ‘disk operating system’, it was driven
by command prompts rather than the graphical
user interfaces to which most computer users
are accustomed today.
Stats
Why give BASS away? Developer: Revolution Software
The game’s director, Charles Cecil, Released: 1994
discusses his decision to make Formats: DOS, Amiga, Amiga CD32
Beneath a Steel Sky a freebie. Emulator: ScummVM
“BASS was originally published for DOS, way back in Even though Beneath a Steel Sky is what is going on, the game throws a
1993, so when Windows 98 stopped supporting DOS celebrating its 21st anniversary, major curveball and it will have you
a few years later, it looked set for oblivion. We were this cyberpunk point-and-click begging for more.
approached by a group calling themselves ScummVM, adventure will certainly enthral you Much of the game is laden with
looking to resurrect point-and-click adventures by today. Inspired by the Mad Max and humour, but there is also lots of
converting the source code to run cross-platform. We Blade Runner films, it tells the story drama, with Robert’s backstory
duly provided them with all the assets. of Robert Foster, who is taken under brought to the fore through the little
“One of the leads, Joost Peters, later came to work for the wing of indigenous Australians quips between him and Joey. The
Revolution and is now our technical director. We felt since following a plane crash, only to later game was made using Revolution
we were unable to sell the game, that we should give see his adopted family slaughtered Software’s Virtual Theatre game
it away for free. I wish I could claim this was a stroke of by the army. Foster is flown to Union engine, a ‘rival’ of sorts to LucasArts’
marketing genius, but actually it was more about doing City, but he suffers a second crash SCUMM engine. It helped lend the
what we felt was fair. It has ensured the game is very which allows him to escape and game a realistic edge and allowed
widely played, particularly on Linux-based computers.” search for answers with his robot the non-player characters to wander
pal, Joey. The game is a stunning tale around rather than remaining fixed
of hope amid oppression and it will in one spot.
keep you engrossed for hours. Revolution released the DOS-
Keep clicking Players are expected to solve a based version of Beneath a Steel Sky
The ScummVM emulator allows you to play a host of series of intricate puzzles, each one as freeware a few years ago, so it
point‑and-click adventure games. It was originally based developed to drive the narrative means you can legally play it on your
on the SCUMM engine created by LucasArts’ Ron Gilbert forward. As you look for clues and Raspberry Pi for free. There is no
and Aric Wilmunder. Learn more at scummvm.org. search for items that can be used doubt that you should.
Here is the pick of the bunch: to create often mind-bending
solutions, you are introduced to a
The Secret of Monkey Island host of characters. By engaging in
Introducing hapless Guybrush interactive conversation with them,
Threepwood to the gaming world, the dialogue enriches the story and
this swashbuckling 1990 release was helps to unravel the mystery. But
chock full of great humour, mind-bending just as you think you may know
puzzles, and sword fights that were a battle of sharp,
insulting wit. It was no surprise that Monkey Island spun into
an award-winning four-game series that is still loved today.
GAMES
GAMES
GAMES
Broken Sword King’s Quest
Released a fair few years before Dan King’s Quest was a popular In order to play
games on your
Brown’s The Da Vinci Code, this game graphic adventure designed by Pi, you need
throws players deep into the legend Robert Williams, the co-founder to get hold of
of the Knights Templar. Starring of Sierra On-Line, using the Adventure Game Interpreter the gaming
ROMs. It’s worth
American hero George Stobbart engine. The series followed the saga of the Kingdom of checking out
and French journalist Nico Collard, it takes players on Daventry’s royal family. Watch out for some memorable Emuparadise,
a fantastic journey across France, Ireland, Syria, Spain, guest appearances from the likes of Dracula and Little but read the
legal boxout on
and Scotland. Red Riding Hood. page 188 first.
Nintendo
Harking back to the 8-bit days of
Nintendo, notably the NES and the
Game Boy, is arguably to take a trip
down into the origins of the modern-
day gaming scene. Nintendo’s
machines were blessed with
amazingly well-designed games.
INTERVIEW
Bare-metal Doom
First-year students at Imperial College London
have produced a bare-metal partial clone of Doom
for the first-generation Raspberry Pi in 9,800 lines
(see hackaday.com/tag/bare-metal). Csongor Kiss
Stats
tells us more about it…
Developer: id Software
Released: 1999
MagPi: Where did the idea come from?
Formats: Windows, Linux, OS X,
Csongor Kiss: As part of our first-year project,
Dreamcast, PS2
we were challenged to make whatever we could,
Genre: First-person shooter
limited by the constraint that it had to work on a
Raspberry Pi, and be coded in bare-metal assembly. If you love Doom, you’ll adore
It turned out to be not so large a constraint. Quake III Arena. It’s a frantic, Pads take the place of lifts and
no‑nonsense first-person arcade ladders, enabling a greater level
MagPi: What did the Pi bring to the table? shooter which runs well on the Pi, of fluidity in the action.
Csongor Kiss: The Pi is more powerful than the pitting players against 30 artificial One of the game’s designers,
machines running games like Doom on release, intelligence bots in a game that Graeme Devine says he is thrilled
which let us use a higher screen resolution and eschews a plot in favour of all-out the Pi has the power to open up
better-quality textures than those of the original. fun. The design is deliberately Quake III to a new audience. “I
minimalist, yet it looks amazing have a Pi sitting right here on my
MagPi: What was the process of making and it plays at a fast speed, giving desk,” he tells us. “It dizzies me
the conversion? gamers a good choice of weapons that something so small can do so
Csongor Kiss: The only thing sourced from the - check out the rocket launchers, much, and the fact that people can
original game were the textures. Everything else shotguns, and the melting plasma look through the Quake III source
was built from scratch. We used the Doom wiki for gun – while thinking about ease just opens up so much possibility
inspiration for things like level design and gameplay, of movement around the playing all over the world. It feels like the
but coded it from the ground up, just as you would area. Accelerator Pads and Bounce games industry can explode again.”
for any other project.
ARCADE Metal Slug
Best of the arcade For those who love run-and-gun
Standing for ‘Multiple Arcade platfomers, the Metal Slug series
Machine Emulator’, MAME is a way is nigh on perfect. The original has
of playing a host of coin-op arcade stood the test of time, giving players
games, many of which were seen control of an eight-way joystick and
as cutting-edge in their day… letting them loose on six levels of
shooting, bombing, and jumping.
Street Fighter II: The game, while
PORTING A COIN-OP The World Warrior basic in premise,
When Street Fighter II was released helped to establish
Many arcade games were ported to home computers and
consoles. Things didn’t always go according to plan, however, into the arcades in 1991, it sparked the Neo Geo MVS
as Ste Pickford, who worked on Ghosts ‘n Goblins, recalls. a huge boom in fighting games. Not arcade platform.
only did it truly establish some well-
“I was given a pile of photographs taken from the screen of the
arcade machine by the publisher, Elite, and asked to ‘do the known virtual fighters, including Ghosts ‘n Goblins
graphics’ from that. I had no sense of the layout of the levels Ryu, Chun-Li, and Guile, this deeply Capcom’s Ghosts ‘n Goblins series
or anything. So I went to Stockport arcade with a sketchbook
strategic title also showed the was a very hard and yet rewarding
and stood next to its Ghosts ‘n Goblins machine, watching
people playing, and sketching the level from what I was seeing. importance in giving players special game, thanks to impeccable level
People kept dying and starting over, but I had a decent sketch moves unique to each character. design that makes it fun to play,
of the first level and needed someone to get to level two, but
regardless of how many times you
eventually the arcade owner spotted me and accused me of
‘ripping off his machines’. I was barred. are nobbled. Players assumed the
“Programmer Nigel Alderton arranged to drive me to Elite’s role of a knight called Arthur in a
offices in Walsall to play their machine instead. It had been
zombie-strewn
set to free play with infinite continues, but it took us hours and
hours to get to the end. We finished around 5am and drove land, and you
home to Stockport. But I was only 15 at the time, and it hadn’t only needed
occurred to me to phone home. My parents were frantic and
two hits to
on the verge of reporting me as a missing person. Still, I had
the level layouts, so everything was fine.” lose a life.
BESTSELLERS PROJECTS
at the end of the book, there’s still
a wealth of material. Following a
recap of core Python, it’s straight
Wiley’s top three bestselling Pi books into scripts to access the operating
shouldn’t be missed… Author: Laura Cassell
system, then managing data. Useful
& Alan Gauld
Publisher: Wiley exercises, along with summaries of
ADVENTURES IN Price: £30.99
ISBN: 978-1118908662
what’s been learned, cement the
RASPBERRY PI tinyurl.com/kp9w24q
education experience.
After desktop and web
2ND EDITION applications comes the tools
Author: Carrie Anne Philbin You’ve completed the Python you need for working on larger
Publisher: Wiley tutorial – or beginner book, or projects: testing, debugging, tuning,
Price: £14.99
MOOC – and you’re ready to move structuring, and releasing – all
ISBN: 978-1119046028
on. If you learned programming in essential information. The book
tinyurl.com/oov562q
order to join or begin a particular closes with a look at areas you may
Nine projects – with project, no problem, but if you want to try next: SciPy, Pygame,
encouragement, hints and didn’t, then where to go next drawing modules and animation, as
tips – to take 11-15 year-olds to learn what you can really do well as the aforementioned physical
through coding, games, Minecraft
and music on the Pi, as well with Python is a problem. Or, computing. Plenty to inspire you to
as GPIO-based projects, with rather, it was before Cassell and further Python adventures.
accompanying videos on the Gauld produced this excellent
website. Full review on page 194.
compendium of ideas and projects
to take you beyond beginner, and Score
RASPBERRY PI USER get learning by doing.
PYTHON
& Gareth Halfacree
intelligence of the reader, but
Publisher: Wiley
Price: £14.99
doesn’t assume detailed networking
ISBN: 978-1118921661 knowledge -
tinyurl.com/k4dc6zd introducing
Author: Justin Seitz
Publisher: No Starch information if it
Updated for the Model B+, Price: £23.50 is necessary for
the official guide remains ISBN: 978-1593275907 progressing through
an invaluable introduction tinyurl.com/pts7hm6 the book. For example,
to all things Pi, particularly
physical computing. Aimed SSH tunnelling is
at beginners, the enthusiasm Python is a popular explained, but the
and depth of knowledge give choice in the field of reader is left to look up
something to every reader.
information security, any extra information
and penetration she may want on the
ESSENTIAL
JAVASCRIPT games and animations, readers
will learn objects, arrays, click
READING: PYTHON
FOR KIDS
events, flow control, Boolean
operators, and HTML. This Python makes a great first language, but choose
culminates in a graphical a book that matches your learning style…
Snake game, using
Author: Nick Morgan
Publisher: No Starch the canvas element, Learn Python the Hard Way
Price: £23.50 and suggestions of (Third Edition)
ISBN: 978-1593274085 where to go next.
Author: Zed Shaw
tinyurl.com/pz8zyxx Extra programming Publisher: Addison Wesley
challenges, ending Price: £24.99 (free online)
The Pi is a great each chapter, balance ISBN: 978-0321884916
tool for learning interest and learning. learnpythonthehardway.org
LAUREN
Publisher: CreateSpace
tradition of Lewis Carroll, it follows
Price: £13.97
the adventures and encounters of ISBN: 978-1482374810
IPSUM
Lauren Ipsum, lost in Userland. tinyurl.com/bgj8zq9
From Recursion Junction to
the Push & Pop Café, meeting Get Pythonic from the start. Concise guide
to idiomatic code; best after another text,
characters like Hugh Rustic and but suits some brave learners.
Author: Carlos Bueno
Publisher: No Starch
the Wandering Salesman, Lauren’s
Price: £11.50 journey takes the reader through a Dive Into Python 3
ISBN: 978-1593275747 history of ideas and logic. Author: Mark Pilgrim
laurenipsum.org Bueno has an engaging style and Publisher: APress
the lessons are so integral to the Price: £35.49
Wow! The number of great characters (Zeno’s tortoise finds ISBN: 978-1430224150
diveintopython3.net
coding books to appear in the infinity in two inches of string)
last few years, aimed specifically and stories (your kids will want to Dives straight into code, then the
at children, has been a very try the circle-drawing algorithms explanations follow. A concise but
comprehensive start that will appeal
encouraging part of the movement in Logo or Scratch) that there
to independent study types.
to get young people coding. But is no feeling of forced learning.
coding – although fun, creative Recommended for anyone of any Learning Python – 5th Edition
and rewarding – is only a part of age who wants to learn, this book
Author: Mark Lutz
computational thinking, which would make a great introduction Publisher: O’Reilly
is a set of problem-solving skills for schools grappling with the Price: £43.50
including, but not limited to, new curriculum - were it not too ISBN: 978-1449355739
tinyurl.com/mehbnpo
algorithms, data modelling and entertaining to be a textbook.
logical thinking – invaluable in Comprehensive doorstop (1,600 pages);
today’s world. great for programmers new to Python
A computer science book with no Score and object orientation. Covers
Python 2.7 and 3.3.
computers in, written in the grand
RASPBERRY PI ADVENTURES
IN RASPBERRY PI
is introduced in enough detail
for those who haven’t used it
BESTSELLERS
before, turtle graphics, Python,
the fractal layout – starting with Score used in Java 8, Scala, Groovy, and Clojure.
DEVELOPMENT
Price: £26.50
a lot of unnecessary discussion ISBN: 978-1449367930
BESTSELLERS
using the Pi for bugs, calls, and
JAVASCRIPT
Price: Free online a treat to read, but Croll isn’t
ISBN: N/A slow to underline the
tinyurl.com/k4pd38p
persuasive calls of
Author: Angus Croll
different approaches to
Popular online course which Publisher: No Starch
“takes you through the Price: £13.50 problem solving.
basics of operating systems ISBN: 978-1593275853 Complemented
development in assembly
nostarch.com/hemingway by Miran Lipovac� a’s
code”, and starts with
controlling the GPIO pins illustrations, these
directly. Still mostly works A valuable portraits of the artist as a
on newer Pis.
counterweight to coder throw up countless
the excellent but prescriptive gems, from memorable variable
ARM SYSTEM Crockford guide to JS [see sidebar names to insightful snippets into
about automating tasks for busy So it should prove an inspiration as One of the best introductions to programming
Linux systems administrators – a well as a useful reference. anywhere, updated for current JavaScript,
and expanded with projects and more.
deeper Linux understanding will GNU/Linux doesn’t need
enable you to get far more out of 750-page books because it’s
Raspbian and your Pi. Although complicated, but because it’s
JavaScript & jQuery: Interactive
comprehensive and detailed, this powerful. Very powerful. You can
Front-end Web Development
Author: Jon Duckett
guide assumes no prior Linux live happily with Raspbian without
Publisher: Wiley
knowledge and explains much knowing three-quarters of what Price: £26.99
of what’s happening internally, Blum and Bresnahan examine here, ISBN: 978-1118531648
making a useful tutorial, as well as but this is a great collection of Linux javascriptbook.com
reference, for the non-GUI world. knowledge when you do need it.
Strikingly presented introduction to both
The first section, on the adding interactivity with JS and speeding
command line, covers similar areas up your development using jQuery.
to The MagPi’s own command line Score
introductory series (available as Automate with Grunt:
The Build Tool for JavaScript
ELIXIR
Price: £11.50
easy syntax, powerful ISBN: 978-1941222119
macros, and standard library tinyurl.com/nexephh
will get you up and running
Author: Dave Thomas Focused guide to understanding the complete
so quickly, you may not
Publisher: Pragmatic JS build environment - use Grunt to convert code,
Price: £23.99 notice that Thomas’s well- run tests, and produce distributions for production.
ISBN: 978-1937785581 structured book is carrying
tinyurl.com/o3r7yrl you so far through the Data Visualization
learning experience. with JavaScript
Elixir runs on The real strength of this Author: Stephen A Thomas
the Erlang VM and is a functional work is in shifting how Publisher: No Starch
Price: £26.50
programming language that’s you approach coding, teaching
ISBN: 978-1593276058
great for concurrency. It needs a functional thinking. nostarch.com/datavisualization
more recent Erlang version than Much shorter than Thomas’s
the one in Raspbian, but installing famous ‘pickaxe’ book on Ruby, Communicate! Tree maps, heat maps,
network graphs, word clouds, and even pie
one is easy enough – or SD card it’s about putting the fun back charts – interactively and in your browser.
images are readily available from into programming, in a world
someone who’s already done the of multi-cores and adequate JavaScript: The Good Parts
job. That done, you want a quick RAM, that begs for functional Author: Douglas Crockford
way to dive in and learn: enter programming but without the Publisher: O’Reilly
Dave ‘Ruby Pickaxe’ Thomas’s academic trappings. As it says: Price: £19.99
practical introduction. “It’s tomorrow already. ISBN: 978-0596517748
tinyurl.com/3zpqdh5
Aimed at existing coders, the Are you ready?”
book dives straight into functional Small but dense, and very rewarding,
programming (“programming but not the first JavaScript book you
should be about transforming Score should read. You’ll be rethinking your
entire approach to coding in JS.
data”) and the power of Elixir’s
PROGRAMMING
MAKER PRO
and other projects, familiar and
learning coding each chapter you’ll have Understand interaction design and you
(see the Scratch another stage of the game won’t be doomed to join the ranks of
Bestsellers sidebar), but we’re complete, feeling some sense frustrating, unusable websites.
FUNCTIONAL
recursion, lazy evaluation of all Publisher: O’Reilly
Price: £53.50
expressions, and an optimising
PYTHON
ISBN: 978-1449374020
compiler, but functions are first oreil.ly/1QOzUJC
class objects in Python and the
PROGRAMMING language does have all of the Love it or loathe it, you’ll find
MySQL everywhere, so try O’Reilly’s
things you already love about it.
comprehensive tutorial and reference.
Author: Steven Lott Lott shows you how
Publisher: Packt to add to these, using SVG Essentials, 2nd Edition
Price: £30.99 Python to implement Producing Scalable Vector Graphics with XML
ISBN: 978 1784396992 functional tech
techniques Author: J David Eisenberg,
bit.ly/1JMnhee Amelia Bellamy-Royds
and design patterns.
If you really want to throw Publisher: O’Reilly
Price: £26.50
If you’ve wanted yourself into functional
ISBN: 978-1449374358
to try functional programming, this is not the oreil.ly/1HkpsrH
programming, but only book you should read
the thought of learning on the subject. But if you Updated for modern browsers, learn
the XML-based 2D vector image format
the strange syntax attached to want to improve your Python, built for transformation.
most FP languages has added to you’ll find in this book the tools
your inertia, here’s something to write functions that will help WordPress: The Missing
for you. Python is a multi- you work far more efficiently Manual, 2nd Edition
paradigm language, coping well with Big Data, for example. Every Author: Matthew MacDonald
with procedural programming chapter has something to offer, Publisher: O’Reilly
for scripts and many Raspberry and you’ll finish this book a Price: £19.99
ISBN: 978-1449341909
Pi hardware projects, and object better programmer.
oreil.ly/1dh6jdJ
oriented for programs used at the
enterprise scale; it can also be Sometimes you just need to get a site
used in a functional style. Score up quickly. WordPress does the hard
work, and MacDonald fills in the blanks.
Yes, Python lacks unlimited
RASPBERRY PI MAKE:
THE MAKER’S
- which it does both with a concise
history of the maker movement,
BESTSELLERS MANUAL
and a roundup of practical tools
from laser cutters to GitHub – but
ELECTRONICS
also how to nurture and grow
Author: Paolo Aliverti an idea. The second section of
& Andrea Maietta
the book looks at the mental
Publisher: Maker Media
Go beyond following instructions for attaching skills involved in creativity and
Price: £16.50
components to your GPIO pins, and learn the ISBN: 978-1457185922 how they can be developed;
nitty-gritty of electronic components… themakersmanual.com the practical side of managing
a project and running a business;
“A revolution and the soft skills of collaboration.
PRACTICAL ELECTRONICS: is happening: the Chapters on basic electronics,
COMPONENTS & manufacture of objects is shifting Arduino and the Pi provide useful,
TECHNIQUES from big companies... to individuals, concise introductions, while a
Author: John M Hughes producing a previously unseen look at the Processing language
Publisher: O’Reilly variety in things we make.” That gets straight down to the artistic
Price: £26.50 revolution may be at an early stage, possibilities released by its
ISBN: 978-1449373078
but with the easy availability of low- random function. With even the
oreil.ly/1ICmbEM
cost boards like the Raspberry Pi, and short Internet of Things chapter
Practically oriented book manufacturing kit like 3D printers containing a practical Pi example,
for those who want to get (often available as a shared resource there’s little fluff and a lot of value
making electronic projects. at fab labs and makerspaces), all you packed into this manual’s 200 pages.
Comprehensive, but aimed
squarely within the reach of need to get involved is an idea and
a little knowledge.
Score
the beginner.
The Maker’s Manual doesn’t just
ELECTRONICS
HANDBOOK RASPBERRY PI to add in your own extensions.
THE GNU people have started out using Make, ESSENTIAL READING:
MAKE BOOK
and writing makefiles, for their
own projects, then run up against
RUBY
some hurdle. This is not There are many ways to learn and use
a beginner’s book, but for Ruby’s expressive power: here are five
Author: John Graham-Cumming
Publisher: No Starch anyone already using Make of the best recent tutorials…
Price: £23.50 in their projects, it’s a
ISBN: 978-1593276492 really well-written guide to Learn Ruby the Hard Way
nostarch.com/gnumake Author: Zed A Shaw
getting more from it.
Publisher: Addison Wesley
The author gained his Price: £24.99
Not the O’Reilly imprint, Make knowledge writing ISBN: 978-0321884992
the other Make! Yes, GNU a complete clone of the learnrubythehardway.org
Make is something most of us only software in C++ - not a
Great intro for the new programmer: a
come across when we download a unique project, as some readers little ‘Pythonic’, but strongly practical,
program in source form, and have to may know the Python Snakemake, preparing you for real-world coding.
untar then run the ‘./configure && designed for complicated workflows
make && make install’ incantation in bioinformatics – and he has a The Well-Grounded Rubyist
to compile and install the software. comprehensive knowledge of GNU Second Edition
GNU Make is the build automation Make. This is most usefully reflected Author: David A Black
tool heroically doing the hard work in the excellent chapter on ‘Pitfalls Publisher: Manning
Price: £27.99
in the background. and Problems’ – essential reading
ISBN: 978-1617291692
Readers may know of John for anyone whose project, and manning.com/black3
Graham-Cumming from his consequently makefile, has grown
successful petition to the UK large enough to run into difficulties. Introduction and reference with a strongly
object-oriented approach to the language;
government asking for an apology ideal for Pythonistas new to Ruby.
for its persecution of Alan Turing.
Here is a success on a smaller Score Ruby Wizardry: An Introduction
stage – but no less vital, as many to Programming for Kids
Author: Eric Weinstein
Publisher: No Starch
AUTOMATE THE book is a dozen chapters dedicated Price: £19.99
BORING STUFF
ISBN: 978-1593275662
to problem areas
nostarch.com/rubywizardry
WITH PYTHON
where a little Python
code will smooth While the story pulls children in, serious
away your problems: programming concepts are painlessly
Author: Al Sweigart transmitted by Codecademy author Eric
organising files,
Publisher: No Starch Weinstein: wizardry indeed!
Price: £19.99
getting data from
ISBN: 978-1593275990 websites, working with Metaprogramming Ruby 2:
automatetheboringstuff.com text from inside PDF Program Like the Ruby Pros
and Word documents, Author: Paolo Perrotta
If you’ve ever found yourself batch-editing images, Publisher: Pragmatic
repetitively carrying out the same and even automating when and Price: £25.50
ISBN: 978-1941222126
task over and over, wishing you how programs run on your PC.
oreil.ly/1e0IhnN
had a little more command-line Sweigart is an able teacher
experience so that you know the with a number of well-regarded The next step: gain real insight into Ruby
through writing code that writes code.
correct Bash magic to get it all Python books to his name, and it
Practical and thought-provoking.
done in one go from the terminal, shows through his clear teaching
this is your chance to leapfrog past style and well-paced lessons. Not Rails Crash Course
that and learn how to use Python only are these skills which would A No-Nonsense Guide
to quickly write programs to take benefit any regular computer to Rails Development
on the tedious tasks. user, but after working through Author: Anthony Lewis
The first section introduces Sweigart’s book, non-coders will Publisher: No Starch
Python and programming basics, find themselves competent and Price: £23.50
ISBN: 978-1593275723
such as flow control, functions, practical beginner programmers.
nostarch.com/railscrashcourse
lists, and string manipulation,
with practice questions and
Score
We couldn’t leave out Rails, and Lewis’s
useful projects rounding off each new guide is concise, yet lacking
nothing you need to get going.
chapter. The main part of the
Subscribe from
Magazine
£2.29 £19.99
rolling subscription
or
full year subscription
Find it on
digital app
raspberrypi.org/magpi/issues/essentials-bash-vol1
THE Official
RASPBERRY PI
PROJECTS BOOK
The world’s favourite credit card-sized PC, the Raspberry Pi is one of the
best-selling computers ever made in the UK. As well as helping to change
the way computing is taught in schools around the world, the Pi has become
the de facto tool for hacking and making cool things.
This book shows you why…
200 PAGES OF PI
raspberrypi.org/magpi
Q4 2015 • £12.99
ISBN 978-1-908256-69-0
9 781908 256690