Controlling the internet of things using wearable tech
@conversionpoint
/evilqubit
Mix And Mingle
The recipe
Hardware Stack
Arduino Uno
USB cable
Breadboard
RGB Led
Wires
Pebble watch
Android or ios smart phone
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).
Downloading Weapons
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 !
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();
});
Assembling the hardware
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);
});
App architecture
arduino-twitter
You can clone the repo at anytime
Git clone https://github.com/evilqubit/equilibrium- NAP1
... and it s only javascript
The force is strong with this one
Node present Web Sockets
Limit is the universe
Pebble is a smart watch, that connects via Bluetooth.
Developer Guide
Coding Mask On !
pebble new-project Tutorial1
pebble build
pebble install --phone 192.168.1.78.
Cylon.Js
CylonJs Pebble
“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