raspberry_pi_4_starter_guide_the_mag_pi_issue_84.pdf

(33381 KB) Pobierz
BUY IN PRINT
WORLDWIDE
MAGPI.CC/STORE
Issue 84
August 2019
magpi.cc
The official Raspberry Pi magazine
IDE
GU
ly
Get going quick
s
ver epic project
Disco
king
art coding & ma
St
RTER
STA
BUILD A
LOW COST ROBOT
Discover robotics with everyday parts
BERRY PI
4
RASP
Learn
Raspbian
THE BEST
SUMMER PROJECTS
Fun in the sun with portable computing
£5.99
30
+
PAGES OF TUTORIALS
magpi.cc/store
SUBSCRIBE TODAY
FROM ONLY £5
Subscriber Benefits
FREE Delivery
Get it fast and for FREE
Exclusive Offers
Great gifts, offers, and discounts
Great Savings
Save up to 35% compared to stores
Rolling Monthly Subscription
Low monthly cost
(from £5)
Cancel at any time
Free delivery to your door
Rasp
b
erry
Pi Zero W
Starter Kit
WORTH £20
FREE
Available worldwide
Subscribe for 12 Months
£55
(UK)
£80
(EU)
£90
(USA)
£90
(Rest of World)
Free Raspberry Pi Zero W Kit with 12 Month upfront
subscription only (no Raspberry Pi Zero W Kit with
Rolling Monthly Subscription)
Subscribe by phone:
01293 312193
Subscribe online:
magpi.cc/subscribe
Email:
magpi@subscriptionhelpline.co.uk
WELCOME
I
WELCOME
to
The MagPi
84
hope you’re enjoying Raspberry Pi 4.
We love the programmable
computer and believe it’s capable of becoming the main desktop
machine in the home. Starting from $35, that’s a big attraction. And
lots of people are disco ering Raspberry i for the rst ti e.
Our Raspberry Pi Starter Guide (page 24) is designed to help these
newcomers with Raspberry Pi 4, and even long-standing Raspberry Pi
users will learn something new.
More importantly, the whole of
The MagPi
magazine is designed to
get you beyond the board and into building projects. So, if you’ve ever
fancied making a low-cost wheeled robot, now is your chance (page 36).
And, if you are more advanced with robots, we’ve got a tutorial on using
CircuitPython to control servos and motors (page 44).
What about retro gaming? We look at how to build a space shooter
with PICO-8 (page 54). Advanced makers might want to check out the
Squeeze Controller (upcycled from an old hand-dynamo). This month,
Mike Cook uses that controller to design an LED racing game (page 58).
And last, but de nitely not least De olition
and prints out a ticket on a thermal
printer (page 50). There’s lots of fun
to be had with a Raspberry Pi and the
right project.
The point of Raspberry Pi isn’t just
to build a low-cost computer. It’s
what you build with that computer.
Make something amazing and share it
with the rest of the community.
an is a hilarious
project by PJ Evans that uses AI to detect when you say naughty words,
EDITOR
Lucy
Hattersley
Editor of
The
MagPi.
Tunnels
from a terminal like
an o er caffeinate
mole. Does not
play Mario Maker.
Is on a rickety
seaplane holiday,
so may not make it
back next month.
magpi.cc
GET A
RASPBERRY PI
ZERO W KIT
PAGE
22
Lucy Hattersley
Editor
magpi.cc
03
CONTENTS
Contents
>
Issue 84
>
August 2019
Cover Feature
24
Raspberry Pi
Manual
The world of Raspberry Pi
Your letters
Next month
Final word
Regulars
06
92
97
98
10
14
16
18
20
Project Showcases
Smart Home Herb Garden
Marvin Go-Kart
Intelligent Drowsiness Monitor
Smart Window Fan
PIC-20
24
20
10
Smart Home Herb Garden
PIC-20
DISCLAIMER:
Some of the tools and techniques shown in The MagPi magazine are dangerous unless used with skill, experience, and appropriate personal protection equipment. While
we attempt to guide the reader, ultimately you are responsible for your own safety and understanding the limits of yourself and your equipment. Children should be supervised. Raspberry
Pi (Trading) Ltd does not accept responsibility for any injuries, damage to equipment, or costs incurred from projects, tutorials or suggestions in The MagPi magazine. Laws and regulations
covering many of the topics in The MagPi magazine are different between countries, and are always subject to change. You are responsible for understanding the requirements in your
jurisdiction and ensuring that you comply with them. Some manufacturers place limits on the use of their hardware which some projects or suggestions in The MagPi magazine may go
beyond. It is your responsibility to understand the manufacturer’s limits.
04
magpi.cc
CONTENTS
54
58
Tutorials
Learn Lua with PICO-8
LED Racer – Pi Bakery
76
36
40
44
50
54
58
64
69
Low-cost robot – part 1
Use SSH with Raspberry Pi
CircuitPython servos
Swear fine machine
Learn Lua with PICO-8
LED Racer – Pi Bakery
GUI user input with GTK
The Big Feature
Pibow Coupé 4 and Fan SHIM
Scorching Summer Projects
84
Reviews
76
78
80
82
Pibow Coupé 4 and Fan SHIM
Keybow MINI
Top 10 projects to upgrade
Learn Sense HAT
Community
Anne Carlill interview
84
86
90
Anne Carlill interview
This month in Raspberry Pi
Events
WIN
RASPBERRY PI 4
ONE OF
THREE
DESKTOP KITS
95
magpi.cc
05
Zgłoś jeśli naruszono regulamin