They are not capable of handling high-level jobs such as math, media processing • They are programmed with C language. • C does not have awesome JavaScript libraries. !
hardwares. ! ! ! • Serial communication is made by a node package called serialport • Special Firmware let you control your hardware over serial comminaciton with JavaScript. We don't write any C code :) NODEJS + HW Framework uController + Special Firmware Serial Comm
Bone, Intel Galileo,Pinoccio,Raspberry Pi, Spark Core, Arduino of course. • Uses node-serialport package by Chris Williams • Has a large community : NodeBots, NodeCopter, NodeRocket !
// Claw servo controller claw = new five.Servo(9); // Joystick controller joystick = new five.Joystick({ // x, y (vertical, horizontal) pins: [ "A0", "A1" ] }); ! // Center the claw servo to match the joystick deadzone. claw.center(); ! // When the joystick axis are moved... joystick.on("axismove", function() { // Open & close the claw by setting degrees according // to Y position value of joystick. claw.move( Math.ceil(180 * this.fixed.y) ); }); }); https://dl.dropboxusercontent.com/u/3531958/nodeconf/joystick-claw.mp4