Raspberry Pi Robotics Essentials
()
About this ebook
- Construct a two-legged robot that can walk, turn, and dance
- Add vision and sensors to your robot so that it can “see” the environment and avoid barriers
- A fast-paced, practical guide with plenty of screenshots to develop a fully functional robot
If you are a programmer with an interest in building advanced robotics projects using inexpensive hardware and open source software, then this book is for you. Some experience with computer programming and implementing simple mechanical systems is required.
Read more from Grimmett Richard
Arduino Robotic Projects Rating: 4 out of 5 stars4/5Raspberry Pi: Amazing Projects from Scratch Rating: 0 out of 5 stars0 ratingsRaspberry Pi Robotic Projects - Third Edition Rating: 0 out of 5 stars0 ratingsGetting Started with Raspberry Pi Zero Rating: 5 out of 5 stars5/5BeagleBone Robotic Projects Rating: 5 out of 5 stars5/5Raspberry Pi Robotic Blueprints Rating: 2 out of 5 stars2/5Mastering BeagleBone Robotics Rating: 5 out of 5 stars5/5Intel Galileo Essentials Rating: 0 out of 5 stars0 ratings
Related to Raspberry Pi Robotics Essentials
Related ebooks
Raspberry Pi Super Cluster Rating: 0 out of 5 stars0 ratingsRaspberry Pi By Example Rating: 0 out of 5 stars0 ratingsRaspberry Pi Server Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi Android Projects Rating: 0 out of 5 stars0 ratingsRaspberry Pi Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi Home Automation with Arduino - Second Edition Rating: 0 out of 5 stars0 ratingsMastering BeagleBone Robotics Rating: 5 out of 5 stars5/5Internet of Things with Python Rating: 0 out of 5 stars0 ratingsRaspberry Pi 3 Projects for Java Programmers Rating: 0 out of 5 stars0 ratingsLearning Raspberry Pi Rating: 0 out of 5 stars0 ratingsLearning Raspbian Rating: 5 out of 5 stars5/5Raspberry Pi Insider Guide Rating: 0 out of 5 stars0 ratingsBuilding Python Real-Time Applications with Storm Rating: 0 out of 5 stars0 ratingsArduino Networking Rating: 4 out of 5 stars4/5Arduino Home Automation Projects Rating: 3 out of 5 stars3/5Raspberry Pi: Beginner's Guide - Learn Raspberry Pi in Easy Steps Rating: 2 out of 5 stars2/5Building Smart Homes with Raspberry Pi Zero Rating: 0 out of 5 stars0 ratingsRaspberry Pi LED Blueprints Rating: 0 out of 5 stars0 ratingsLearn IoT Programming Using Node-RED: Begin to Code Full Stack IoT Apps and Edge Devices with Raspberry Pi, NodeJS, and Grafana Rating: 0 out of 5 stars0 ratingsLearning C for Arduino Rating: 0 out of 5 stars0 ratingsGetting Started with Python and Raspberry Pi Rating: 3 out of 5 stars3/5Arduino Essentials Rating: 5 out of 5 stars5/5Smart Internet of Things Projects Rating: 4 out of 5 stars4/5Learning BeagleBone Python Programming Rating: 0 out of 5 stars0 ratingsProgramming Arduino with LabVIEW Rating: 3 out of 5 stars3/5Android Application Programming with OpenCV Rating: 3 out of 5 stars3/5Beginning Robotics with Raspberry Pi and Arduino: Using Python and OpenCV Rating: 0 out of 5 stars0 ratings
Programming For You
Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Unreal Engine from Zero to Proficiency (Foundations): Unreal Engine from Zero to Proficiency, #1 Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsHTML in 30 Pages Rating: 5 out of 5 stars5/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsProfessional C++ Rating: 2 out of 5 stars2/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5
Reviews for Raspberry Pi Robotics Essentials
0 ratings0 reviews
Book preview
Raspberry Pi Robotics Essentials - Grimmett Richard
Table of Contents
Raspberry Pi Robotics Essentials
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 color images of this book
Errata
Piracy
Questions
1. Configuring and Programming Raspberry Pi
Configuring Raspberry Pi – the brain of your robot
Installing the operating system
Adding a remote graphical user interface
Establishing wireless access
Programming on Raspberry Pi
Creating and running Python programs on the Raspberry Pi
An introduction to the C/C++ programming language
Summary
2. Building the Biped
Building robots that can walk
How servo motors work
Building the biped platform
Using a servo controller to control the servos
Communicating with the servo controller with a PC
Connecting the servo controller to the Raspberry Pi
Creating a program to control your biped
Summary
3. Motion for the Biped
A basic stable pose
A basic walking motion
A basic turn for the robot
Summary
4. Avoiding Obstacles Using Sensors
Connecting Raspberry Pi to an infrared sensor
Connecting Raspberry Pi to a USB sonar sensor
Summary
5. Path Planning and Your Biped
Connecting a digital compass to the Raspberry Pi
Accessing the compass programmatically
Dynamic path planning for your robot
Basic path planning
Avoiding obstacles
Summary
6. Adding Vision to Your Biped
Installing a camera on your biped robot
Installing a USB camera on Raspberry Pi
Installing RaspiCam on Raspberry Pi
Downloading and installing OpenCV – a fully featured vision library
Edge Detection and OpenCv
Color and motion finding
Summary
7. Accessing Your Biped Remotely
Adding a wireless dongle and creating an access point
Adding a joystick remote control
Adding the capability to see remotely
Summary
Index
Raspberry Pi Robotics Essentials
Raspberry Pi Robotics Essentials
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: June 2015
Production reference: 1150615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-484-7
www.packtpub.com
Credits
Author
Richard Grimmett
Reviewers
Ashwin Pajankar
Werner Ziegelwanger
Commissioning Editor
Neil Alexander
Acquisition Editor
Tushar Gupta
Content Development Editor
Kirti Patil
Technical Editor
Mahesh Rao
Copy Editors
Aditya Nair
Sameen Siddiqui
Stuti Srivastava
Project Coordinator
Kranti Berde
Proofreader
Safis Editing
Indexer
Priya Sane
Graphics
Sheetal Aute
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade
About the Author
Richard Grimmett has more fun working on robotic projects than should be allowed. He also enjoys teaching computer science and electrical engineering at Brigham Young University, Idaho. He has a bachelor's and master's degree in electrical engineering and a PhD in leadership studies. He has written books on how to use Raspberry Pi, Arduino, and BeagleBone Black for robotics projects.
About the Reviewers
Ashwin Pajankar is a Bangalore-based engineer who wears many different hats depending on the occasion. He graduated from IIIT Hyderabad in 2012 with a master of technology degree in computer science and engineering. He has a total of 5 years of experience in the software industry, where he has worked in different domains, such as testing, data warehousing, replication, and automation. He is very well versed in DB concepts, SQL, and scripting with Bash and Python. He has earned professional certifications in products from Oracle, IBM, Informatica, and Teradata. He's also an ISTQB-certified tester.
In his free time, he volunteers for different technical hackathons or social-service activities. He was introduced to the Raspberry Pi in one of the hackathons, and he's been hooked on it ever since. He writes a lot of code in Python, C, C++, and Shell on his Raspberry Pi B+ cluster. He's currently working on creating his own Beowulf cluster of 64 Raspberry Pi 2 models.
Werner Ziegelwanger, MSc, has studied game engineering and simulation, and he got his master's degree in 2011. His master's thesis was published with the title Terrain Rendering with Geometry Clipmaps for Games, by Diplomica Verlag. His hobbies include programming and games and working with all kinds of technical gadgets.
Werner was a self-employed programmer for some years and mainly worked on Web projects. During this time, he started his own blog (http://developer-blog.net), which is about the Raspberry Pi, Linux, and open source.
Since 2013, Werner has been working as a Magento developer and the head of programming at mStage GmbH, an eCommerce company focused on Magento.
www.PacktPub.com
Support files, eBooks, discount offers, and more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web