You are previewing Raspberry Pi Projects for Kids.
O'Reilly logo
Raspberry Pi Projects for Kids

Book Description

Start your own coding adventure with your kids by creating cool and exciting games and applications on the Raspberry Pi

In Detail

Technology today is growing rapidly, with all sorts of cool gadgets, applications, and games made thanks to the rise of computer programming. The Raspberry Pi is a crafty device that has promoted the teaching of basic computer science in schools, catching the attention of both young and old. Although learning to program offers a unique set of skills that allows you to explore your creative side, it has its own challenges, which may mean you will need a helping hand.

This handy guide will launch you into the world of computer programming by showing you how to build your own amazing applications. Raspberry Pi Projects for Kids contains several awesome projects for you to get hands-on with, including creating your own games, crafting your own simple electronics, and making your own interactive map. By learning how to use Scratch and Python in your programming, you will be a computer scientist in no time!

After you have become comfortable with setting up and playing with your Raspberry Pi, you will be transported into this exciting world of technology, where you will get to grips with using Scratch, Raspberry Pi’s official programming language, in order to develop your own version of Angry Birds! After connecting new circuitry, lights, and switches to your Raspberry Pi, you will then get to use Scratch to create your own reaction game. See for yourself who’s the quickest off the mark!)You will finally get to step things up by developing an interactive map of your own hometown using the Python programming language. You will be working for Google before you know it!

This book will teach you everything you need to know about using your Raspberry Pi in order to develop your own games, applications, and electronic circuits. It’s time to have your Pi and eat it, because you will be able to create virtually anything you like.

What You Will Learn

  • Learn how to set up your own Raspberry Pi device
  • Explore the world of programming by learning about Scratch and Python
  • Program with Scratch to develop your own version of Angry Birds
  • Get hands-on with some electronics to build your own reaction game
  • Develop with Python in order to build your own version of Google Maps
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Raspberry Pi Projects for Kids
      1. Table of Contents
      2. Raspberry Pi Projects for Kids
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      8. 1. Getting Started with the Raspberry Pi
        1. Materials needed
          1. Power supply
          2. Storage
          3. Input
          4. Video
          5. Network
        2. Preparing the SD card
        3. Starting up the Raspberry Pi
        4. Using your Raspberry Pi
          1. The command line
          2. Updating and installing new software
          3. Other uses for Raspberry Pi
          4. Troubleshooting
        5. Summary
      9. 2. Making Your Own Angry Birds Game
        1. Scratch
          1. Hello world!
          2. Code tour
        2. Creating a character
        3. Creating a level
        4. Moving the character
          1. Initialization
          2. Moving with the keyboard
          3. Launch!
          4. Flight
        5. Adding physics
          1. Gravity
          2. Bouncing
          3. Ending the game
        6. Scoring
        7. Extensions
        8. Summary
      10. 3. Testing Your Speed
        1. Materials needed
        2. Creating the game controller
          1. The controller base
          2. Adding buttons
          3. Connecting to the Raspberry Pi
        3. Python
        4. Coding the game
          1. Random behavior
          2. Using the controller
          3. Adding a time limit
          4. Bringing it all together
        5. Complete code listing
        6. The keyboard version
        7. What's next?
        8. Summary
      11. 4. Making an Interactive Map of Your City
        1. Hello world!
          1. Tkinter
          2. Writing the program
        2. Getting a map
          1. No Internet? No problem!
          2. Google Maps
          3. Generating the address
          4. Downloading the image
          5. Using the image
        3. Adding markers
          1. Detecting mouse clicks
          2. Reacting to mouse clicks
        4. Adding labels
          1. Basic labels
          2. Pop-up windows
        5. Code listing
        6. Extensions
          1. Layout
          2. Additional widgets
            1. Checkbutton
            2. Frame and LabelFrame
            3. Listbox
            4. Menu
            5. Menubutton
            6. Message
            7. OptionMenu
            8. Radiobutton
            9. Scale
            10. Spinbox
        7. Summary
      12. Index