Hi, i’m trying to use Johnny-Five java script with the botboarduino. So for I have tried both StandardFirmata and Standard Firmata Plus.
Both have ended up in failures.Could you please help me out?
Hi,
We’ve followed the steps explained here with a BotBoarduino and had no major issues doing the strobe test. We have to do two steps prior to it working, though:
]Upload the StandardFirmata to the BotBoarduino first (since the BotBoarduino does not come pre-programmed with the Firmata firmware). To upload code successfully to the BotBoarduino, make sure to choose the right board (see images below)./:m]
]Change the initialization in the strobe.js example code to use a specific port. Our test computer has multiple other serial ports and the platform would always choose the wrong one. See the modification below:/:m]
Choosing the right software:
Choosing the right board parameters before upload:
Original code:[code]var five = require(“johnny-five”),
board = new five.Board();
board.on(“ready”, function() {
// Create an Led on pin 13
var led = new five.Led(13);
// Strobe the pin on/off, defaults to 100ms phases
led.strobe();
});[/code]Modified code:[code]var five = require(“johnny-five”),
board = new five.Board({port: “COM10”});
board.on(“ready”, function() {
// Create an Led on pin 13
var led = new five.Led(13);
// Strobe the pin on/off, defaults to 100ms phases
led.strobe();
});[/code]
We hope this helps.
Sincerely,