MagPi59.pdf

(25690 KB) Pobierz
WIN!
10 RASPBERRY PI 3
&
CASES
SIGNED BY EBEN
The official Raspberry Pi magazine
Issue 59
July 2017
raspberrypi.org/magpi
THE RASPBERRY PI
What can’t you do with a $35 computer?
PC CHALLENGE
CREATE A SATNAV ROBOT
Discover precision robotics with Big Rob
DESIGN A DOG
TREAT DISPENSER
Keep Scooby in snacks with
this clever pet project
BUILD A GPS
TRACKING DEVICE
The ultimate movement tracker
for land and sea adventures
MASTER BLUETOOTH
Also inside:
Take control of your Raspberry Pi remotely
>
USE A SENSE HAT WITH MATHEMATICA
>
REVIEWED! THE BEST WEB BROWSER FOR PI
>
CREATE ELECTRONIC SENSOR WIND CHIMES
>
BUILD THE WORLD’S SMALLEST CONSOLE
Don’t leave your Pi in the shade!
Incredible outdoor
digital projects for
open-air fun
12 SUMMER
PROJECTS
Issue 59
July 2017
£5.99
07
9 772051 998001
THE
ONLY
MONTHLY MAGAZINE WRITTEN BY AND FOR THE PI COMMUNITY
Welcome
WELCOME TO
THE OFFICIAL
MAGAZINE
screens, and never think to ask what’s going
on behind the glass. We want computers we
can hack, make, and break (and for it not to matter),
and that’s exactly why we love the Raspberry Pi.
The Raspberry Pi is about GPIO pins and wires, and
the Linux OS. It’s about making something, and
messing up everything, and it not mattering because
there’s always another chance.
We love it.
But what would it be like to use all the time?
Would using a Raspberry Pi every day of the week be
digital heaven, or computing hell? That’s the task
we set our intrepid Features Editor Rob Zwetsloot.
Spend a week working with a Raspberry Pi – nothing
else allowed. And let us know what it’s like: warts
and all. You can read all about it on page 16.
The Raspberry Pi is a glorious piece of kit, and
it’s a shame to keep it in the shade. It is perfectly
portable and ideal for aerial balloons, outdoor
cameras, weather stations, and all manner of
fresh‑air projects. We have twelve amazing summer
projects for you, starting on page 68.
So whether you’re installing a Raspberry Pi
permanently in your home, or taking it outside
to play, what’s important is that you’re using the
world’s most interesting computer. And let us know
how you get on.
PAGE 3
0
M
any people stare all day at their phone
SEE PAGE 30 FOR DETAILS
THIS MONTH:
16
THE RASPBERRY PI PC CHALLENGE
42
GET STARTED WITH GIT
50
BLUE DOT BLUETOOTH
68
SUMMER PROJECTS
Use Git to clone, copy, and contribute to code
Can you really use a Raspberry Pi as a desktop replacement?
Adding Bluetooth control to your projects has never been easier
Lucy Hattersley
Editor – The MagPi
Twelve incredible outdoor digital projects to make
FIND US ONLINE
raspberrypi.org/magpi
EDITORIAL
DESIGN
GET IN TOUCH
magpi@raspberrypi.org
PUBLISHING
Editor:
Lucy Hattersley
lucy@raspberrypi.org
Features Editor:
Rob Zwetsloot
Sub Editors:
Rachel Churcher and Phil King
Critical Media:
criticalmedia.co.uk
Head of Design:
Dougal Matthews
Designers:
Lee Allen, Daiva Bumelyte,
and Mike Kay
Illustrator:
Sam Alder
For advertising & licensing:
Head of Publishing:
Russell Barnes
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
Bill Ballard, Alex Bate, Mike Cook,
Brett Haines, Phil King, Sean McManus,
Martin O’Hanlon, Matt Richardson,
Richard Smedley, Clive Webster
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 2017
3
Contents
Issue 59 July 2017
raspberrypi.org/magpi
TUTORIALS
>
PI 101: SENSE HAT EMULATION
40
How to create and test code for the Sense HAT
COVER FEATURE
42
48
50
>
PI 101: GET STARTED WITH GIT
Manage your code repositories the easy way
>
CREATE A GPS TRACKER
Track your travels with this nautical project
>
ADD BLUETOOTH CONTROL
Use Blue Dot to control Bluetooth devices
>
USE SENSE HAT WITH WOLFRAM
54
Analyse and display your data with Mathematica
>
BUILD WIND CHIMES
This month’s Pi Bakery makes wind-powered music
56
16
>
ADD SERVOS TO AIY PROJECTS
60
Use the AIY Projects Voice HAT to control servos
>
USE MOTORS WITH VOICE HAT
62
Servos not enough for you? Let’s add some motors!
THE PI PC
CHALLENGE
BEST OF SHOW
IN THE NEWS
CODERDOJO AND
GOPIGO 3
RASPBERRY PI
Two Foundations join forces
to bring coding to young people
6
Raspberry Pi clusters
support medical research
13
Our friends at Dexter
Industries launch
a new robot
10
4
July 2017
raspberrypi.org/magpi
Contents
THE BIG FEATURE
SUMMER
Let’s
e
s
outsid
i
ake
th
t
HOT HOLIDAY PROJECTS
Go outside and get making this summer!
68
97
REGULARS
>
NEWS
>
TECHNICAL FAQ
>
BOOK REVIEWS
>
FINAL WORD
YOUR PROJECTS
06
64
82
98
32
COMMUNITY
>
THIS MONTH IN PI
Everything else that happened last month
BIG ROB ROBOT
Not our Features Editor, but a GPS-controlled robot!
84
88
90
92
94
>
COMMUNITY SPOTLIGHT
Meet awesome YouTuber Estefannie
>
EVENTS REPORT
Some of the cool events that took place last month
TELE2 VR
Experience the life of a stranger with this
incredible Pi project
34
>
UPCOMING EVENTS
Attend one of these upcoming Jams!
 
DOG TREAT
DISPENSER
The ultimate, Pi-powered treat dispenser
for a very good boy
36
>
YOUR LETTERS
We endeavour to answer your questions
REVIEWS
38
>
OCTOCAM
>
BROWSER GROUP TEST
>
WD PIDRIVE USB FLASH
July 2017
PI0CKET TINY
The smallest handheld games system
we’ve ever seen
76
78
80
5
raspberrypi.org/magpi
Zgłoś jeśli naruszono regulamin