Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Modify the uno code to use Pololu's servo driver in place of another mfg

Hi.
I’m building an animatronic eye project that uses an uno and another brand servo controller board.
If I were to use a pololu servo controller, would I be able to just substitute the proper refences to the polulo include.
These are the only 2 lines besides a comment line that includes adafruit.
#include <Adafruit_PWMServoDriver.h>
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();

can I just replace adafruit to pololu in both instances of line 2?

Hello.

The Maestro servo controllers and the Adafruit PWM/Servo Driver boards are very different products and do not use the same interface (the Maestro uses TTL serial and the Adafruit PWM/Servo Driver uses I2C), so they are not direct replacements for each other. As far as your code, you will need to do more than just include the Maestro library instead of the Adafruit_PWMServoDriver library, since the two libraries are different in almost every way.

I recommend reading through the Maestro user’s guide and the documentation for the Maestro Servo Controller Arduino to get a better understanding of how it works.

Brandon

Thanks for responding and letting me know.