-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Servo on DFRobot Edison shield #44
Comments
Are you referring to the DFRobot IO Expansion board? I have a WIP branch that does a bunch of pin mapping to make this is all nicer—I'll get that finished and landed |
Luckily I have both boards from them. I would be able to test either. On Mon, Dec 21, 2015 at 7:36 AM, Rick Waldron notifications@github.com
|
I've been working on this all day. One major issue I've come across is that PWM doesn't seem to actually function correctly on this board. I even tried controlling it with a sketch uploaded via Arduino IDE and it did not work. Observed:
|
Also, this board crashes a lot :\ |
And gets very hot |
Ok, strike all that, I tried with external power plugged in and it works "ok-ish". I think this is a poorly assembled board. |
I noticed a squirrelly response from the servos when I used GPIO pins such On Mon, Dec 21, 2015 at 1:37 PM, Rick Waldron notifications@github.com
|
I always use external power for servos, otherwise the resulting behavior is unreliable |
var five = require("johnny-five");
var Edison = require("galileo-io");
var board = new five.Board({
io: new Edison()
});
board.on("ready", function() {
console.log("board ready");
var servPan = new five.Servo(5);
Results in this...
1450680905444 Device(s) Intel Edison
1450680905453 Connected Intel Edison
1450680905470 Repl Initialized
ERROR: TypeError: Cannot read property '0' of undefined
at ToPinIndex (/home/root/.node_app_slot/node_modules/galileo-io/lib/galileo.js:304:19)
at Galileo.pinMode (/home/root/.node_app_slot/node_modules/galileo-io/lib/galileo.js:357:14)
at Servo.Controllers.Standard.initialize.value (/home/root/.node_app_slot/node_modules/johnny-five/lib/servo.js:59:19)
at new Servo (/home/root/.node_app_slot/node_modules/johnny-five/lib/servo.js:189:8)
at Board. (/home/root/.node_app_slot/main.js:46:19)
at Board.emit (events.js:92:17)
at process._tickCallback (node.js:448:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:935:3
I remembering someone saying the DFRobot board acts like the Intel Mini Breakout Board. So my assumption is that one may not address the pins in the same way for the DFRobot board as they would for the Intel Adruino Breakout Board. Would this be correct? If so, is there a way to make it so one may address things the same way as on the Intel board? If not, how does one address the pins on the DFRobot board?
The text was updated successfully, but these errors were encountered: