Connecting the servo controller to the Raspberry Pi

Now that you've checked the servo motor controller and the servos, you'll need to connect the servo 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 focus on the motor controller by downloading the Linux code from Pololu at www.pololu.com/docs/0J40/3.b. Here are the steps to do so:

  1. First, log on to your Raspberry Pi by putty, then type wget.http://www.pololu.com/file/download/maestro-linux-100507.tar.gz?file_id=0J315.
  2. Move the file using mv maestro-linux-100507.tar.gz\?file_id\=0J315 maestro-linux-100507.tar.gz.
  3. Unpack the file by typing tar -xzfv maestro-linux-100507.tar.gz. This will ...

Get Raspberry Pi Robotic Projects - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.