MagPi38.pdf

(16006 KB) Pobierz
NEW!
YOUR
OFFICIAL
RASPBERRY PI MAGAZINE
Win!
5
£
250
KITS
ROBOT
WORTH
100 pages of hacking & making
RASPBERRY PI
ROBOT
FOR £50
*
The ultimate in affordable weekend projects
*Including the Pi
BUILD A
Issue 38 October 2015
raspberrypi.org/magpi
BUILD A WEB-POWERED
PLANT WATERER
Give your Pi green fingers!
MAKE MUSIC WITH
THE PIANO HAT
Step-by-step tutorial
with code samples
THE SENSE HAT
Master the Pi’s amazing
space-age add-on
THE OFFICIAL PI
TOUCH SCREEN
Read the first review inside
Also inside:
>
LEARN CLASSES IN PYTHON
>
MANCHESTER MAKEFEST REPORT
>
PI WINS BIG AT FESTIVAL OF CODE
>
MORE OF YOUR AMAZING PROJECTS
SPOOKY
HALLOWEEN
PROJECTS
Scare your friends with
these Pi-powered ideas
Issue 38
Oct 2015
£5.99
10
9 772051 998001
THE ONLY MAGAZINE WRITTEN BY THE COMMUNITY, FOR THE COMMUNITY
Welcome
WELCOME TO
THE OFFICIAL
PI MAGAZINE!
PR
SUPPO
OUD
RTERS
OF:
T
here’s something quite magical about
completing your first Raspberry Pi project.
Harnessing the power of code to create
something that seems greater than the sum of
its parts is a genuine rush. Nowhere is this more
true than when you’re making something like a
Raspberry Pi-powered robot. Seeing your machine
move, react to its environment, or follow your
instructions is a simply staggering achievement.
Once you’ve got the basics of obstacle avoidance
down, it’s almost trivial to start layering additional
behaviours until you have what appears to be
your own thinking, intelligent machine. World
domination has never seemed so tangible! That is,
of course, if you have the cash to do it.
Unfortunately, it’s not the cheapest project, often
costing north of £100 / $150 to get started. That’s
not the case any more, though. We’ve managed
to magic up a Model A+, chassis-free build that
costs just £50 / $75 including the Raspberry Pi.
Want to build it? Join our new Features Editor, Rob
Zwetsloot, on page 18 to get started today.
There are lots of other articles you shouldn’t
miss this month, too, some of which I’ve
highlighted to the right. Mike Cook’s amazing
Mulder skull (starting on page 58) deserves a
special mention, though. It’s easily our favourite
Halloween project this month!
THIS MONTH:
18
BUILD A ROBOT FOR £50
Get rolling with your first affordable robot project!
36
GET INSPIRED FOR HALLOWEEN
Check out our favourite spooky Raspberry Pi projects
44
WEB-POWERED PLANT WATERER
Dr Simon Monk shows us how to keep our plants happy
Russell Barnes
48
GET STARTED WITH THE SENSE HAT
Our new Features Editor, Rob, is star-struck by the retail Astro Pi
FIND US ONLINE
raspberrypi.org/magpi
EDITORIAL
DESIGN
GET IN TOUCH
magpi@raspberrypi.org
PUBLISHING
Managing Editor:
Russell Barnes
russell@raspberrypi.org +44 (0)7904 766523
Features Editor:
Rob Zwetsloot
Technical Editor:
David Whale
Sub Editors:
Laura Clay, Phil King, Lorna Lynch
Critical Media:
criticalmedia.co.uk
Head of Design:
Dougal Matthews
Designers:
Lee Allen, Mike Kay
Illustrator:
Sam Alder
For advertising & licensing:
russell@raspberrypi.org +44 (0)7904 766523
Publisher:
Liz Upton
CEO:
Eben Upton
DISTRIBUTION
Seymour Distribution Ltd
2 East Poultry Ave
London
EC1A 9PT |
+44 (0)207 429 4000
This magazine 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.
SUBSCRIPTIONS
Select Publisher Services Ltd
PO Box 6337
Bournemouth
BH1 9EH |
+44 (0)1202 586 848
CONTRIBUTORS
Sam Aaron, Tim Anderson, Mike Cook,
Gareth Halfacree, Lucy Hattersley, Richard Hayler,
Jasper Hayler-Goodall, Phil King, Simon Monk,
Matt Richardson, Richard Smedley & Sean Tracey.
The MagPi magazine is published by Raspberry Pi (Trading) Ltd., Mount Pleasant House, Cambridge, CB3 0RN. The
publisher, editor and contributors accept no responsibility 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). ISSN: 2051-9982.
raspberrypi.org/magpi
October 2015
March
3
Contents
Issue 38 October 2015
raspberrypi.org/magpi
TUTORIALS
>
BUILD A PLANT WATERER
>
START USING THE SENSE HAT
Our step-by-step guide shows you how to get going
Join Dr Simon Monk for more Everyday Engineering fun
COVER FEATURE
44
48
50
53
>
PLAY WITH THE PIANO HAT
Build a relative pitch tester using this musical add-on
>
MAKE A TV GAME SHOW
>
COMMAND LINE: PART 8
>
MIKE’S PI BAKERY: MULDER
Make a scary skull for Halloween with Mike Cook
Create a Catchphrase-style game with the Unicorn HAT
Learn more command prompt skills with Richard Smedley
56
18
BUILD A RASPBERRY PI
ROBOT FOR £50
A complete step-by-step guide to building an affordable automaton!
58
66
74
>
MASTER PYTHON CLASSES
Sean M Tracey creates a fun game using classes
>
SYNTH RIFFS WITH SONIC PI
Learn to play synths in Sonic Pi with its creator, Sam Aaron
IN THE NEWS
SKYCADEMY IS
LAUNCHED
14
6
10
A group of 24 teachers took to the
outdoors to launch some high-altitude
balloons in a brand new Picademy
SENSE HAT COMES BACK
DOWN TO EARTH
As seen in low Earth orbit, you can now own
the add-on board that makes the Astro Pi possible
PI WINS BIG AT
THE FESTIVAL
OF CODE
The world’s biggest hacking event
saw over a thousand youngsters
showcasing their projects,
including a Pi-powered duck!
4
October 2015
raspberrypi.org/magpi
Contents
THE BIG FEATURE
Don’t miss your chance to win
a cool robot kit in this month’s
reader competition…
Just in time for Halloween, these blood-curdling
Raspberry Pi projects are absolutely to die for...
36
91
REGULARS
>
NEWS
>
TECHNICAL FAQS
Got a problem? Our experts answer all your questions
Keep up to date with the biggest stories from the world of Pi
YOUR PROJECTS
6
76
>
BOOK REVIEWS
The latest computer books reviewed and rated
84
96
>
THE FINAL WORD
Matt Richardson lauds the many Pi-based businesses
32
SPACEHACK PI CONSOLE GAME
Join the unfortunate trainee crew on the ill-fated Starship Guppy
COMMUNITY
>
EVENTS
>
MANCHESTER MAKEFEST
>
LETTERS
Have your say on the magazine and the community
Find a community gathering near you in the coming weeks
88
92
This family-oriented maker event was a lot of messy fun
 
Spark Cluster
28
94
String six Raspberry Pis together to build a
supercomputer and experiment with big data
REVIEWS
>
SENSE HAT
Its mission: to make sensing the environment really easy
Ultrasonic Theremin
32
This eerie-sounding Pi-powered instrument
reacts to your hand movements
78
>
RASPBERRY PI TOUCHSCREEN
80
FabScan
34
The official 7-inch touchscreen is here!
How to build a 3D scanner from the Raspberry Pi
and some off-the-shelf components
>
ADAFRUIT GEMMA
As an introduction to programming wearable electronics,
has Adafruit put together the perfect kit?
82
raspberrypi.org/magpi
October 2015
5
Zgłoś jeśli naruszono regulamin