
GET A CAMERA MODULE FIRST WITH YOUR OFFICIAL RASPBERRY PI MAGAZINE Issue 45 Issue • May 2016 May The official Raspberry Pi magazine Issue 45 May 2016 raspberrypi.org/magpi PICTURE PERFECT The NEW Raspberry Pi Camera Module is here! REPLICATE A PI ZERO- AN ASTRO PI POWERED EXPERIMENT RAILWAY Make your own Pi takes a Dorset humidity sensor model railway to the next level MAKE NEOPIXEL HACKING WITH DINOSAURS ELECTRONICS Jurassic Park, eat Build impressive your heart out! costume effects BUILD AN IOT THREE NEW PI GAMES TO PLAY THERMOMETER From GameMaker: Studio And share your data online Also inside: THE BEST ARCA PI > CODER DOJO GETS A MASSIVE BOOST *E MACHINES Our top 10 magpi.cc > TAKE AMAZING PICTURES OF THE MOON retro gaming > THE ORACLE WEATHER STATION ARRIVES Issue 45 • May 2016 • £5.99 arcade cabinets > THE LATEST GADGETS REVIEWED & RATED powered by Pi 05 THE ONLY PI MAGAZINE WRITTEN BY THE READERS, FOR THE READERS 9772051998001 Welcome PROUD WELCOME TO SUPPORTERS OF: THE OFFICIAL PI MAGAZINE! he Raspberry Pi Camera Module is one of the T 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 SEE PAGE 34 FOR DETAILS 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 THIS MONTH: 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 20 THE CAMERA MODULE V2 ARRIVES Get the low-down on the new hardware & start a project today snap-happy in no time at all. If you’re a subscriber, you’ll already have received a MAKE A HUMIDITY SENSOR special code that entitles you to skip to the front of the 52 Replicate one of the best Astro Pi projects, as found on the ISS purchase queue at ThePiHut.com. Not yet a subscriber? It’s not too late to make use of this fantastic offer – see 66 RETRO GAMING GREATNESS page 34 for details! Learn about our ten favourite arcade cabinet projects Russell Barnes 95 WIN A CAMERA MODULE V2 Managing Editor We’ve got ten of the new cameras to give away! FIND US ONLINE raspberrypi.org/magpi GET IN TOUCH [email protected] EDITORIAL DESIGN PUBLISHING Managing Editor: Russell Barnes Critical Media: criticalmedia.co.uk For advertising & licensing: [email protected] Head of Design: Dougal Matthews [email protected] +44 (0)7904 766523 Features Editor: Rob Zwetsloot Designers: Lee Allen, Mike Kay Publisher: Liz Upton Sub Editors: Laura Clay, Phil King, Lorna Lynch Cover photography: Gareth Halfacree CEO: Eben Upton DISTRIBUTION SUBSCRIPTIONS CONTRIBUTORS Seymour Distribution Ltd Select Publisher Services Ltd Sam Aaron, Dan Aldred, Mike Cook, Lucy Hattersley, 2 East Poultry Ave PO Box 6337 Richard Hayler, Phil King, Willem Koopman, Ross London Bournemouth O’Neill, Matt Richardson, Ben Rogers, Jon Silvera, EC1A 9PT | +44 (0)207 429 4000 BH1 9EH | +44 (0)1202 586 848 Richard Smedley & Francesco Vannini This magazine is printed on paper sourced from The MagPi magazine is published by Raspberry Pi (Trading) Ltd., 30 Station Road, Cambridge, CB1 2JH. The publisher, sustainable forests and the printer operates an editor and contributors accept no responsibility in respect of any omissions or errors relating to goods, products or services environmental management system which has referred to or advertised in the magazine. Except where otherwise noted, content in this magazine is licensed under a been assessed as conforming to ISO 14001. Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0). ISSN: 2051-9982. raspberrypi.org/magpi AprilMay 2016 3 Contentsraspberrypi.org/magpi Issue 45 May 2016 TUTORIALS COVER FEATURE > PI-THERMOMETER 46 Build your own internet-based LED thermometer > PREDICTABLE NETWORKING 48 Give your Raspberry Pi a network address of its own > MAKE ASTEROIDS IN BASIC 50 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 54 Join Sam Aaron for part 10 of his music-coding series > RASPBERRY PI ACCESS POINT 56 20 Using the PaPiRus E-Ink display > 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 64 Build an impressive costume with the help of Raspberry Pi CODERDOJO Dino Hack IN THE NEWS Blackgang Chine has renovated some animatronic dinosaurs with the help of the Raspberry Pi 6 8 Astro Pi coding challenge The CoderDojo Foundation is The results are in and your musical masterpieces are benefiting from VMware Foundation 10 ready for the ISS crew to listen to! support. Here’s how… 4 May 2016 raspberrypi.org/magpi 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 This home-made submersible of retro gaming nirvana into your own home drone will take your breath away 84 YOUR PROJECTS REGULARS > NEWS 06 The biggest stories from the world of Raspberry Pi > TECHNICAL FAQ 72 Got a problem? Maybe we can help… > BOOK REVIEWS 80 The best reads for coders and hackers > THE FINAL WORD 96 More musings from Raspberry Pi’s own Matt Richardson 36 COMMUNITY > THIS MONTH IN PI 82 Find out what else has been happening in the community PI MOON CAMERA > SEA OF ROBOTS 86 James Mitchell shows off his excellent Raspberry Pi camera project Building an AI swarm of boats using the Raspberry Pi > EVENTS 88 Mars Rover 38 Get involved in a community gathering near you! This Pi enthusiast aimed for the stars > YOUR LETTERS when building his Raspberry Pi robot 92 Talk to us about the magazine (or anything you like!) Model Railway 40 Dorset’s model village turned to the Pi REVIEWS to power their awesome railway > DRUM HAT 74 > PICON ZERO 76 Cat Wheel 42 Get your moggy moving with this excellent > WYLIODRIN STUDIO 78 exercise apparatus built for a feline friend > NUCLEUS ZERO CASE 79 raspberrypi.org/magpi May 2016 5 News FEATURE ASTRO PI CODING CHALLENGE RESULTS ARE IN! What music will Tim Peake and the rest of the ISS crew be listening to in space? he Raspberry Pis may from British new wave band operate, which shows that coding T already be up in space Orchestral Manoeuvres in the a program that’s simple and performing experiments, Dark. The judges on both days were elegant is not as straightforward but it doesn’t mean the end for accompanied by Dave Honess of as it sounds. The ones that the coding portion of Astro Pi. the Raspberry Pi Foundation, who won all nailed the simplicity Over the last few months, some has been at the core of Astro Pi and functionality in exactly intrepid young coders have been from the very beginning. the right place. creating music and MP3 players to “The judging was great fun,” “The Sonic Pi tunes were really send up to the Astro Pis orbiting Dave tells us. “This competition good, too. Many of them were Earth, and recently it was finally differed from the previous, more simple beats and electronic time to judge the efforts of these open-ended one, in that students sounds with a Kraftwerk-cum- amazing young people from around were given a specific brief to code Giorgio [Moroder] vibe. We had the country. to. The MP3 player challenge gave one song that was composed Judging was split over two days, rise to lots of different approaches almost entirely of burp samples, with the MP3 players chosen first to the same task, which was which had us all in stitches! Shout after an all-day session, and the really interesting to see. Where out to Anchorsholme Academy Sonic Pi tracks compared on the do you put the play/stop buttons? Code Club for that one. My second full day. Among the judges How does the heads-up display favourite track, though, was Piano were members of the ESA, the work? Do you put waveforms Pi from Bartholomew Secondary, Royal Institute, and even Andy and VU meters in for fun? Some which had an old-school Ace of McCluskey and Paul Humphreys of them were really complex to Base Nineties sound.” AND THE WINNER IS… CATEGORY: MP3 PLAYER AGE GROUP:- 11 AND UNDER 11 TO 13 14 TO 16 17 TO 18 Jude Young Lowena Hull Joe Speers Marcus Panchal SCHOOL: SCHOOL: SCHOOL: SCHOOL: Clifton College Portsmouth N/A, Lancaster Royal Preparatory School High School independent entry Grammar School SUPERVISOR: SUPERVISOR: SUPERVISOR: SUPERVISOR: Andrew Young Gary Barrows Craig Speers Sanjay Panchal magpi.cc/1Vjumff magpi.cc/1VjvXlm magpi.cc/1Vjw0xF magpi.cc/1Vjw4gH 6 xxxxMay 2016 raspberrypi.org/magpi ASTRO PI CODING CHALLENGE News Left Listen to the winning tracks on the Raspberry Pi SoundCloud account Below The judging for the MP3 player lasted a whole day; same with the songs the following day To ensure fairness, the Bristol, who sounded like he was entries were anonymous when doing a million fist pumps per presented to the judges, and minute.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages100 Page
-
File Size-