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

Controlling your R2D2 remotely


Now, via vncserver, you can access a video feed and control your robot. Simply access vncserver, open two Terminal windows, and in one Terminal window run camera.py, while in the other Terminal window run r2d2Control.py, like this:

In this instance, there is a third window so that you can use aplay to play R2D2 WAV files that you have downloaded from the Internet. Now you can remotely pilot your R2D2 from a host computer or tablet. If you'd like to do it via a tablet or phone, you'll want to download an SSH app; there are several available from the different app stores. You can use your Wi-Fi settings to connect to the R2D2 access point. Then run the SSH app to access your R2D2 and start vncserver. Then you'll need a vncviewer app; again, there are several available, to access your R2D2 and run a similar configuration from your tablet or phone.

OpenCV is an amazing, powerful library of functions. You can do all sorts of incredible things with just a few lines...