ENGLISH

Raspberry Pi Projects for Kids

Book information

Publisher
Packt Publishing
Year
2015
ISBN
9781785281525, 9781785280436, 1785280430
Language
english
Format
EPUB
Filesize
6 MB (6426795 bytes)
Edition
2nd Edition
Pages
146 pages\0
Time added
2020-07-26 19:24:52

Description

Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Raspberry Pi; Materials needed; Power supply; Storage; Input; Video; Network; Preparing the SD card; Starting up the Raspberry Pi; Using your Raspberry Pi; The command line; Updating and installing new software; Other uses of the Raspberry Pi; Troubleshooting common issues; Summary; Chapter 2: Animating with Scratch; Scratch; Hello world!; Code tour; Some more interesting movements; Setting the scene; Another way to animate; Interactive animation;Leverage the power of programming to use the Raspberry Pi to create awesome games In Detail The Raspberry Pi is a single-board mini computer designed to get more people (particularly children) interested in computer programming. It aims to make programming tools and educational programs as accessible as possible, making it very easy to get started with. This book will guide you through six fun projects that show how programming can be used to be creative. Each project has clear step-by-step instructions and explanations helping children grasp the concepts easily. You will start by setting up the Raspberry Pi and get to grips with the Scratch programming language to create simple animations. Gain and put to use your understanding of Python to write simple yet useful programs. Create and play a physical game by connecting it to the Raspberry Pi en route to become aware of a number of other possible uses for a very similar circuit/program. Finally, with an understanding of Sonic Pi, you will create your own music. What You Will Learn Gear up to start programming by setting up the Raspberry Pi and taking a tour of available applications Understand the fundamentals of programming and electronics using the Raspberry Pi Use the Linux operating system and programming languages such as Scratch and Python to build interesting projects Gain a basic understanding of how the Python programming language works by writing simple programs Build a fully functioning game and explore how to modify it to create new levels Create animations and music to make your games and applications more exciting Make computer code interact with the physical world Add markers to your personal mapping program Get an understanding of Sonic Pi, and discover how to use it to create your own music 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. Cover Copyright Credits About the Author About the Reviewers www.PacktPub.com Table of Contents Preface Chapter 1: Getting Started with Raspberry Pi Materials needed Power supply Storage Input Video Network Preparing the SD card Starting up the Raspberry Pi Using your Raspberry Pi The command line Updating and installing new software Other uses of the Raspberry Pi Troubleshooting common issues Summary Chapter 2: Animating with Scratch Scratch Hello world! Code tour Some more interesting movements Setting the scene Another way to animate Interactive animation VariablesMovement Keeping count If-then-else Summary Chapter 3: Making Your Own Angry Birds Game Creating a character Creating a level Moving the character Initialization Moving the character with the keyboard Launching the character! Flight Adding physics Gravity Bouncing Ending the game Scoring Extensions Summary Chapter 4: Creating Random Insults Python Python programming The program we're going to use to generate phrases Lists Adding randomness Creating phrases Making mischief Dictionaries Loops Conditionals Functions Complete code listing Summary Chapter 5: Testing Your SpeedMaterials needed to make your own controller Creating the game controller The controller base Adding buttons Connecting to the Raspberry Pi Coding the game Random behavior Using the controller Adding a time limit Bringing it all together Complete code listing The keyboard version What's next? Summary Chapter 6: Making an Interactive Map of your City Hello world! Tkinter Writing the program Getting a map No Internet? No problem! Google Maps Generating the address Downloading an image Using an image Adding markers Detecting mouse clicks Reacting to mouse clicksAdding labels Basic labels Pop-up windows Code listing Extensions Layout Additional widgets Checkbutton Frame and LabelFrame Listbox Menu Menubutton Message OptionMenu Radiobutton Scale Spinbox Summary Chapter 7: Building Beats with Sonic Pi Sonic Pi Getting started with Sonic Pi Creating a tune New sounds A real tune Adding rhythm Bass line More fun Code listing Summary Index

Similar books