Essentials_SenseHAT_v1.pdf

(9191 KB) Pobierz
ESSENTIALS
EXPERIMENT
WITH
THE
SENSE
HAT
SENSE THE REAL WORLD
WITH
YOUR
Raspberry Pi
The Pi Education Team
Written by
SUBSCRIBE
TODAY
Subscribe to the official Raspberry Pi magazine to make massive savings
&
SAVE
UP TO
25%
Pricing
Quarterly from:
Subscription benefits
Get it first (before stores)
Free delivery to your door
Never miss a single issue
£12.99/ $37.50
Six issues from:
From £30/ $69
12 issues from:
£55/ $129
How to subscribe:
UK - ROW: +44 (
0
)
1202 586848
US -
800 428 3003
Find us on your digital device
by searching for ‘The MagPi’
Visit:
magpi.cc/Subs1
WELCOME TO
EXPERIMENT WITH
THE SENSE HAT
S
pace exploration is fascinating and
inspiring for children and adults alike.
With the tiny Raspberry Pi computer
helping to change the world little-by-little, it was
only a matter of time before it went to space to
help out there as well. This new adventure is called
the Astro Pi project. To help the Raspberry Pi in
its extraterrestrial mission, the Sense HAT was
created to provide more functionality; the Sense
HAT board sits on top of the Raspberry Pi, and has
lights and sensors to allow the Pi to interact with
the outside world.
In this book, we aim to help you figure out
exactly what the Sense HAT is and how you could
use it to make your projects and dreams a reality.
It’s an incredibly versatile and flexible bit of kit
with plenty of very obvious uses, along with many
many less-obvious ones, that you’ll love to make
and share.
Rob Zwetsloot
Features Editor, Raspberry Pi
FIND US ONLINE
raspberrypi.org/magpi
EDITORIAL
GET IN TOUCH
magpi@raspberrypi.org
DESIGN
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
Illustrator:
Sam Alder
DISTRIBUTION
Seymour Distribution Ltd
2 East Poultry Ave,
London
EC1A 9PT |
+44 (0)207 429 4000
In print, this product is made using paper
sourced from sustainable forests and
the printer operates an environmental
[
management system which has been
Chapter One
]
assessed as conforming to ISO 14001.
SUBSCRIPTIONS
Select Publisher Services Ltd
PO Box 6337, Bournemouth
BH1 9EH |
+44 (0)1202 586 848
magpi.cc/Subs1
This book is published by Raspberry Pi (Trading) Ltd., Mount Pleasant House, Cambridge, CB3
0RN. The publisher, editor and contributors accept no responsibility in respect of any omissions or
errors relating to goods, products or services referred to. Except where otherwise noted, content
in this product is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0
Unported (CC BY-NC-SA 3.0).
3
[ EXPERIMENT WITH THE SENSE HAT ]
ESSENTIALS
CONTENTS
05
[
CHAPTER ONE
]
WHAT IS THE SENSE HAT?
Learn why you should be excited.
[
THE PI
EDUCATION
TEAM
]
09
[
CHAPTER TWO
]
HIGH FLIERS
The Astro Pi mission in full.
21
[
CHAPTER THREE
]
GETTING STARTED WITH
THE SENSE HAT
Learn how to use your new Sense HAT
34
[
CHAPTER FOUR
]
GRAVITY SIMULATOR
Cats on the moon need gravity too
39
[
CHAPTER FIVE
]
MAKE A DIGITAL
MAGIC 8 BALL
Shake up your fortune
44
[
CHAPTER SIX
]
INTERACTIVE PIXEL PET
A digital pet all of your own
53
[
CHAPTER SEVEN
]
ASTRONAUT REACTIONS GAME
Are you as fast as a trained astronaut?
57
[
CHAPTER EIGHT
]
SENSE HAT DATA LOGGER
Keep a record of your surroundings
Some of the
articles you’re
about to read were
created by the
fantastic Raspberry
Pi education
team, a selection
of excellent
individuals who
love to teach
teachers how to
use the Raspberry
Pi. As well as
seeing their work
at Picademies
around the world,
they also write
teaching materials
which can be
found online and
in The MagPi
magazine. You can
read many more
of their tutorials
and lessons on the
Resources section
of the Raspberry
Pi website:
raspberrypi.org/
resources
[
Don’t Panic
]
[
Contents
4
ESSENTIALS
ESSENTIALS
ONE
]
WHAT IS THE
[
CHAPTER
SENSE HAT?
The special add-on to the Raspberry Pi that lets it
interact more with the world around, as seen on the ISS!
5
[
Chapter One
]
Zgłoś jeśli naruszono regulamin