Raspberry Pi Projects for Kids
eBook - ePub

Raspberry Pi Projects for Kids

  1. 96 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Raspberry Pi Projects for Kids

About this book

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 Pis 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 whos 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. Its time to have your Pi and eat it, because you will be able to create virtually anything you like.

Approach

This tutorial contains all-important information about how to use your Raspberry Pi to develop any application you like. It is broken down into several action-packed projects, each containing easy-to-follow steps, just to show you how easy and fun computer programming can be!

Who this book is for

If you are someone with a big imagination and would like to dive straight into the realm of technology and computers, then this is the book for you. With only a Raspberry Pi and no prior experience required, you will be shown how to translate your ideas into computer programs, creating any game, tool, or animation you can dream of.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2014
Edition
1
eBook ISBN
9781783982226

Raspberry Pi Projects for Kids


Table of Contents

Raspberry Pi Projects for Kids
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with the 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 for Raspberry Pi
Troubleshooting
Summary
2. Making Your Own Angry Birds Game
Scratch
Hello world!
Code tour
Creating a character
Creating a level
Moving the character
Initialization
Moving with the keyboard
Launch!
Flight
Adding physics
Gravity
Bouncing
Ending the game
Scoring
Extensions
Summary
3. Testing Your Speed
Materials needed
Creating the game controller
The controller base
Adding buttons
Connecting to the Raspberry Pi
Python
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
4. 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 the image
Using the image
Adding markers
Detecting mouse clicks
Reacting to mouse clicks
Adding 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
Index

Raspberry Pi Projects for Kids

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2014
Production Reference: 1180314
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-222-6
www.packtpub.com
Cover Image by ©iStock.com/pringletta

Credits

Author
Daniel Bates
Reviewers
Georg Bisseling
Colin Deady
Prasanna Gautam
Sungjin Han
Claes Jakobsson
Ian McAlpine
Acquisition Editors
Harsha Bharwani
Kunal Parikh
Content Development Editor
Mohammed Fahad
Technical Editors
Krishnaveni Haridas
Ankita Thakur
Copy Editors
Insiya Morbiwala
Kirti Pai
Project Coordinator
Mrudula Manjrekar
Proofreader
Maria Gould
Indexer
Priya Subramani
Graphics
Ronak Dhruv
Production Coordinator
Komal Ramchandani
Cover Work
Komal Ramchandani

About the Author

Daniel Bates is a Computer Science researcher at the University of Cambridge. His day job involves inventing designs for future mobile phone processors, and when he goes home, he likes playing games or working on one of his coding projects (or both!). Daniel has been a volunteer for the Raspberry Pi Foundation since 2011, and is enthusiastic about introducing new people to computing. He has previously written Instant Minecraft: Pi Edition Coding How-to, Packt Publishing.

About the Reviewers

Georg Bisseling is a software developer with two decades of experience in many fields as diverse as neural networks, cryptography, radio monitoring, high performance computing, and business intelligence systems. He lives in Bonn, the former capital city of Western Germany.
Colin Deady started his career in IT in the late 1990s when he discovered software testing ("They want me to break it?"), having previously fallen in love with computers, thanks to his parents buying a ZX81 and ZX Spectrum+ for him and his brother in the 1980s. He graduated to using an Amiga 1200 in the early 1990s and spent countless hours learning the insides of the operating system. Now, with 14 years of experience in testing, he works as a Test Manager with an emphasis on test automation, extolling the virtues of Agile using Kanban and behavior-driven development to great effect (test early, test often; fix early, fix often). In his spare time, Colin is part of the editorial team for The MagPi (www.themagpi.com), a community-written magazine for the Raspberry Pi. With several published articles and having reviewed and edited many more, he has built up extensive knowledge on this tiny platform. He can also be found jointly running The MagPi stand at regular Bristol DigiMakers events in the UK, demonstrating things such as a remote control robot arm, a roverbot, and LED display boards, all of which he has programmed in Python on the Raspberry Pi. He currently runs a blog related to all features of the Raspberry Pi at www.rasptut.co.uk.
Prasanna Gautam is an engineer who wears many different hats depending on the occasion. He graduated from Trinity College in 2011 and is currently working as a software engineer at ESPN on cool projects. He has worked on building robots that extinguish fires in firefighting contests and robots that autonomously moved around obstacles. He was involved with the One Laptop Per Child...

Table of contents

  1. Raspberry Pi Projects for Kids

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Raspberry Pi Projects for Kids by Daniel Bates in PDF and/or ePUB format, as well as other popular books in Informatica & Media digitali. We have over one million books available in our catalogue for you to explore.