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 ...

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.