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 the Servo Controller with the Raspberry Pi


You've checked the servo motor controller, and the servos, you'll now connect the motor controller up to the Raspberry Pi and make sure you can control the servos from it. Remove the USB cable from the PC and connect it to the Raspberry Pi.

Let's now talk to the motor controller by downloading the Linux code from Pololu at www.pololu.com/docs/0J40/3.b. Perhaps the best way is to log onto your Raspberry Pi Zero with putty, then type wget to get the latest download from the site. Then move the file using mv maestro-linux-******.tar.gz\?file_id\=0J315 maestro-linux-******.tar.gz, where ******* is the current version number of the file.

Unpack the file by typing tar -xzfv maestro-linux-******.tar.gz. This will create a directory called maestro_linux. Go to that directory by typing cd maestro_linux, and then type ls -l. You should see something like this:

The README.txt document will give you explicit instructions on how to install the software...