Node.js + johnny-five + raspberry pi 3

Hi All, I’ve connected a servo to adafruit’s 16-channel servo driver (PCA9685) on pin 0. All voltages are at the correct level. However, when I run my code, ( github.com/tmulroy/nodeBot/blob/master/bot_workspace/raspSpike.js ) which just calls a servo.sweep(), my servo jitters a little bit, makes a high-pitch noise, then stops. I can see that it semi-sweeps: it rotates back and forth, but there’s jitter and very little/slow movement. Any thoughts?

Specs: -Raspberry Pi 3
-Pi Cobbler (to breakout pi’s gpio pins to breadboard)

-Hitec HS-485HB

-node v6.9.1

-johnny-five v0.10.3

-code: github.com/tmulroy/nodeBot/blob/master/bot_workspace/raspSpike.js

I’ve seen two ways of interacting with PCA0685, I’m using a combo of both:

-johnny-five.io/examples/servo-PCA9685/

-johnny-five.io/examples/expander-PCA9685/

Hi,

Try to use this code to drive the servo with the Adafruit 16-Channel I2C Servo Controller and the Raspberry Pi.

Cheers,