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

Adding voice recognition


Now that your robot is mobile, it is time to allow your robot to speak and respond to voice commands as well. This will make your R2D2 more interactive. To do this, you'll need to add some hardware. This project requires a USB microphone and a speaker adapter. The Raspberry Pi has an audio output, but does not have an audio input, so you'll need the following three pieces of hardware:

  • A USB device that supports microphone in and speaker out:

  • A microphone that can plug into the USB device:

  • A powered speaker that can plug into the USB device. In particular, you'll want one that has an internal battery that can connect to a USB port for charging, like this:

Fortunately, these devices are very inexpensive and widely available.

Tip

Make sure the speaker is powered because your board will generally not be able to drive a passive speaker with enough power for your applications.

Now, on to allowing the Raspberry Pi access to these devices. You can execute all of the following...