N.A.P

Controlling the internet of things using wearable tech

@conversionpoint

/evilqubit

http://slides.com/simontadros/deck/live

Mix  And Mingle 

The recipe

Hardware Stack

  • Arduino Uno
  • USB cable
  • Breadboard
  • RGB Led
  • Wires
  • Pebble watch 
  • Android or ios smart phone

Introduction to Arduino Uno

The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.

Memory

The ATmega328 has 32 KB (with 0.5 KB used for the bootloader).It also has 2 KB of SRAM and 1 KB of EEPROM (which can be read and written with the EEPROM library).​​                 

UNO

Enchant Your Armor

Downloading Weapons

Yet my religion is javascript 

Johnny-Five is an Open Source, Firmata Protocol based, IoT and Robotics programming framework, developed at Bocoup. Johnny-Five programs can be written for Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, Raspberry Pi, Spark Core, TI Launchpad and more!

https://github.com/rwaldron/johnny-five

Coding Mask On !

WARNING

Configuration 

  • Download Arduino IDE
  • Plug in your Arduino or Arduino compatible microcontroller via USB
  • Open the Arduino IDE, select: File > Examples > Firmata > StandardFirmata Click the "Upload" button.
brew install nodejs 
node -v
npm -v 
brew install git
npm install johnny-five

install jhonny-five

Test Jhonny-five

var five = require("johnny-five"),
    // or "./lib/johnny-five" when running from the source
    board = new five.Board();

board.on("ready", function() {

  // Create an Led on pin 13 and strobe it on/off
  // Optionally set the speed; defaults to 100ms
  (new five.Led(13)).strobe();

});

Lets start building  N.A.P

Assembling the hardware

building  N.A.P

Test the RGB LED

var five = require("johnny-five");

five.Board().on("ready", function() {

  // Initialize the RGB LED
  var led = new five.Led.RGB({
    pins: {
      red: 3,
      green: 5,
      blue: 6
    }
  });
  // Add led to REPL (optional)
  this.repl.inject({
    led: led
  });

  // Turn it on and set the initial color
  led.on();
  led.color("#FF0000");
  led.blink(1000);
});

 building  N.A.P

App architecture 

arduino-twitter

  • app.js
  • controller.js
  • config.js
  • package.json

You can clone the repo at anytime 

Git clone https://github.com/evilqubit/equilibrium- NAP1
  • NAP1/

... and it s only javascript

The force is strong with this one 

Another example of power 

Node present Web Sockets 

Limit is the universe 

Introduction to Pebble 

 Pebble is a smart watch, that connects via Bluetooth.

Developer Guide 

  1. Pebble C  
    The Pebble C SDK, used for creating native watchapps and watchfaces.
  2. PebbleKit iOS
    Objective-C library for creating companion apps that interface iOS and Pebble.
  3. PebbleKit Android
    Java library for creating companion apps that interface Android and Pebble.
  4. Pebblekit js
    JavaScript component of a Pebble app that leverages features of the connected phone to enhance watchapp capabilities.
  5. Pebble.js
    Create watchapps using only JavaScript code, which controls a provided native watchapp over Bluetooth.

Coding Mask On !

WARNING

pebble new-project Tutorial1
pebble build
pebble install --phone 192.168.1.78.

Deploy pebble app 

Build A Watchapp with Pebble.js

Cylon.Js 

 building  N.A.P

CylonJs Pebble

May the source be with you 

Final thoughts 

“Technology isn’t what makes us “post-human” or “transhuman,” as some writers and scholars have recently suggested. It’s what makes us human. Technology is in our nature. Through our tools we give our dreams form. We bring them into the world. The practicality of technology may distinguish it from art, but both spring from a similar, distinctly human yearning.” ― Nicholas Carr, The Glass Cage: Automation and Us

Made with Slides.com