MagPi 47.pdf

(21525 KB) Pobierz
YOUR
OFFICIAL
RASPBERRY PI MAGAZINE
The official Raspberry Pi magazine
Issue 47
July 2016
raspberrypi.org/magpi
BLUETOOTH
TAGGING
Automate just
about anything
with a Pi 3
Master persistence
of vision with Pi Zero
AMAZING
OPTICAL
ILLUSIONS
LEARN TO CODE IN C
Our latest expert series starts this issue
TERRAFORM MINECRAFT
Another amazing Minecraft Pi hack
MISSION ACCOMPLISHED
Celebrating Tim Peake & Raspberry Pi’s amazing space mission
Also inside:
>
SKYCADEMY: TAKE YOUR PI TO THE EDGE OF SPACE
>
START BUILDING A PI-POWERED ARCADE MACHINE
>
THE ULTIMATE RASPBERRY PI KARAOKE PROJECT
>
THE MOTOZERO ROBOT BOARD REVIEWED
PET PROJECTS!
10 fantastic
Pi-powered makes
for your furry friends
Issue 47
Jul 2016
£5.99
07
9 772051 998001
THE
ONLY
PI MAGAZINE WRITTEN BY THE RASPBERRY PI COMMUNITY
Welcome
WELCOME TO
THE OFFICIAL
PI MAGAZINE!
I
n December last year, British Army
Air Corps officer Timothy Nigel Peake
stepped aboard the Soyuz TMA-19M
to start a six-month mission aboard the
International Space Station. It was a small step
across the ISS hatch for Tim, but as the first
British European Space Agency astronaut it
was a giant leap for the United Kingdom and
especially the children that dream of one day
going to space.
Tim wasn’t the only UK-born passenger aboard
the ISS, though; two Raspberry Pis joined him on
his mission to carry out experiments developed
by British schoolchildren. While Tim returned
to Earth on 18 June, our two intrepid Raspberry
Pis, Ed and Izzy, remain aboard to continue their
ongoing mission to inspire and educate children
all over the world via the Astro Pi programme.
You can learn all about Astro Pi in our massive
cover feature starting on page 14, and how Astro
Pi and other educational programmes Tim has
been involved with have touched the lives of and
inspired more than a million schoolchildren.
Enjoy the issue!
SEE PAGE 30 FOR DETAILS
THIS MONTH:
14
ASTRO PI: MISSION ACCOMPLISHED
We look at this amazing collaboration, but it’s not over yet!
32
THE ULTIMATE RETRO PHONE
46
TERRAFORM MINECRAFT
72
YOUR PET PROJECTS
Become the destroyer of worlds in Minecraft Pi
Martin Mander is back with another stunning Pi project
Russell Barnes
Managing Editor
10 amazing community creations for your furry friends
FIND US ONLINE
raspberrypi.org/magpi
EDITORIAL
DESIGN
GET IN TOUCH
magpi@raspberrypi.org
PUBLISHING
Managing Editor:
Russell Barnes
russell@raspberrypi.org
Features Editor:
Rob Zwetsloot
Sub Editors:
Laura Clay, Phil King, Lorna Lynch
Critical Media:
criticalmedia.co.uk
Head of Design:
Dougal Matthews
Designers:
Lee Allen, Mike Kay
Cover photography:
Gareth Halfacree
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, Dan Aldred, Wesley Archer, Mike Cook,
Lucy Hattersley, Richard Hayler, Phil King,
Simon Long, Alan McCullagh, Matt Richardson &
Richard Smedley, Lucy Rogers & Francesco Vannini
The MagPi magazine is published by Raspberry Pi (Trading) Ltd., 30 Station Road, Cambridge, CB1 2JH. 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
April 2016
July
3
Contents
Issue 47 July 2016
raspberrypi.org/magpi
TUTORIALS
>
PI 3 BLUETOOTH TAG
Create automated events with a Pi and a smartphone
COVER FEATURE
42
44
46
48
50
52
>
WAKE DINO WITH NODE-RED
Email a dinosaur to let people know dinner is ready
>
MINECRAFT TERRAFORMING
Program Minecraft to change its landscape
>
EGG DROP GAME
Make a Sense HAT game that uses the tilt sensor
>
SONIC PI
>
PI BAKERY
Build yet another amazing machine with Mike Cook
Create randomised drum patterns with Sonic Pi’s creator
14
>
ARCADE MACHINE BUILD (PT 1)
58
Start building your own arcade cabinet from scratch
>
PERSISTENCE OF VISION
Create an optical illusion with a fast-spinning Pi Zero
60
64
ASTRO PI
PI WARS 3
9
Tim Peake has returned to Earth; let’s see what he accomplished with Astro Pi
>
RASPBERRY BERET
Put a camera on your head in this Pi-powered Prince tribute
CoderDojo
Young people show off their
projects at the Coolest Projects
awards in Dublin
IN THE NEWS
6
Pis in the sky
Everyone’s talking about Raspberry Pi in the sky.
Skycademy returns as records are broken with HABs
Pi Wars returns in 2017 to give
people more time to make even
cooler Pi-powered robots
10
raspberrypi.org/magpi
4
July 2016
Contents
THE BIG FEATURE
72
In association with
95
RASPBERRY PI SALES
THE BEST PI PET PROJECTS
Cute critters and the Raspberry Pis that people use to control
them or make them famous on the internet
An amazing 500,000 Raspberry Pis were
sold in a single month
8
06
70
86
97
YOUR PROJECTS
32
REGULARS
>
NEWS
The biggest stories from the world of Raspberry Pi
>
TECHNICAL FAQ
Got a problem? Maybe we can help...
>
BOOK REVIEWS
The best reads for coders and hackers
>
THE FINAL WORD
More musings from Raspberry Pi’s Matt Richardson
This very Seventies telephone has been souped up with a Raspberry Pi
ALEXAPHONE
Karaoke Box
A tiny karaoke box that lets you belt out
your favourite pop song at full volume
COMMUNITY
>
THIS MONTH IN PI
We round up other goings-on in the Pi community
88
90
92
>
EVENTS
Get involved in a community gathering near you
34
>
YOUR LETTERS
Talk to us about the magazine or Raspberry Pi
Beekeeping Server
Raspberry Pis that bring you honey,
although there are some bees involved
36
REVIEWS
>
MOTOZERO
80
82
83
84
July 2016
5
Bitcoin Clock
A clock that keeps track of Bitcoin stats
and can store some money in it as well
38
>
PI ZERO MOTOR SHIM
>
RASPIO HAT
>
CHICKBOT
raspberrypi.org/magpi
Zgłoś jeśli naruszono regulamin