Book Image

Raspberry Pi Robotic Projects - Third Edition

By : Richard Grimmett, Jon Witts
Book Image

Raspberry Pi Robotic Projects - Third Edition

By: Richard Grimmett, Jon Witts

Overview of this book

This book will allow you to take full advantage of Raspberry Pi Zero and Raspberry Pi 3 by building both simple and complex robotic projects. The book takes a mission-critical approach to show you how to build amazing robots and helps you decide which board to use for which type of robot. The book puts a special emphasis on designing mobile (or movable) robots using the Raspberry Pi Zero. The projects will show inexpensive, yet powerful, ways to take full advantage. It will teach you how to program Raspberry Pi, control the movement of your robot, and add features to your robots.
Table of Contents (13 chapters)
Raspberry Pi Robotic Projects - Third Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Chapter 2. Building Your Own Futuristic Robot

Now that you are up and running, let's start with a simple but impressive project in which you'll take a toy robot and give it much more functionality. You'll start with an R2D2 toy robot and modify it to add a webcam, voice recognition, and motors so that it can get around.

In this chapter, we'll cover the following topics:

  • Using the Raspberry Pi to control two DC motors

  • Hooking up the hardware to make and input sound

  • Using eSpeak to allow our projects to respond with a robot voice

  • Using PocketSphinx to accept your voice commands

  • Using Python and the other tools to interpret commands and initiate actions

  • Hooking up a USB webcam so that you can add vision to your project

  • Downloading and configuring OpenCV so that your project can use this amazing open source software to detect objects, faces, colors, and motion

Creating your own R2D2 will require a bit of mechanical work; you'll need a drill and perhaps a Dremel tool, but most of the mechanical work will...