eBook - ePub
Raspberry Pi Projects for Kids - Second Edition
Daniel Bates
This is a test
Partager le livre
- 146 pages
- English
- ePUB (adapté aux mobiles)
- Disponible sur iOS et Android
eBook - ePub
Raspberry Pi Projects for Kids - Second Edition
Daniel Bates
DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations
Ă propos de ce livre
About This Book
- Learn to use a Raspberry Pi computer to dive into the world of developing exciting games and applications
- Learn to code in three different programming languages and write code that interacts with the physical world
- This is a practical guide to put imagination into action by creating interactive projects
Who This Book Is For
This book is for kids who wish to develop games and applications using the Raspberry Pi. No prior experience in programming is necessary; you need only a Raspberry Pi and the required peripherals.
Foire aux questions
Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier lâabonnement ». Câest aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via lâapplication. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă la bibliothĂšque et Ă toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode dâabonnement : avec lâabonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă 12 mois dâabonnement mensuel.
Quâest-ce que Perlego ?
Nous sommes un service dâabonnement Ă des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă toute une bibliothĂšque pour un prix infĂ©rieur Ă celui dâun seul livre par mois. Avec plus dâun million de livres sur plus de 1 000 sujets, nous avons ce quâil vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Ăcouter sur votre prochain livre pour voir si vous pouvez lâĂ©couter. Lâoutil Ăcouter lit le texte Ă haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, lâaccĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Raspberry Pi Projects for Kids - Second Edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă Raspberry Pi Projects for Kids - Second Edition par Daniel Bates en format PDF et/ou ePUB ainsi quâĂ dâautres livres populaires dans Computer Science et Hardware. Nous disposons de plus dâun million dâouvrages Ă dĂ©couvrir dans notre catalogue.
Informations
Sujet
Computer ScienceSous-sujet
HardwareRaspberry Pi Projects for Kids Second Edition
Table of Contents
Raspberry Pi Projects for Kids Second Edition
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 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
2. Animating with Scratch
Scratch
Hello world!
Code tour
Some more interesting movements
Setting the scene
Another way to animate
Interactive animation
Variables
Movement
Keeping count
If-then-else
Summary
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
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
5. Testing Your Speed
Materials 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
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 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
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
Raspberry Pi Projects for Kids Second Edition
Copyright © 2015 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
Second edition: April 2015
Production reference: 1240415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-152-5
www.packtpub.com
Credits
Author
Daniel Bates
Reviewers
Ed Baker
Colin Deady
Ian McAlpine
Commissioning Editor
Priya Singh
Acquisition Editors
Harsha Bharwani
Sonali Vernekar
Content Development Editor
Nikhil Potdukhe
Technical Editor
Rohith Rajan
Copy Editors
Sonia Cheema
Merilyn Periera
Project Coordinator
Akash Poojary
Proofreaders
Simran Bhogal
Safis Editing
Indexer
Tejal Soni
Graphics
Sheetal Aute
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta
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 gets 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 and Raspberry Pi Projects for Kids (First Edition), both published by Packt Publishing.
About the Reviewers
Ed Baker graduated with a BSc in physics from Imperial College, London, in 2007 and somehow ended up working in the Entomology Department of the Natural History Museum shortly after. His work focuses on how technology, both hardware and software, can improve the way research is performed, from field data collection to final publication. Outside the technology world, he is a specialist on stick insects, cockroaches, and grasshoppers.
Recently, his work has focused on automated acoustic and environmental monitoring, protocols for sensor networks, and starting the biodiversity technology company http://www.infocology.co.uk.
Ed's first book, provisionally titled Arduino for Biologists, will be published in 2015 with Pelagic Publishing.
Colin Deady's career in IT started in the late 1990s, when he discovered software testing ("they want me to break it?"), having previously fallen in love with computers when his parents brought him and his brother a ZX81 and ZX Spectrum+ in the 1980s and later an Amiga 1200 in the early 1990s. With over 15 years of experience in testing, he works as a Technical Test Manager, em...