Adventures In Raspberry Pi (eBook)

eBook Download: EPUB
2013
John Wiley & Sons (Verlag)
978-1-118-75123-7 (ISBN)

Lese- und Medienproben

Adventures In Raspberry Pi - Carrie Anne Philbin
Systemvoraussetzungen
13,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
Coding for kids is cool with Raspberry Pi and this elementary guide

Even if your kids don't have an ounce of computer geek in them, they can learn to code with Raspberry Pi and this wonderful book. Written for 11- to 15-year-olds and assuming no prior computing knowledge, this book uses the wildly successful, low-cost, credit-card-sized Raspberry Pi computer to explain fundamental computing concepts. Young people will enjoy going through the book's nine fun projects while they learn basic programming and system administration skills, starting with the very basics of how to plug in the board and turn it on.

Each project includes a lively and informative video to reinforce the lessons. It's perfect for young, eager self-learners—your kids can jump in, set up their Raspberry Pi, and go through the lessons on their own.

  • Written by Carrie Anne Philbin, a high school teacher of computing who advises the U.K. government on the revised ICT Curriculum
  • Teaches 11- to 15-year-olds programming and system administration skills using Raspberry Pi
  • Features 9 fun projects accompanied by lively and helpful videos
  • Raspberry Pi is a $35/£25 credit-card-sized computer created by the non-profit Raspberry Pi Foundation; over a million have been sold

Help your children have fun and learn computing skills at the same time with Adventures in Raspberry Pi.


Coding for kids is cool with Raspberry Pi and this elementary guide Even if your kids don't have an ounce of computer geek in them, they can learn to code with Raspberry Pi and this wonderful book. Written for 11- to 15-year-olds and assuming no prior computing knowledge, this book uses the wildly successful, low-cost, credit-card-sized Raspberry Pi computer to explain fundamental computing concepts. Young people will enjoy going through the book's nine fun projects while they learn basic programming and system administration skills, starting with the very basics of how to plug in the board and turn it on. Each project includes a lively and informative video to reinforce the lessons. It's perfect for young, eager self-learners your kids can jump in, set up their Raspberry Pi, and go through the lessons on their own. Written by Carrie Anne Philbin, a high school teacher of computing who advises the U.K. government on the revised ICT Curriculum Teaches 11- to 15-year-olds programming and system administration skills using Raspberry Pi Features 9 fun projects accompanied by lively and helpful videos Raspberry Pi is a $35/ 25 credit-card-sized computer created by the non-profit Raspberry Pi Foundation; over a million have been sold Help your children have fun and learn computing skills at the same time with Adventures in Raspberry Pi.

Carrie Anne Philbin (London, UK) is a High School-level Computing Teacher working with the Raspberry Pi Foundation on a project to improve the teaching of Computing in Schools. She is the founder and presenter of Gurl Geek Diaries.

About the Author v

Acknowledgments vi

Introduction 1

Adventure 1

You Have a Raspberry Pi. Now What? 9

Adventure 2

Taking Command of Your Raspberry Pi 27

Adventure 3

Creating Stories and Games with Scratch 45

Adventure 4

Programming Shapes with Turtle Graphics 77

Adventure 5

Programming with Python 101

Adventure 6

Programming Minecraft Worlds on the Raspberry Pi 129

Adventure 7

Coding Music with Sonic Pi 149

Adventure 8

Using the GPIO Pins on the Raspberry Pi 171

Adventure 9

The Big Adventure: Building a Raspberry Pi Jukebox 197

Appendix

Where to Go from Here 223

Glossary 229

Index 23

Introduction

Are you an intrepid adventurer? Do you like to try new things and learn new skills? Would you like to be a pioneer in creating technology? Do you own a Raspberry Pi, or are you considering getting one? If the answer is a resounding “Yes!” then this is the book for you.

What Is the Raspberry Pi and What Can You Do With It?

The Raspberry Pi is a computer. A very small computer. In fact, it is roughly the size of a credit card. Don’t be fooled by its size; as we know, good things come in small packages. However, the Raspberry Pi does not come in a package at all. It does not come in a case (although you can build one, as discussed in Adventure 1) and its circuit board and chips are fully visible, as you can see in Figure 1. You can plug a Raspberry Pi into a digital TV or monitor and use a USB keyboard and mouse with it, making it very easy to use, and because of its size you can easily transport it anywhere.

The Raspberry Pi gives you the opportunity to build and control a device that does what you want it to do. For example, you can deploy your very own robot arm, controlled by a program that you have written. You can design and create your own role-playing game, or produce beautiful computer art or music, all by using code.

Figure 1 The Model B revision of the Raspberry Pi, about the size of a credit card

Just because the Raspberry Pi is small doesn’t mean you can’t do big things with it. Here are just a few examples of some incredible Pi projects:

Launching teddy bears into space using high altitude ballooning (www.raspberrypi.org/archives/4715)

The ultimate bird feeder—it’s solar-powered, takes photographs and tweets images of birds! (www.raspberrypi.org/archives/4832)

Crazy customised Halloween costumes like Doc Brown from Back to the Future (www.raspberrypi.org/archives/4856)

A robotic sailboat (www.raspberrypi.org/archives/4109)

Pi-controlled sculptures like the 15-foot tall Mens Amplio with a brain that lights up (www.raspberrypi.org/archives/4667)

In the final chapter of this book, you’ll use your Pi to build a jukebox that plays your favorite tunes and displays track information on an LCD screen. And with the skills you learn throughout the book, you’ll be ready to dream up your own exciting projects—and create them.

Who Should Read This Book?

Adventures in Raspberry Pi is for any young person who has an interest in making things happen using computing. You might perhaps be unsure of how to get started or want to further your current skills. Whatever your reasons, this book will be your guide for a journey with your Raspberry Pi, the most important item in your backpack. Your trek will take you from setting up your Pi, through learning the basics of programming, to discovering how to create your own project. By the end of your adventures you will have acquired the skills you need to become a pioneer of technology!

What You Will Learn

This book will help you discover some of the amazing things you can do with your new Raspberry Pi, and introduce you to many of the developer tools and projects available to you. With this book, you will learn how to set up and use your Raspberry Pi easily so that you can experience its potential for yourself. You’ll learn the skills you need to design and create your own computing projects.

You’ll find out that you can give instructions to your Raspberry Pi in a variety of ways, using different programming languages and tools. The adventures in the book allow you to experience programming using Scratch, Turtle Graphics, Python, Sonic Pi and Minecraft Pi.

You will also learn some computing (and electronics) concepts that you can apply to other devices and programming situations. Many fundamental computing concepts are similar for all programming languages, so once you understand the basics of programming in one language you can apply that knowledge to others very easily.

What You Will Need for the Projects

First and foremost, of course, you need a Raspberry Pi. If you don’t already own one, you can buy a Raspberry Pi from a distributor in your country by visiting the official Raspberry Pi website (www.raspberrypi.org) and following the links listed under the “BUY A PI” banner. You will also need a monitor or other screen, a mouse and a keyboard to connect to your Raspberry Pi.

Each chapter—adventure—in the book notes any special items you need to build the project covered in that adventure. Along with your Pi, some projects require Internet access to enable you to download software or other materials. You’ll need headphones or speakers to listen to the music you make in Adventure 7. For the projects in Adventures 8 and 9, you will need some specific cables, wires, LEDs, resistors, and other hardware. You can purchase these items from your local electronics store, or from various online retailers.

As final ingredients, you’ll need some curiosity and a willingness to try new skills!

How This Book Is Organised

Every chapter of the book is a separate adventure, teaching you to use new skills and concepts while you create a project. The book is organised so that as you progress, the concepts and projects get more complex, building on what you learned in earlier adventures. Each chapter begins with an introduction to the language or tool for that adventure, provides instructions for downloading, installing, and setting up whatever you need, and usually gives you a short task to help you become familiar with the tool. After you’ve got the basics, I lead you step by step through the instructions for the main project.

In Adventures 1 and 2, you learn how to get started with your equipment and use common text commands, perhaps for the first time. These two chapters are necessary for the beginner Pi explorer, as further adventures will depend on the skills covered here.

The two most common ways to program a Raspberry Pi are to use the Scratch or Python languages that come preinstalled on the Pi’s main operating system, Raspbian. Adventures 3, 4 and 5 get you started with the basics of these languages. In Adventure 3, you use Scratch, a simple drag-and-drop programming language, to design and create your own computer game, while getting an introduction to the programming concepts of loops and variables. Adventure 4 is a bridge between Scratch and the more conventional programming language, Python. In this adventure, you use Turtle Graphics to create shapes and spirals with both programming languages. In Adventure 5, you learn how to create an adventure game program that asks for user input, uses lists, imports functions and prints text to the screen, all using text commands written in the programming language Python.

Adventures 6 and 7 take programming on the Raspberry Pi further by looking at two developer tools that you can download and use with the Raspberry Pi: Minecraft Pi and Sonic Pi. Minecraft Pi enables you to interact with and adapt the popular computer game Minecraft, using Python code to build your own transporter. With Sonic Pi, you can create electronic music by writing programs.

Another exciting aspect of using the Raspberry Pi is that it gives you the option to add on to the main board by using GPIO pins. Adventure 8 looks at the GPIO pins in more detail, introducing you to electronics and computer programming while you build a program that uses a marshmallow to make a light blink (yes, you read that right).

Adventure 9 draws on the computing concepts and skills learned through completing the preceding adventures in this book to create one big project—a jukebox. In this chapter, you learn how to plan, design and create a project from start to finish.

Finally, the Appendix suggests where you might go next to learn more about the different aspects of computer science and Raspberry Pi—including how to locate or set up your own club to share project ideas with others.

The Companion Website

Throughout this book you’ll find references to the Adventures in Raspberry Pi companion website, www.wiley.com/go/adventuresinrp. (It’s a good idea to bookmark that site so you can return to it as and when you need to.) The website includes video tutorials to help you out if you get stuck, and code files for some of the more extensive projects.

Conventions

Throughout the book, there are some special boxes to guide and support you. They use the following key:

These boxes explain complex computing concepts or terms.

These boxes are hints to make life easier.

These boxes include important warnings to keep you and your Raspberry Pi safe when completing a step or project.

These boxes feature quick quizzes for you to test your understanding or make you think more about the topic.

These boxes provide explanations or additional information about the topic at hand.

These boxes point you to videos on the companion website that will walk you through the tasks at hand.

You will also find two sets of sidebars in the book. Challenge sidebars ask you how you might expand on the...

Erscheint lt. Verlag 3.12.2013
Reihe/Serie Adventures In ...
Adventures In ...
Sprache englisch
Themenwelt Informatik Weitere Themen Hardware
Informatik Weitere Themen Smartphones / Tablets
Schlagworte about raspberry pi • adventures in raspberry pi • book by carrie anne philbin • book on Raspberry Pi • books on Raspberry Pi • children and raspberry pi • coding for children • coding for kids • Computer Hardware • computer programming for children • computer programming for kids • Computer Science • getting started Raspberry Pi • getting started with Raspberry Pi • Hardware • Hardware Hacking • how to use Raspberry Pi • Informatik • Raspberry Pi • Raspberry Pi and Processing • Raspberry Pi board • Raspberry Pi circuit board • raspberry pi for children • raspberry pi for kids • Raspberry PI projects • Raspberry Pi prototype board • Raspberry Pi tutorials • robots and Raspberry Pi • teaching children computer coding • teaching children computing • using processing • using Raspberry Pi • what is Raspberry Pi
ISBN-10 1-118-75123-X / 111875123X
ISBN-13 978-1-118-75123-7 / 9781118751237
Haben Sie eine Frage zum Produkt?
EPUBEPUB (Adobe DRM)
Größe: 15,9 MB

Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM

Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belle­tristik und Sach­büchern. Der Fließ­text wird dynamisch an die Display- und Schrift­größe ange­passt. Auch für mobile Lese­geräte ist EPUB daher gut geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine Adobe-ID und die Software Adobe Digital Editions (kostenlos). Von der Benutzung der OverDrive Media Console raten wir Ihnen ab. Erfahrungsgemäß treten hier gehäuft Probleme mit dem Adobe DRM auf.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine Adobe-ID sowie eine kostenlose App.
Geräteliste und zusätzliche Hinweise

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich