Book Image

Raspberry Pi Robotics Essentials

By : Richard Grimmett
Book Image

Raspberry Pi Robotics Essentials

By: Richard Grimmett

Overview of this book

Table of Contents (14 chapters)
Raspberry Pi Robotics Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Connecting the servo controller to the Raspberry Pi


You've checked the servo motor controller and the servos. You can now connect the motor controller up to the Raspberry Pi and make sure that you can control the servos from it.

Now, let's talk to the motor controller. Here are the steps:

  1. Connect Raspberry Pi to the motor controller by connecting a mini USB to a mini USB cable. Connect the cable to the USB host connection on the Raspberry Pi, like this:

  2. Download the Linux code from Pololu at https://www.pololu.com/docs/0J40/3.b. Perhaps the best way to do this is to log on to your Raspberry Pi and then type wget http://www.pololu.com/file/download/maestro-linux-100507.tar.gz?file_id=0J315.

  3. Then, move the file using mv maestro-linux-100507.tar.gz\?file_id\=0J315 maestro-linux-100507.tar.gz.

  4. Unpack the file by typing tar –xvf maestro_linux_011507.tar.gz. This will create a directory called maestro_linux. Go to this directory by typing cd maestro_linux, and then type ls; you should see something...