The MagPi - Issue 45 (2016).pdf

(18183 KB) Pobierz
GET A CAMERA MODULE FIRST WITH
YOUR OFFICIAL RASPBERRY PI MAGAZINE
The official Raspberry Pi magazine
Issue 45
May 2016
raspberrypi.org/magpi
PICTURE PERFECT
REPLICATE
AN ASTRO PI
EXPERIMENT
Make your own
humidity sensor
The
NEW
Raspberry Pi Camera Module is here!
A PI ZERO-
POWERED
RAILWAY
Pi takes a Dorset
model railway to
the next level
MAKE
NEOPIXEL
ELECTRONICS
Build impressive
costume effects
HACKING WITH
DINOSAURS
Jurassic Park, eat
your heart out!
BUILD AN IOT
THERMOMETER
Also inside:
THREE NEW PI
GAMES TO PLAY
From GameMaker: Studio
And share your data online
>
CODER DOJO GETS A MASSIVE BOOST
>
TAKE AMAZING PICTURES OF THE MOON
>
THE ORACLE WEATHER STATION ARRIVES
>
THE LATEST GADGETS REVIEWED & RATED
THE
BEST
PI
ARCA*
Our top 10
retro gaming
arcade cabinets
powered by Pi
05
9 772051 998001
E MACHINES
Issue 45
May 2016
£5.99
THE
ONLY
PI MAGAZINE WRITTEN BY THE READERS, FOR THE READERS
Welcome
WELCOME TO
THE OFFICIAL
PI MAGAZINE!
T
he Raspberry Pi Camera Module is one of the
most popular add-ons for the Raspberry Pi.
Released in 2013, it made use of the previously
dormant CSI connector, spawned a whole new genre
of amazing Raspberry Pi projects, and has since found
itself everywhere from the depths of the ocean to the
dizzy heights of the International Space Station.
Its 5MP sensor was equivalent to the kind of standard
cameras you’d find on smartphones of the time, but
since three years is an eternity in technology, Raspberry
Pi have just released a shiny new update. You can learn
all about the new camera starting on page 20, where
we speak to its creators about its new specification,
which includes a rather splendid 8MP Sony sensor.
While the means of taking pictures and video remains
unchanged from the original Camera Module, we’ve
included everything you need to do to get started, as
well as a number of fun and useful projects to get you
snap-happy in no time at all.
If you’re a subscriber, you’ll already have received a
special code that entitles you to skip to the front of the
purchase queue at
ThePiHut.com.
Not yet a subscriber?
It’s not too late to make use of this fantastic offer – see
page 34 for details!
PR
SUPPO
OUD
RTERS
OF:
SEE PAGE 34 FOR DETAILS
THIS MONTH:
20
THE CAMERA MODULE V2 ARRIVES
52
MAKE A HUMIDITY SENSOR
Get the low-down on the new hardware & start a project today
Replicate one of the best Astro Pi projects, as found on the ISS
66
RETRO GAMING GREATNESS
95
WIN A CAMERA MODULE V2
We’ve got ten of the new cameras to give away!
Learn about our ten favourite arcade cabinet projects
Russell Barnes
Managing
Editor
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, Mike Cook, Lucy Hattersley,
Richard Hayler, Phil King, Willem Koopman, Ross
O’Neill, Matt Richardson, Ben Rogers, Jon Silvera,
Richard Smedley & 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
May
3
Contents
Issue 45 May 2016
raspberrypi.org/magpi
TUTORIALS
>
PI-THERMOMETER
Build your own internet-based LED thermometer
COVER FEATURE
46
48
50
>
PREDICTABLE NETWORKING
Give your Raspberry Pi a network address of its own
>
MAKE ASTEROIDS IN BASIC
Build your own clone using FUZE Basic
>
SCIENCE WITH THE SENSE HAT
52
Create one of the experiments being used on the ISS!
>
SAMPLE SLICING IN SONIC PI
Join Sam Aaron for part 10 of his music-coding series
54
56
>
RASPBERRY PI ACCESS POINT
Using the PaPiRus E-Ink display
20
>
MIKE’S PI BAKERY: GET A GRIP
58
Make a music sequence with hairgrips!
THE NEW PI CAMERA
Take better pictures and video with the Raspberry PI Camera Module V2
>
CREATE NEOPIXEL EYES
Build an impressive costume with the help of Raspberry Pi
64
IN THE NEWS
CODERDOJO
Dino Hack
Blackgang Chine has renovated
some animatronic dinosaurs with
the help of the Raspberry Pi
6
8
Astro Pi coding challenge
The results are in and your musical masterpieces are
ready for the ISS crew to listen to!
The CoderDojo Foundation is
benefiting from VMware Foundation
support. Here’s how…
10
raspberrypi.org/magpi
4
May 2016
Contents
THE BIG FEATURE
66
We’ve got 10 Raspberry Pi Camera
Module V2s to give away thanks
to our friends at ThePiHut.com
95
UNDERWATER
AMAZING ARCADE PROJECTS
Follow in the footsteps of these 10 amazing projects to bring a slice
of retro gaming nirvana into your own home
This home-made submersible
drone will take your breath away
84
06
72
80
96
YOUR PROJECTS
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 own Matt Richardson
36
PI MOON CAMERA
James Mitchell shows off his excellent Raspberry Pi camera project
COMMUNITY
>
THIS MONTH IN PI
>
SEA OF ROBOTS
Building an AI swarm of boats using the Raspberry Pi
Find out what else has been happening in the community
82
86
88
92
 
Mars Rover
This Pi enthusiast aimed for the stars
when building his Raspberry Pi robot
38
>
EVENTS
Get involved in a community gathering near you!
>
YOUR LETTERS
Talk to us about the magazine (or anything you like!)
Model Railway
Dorset’s model village turned to the Pi
to power their awesome railway
40
REVIEWS
>
DRUM HAT
74
76
78
79
May 2016
5
Cat Wheel
Get your moggy moving with this excellent
exercise apparatus built for a feline friend
42
>
PICON ZERO
>
WYLIODRIN STUDIO
>
NUCLEUS ZERO CASE
raspberrypi.org/magpi
Zgłoś jeśli naruszono regulamin