Raspberry Pi Projects For Dummies
Published by: John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.com
Copyright 2015 by John Wiley & Sons, Inc., Hoboken, New Jersey
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions
.
Trademarks: Wiley, For Dummies, the Dummies Man logo, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc., and may not be used without written permission. Raspberry Pi is a registered trademark of the Raspberry Pi Foundation. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHOR HAVE USED THEIR BEST EFFORTS IN PREPARING THIS BOOK, THEY MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT WITH A PROFESSIONAL WHERE APPROPRIATE. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM.
For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit www.wiley.com/techsupport
.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com
. For more information about Wiley products, visit www.wiley.com
.
Library of Congress Control Number: 2015942453
ISBN 978-1-118-76669-9 (pbk); ISBN 978-1-118-76672-9 (ebk); ISBN 978-1-118-76671-2 (ebk)
Raspberry Pi Projects For Dummies
Visit www.dummies.com/cheatsheet/raspberrypiprojects to view this book's cheat sheet.
- Table of Contents
Guide
Pages
Introduction
Raspberry Pi Projects For Dummies is designed for people who are looking for something exciting to do with the Raspberry Pi. This book contains projects to amaze and inspire you! It takes you into a world of switches, lights, motors, home automation, and computer vision. It not only covers the theory behind what youre doing, but also gives you examples of putting that theory into practice, so you can learn to work on your own projects and not just blindly follow a list of instructions.
Sure, we could just give you a list of steps to follow. But we believe that you should try to understand what youre doing and why youre doing it, and thats what this book is all about. With this book as a resource, we encourage you to put your own stamp on projects, which is why many projects in this book arent just cut-and-dried lists of things to do, but suggestions about how you can customize the projects and make them your own.
About This Book
The projects in this book all make use of the computer language Python 2. This book shows you how to use a wide variety of input and output devices, from a simple switch to a webcam. You can explore LEDs and multicolored LEDs, learn about a keypad matrix and see how they can be integrated to become part of your code so you can make these devices do what you want. Reach out with your Raspberry Pi and become part of the cloud or build your own web server. This book shows you how.
The Raspberry Pi can interface with other electronic devices, and in this book we show you how to interact with LEGOs latest robotic MINDSTORMS set, the EV3. You can send messages into the LEGO system or do your own thing and control the MINDSTORMS peripherals directly from the Raspberry Pi. Not only do we show you how these two systems interact, but we also show you some projects you can make using the Raspberry Pi and MINDSTORMS set together.
Linux is the staple operating system used in the Raspberry Pi world. However, there is a major alternative operating system you can run for just the price of another very small SD card, RISC OS. RISC OS is a mature, well-honed operating system, designed from the ground up to run on ARM chips, and as such, its fast and compact. This book shows you how you can explore the RISC OS and gives you a glimpse of another world.
A few final notes about the book: Sidebars (text in gray boxes) and Technical Stuff paragraphs are skippable. Finally, within this book, you may note that some web addresses break across two lines of text. If youre reading this book in print and want to visit one of these web pages, simply key in the web address exactly as its noted in the text, pretending as though the line break doesnt exist. If youre reading this as an e-book, youve got it easy just click the web address to be taken directly to the web page.
Foolish Assumptions
In writing this book, we made a few assumptions about you:
- You have a Raspberry Pi. You could certainly read this book without a Raspberry Pi, but you wont get much out of it unless you have a Raspberry Pi to play with.
- You have a computer other than the Raspberry Pi. You need a computer to set up the Raspberry Pi. Note: We provide instructions on how to set up your Pi, but this information isnt the main thrust of the book. If you need more information on setting up your Raspberry Pi, a good companion book to this one is Raspberry Pi For Dummies, by Sean McManus and Mike Cook (Wiley), which covers in much more detail your first steps with this remarkable machine.
- Your Raspberry Pi has some connection to the Internet. It may not be connected all the time, but youre at least able to connect it for setting up the libraries you need to install.
- You dont mind voyaging into less charted waters and you have an open mind on what constitutes computing and operating systems.
- Youre eager to begin exploring the world of physical computing. Physical computing takes a fresh look at inputs and outputs to a computer. The computer produces physical outputs signals that make lights flash, sounds play, or robots move. Inputs are more than just typing they include everything from simple push buttons to color sensors to webcams.
- You have access to some basic hand tools, like a small saw and drill along with a soldering iron. If you dont have these tools on hand, we assume you have the money to buy them or you have a friend or family member whose toolkit you can raid!
Next page