VOLUME 4
200 PAGES OF IDEAS & INSPIRATION
Build a Robot
DIY Games Console
Set up a Spy Cam FROM THE MAKERS OF
55
PROJECTS & GUIDES
Make a Magic Mirror
THE OFFICIAL RASPBERRY PI MAGAZINE
Tutoria�
ESSENTIALS
LEARN | CODE | MAKE
OUT NOW IN PRINT
ONLY £3.99 fro� store.rpipress.cc
From the makers of the official Raspberry Pi magazine ESSENTIALS raspberrypi.org/magpi
GET THEM DIGITALLY:
April 2016
99
Welcom�
WELCOME! very year it gets harder and harder to choose which projects to put into one of these Projects Books. With millions more Raspberry Pi boards out in the wild, that’s millions more people getting into digital making and turning their dreams into a Pi-powered reality. Being so spoilt for choice though means that we’ve managed to compile an incredible list of projects, guides, and reviews for you. I’m particularly proud that we managed to t in our magic mirror big build so that you can make your own excellent piece of Pi furniture at home. The rest of this book’s 200 pages are stufed with articles that will help Pi newbies and digital making experts alike, so there should be plenty for everyone. I hope you enjoy this book. Happy making!
E
Rob Zwetsloot
FIND US ONLINE
raspberrypi.org/magpi
[email protected]
EDITORIAL
DESIGN
PUBLISHING
Publishing Director: Russell Barnes Production Editors Phil King, Rob Zwetsloot
Critical Media: criticalmedia.co.uk Head of Design: Dougal Matthews Designers: Lee Allen, Mike Kay Illustrator: Sam Alder
For advertising & licensing:
[email protected] Comms Director: Liz Upton CEO: Eben Upton
MAGAZINE SUBSCRIPTIONS
CONTRIBUTORS
Raspberry Pi Press Mann Enterprises, Unit E, Brocks Business Centre, Haverhill, CB9 8QP magpi.cc/subscribe
Bill Ballard, Johannes Bergs, Henry Budden, Sanjeet Chatterjee, John Cole, Mike Cook, David Crookes, Lucy Hattersley, Spencer Organ, KG Orphanides, Carrie Anne Philbin, Tim Richardson, Marc Scott, Lorraine Underwood, Clive Webster
DISTRIBUTION Seymour Distribution Ltd 2 East Poultry Ave London EC1A 9PT | +44 (0)207 429 4000
ONLINE STORE magpi.cc/store
This bookazine is printed on paper sourced from sustainable forests and the printer operates an environmental management system which has been assessed as conforming to ISO 14001.
raspberrypi.org/magpi
GET IN TOUCH
This ocial product is published by Raspberry Pi (Trading) Ltd., Station Road, Cambridge, CB1 2JH. The publisher, editor and contributors accept accept no responsibilit responsibility y in respect of any omissions or errors relating to goods, products or services referred to or advertised in the magazine. Except where otherwise noted, content in this magazine is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0). ISBN: 978-1-912047-70-3.
The Ofcial Raspberry PiMarch Projects Book 2015
3
Content�
RASPBERRY PI FOR NEWBIES Get to know the Raspberry Pi and everything the community has to ofer
PAGE 06
Project� 48 RASPBERRY 48 RASPBERRY TURK
20 PEGASUS LAND LAND SPEED RECORD RECORD
Play chess against a (real) Raspberry Pi-powered robot
Trying to break the land speed record with the help of a Raspberry Pi
50 DAILY 50 DAILY PROPHET
24 QBEE 24
A Harry Potter-inspired newspaper that plays video
This dress reacts to activity on social media by lighting up
52 SATNAV ROBOT 52
26 SELF-PLAYING ORGAN
Improve robot automation with GPS and a Raspberry Pi
A organ that plays itself thanks to a Raspberry Pi and some clever code
54 TELE2 54
28 MUSEUM IN A BOX
Step into someone else’s shoes thanks to this VR invention
Bringing priceless museum artefacts to anywhere in the world
56 DOG 56 DOG TREAT MACHINE
32 ZERO PHONE 32 A Pi Zero-powered phone that you can make yourself
Now you can give your dogs treats when you’re not there
58 PI0CKET 58 PI0CKET TINY
34 TRACKING TELESCOPE TELESCOPE Make sure you keep an eye on the right part of the night sky
A very small handheld games console that you can soon buy
60 PHOTO 60 PHOTO BOOTH
36 PI 36 PI MINI MINT Squeezing a Raspberry Pi and screen into an Altoids mints tin is a bit tricky
Take better photos at your wedding reception with this homemade booth
62 PI 62 PI BASH
38 PI 38 PI FILM CAPTURE Digitally converting reel-to-reel lm with an old projector and a Pi
Roll up and test your strength on this classic carnival game
64 12-FOOT 64 12-FOOT GUITAR
40 POLAPI-ZERO 40 POLAPI-ZERO
This giant guitar actually works, works, thanks to a Raspberry Pi inside it
A thermal camera project that uses the Pi Zero to take its photos
66 GULLIVER’S GATE GATE
42 WINDOWS 42 WINDOWS 98 WATCH Why have a fancy modern smartwatch when you can use a 20-year-old OS?
44 PI 44 PI ORDER
Making a miniature of New York’s Times Square is easier with a Pi
68 GOOGLE PI INTERCOM INTERCOM Upcycling an old intercom so that it becomes a personal assistant
Improving the takeaway order system of a restaurant with Pi
70 WAVES 70
46 TOUGH PI-ANO 46 When your piano needs to take a beating, use arcade buttons for keys
74
Print out your own voice as a waveform on a piece of paper
72 PI DECK Scratching digital music is possible when you’re using a Raspberry Pi
74 ALONSO’S 74 ALONSO’S ROBOTS A Disney Pixar animator makes cute, emotive robots in his spare time
82 3D BODY SCANNER SCANNER Get a 3D scan of yourself to show o to your friends
84 C-TURTLE 84 C-TURTLE This Raspberry Pi robot looks for land-mines to help save lives
86 FRED-209 86 FRED-209 A Nerf gun robot that gives you 20 seconds to comply
88 RAPANUI 88 These T-shirts T-shirts get printed thanks to a Raspberry Pi-based system
90 NASA 90 NASA ARM Even robots like to express themselves sometimes, this one with drawings
92 TURNIN’ TURBO DASHBOARD Play arcade classic Out Run on this upcycled Tomy toy
Tutorial� 96 MAKE A PI SPY CAM This simple project lets you create a nanny cam in your own home
98 NIGHT-VISION WILDLIFE TRAP Create a camera that works in the dark to snap animal photos
102 BUILD A WHOOPI CUSHION This classic prank has been updated for modern times with a Pi
106 SAVE YOUR WINE A room temperature sensor lets you know if your wine cellar is OK
108 GET 108 GET UP WITH A SUNRISE ALARM This sunrise alarm clock gets you up with the sun for a better morning
112
76 INSTAGIF 76 Print out GIFs using this camera and a special, tiny display
78 MESMERIC 78 MESMERIC MIRROR A motion-sensing mirror that lights up as you walk past it
80 FM 80 FM TOUCH SYNTH This touchscreen synthesizer is very powerful and customisable
4
The Ofcial Raspberry Pi Projects Book
raspberrypi.org/magpi
The Official Raspberry Pi Projects Book volume 4
Content�
Review�
192
172 RASPIO INSPIRING
177 MOTE PHAT
Programmable Programmable LED shapes for impressive 2D and 3D displays
173 UNICORN HAT HD
This mini HAT can control up to four programmable programmable LED strips
178 PAPIRUS ZERO ZERO MEDIUM
256 LEDs that create a wonderful multicoloured matrix display
A special E Ink display that ts neatly over a Pi Zero
174 RAINBOW HAT 174 A multifunctional HAT that acts as an intro to Android Things on Pi
176 PI-TOP 176 PI-TOP PULSE A set of LEDs designed for pi-top laptops which are fully programmable programmable
190
179 PAN-TILT 179 PAN-TILT HAT Perfect for robots, this allows you to have a moving camera
180 OLED 180 OLED BONNET
184 GOPIGO 184 GOPIGO 3
A tiny screen and buttons that might be handy as a mini menu display
A very simple robot kit for beginners, with plenty of learning resources
181 TOUCH PHAT
186 RASPIROVER KIT KIT
Capacitive touch buttons that can be slotted above the Pi Zero
This kit lets you create a powerful platform for robotics
182 FLICK 182 FLICK HAT
188 TINY 188 TINY 4WD
A HAT for adding motion-gesture controls to your Pi projects
A super-fast robot based on a feature written in The MagPi magazine
183 INKY 183 INKY PHAT This more advanced E Ink display has three colours
116
190 MEARM 190 MEARM PI Robot arm that’s controlled with a Raspberry Pi
192 SPEAKER 192 SPEAKER PHAT Add music to your Pi project with this add-on that even has visualisations
193 JUSTBOOM 193 JUSTBOOM DAC A powerful DAC that can turn your humble Pi into a proper hi-
110 USING HUE LIGHTS WITH PI
194 PIRATE RADIO
Control your Philips Hue lights using this quick Raspberry Pi guide
Create an internet radio with this fun Pi Zero project
112 TELL THE TEMPERATUR TEMPERATURE E WITH STAIRS STAIRS
196 JOY 196 JOY BONNET
This LED system shows you how hot it is as you go down the stairs
This tiny controller ts onto the Pi Zero for compact gaming
114 GIVE A ROBOT EMOTIONS EMOTIONS Not quite articially intelligent, but it will recognise emotions and replicate them
116 ADD VOICE CONTROL CONTROL TO A ROBOT Use Alexa to add voice commands to operate a robot
120 BUILD A MAGIC MIRROR Make the ultimate Raspberry Pi project with this thorough guide
132 TAKE 132 TAKE DEEPDREAM PHOTOS Use Google’s DeepDream to make trippy photos out of what you see
134 MAKE ART WITH RECORD SCRATCHING Beautiful art is at your ngertips – lit erally – with this DJ Hero mod
138 FIND FOLKS WITH MARAUDER’S CLOCK Know where your loved ones are using this Harry Potter-inspired Potter-inspired project
140 HACK 140 HACK AN AMAZON DASH BUTTON You can use an Amazon Dash button to do a lot more than order loo rolls raspberrypi.org/magpi
198 PIJUICE 198 PIJUICE 142 CREATE 142 CREATE A CUT-OUT THEATRE A digital cut-out theatre using JPGs and PNGs instead of paper
146 MAKE AN ULTRASONIC THEREMIN THEREMIN
Keep your Raspberry Pi properly powered with this add-on
200 ARCADE 200 ARCADE CONTROLLER KIT Make your own plug-and-play arcade controller with a Pi at its heart
Create space age music with this theremin using ultrasonic sensors
196
148 SAILING 148 SAILING PI Track your boating adventures with this GPS project
150 ADD SIRI VOICE CONTROL CONTROL Use Siri to add voice control options to any Pi project
152 AMIGA 152 AMIGA EMULATION GUIDE Learn about emulating an Amiga the proper way on a Raspberry Pi
154 BUILD A RETRO GAMING HANDHELD Make your very own Game Boy-like console with this big build
The Ofcial Raspberry Pi Projects Book
5
Featur�
RASPBERR RASP BERRY Y PI FOR
NEWBIES Get to know your new Raspberry Pi computer and the community ne of the most common O questions we see online is ‘I’ve just got a Raspberry Pi, what should I do with it?’ We’ve all been there: getting into the latest coolest thing and not being sure where to start. Remember asking your friends what games to get on your rst smartphone? If you didn’t already keep up with what was hot, you had no idea, and that’s the same when you join a new community. In this article we’ll show you how to get started with your Raspberry Pi hardware, as well as how to join the global Raspberry Pi community and become a maker. Welcome to the world of Raspberry Pi.
6
The Ofcial Raspberry Pi Projects Book
ARM: The type of processor the
Raspberry Pi uses. It’s typically used in small devices such as smartphones Desktop/Desktop environment:
The graphical interface you control with a mouse and keyboard GPIO: General-purpose input/
output, these are the pins that line the side of a Raspberry Pi and allow you to connect electronic components to it Terminal: A program that lets
you type in commands. It’s how computers worked before a desktop environment
raspberrypi.org/magpi