The MagPi - Issue 48 (2016).pdf

(20632 KB) Pobierz
YOUR
OFFICIAL
RASPBERRY PI MAGAZINE
The official Raspberry Pi magazine
Issue 48
August 2016
raspberrypi.org/magpi
ON RASPBERRY PI
Create Internet of Things devices with
Microsoft's exciting new build
WINDOWS 10
SET UP
DROPBOX
ON YOUR PI
Share your files in the
cloud in easy steps
CORE
I
O
T
INTERNET-
POWERED
ROBOTS!
Battling bots
controlled by
Twitch.tv viewers
MAKE MUSIC
WITH YOUR PI
Sonic Pi creator Sam
Aaron shows you how
Chart your social
media success
BUILD A
TWEET-O-
METER
Also inside:
>
BUILD THE CONTROLS FOR AN ARCADE MACHINE
>
NATUREBYTES WILDLIFE CAMERA KIT TESTED
>
NASA HELPS SEND CODE CLUB TO SPACE
>
CODE IN C WITH OUR EXPERT SERIES
Four amazing Olympics-
inspired games to make
on your Raspberry pi
GO FOR
GOLD!
Issue 48
Aug 2016
£5.99
08
9 772051 998001
THE
ONLY
PI MAGAZINE WRITTEN BY THE RASPBERRY PI COMMUNITY
Strato Pi Touch Display
Raspberry Pi 3
Raspberry Pi Touch Display
Strato Pi board
Power Supply 12-28VDC
Real Time Clock
Buzzer
Optional RS232/RS485 & UPS
Aluminium and steel rear chassis
Brushed aluminium front bezel
Optional back box for wall mount
www.sferalabs.cc
Welcome
WELCOME TO
THE OFFICIAL
PI MAGAZINE!
After decades of it being the most
popular operating system in the
home, it’s been interesting to see Microsoft
experimenting with expanding the uses of
Windows. Recently, the firm got behind the
maker movement, which led to Windows 10
being ported to the Raspberry Pi last year, in
the form of Windows 10 IoT Core. There’s been
a great reaction from the maker community,
and it’s currently included on NOOBS for
everyone to use.
Now with the Raspberry Pi 3 out, Windows
10 IoT Core has much more power to play with
and the team at Microsoft are keen to show
off what it can do. They’ve even made a new
kit full of great project parts so you can make
the most out of Windows 10 on Raspberry Pi.
To celebrate this, we’ve got a whole feature on
Windows 10 IoT Core – starting on page 14 –
that shows you what’s in the new kit, some of
the amazing things you can do with IoT Core
on Raspberry Pi, and some quick lessons to get
started making with Windows.
We hope you enjoy the issue!
W
indows is synonymous with computers.
SEE PAGE 66 FOR DETAILS
THIS MONTH:
14
WINDOWS 10 IOT CORE
Create Raspberry Pi IoT devices with Microsoft’s OS
36
MOTORISED SKATEBOARD
Ride to school/work on this Pi-powered electric board
44
RGB LED TWEET-O-METER
68
SCRATCH OLYMPICS 2016
Go for gold with these fun sporting simulations
See how your Tweets are doing with this smart project
Rob Zwetsloot
Features 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
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, Wes Archer, Alex Bate, Mike Cook,
David Crookes, Lucy Hattersley, Richard Hayler,
Phil King, Simon Long, Ben Nuttall, Matt Richardson
& Richard Smedley
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
August 2016
April
3
Contents
Issue 48 August 2016
raspberrypi.org/magpi
TUTORIALS
>
TWEET-O-METER
Use an RGB LED to show the popularity of tweets
COVER FEATURE
44
46
>
INTRODUCING C
>
PI BAKERY
>
DROPBOX ON PI
Upload and download files from the cloud service
Create variables and perform mathematical operations
Make an Olympic swimming simulator with Mike Cook
48
54
56
58
60
>
SONIC PI
Learn how to master its powerful slicing capabilities
>
SCRATCH BOAT RACE GAME
Make a fun boat race game in Scratch on the Pi
14
>
POETRY GENERATOR
Use word lists in Scratch to generate random poems
>
ARCADE MACHINE BUILD (PT 2)
62
Create the controls for your RaspCade arcade machine
WINDOWS 10 IOT CORE
Learn to use IoT Core, make projects, and get more out of your Raspberry Pi
IN THE NEWS
One Giant Leap for Coding
LET’S
ROBOT
8
Asthma Pi
Nine-year-old Arnav Sharma
has built an award-winning air
monitoring kit for asthma sufferers
Young coders in Australia were asked to
aim for the moon in a world record attempt
6
See what happens when a bunch
of robots are controlled by web
chat room users
10
raspberrypi.org/magpi
4
August 2016
Contents
THE BIG FEATURE
68
A treasure trove of Pimoroni
HATs and Goodies
95
MAKE YOUR
OWN JAM
Practical tips for setting
up your own Raspberry
Jam from educator
Cat Lamin
SCRATCH OLYMPICS 2016
Go for gold by programming four fun Olympic events in Scratch:
archery, weightlifting, hurdles, and synchronised swimming
88
06
64
84
96
YOUR PROJECTS
36
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
Forget hoverboards – commute in style with this Pi-powered electric deck
PI SKATEBOARD
Discoverer
Search for treasure in the back yard with
this metal-detecting robot
COMMUNITY
>
THIS MONTH IN PI
We round up other goings-on in the Pi community
86
90
92
 
34
>
EVENTS
Get involved in a community gathering near you
>
YOUR LETTERS
Talk to us about the magazine or Raspberry Pi
Internet of LEGO
Take a tour of this incredible internet-
connected cityscape built from bricks
38
REVIEWS
40
>
WILDLIFE CAM KIT
>
ANALOG ZERO
>
PICO-8
August 2016
HAL 9000
This homage to 2001: A Space Odyssey
makes for a stylish voice assistant
80
82
83
5
raspberrypi.org/magpi
Zgłoś jeśli naruszono regulamin