Getting Started with Raspberry Pi Zero
eBook - ePub

Getting Started with Raspberry Pi Zero

Richard Grimmett

Partager le livre
  1. 228 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Getting Started with Raspberry Pi Zero

Richard Grimmett

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Get started with the smallest, cheapest, and highest-utility Pi ever—Raspberry Pi Zero

About This Book

  • Get started with Raspberry Pi Zero and put all of its exciting features to use
  • Create fun games and programs with little or no programming experience
  • Learn to use this super-tiny PC to control hardware and software for work, play, and everything else

Who This Book Is For

This book is for hobbyists and programmers who are taking their first steps toward using Raspberry Pi Zero. No programming experience is required, although some Python programming experience might be useful.

What You Will Learn

  • Understand how to initially download the operating system and set up Raspberry Pi Zero
  • Find out how to control the GPIO pins of Raspberry Pi Zero to control LED circuits
  • Get to grips with adding hardware to the GPIO to control more complex hardware such as motors
  • Add USB control hardware to control a complex robot with 12 servos
  • Include speech recognition so that projects can receive commands
  • Enable the robot to communicate with the world around it by adding speech output
  • Control the robot from a distance and see what the robot is seeing by adding wireless communication
  • Discover how to build a Robotic hand and a Quadcopter

In Detail

Raspberry Pi Zero is half the size of Raspberry Pi A, only with twice the utility. At just three centimeters wide, it packs in every utility required for full-fledged computing tasks. This practical tutorial will help you quickly get up and running with Raspberry Pi Zero to control hardware and software and write simple programs and games. You will learn to build creative programs and exciting games with little or no programming experience. We cover all the features of Raspberry Pi Zero as you discover how to configure software and hardware, and control external devices. You will find out how to navigate your way in Raspbian, write simple Python scripts, and create simple DIY programs.

Style and approach

This is a practical and fun?getting started? tutorial that will guide you through everything new that the Raspberry Pi has to offer.

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 Getting Started with Raspberry Pi Zero est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Getting Started with Raspberry Pi Zero par Richard Grimmett en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatik et Home Automation. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2016
ISBN
9781786469465
Édition
1
Sous-sujet
Home Automation

Getting Started with Raspberry Pi Zero


Table of Contents

Getting Started with Raspberry Pi Zero
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
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 Zero
Setting up the Raspberry Pi Zero
Powering the board
Hooking up a keyboard, mouse, and display
Installing the operating system
Adding Internet access
Accessing your Raspberry Pi Zero from your host PC
Summary
2. Programming Raspberry Pi Zero
Powering up Raspberry Pi Zero with Linux
Creating, editing, and saving files
Creating and running Python programs
Basic programming constructs on Raspberry Pi Zero
The if statement
The while statement
Working with functions
Libraries/modules in Python
Summary
3. Accessing the GPIO Pins on Raspberry Pi Zero
The GPIO capability of Raspberry Pi Zero
Simple GPIO digital voltage output
Raspberry Pi Zero and LED code
Adding a sonar sensor
Raspberry Pi Zero and the sonar sensor code
Connecting a digital compass to Raspberry Pi Zero
Accessing the compass programmatically
Summary
4. Building and Controlling a Simple Wheeled Robot
The basic platform
Controlling an H-bridge interface to the DC motors
Controlling your mobile platform programmatically using the Raspberry Pi Zero
Controlling the speed of your motors with PWM
Using a motor controller board to control the DC motors
Controlling the vehicle using the Raspberry Pi Zero in Python
Planning your path
Summary
5. Building a Robot That Can Walk
Robots that can walk
How servo motors work
Building the quadruped platform
Using a servo controller to control the servos
Communicating between the servo controller and a PC
Connecting the servo controller to the Raspberry Pi Zero
Creating a program in Linux to control your quadruped
Summary
6. Adding Voice Recognition and Speech – A Voice Activated Robot
Communication between the Raspberry Pi Zero and the robot
Giving your robot voice commands
Using eSpeak to allow your robot to respond with an audible voice
Using pocketsphinx to accept your voice commands
Interpreting commands and initiating actions
Summary
7. Adding Raspberry Pi Zero to an RC Vehicle
Configuring and controlling an RC car with Raspberry Pi Zero
Controlling the RC car in Python
Accessing the RC car remotely
Connecting a webcam
Summary
8. Playing Rock, Paper, or Scissors with Raspberry Pi Zero
A robotic hand
Moving the robotic hand
Connecting the servo controller to the Raspberry Pi Zero
Creating a program on Raspberry Pi Zero so that you can control your hand
Installing a USB camera on Raspberry Pi Zero
Downloading and installing OpenCV – a fully featured vision library
Gesture detection
Summary
9. Adding Raspberry Pi Zero to a Quadcopter
Constructing the platform
Mission planning software
Summary
Index

Getting Started with Raspberry Pi Zero

Copyright © 2016 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 2016
Production reference: 1210316
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78646-946-5
www.packtpub.com

Credits

Author
Richard Grimmett
Reviewer
David Whale
Commissioning Editor
Kartikey Pandey
Acquisition Editor
Tushar Gupta
Content Development Editor
Merint Thomas Mathew
Technical Editor
Saurabh Malhotra
Copy Editors
Kevin McGowan
Sneha Singh
Project Coordinator
Francina Pinto
Proofreader
Safis Editing
Indexer
Priya Sane
Graphics
Disha Haria
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade

About the Author

Richard Grimmett has always been fascinated by computers and electronics since his very first programming project that used Fortran on punch cards. He has a bachelor's and master's degree in electrical engineering and a PhD in leadership studies. He also has 26 years of experience in the radar and telecommunications industries, and even has one of the original brick phones. He now teaches computer science and electrical engineering at the Brigham Young University, Idaho, wh...

Table des matiĂšres