Hello,
In one of Cylon.js example, a leap motion was used to control led light pin 13 of Arduino Yun by utilzing Node.js and Cylon.js module, here is the webpage,
link: Cylon.JS Example - Leapmotion Arduino
It uses StandardFirmata on the arduino yun side and the following node.js program with cylon.js module on the computer which has the node installed :
"use strict";
var Cylon = require("cylon");
Cylon.robot({
connections: {
leap: { adaptor: "leapmotion" },
arduino: { adaptor: "firmata", port: "COM4" }
},
devices: {
led: { driver: "led", pin: 13, connection: "arduino" },
leapmotion: {driver: "leapmotion", connection: "leap"}
},
work: function(my) {
my.leapmotion.on("frame", function(frame) {
if (frame.hands.length > 0) {
my.led.turnOn();
} else {
my.led.turnOff();
}
});
}
}).start();
I would like to know how to use the leap motion to send commands via Node.js to Arduino yun over its wifi rather than usb port ("COM4") to control pin 13 led by the cylon.js Leap Motion-arudino program posted above. Is ther StandardFirmata version for Arduino YUN's wifi so it can it recieve the leap moiton data via wifi rather than usb?
Basically, I want to send node.js leap motion program commands to the arduino yun over its wifi port rather than usb port. How do i configure the StandardFirmata.ino to achieve this, do I use Bridge or yunserver or yunclient.
Please help
Thanks