Muutke küpsiste eelistusi

Raspberry Pi Projects for Kids: Create an MP3 Player, Mod Minecraft, Hack Radio Waves, and More! [Pehme köide]

  • Formaat: Paperback / softback, 288 pages, kõrgus x laius: 235x178 mm, 1 Illustrations
  • Ilmumisaeg: 02-Dec-2019
  • Kirjastus: No Starch Press,US
  • ISBN-10: 1593279469
  • ISBN-13: 9781593279462
  • Formaat: Paperback / softback, 288 pages, kõrgus x laius: 235x178 mm, 1 Illustrations
  • Ilmumisaeg: 02-Dec-2019
  • Kirjastus: No Starch Press,US
  • ISBN-10: 1593279469
  • ISBN-13: 9781593279462
Learn coding and electronics through 12 original and daring projects that hack wireless signals.

Learn to build and code with these cool projects that hack common things and interact with the real world. Use the Raspberry Pi to turn lights on in your room through Minecraft; spy on bluetooth signal devices to see who is in the area; build an MP3 player you can send music to wirelessly; create a motion-triggered camera to automatically take pictures of wildlife; and other dastardly deeds. These projects are super easy to follow for even the total beginner, and you'll end up with excellent products that are actually fun to use. Aldred explains the code in simple, step by steps ways that doesn't overwhelm, but allows the reader to pick up concepts and learn the specifics through building.

Arvustused

This book is ideal for those who have either just got their Pi and are in their early teens, or perhaps slightly younger, and also those who have used the Pi for a bit and want something to get their teeth into. Michael Horne, Raspberry Pi Pod

it is a clearly written, accessible, high-quality production, which certainly should inspire youngsters to build things with their Raspberry Pi. Alun Williams, Electronics Weekly

Muu info

Learn coding and electronics through 12 original and daring projects that hack wireless signals.
Acknowledgments xv
Introduction xvii
What Is This Book All About? xviii
What's In The Book xviii
What You'll Need For This Book xxi
Chapter 1 Getting Started With The Raspberry Pi 1(34)
What Is A Raspberry Pi?
2(1)
The Raspberry Pi's Hardware
2(4)
The Raspberry Pi
4
3 Other Models
3(2)
GPIO Pins
5(1)
Setting Up Your Raspberry Pi
6(14)
Downloading The Operating System
7(1)
Installing The Operating System
8(1)
Setting Up Your Pi Equipment
9(1)
Booting Up Your Pi
9(1)
Configuring Your Raspberry Pi
10(2)
A Quick Tour Of The Raspbian Operating System
12(2)
Configuring Your Raspberry Pi
14(4)
Going Online
18(2)
Using The Command Line
20(4)
Setting The Time
22(1)
Accessing The Configuration Settings
23(1)
Updating And Upgrading
23(1)
Installing Software Packages
24(1)
Accessing Your Raspberry Pi Remotely
24(7)
Accessing The Raspberry Pi Via SSH
25(2)
Accessing The Raspberry Pi Via VNC Using RealVNC
27(3)
Accessing The Raspberry Pi Via Remote Desktop
30(1)
Transferring Files
31(2)
Wrapping Up
33(2)
Chapter 2 Python Programming 35(14)
Exploring Python
36(1)
Introducing Thonny And Idle
36(2)
Writing Your First Program
38(1)
Strings
39(1)
Variables
39(1)
Loops
40(2)
While Loops
41(1)
For Loops
42(1)
Conditionals
42(1)
Functions
43(1)
Running Python Code From The Terminal
44(1)
Common Programming Mistakes
44(3)
Capital Letters
45(1)
Indentation
45(2)
Using Comments
47(1)
Wrapping Up
47(2)
Chapter 3 Hot Glue Night-Light 49(12)
What You'll Need
50(1)
Building The Custom Night-Light
51(4)
Coding The Night-Light
53(2)
Running Your Program
55(1)
Modify: Fading The LED
55(1)
Building The LED Night-Light
55(4)
Wiring Your Night-Light
56(1)
Coding The Night-Light
57(1)
Running Your Program
58(1)
Wrapping Up
59(2)
Chapter 4 The Pi Camera: Selfie Snapper 61(22)
What You'll Need
62(1)
Versions And Specifications
62(1)
Photography With The Pi Camera
63(13)
Setting Up The Hardware And Software
63(5)
Customizing Your Images
68(5)
Triggering The Camera With A Button
73(3)
Videos With The Pi Camera
76(6)
Making A Video
76(1)
Playing The Video
77(1)
Playing The Video On A Computer Or Other Device
77(1)
Creating A Time-Lapse Video
78(4)
Wrapping Up
82(1)
Chapter 5 : Pi Spy Part 1: Hacking Webcams For Secret Surveillance 83(14)
What You'll Need
84(1)
Setting Up Your Webcam
84(3)
Streaming A Video From The Webcam
87(3)
Live Streaming To A Device
90(4)
Stopping And Restarting Motion
94(1)
Wrapping Up
95(2)
Chapter 6 Manipulating Minecraft 97(18)
What You'll Need
98(1)
Minecraft On The Raspberry Pi
98(3)
Starting Minecraft
98(2)
Finding Yourself: Using The X-, Y-, And Z- Coordinates
100(1)
Hacking Minecraft
101(1)
Posting A Message To Chat
101(1)
Coding The Chat Messenger
102(1)
Running Your Program
102(1)
Trampoline Grass
102(2)
Coding The Trampoline Grass
103(1)
Running Your Program
104(1)
Taking It Further
104(1)
The Sand Drop Game
104(3)
Coding The Sand Drop Game
105(1)
Running Your Program
106(1)
Taking It Further
106(1)
Minecraft-Controlled LED
107(2)
Wiring The Minecraft LED
107(1)
Coding The Minecraft LED
108(1)
Running Your Program
108(1)
Camera Surveillance Minecraft Towers
109(5)
Building The Three Trigger Towers
110(1)
Coding The Camera Towers
111(3)
Running Your Program
114(1)
Wrapping Up
114(1)
Chapter 7 Radio Invasion 115(14)
What You'll Need
116(1)
Preparing The Raspberry Pi
116(2)
Running A Test Program
118(1)
Streaming An Mp3 Music File
119(1)
Recording And Broadcasting Your Own File
120(3)
Setting Up Your Microphone And Speakers
120(1)
Making And Playing Your Recording On The Raspberry Pi
121(1)
Broadcasting The File
122(1)
Coding The Soundboard
123(4)
Creating The GUI Functions
123(2)
Creating The Window And Buttons
125(2)
Running Your Program
127(1)
Wrapping Up
128(1)
Chapter 8 The Automatic Texting Machine 129(12)
What You'll Need
130(1)
A Little About Sms
130(1)
Creating A Simple Text Sender
130(3)
Signing Up For A Twilio Account
130(3)
Setting Up A Twilio Phone Number
133(3)
Creating A Project
133(1)
Installing Twilio
134(1)
Writing The Code
134(2)
Creating The Automatic SMS Reminder Machine
136(4)
Setting Up And Validating The Format
137(1)
Coding The Reminder Message
138(1)
Matching Times And Sending The Message
139(1)
Wrapping Up
140(1)
Chapter 9 Pi Spy Part 2: Wi-Fi And Bluetooth Tracking 141(24)
What You'll Need
142(1)
Creating Your Status Board
143(3)
Wiring Up The LEDs
143(1)
Adding The LEDs To The Board
143(1)
Connecting The LEDs To The Raspberry Pi
144(2)
Attaching The Raspberry Pi
146(1)
Tracking Devices With IP Addresses
146(1)
Finding Your IP Address
147(1)
Finding The IP Addresses Of Other Devices
147(3)
Using FING
148(1)
Using NMAP
148(2)
Writing The Status Board Code
150(4)
Setting Up And Identifying The First Device
150(2)
Finding The Rest Of The Devices
152(1)
Adding Delays, Responding To Data, And Adding The Button
152(2)
Running The Program
154(1)
Troubleshooting
154(1)
Setting Up The Code To Run Automatically
154(3)
Using Cron To Autostart The Program
155(1)
Rebooting To The Command Line
156(1)
Tracking Devices With Bluetooth
157(6)
What Is Bluetooth?
158(1)
Turning On The Raspberry Pi Bluetooth
158(2)
Writing The Status Board Code
160(2)
Shutting Down
162(1)
Wrapping Up
163(2)
Chapter 10 Magic Music Box 165(20)
What You'll Need
166(1)
Choosing A Speaker Type
166(2)
Building The Magic Music Box
168(12)
Wiring The Buttons
168(3)
Connecting The Speaker
171(1)
Coding The Magic Music Box
172(7)
Running Your Program
179(1)
Automatically Starting The Mp3 Player On Boot-Up
180(3)
Headphone Jack Option
180(2)
Bluetooth Option
182(1)
Putting It All Together
183(1)
Wrapping Up
184(1)
Chapter 11 Nature Box: Motion-Sensing Camera 185(18)
What You'll Need
186(1)
Setting Up The Passive Infrared Sensor
186(3)
Wiring The PIR
187(1)
Testing The PIR
187(2)
Setting Up The Pi Camera
189(1)
Attaching The Pi Camera
189(1)
Creating A New Folder To Store The Images
190(1)
Writing The Test Code
190(2)
Retrieving The Images From The Raspberry Pi
192(3)
Setting Up A Dropbox Account
192(2)
Installing Dropbox For Python
194(1)
Coding The Final Nature Box
195(4)
Setting Up The Final Program
196(1)
Combining The Camera And Sensor
196(1)
Creating The Try And Except
197(1)
Running The Motion Sensor
198(1)
Starting The Program Automatically
199(2)
Putting It All Together
201(1)
Wrapping Up
202(1)
Chapter 12 Smart Plugs For Smart Home Hacks 203(12)
What You'll Need
204(1)
Setting Up The Energenie Remote Plug
205(1)
Testing The Lamp
206(2)
Controlling The Lamp Remotely
206(1)
Flashing. The Lamp On And Off
207(1)
Using An App To Control The Plug
208(3)
Coding The Smart Plug
211(3)
Running The Program
211(1)
Improving The Code To Switch On And Off
212(2)
Wrapping Up
214(1)
Chapter 13 Mirror, Mirror: The Social Media Status Mirror 215(28)
What You'll Need
216(1)
Preparing The Equipment
217(4)
Connecting The Speaker
217(1)
Teaching The Pi To Read Text Out Loud
218(1)
Preparing The LEDs
218(1)
Using The NPN Transistor
219(1)
Preparing The Circuit
220(1)
Testing The LEDs
221(1)
Setting Up Your Twitter Developer Account
221(6)
Setting Up Your Twitter App
227(3)
Creating The Access Keys And Tokens
229(1)
Programming Your Raspberry Pi With The App
230(6)
Sending Your First Tweet
230(2)
Reading Tweets
232(1)
Streaming Tweets Automatically
233(3)
The Final Program
236(4)
Starting The Final Program
236(1)
Adding The Main Program Code
237(2)
Automatically Starting The Twitter Stream
239(1)
Putting It All Together
240(1)
Wrapping Up
241(2)
Chapter 14 Computer Games With The Sense HAT 243
What You'll Need
245(1)
What Is The Sense HAT?
245(1)
Getting Started With The Sense HAT
246(10)
Scrolling Text Across The Sense HAT
246(1)
Taking A Temperature Reading
247(1)
Making A Real-Time Temperature Display
248(1)
Building A Compass
249(1)
Making A Magical Sparkle Screen
250(1)
Creating An Image With The LED Display
251(2)
Creating Images With The Grid Draw Program
253(3)
Building The Rock, Paper, Scissors, Lizard, Spock Game
256(10)
Importing Modules And Creating The Variables
257(1)
Preparing The Game
258(1)
Setting Up The Player's Choice
258(1)
Selecting An Object
259(1)
Notifying The Player Of Their Option Choice
260(1)
Coding The Raspberry Pi's Selection
261(1)
Displaying The Raspberry Pi's Choice
262(1)
Choosing A Winner
262(2)
Starting A New Game
264(1)
Play Again?
264(2)
Wrapping Up
266
Dan Aldred is a Computer Science teacher, freelance writer, and hacker. He has championed the use of the Raspberry Pi as a tool for learning and creativity, and is a Raspberry Pi Certified Educator. Aldred led the winning team of students for the first Astro Pi competition whose code is now orbiting Earth aboard the International Space Station. He currently lives in the United Kingdom.