Women Who Code - NodeBots

583a0cfd3e0ec851166c5c6fa5e506a5?s=47 Raquel Vélez
December 12, 2013

Women Who Code - NodeBots

A beginner's look at nodebots!

583a0cfd3e0ec851166c5c6fa5e506a5?s=128

Raquel Vélez

December 12, 2013
Tweet

Transcript

  1. Raquel Vélez Sauce Labs @rockbot NodeBots!

  2. You will need: node.js && npm an Arduino UNO an

    LED, a 10kΩ resistor, a button, jumper wires a breadboard
  3. npm install johnny-five

  4. None
  5. var five = require("johnny-five"); five.Board().on("ready", function() { // "strobe" an

    led in 1000ms on-off phases five.Led(13).strobe(1000); });
  6. None
  7. var five = require("johnny-five"), button, led; five.Board().on("ready", function() { button

    = new five.Button(8); led = new five.Led(13); button.on("down", function() { led.on(); }); button.on("up", function() { led.off(); }); });
  8. With much practice, you too can create:

  9. Questions?

  10. Wanna play? NodeBots Meetup 12/19 at 5:30pm at Heroku! http://lanyrd.com/2013/nodebotssf-december/

  11. Raquel Vélez raquel@saucelabs.com @rockbot Thank You!