pololu / dual-vnh5019-motor-shield

Arduino library for the Pololu Dual VNH5019 Motor Driver Shield
http://www.pololu.com/product/2507
MIT License
51 stars 76 forks source link

Issue attaching Servos #19

Closed GenericSwede closed 4 years ago

GenericSwede commented 4 years ago

I'm using this motor controller to power a basic tank robot, and I'm now trying to add a servo to it to give it some more functionality. When I added the Servo to my code the Motor Controller refused to work correctly, not outputting any current or changing the colors of the indicator LEDs. I traced the issue to the servo.attack(pin); command. I attached the servo to pins that were listed as unused on the pololu site and this issue still occurred. Is there a fix for this? Thanks.

-JM

kevin-pololu commented 4 years ago

Hi, JM.

It looks like you posted about this on the Pololu forum and got help resolving it there. For anyone else encountering a similar problem, it is likely caused by a conflict where multiple libraries are trying to use the same timer, and that forum thread suggests some workarounds.

Kevin