node.js + johnny-five + raspberry pi 3

General chat about Johnny Five and Short Circuit.
tjmulz
Posts: 1
Joined: Thu Nov 03, 2016 2:11 pm
Contact:

node.js + johnny-five + raspberry pi 3

Postby tjmulz » Thu Nov 03, 2016 2:14 pm

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, ( https://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? :mrgreen:

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: https://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:
-http://johnny-five.io/examples/servo-PCA9685/
-http://johnny-five.io/examples/expander-PCA9685/

Return to “Johnny Five is alive!”

Who is online

Users browsing this forum: Google [Bot] and 20 guests

cron