Raspberry Pi For Kids For Dummies®

Published by: John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.com

Copyright © 2015 by John Wiley & Sons, Inc., Hoboken, New Jersey

Published simultaneously in Canada

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.

Trademarks: Wiley, For Dummies, the Dummies Man logo, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.

LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ.

For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit www.wiley.com/techsupport.

Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com.

Library of Congress Control Number: 2015941231

ISBN 978-1-119-04951-7 (pbk); ISBN 978-1-119-04982-1 (ePDF); ISBN 978-1-119-04949-4 (ePub)

Raspberry Pi For Kids For Dummies®

Visit www.dummies.com/cheatsheet/raspberrypiforkids to view this book's cheat sheet.

Table of Contents

Cover

Introduction

About This Book

Foolish Assumptions

Icons Used in This Book

Beyond This Book

Where to Go from Here

Week 1: Making a Pi

Chapter 1: Find Parts for Your Pi

Understand the Pi

Discover the Different Pi Models

Understand Pi Extras

Add Optional Extras

Collect Parts the Lazy Way

Chapter 2: Create a Mind for Your Pi

Understand Operating Systems

Meet Linux on the Pi

Meet Raspbian

Get NOOBS the Hard Way

Chapter 3: Connect Your Pi

Find a Space

Find the Power

Plug in a Memory Card

Connect a Monitor or TV

Connect a USB Hub

Connect a Keyboard and Mouse

Connect to the Internet

Connect Power

Chapter 4: Power Up and Get Started

Power Up Your Pi

Boot Raspbian

Configure Your Pi

Set Up Advanced Options

Shut Down or Reboot the Pi

Chapter 5: Use the Desktop

Get Started with the Desktop

Use the Older Desktop

Tour the Desktop

Use the Taskbar

Use the Quick Launch Icons

Use the Desktop Menu

Edit Files

Week 2: Simple Programming Projects

Chapter 6: Start Scratch from Scratch

Understand Scratch

Connect Blocks and Making Scripts

Find and Start Scratch

Look around Scratch

Understand the Stage

Move a Sprite with go to

Make a Simple Script

Control a Script

Make a Simple Bounce Script

Introduce Variables

Chapter 7: Meet Sonic Pi

Get Started with Sonic Pi

Set Up Sound on the Pi

Play Tunes with Sonic Pi

Take a Guided Tour

Understand Music and Sound

Make More Complicated Music

Week 3: Finding Out More about Programming

Chapter 8: Get Started with Python

Meet Python

Remember Information

Use the Shell and the Editor

Chapter 9: Make a Guessing Game with Python

Think about Code

Ask the Player a Question

Check the Answer

Repeat Questions

Figure Out Variable Types

Put the Guessing Game All Together

Repeat Code and Make It Simpler

Add Smarts and Magic

Chapter 10: Dig into Linux Commands

Understand the Command Line

Use Commands

Get Started with Commands

Find and Learn Commands

Meet Important Linux Directories

Become a Superuser with sudo

Use Command Shortcuts

Chapter 11: Manage and Customize Linux

Meet File Permissions

Understand Read, Write, and Execute

Understand Users and Groups

Work with Permissions

Work with Users and Groups

Make and Work with Files

Install Software

Week 4: Fun Pi Software Projects

Chapter 12: Throw Shapes with Turtles

Meet the Python Turtle

Draw and Move

Control the Pen

Draw with Functions

Use Smart Repeats

Chapter 13: Combine Minecraft and Python

Get Started with Minecraft

Explore the World

Understand APIs

Use the Minecraft API

Try a Few More Things

Chapter 14: Make a Dumb Website

Meet Web Servers

Understand Dumb Websites

Choose a Web Server

Make Simple Web Pages

Find Out More about Web Design

Go Deeper into CSS and HTML

Chapter 15: Make a Smart Website

Understand Smart Websites

Meet PHP

Install PHP

Get Started with PHP

Check PHP

Play with PHP

Link PHP to Linux

A Quick Note about JavaScript

Week 5: Working with a Webcam

Chapter 16: Take Photos with a Webcam

Understand Webcams

Understand Photo Cams

Choose a Webcam

Use the RPI Camera

Meet Pygame

Take and Save a Photo

Fix Problems

Improve the Script

Chapter 17: Make a Simple Webcam

Set Up a Webpage

Debug a Web Page

Do More Advanced Debugging

About the Author

Cheat Sheet

Advertisement Page

Connect with Dummies

End User License Agreement

Guide

Cover

Table of Contents

Begin Reading

Pages

i

ii

v

vi

vii

viii

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

255

256

257

258

259

260

261

262

263

264

265

266

267

268

269

270

271

272

273

274

275

276

277

278

279

280

281

282

283

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

339

340

341

342

343

344

Introduction

How much do you know about computers? Most people can play games, watch videos, listen to music, and explore the Internet without knowing much at all. The computer just works, and that’s all they care about.

Do you want to know more? What really happens when you click a mouse, press a key on a keyboard, click a link on a website, or launch an app?

And more — how do you make a website? How do you make an app? Or a game?

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!