SlideShare a Scribd company logo
N.A.PN.A.P
Controlling the internet of things using
wearable tech
@conversionpoint /evilqubit
http://slides.com/simontadros/deck/livehttp://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 UnoIntroduction to Arduino Uno
The Arduino Uno is a microcontroller board based on the ATmega328 (dat
asheet). It has 14 digital input/output pins (of which 6 can be used a
s PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB con
nection, a power jack, an ICSP header, and a reset button. It contains
everything needed to support the microcontroller; simply connect it t
o a computer with a USB cable or power it with a AC-to-DC adapter or b
attery 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 w
ith the EEPROM library).​​
UNOUNO
Enchant Your ArmorEnchant Your Armor
http://www.adafruit.com/product/170
Controlling the internet of things using wearable tech - Design+Code Day; ArabNet Beirut 2015
Downloading Weapons
http://arduino.cc/en/Main/Software
Controlling the internet of things using wearable tech - Design+Code Day; ArabNet Beirut 2015
Yet my religion is javascriptYet my religion is javascript
Jhonny-Five
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 !
WARNINGWARNING
ConfigurationConfiguration
Download
Plug in your Arduino or Arduino compatible
microcontroller via USB
Open the Arduino IDE, select: File > Examples >
Firmata > StandardFirmata Click the "Upload"
button.
Arduino IDE
install node js
brew install nodejs
node -v
npm -v
install git
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 buildingLets start building N.A.PN.A.P
Assembling the hardware
buildingbuilding N.A.PN.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);
});
buildingbuilding N.A.PN.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 ofAnother example of
powerpower
Node present Web Sockets
Controlling the internet of things using wearable tech - Design+Code Day; ArabNet Beirut 2015
Limit is the universe
Controlling the internet of things using wearable tech - Design+Code Day; ArabNet Beirut 2015
Introduction to PebbleIntroduction to Pebble
Pebble is a smart watch, that connects via Bluetooth.
Developer Guide
1.
The Pebble C SDK, used for creating native watchapps and watchfaces.
2.
Objective-C library for creating companion apps that interface iOS and Pebble.
3.
Java library for creating companion apps that interface Android and Pebble.
4.
JavaScript component of a Pebble app that leverages features of the connected phone to
enhance watchapp capabilities.
5.
Create watchapps using only JavaScript code, which controls a provided native watchapp over
Bluetooth.
Pebble C
PebbleKit iOS
PebbleKit Android
Pebblekit js
Pebble.js
Coding Mask On !
WARNINGWARNING
pebble new-project Tutorial1
pebble build
pebble install --phone 192.168.1.78.
Deploy pebble appDeploy pebble app
Build A Watchapp with Pebble.jsBuild A Watchapp with Pebble.js
Cylon.Js
buildingbuilding N.A.PN.A.P
CylonJs Pebble
May the source beMay the source be
with youwith you
https://github.com/evilqubit/NAP
Final thoughtsFinal 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

More Related Content

PDF
Raspberry Pi - best friend for all your GPIO needs
PPTX
[5]投影片 futurewad樹莓派研習會 141218
PDF
Getting Started with Raspberry Pi - USC 2013
PDF
FSEC 2014 - I can haz your board with JTAG
PDF
Getting Started With Raspberry Pi - UCSD 2013
PDF
Gnu linux on arm for $50 - $100
PPTX
Esp8266 - Intro for dummies
PPT
Physical Computing with the Arduino platform and Ruby
Raspberry Pi - best friend for all your GPIO needs
[5]投影片 futurewad樹莓派研習會 141218
Getting Started with Raspberry Pi - USC 2013
FSEC 2014 - I can haz your board with JTAG
Getting Started With Raspberry Pi - UCSD 2013
Gnu linux on arm for $50 - $100
Esp8266 - Intro for dummies
Physical Computing with the Arduino platform and Ruby

What's hot (20)

PDF
Cheap, good, hackable tools from China: AVR component tester
PDF
Prototipare col raspberry pi
PDF
Hardware hacking for software people
PDF
Cassiopeia Ltd - ESP8266+Arduino workshop
PPTX
IOT Talking to Webserver - how to
PDF
How to build Open Hardware self-navigating car robot
PPTX
Remote tanklevelmonitor
PDF
NodeMCU ESP8266 workshop 1
PPTX
8051 microcontroller
PPT
Introduction to Vortex86DX2 Motion-Control Evaluation Board
PPTX
Arduino IDE
PDF
Let's hack cheap hardware 2016 edition
PDF
Espresso Lite v2 - ESP8266 Overview
PPTX
Arduino & NodeMcu
PPTX
pcDuino Presentation at SparkFun
PDF
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
PPTX
Python in raspberry pi
PPTX
Innovation with pcDuino
PDF
Led flash
PPT
Avr microcontroller
Cheap, good, hackable tools from China: AVR component tester
Prototipare col raspberry pi
Hardware hacking for software people
Cassiopeia Ltd - ESP8266+Arduino workshop
IOT Talking to Webserver - how to
How to build Open Hardware self-navigating car robot
Remote tanklevelmonitor
NodeMCU ESP8266 workshop 1
8051 microcontroller
Introduction to Vortex86DX2 Motion-Control Evaluation Board
Arduino IDE
Let's hack cheap hardware 2016 edition
Espresso Lite v2 - ESP8266 Overview
Arduino & NodeMcu
pcDuino Presentation at SparkFun
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Python in raspberry pi
Innovation with pcDuino
Led flash
Avr microcontroller
Ad

Viewers also liked (20)

PDF
Pebble Watch Development
PPTX
BRAIN GATE SYSTEM
PPTX
My seminar on bluejacking
PPTX
6th sense technology
PPTX
Bluejacking by krishna soni
PPTX
Oculus rift
PPTX
Pico projectors
PPT
Oculus Rift
PPTX
Gesture recognition adi
PDF
Virtual Reality, Oculus Rift, Business Model
PPT
FOR SCREEN BY ANURAG SINGH (8318130325)
PPTX
Gesture recognition technology
PPTX
Finger reader
PPT
E-PAPER TECHNOLOGY
PPTX
Gesture recognition
PPTX
Oculus rift
PPTX
5-Pen-PC-Technology-ppt-Presentation (1) - Copy
PPTX
I twin technology
PPTX
Blue Brain
PPTX
Blue brain project ppt
Pebble Watch Development
BRAIN GATE SYSTEM
My seminar on bluejacking
6th sense technology
Bluejacking by krishna soni
Oculus rift
Pico projectors
Oculus Rift
Gesture recognition adi
Virtual Reality, Oculus Rift, Business Model
FOR SCREEN BY ANURAG SINGH (8318130325)
Gesture recognition technology
Finger reader
E-PAPER TECHNOLOGY
Gesture recognition
Oculus rift
5-Pen-PC-Technology-ppt-Presentation (1) - Copy
I twin technology
Blue Brain
Blue brain project ppt
Ad

Similar to Controlling the internet of things using wearable tech - Design+Code Day; ArabNet Beirut 2015 (20)

PPTX
Hacking into IoT using JavaScript
PDF
Droids, java script and web connected hardware
PPTX
Bare metal Javascript & GPIO programming in Linux
PDF
Introducing the Arduino
PPTX
Controlling robots using javascript
PDF
Johnny-Five
PDF
Hardware for JavaScript Developers
PDF
Little bits & node.js IOT for beginner
PDF
How To Electrocute Yourself using the Internet
PDF
Espruino - JavaScript for Microcontrollers
PPTX
Devday
PPTX
JS in Arduino Uno
DOCX
Arduino embedded systems and advanced robotics
PPTX
Nodebots
PPTX
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNO
PPTX
Arduino Environment Tutorial
PDF
Building Droids with JavaScript
PPTX
Arduino
PPTX
Internet of Things prescribed by University
PPTX
Embedded Systems Design and Programming & Internet of Things
Hacking into IoT using JavaScript
Droids, java script and web connected hardware
Bare metal Javascript & GPIO programming in Linux
Introducing the Arduino
Controlling robots using javascript
Johnny-Five
Hardware for JavaScript Developers
Little bits & node.js IOT for beginner
How To Electrocute Yourself using the Internet
Espruino - JavaScript for Microcontrollers
Devday
JS in Arduino Uno
Arduino embedded systems and advanced robotics
Nodebots
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNO
Arduino Environment Tutorial
Building Droids with JavaScript
Arduino
Internet of Things prescribed by University
Embedded Systems Design and Programming & Internet of Things

More from ArabNet ME (20)

PDF
ArabNet Beirut - Keynote: Open Banking - To be or not to be? by Open Bank Pr...
PDF
Tackling Cyber Threats in Banking Digitization by KRYPTON Security - ArabNet ...
PDF
Keynote: Open Banking - To be or not to be? by Open Bank Project by ArabNet B...
PPTX
Keynote: Cyber Security in Banking by CyberQ at ArabNet Riyadh 2018
PDF
Keynote financial services in 2030 by Michelle Kactis- ArabNet Riyadh 2018
PDF
The Triangle to Media Success: How to Leverage your Edit, Ads and Audience to...
PDF
GDPR – Data vs Creative by Nexd
PDF
Keynote: Why Open Banking/AI/AR is exciting is going to shape Payments and Fi...
PPTX
Keynote: Raising the Bar on the Ethical Use of Data in Government at the Arab...
PDF
Research: Smart Cities – What’s in it for the citizen? by McKinsey & Company ...
PDF
what3words: The future of autonomy and voice control at ArabNet Digital Summi...
PPTX
Keynote: The State of the European Tech Industry at ArabNet Digital Summit 2018
PPTX
Keynote: Alternative Funding: IPO vs ICO at ArabNet Digital Summit 2018
PDF
Keynote: 10 Lessons Every Entrepreneur Must Learn by ConsenSys at ArabNet Bei...
PDF
Cryptocurrencies a Banking Perspective by Wardrobe Place Capital Management a...
PDF
Blockchain: Understanding the blockchain and its impact on financial services...
PDF
Transformation Through Transportation by Hyperloop One at ArabNet Riyadh 2017
PPTX
Unlock Your Marketing Potential with the Power of AI by IBM at ArabNet Riyadh...
PDF
E-commerce in a nutshell by ZID at ArabNet Riyadh 2017
PPTX
Blockchain: Transforming Industries by Fintricity at ArabNet Riyadh 2017
ArabNet Beirut - Keynote: Open Banking - To be or not to be? by Open Bank Pr...
Tackling Cyber Threats in Banking Digitization by KRYPTON Security - ArabNet ...
Keynote: Open Banking - To be or not to be? by Open Bank Project by ArabNet B...
Keynote: Cyber Security in Banking by CyberQ at ArabNet Riyadh 2018
Keynote financial services in 2030 by Michelle Kactis- ArabNet Riyadh 2018
The Triangle to Media Success: How to Leverage your Edit, Ads and Audience to...
GDPR – Data vs Creative by Nexd
Keynote: Why Open Banking/AI/AR is exciting is going to shape Payments and Fi...
Keynote: Raising the Bar on the Ethical Use of Data in Government at the Arab...
Research: Smart Cities – What’s in it for the citizen? by McKinsey & Company ...
what3words: The future of autonomy and voice control at ArabNet Digital Summi...
Keynote: The State of the European Tech Industry at ArabNet Digital Summit 2018
Keynote: Alternative Funding: IPO vs ICO at ArabNet Digital Summit 2018
Keynote: 10 Lessons Every Entrepreneur Must Learn by ConsenSys at ArabNet Bei...
Cryptocurrencies a Banking Perspective by Wardrobe Place Capital Management a...
Blockchain: Understanding the blockchain and its impact on financial services...
Transformation Through Transportation by Hyperloop One at ArabNet Riyadh 2017
Unlock Your Marketing Potential with the Power of AI by IBM at ArabNet Riyadh...
E-commerce in a nutshell by ZID at ArabNet Riyadh 2017
Blockchain: Transforming Industries by Fintricity at ArabNet Riyadh 2017

Recently uploaded (20)

DOCX
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
PPTX
Embeded System for Artificial intelligence 2.pptx
PPTX
New professional education PROF-ED-7_103359.pptx
PPTX
Wireless and Mobile Backhaul Market.pptx
PPTX
Lecture-3-Computer-programming for BS InfoTech
PPTX
Computers and mobile device: Evaluating options for home and work
PPTX
quadraticequations-111211090004-phpapp02.pptx
PPT
Lines and angles cbse class 9 math chemistry
PPTX
"Fundamentals of Digital Image Processing: A Visual Approach"
PPTX
Prograce_Present.....ggation_Simple.pptx
PPTX
Fundamentals of Computer.pptx Computer BSC
PPTX
Embedded for Artificial Intelligence 1.pptx
PPTX
5. MEASURE OF INTERIOR AND EXTERIOR- MATATAG CURRICULUM.pptx
DOCX
Edukasi kultural untuk kita semua maka c
PDF
Dynamic Checkweighers and Automatic Weighing Machine Solutions
PPTX
A Clear View_ Interpreting Scope Numbers and Features
PDF
2_STM32&SecureElements2_STM32&SecureElements
PPTX
unit1d-communitypharmacy-240815170017-d032dce8.pptx
PPTX
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx
PPTX
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
Embeded System for Artificial intelligence 2.pptx
New professional education PROF-ED-7_103359.pptx
Wireless and Mobile Backhaul Market.pptx
Lecture-3-Computer-programming for BS InfoTech
Computers and mobile device: Evaluating options for home and work
quadraticequations-111211090004-phpapp02.pptx
Lines and angles cbse class 9 math chemistry
"Fundamentals of Digital Image Processing: A Visual Approach"
Prograce_Present.....ggation_Simple.pptx
Fundamentals of Computer.pptx Computer BSC
Embedded for Artificial Intelligence 1.pptx
5. MEASURE OF INTERIOR AND EXTERIOR- MATATAG CURRICULUM.pptx
Edukasi kultural untuk kita semua maka c
Dynamic Checkweighers and Automatic Weighing Machine Solutions
A Clear View_ Interpreting Scope Numbers and Features
2_STM32&SecureElements2_STM32&SecureElements
unit1d-communitypharmacy-240815170017-d032dce8.pptx
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd

Controlling the internet of things using wearable tech - Design+Code Day; ArabNet Beirut 2015

  • 1. N.A.PN.A.P Controlling the internet of things using wearable tech @conversionpoint /evilqubit
  • 4. The recipe Hardware Stack Arduino Uno USB cable Breadboard RGB Led Wires Pebble watch Android or ios smart phone
  • 5. Introduction to Arduino UnoIntroduction to Arduino Uno The Arduino Uno is a microcontroller board based on the ATmega328 (dat asheet). It has 14 digital input/output pins (of which 6 can be used a s PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB con nection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it t o a computer with a USB cable or power it with a AC-to-DC adapter or b attery 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 w ith the EEPROM library).​​
  • 7. Enchant Your ArmorEnchant Your Armor http://www.adafruit.com/product/170
  • 11. Yet my religion is javascriptYet my religion is javascript Jhonny-Five 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
  • 12. Coding Mask On ! WARNINGWARNING
  • 13. ConfigurationConfiguration Download Plug in your Arduino or Arduino compatible microcontroller via USB Open the Arduino IDE, select: File > Examples > Firmata > StandardFirmata Click the "Upload" button. Arduino IDE
  • 14. install node js brew install nodejs node -v npm -v install git 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(); });
  • 15. Lets start buildingLets start building N.A.PN.A.P Assembling the hardware
  • 16. buildingbuilding N.A.PN.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); });
  • 17. buildingbuilding N.A.PN.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/
  • 18. ... and it s only javascript The force is strong with this one
  • 19. Another example ofAnother example of powerpower Node present Web Sockets
  • 21. Limit is the universe
  • 23. Introduction to PebbleIntroduction to Pebble Pebble is a smart watch, that connects via Bluetooth.
  • 24. Developer Guide 1. The Pebble C SDK, used for creating native watchapps and watchfaces. 2. Objective-C library for creating companion apps that interface iOS and Pebble. 3. Java library for creating companion apps that interface Android and Pebble. 4. JavaScript component of a Pebble app that leverages features of the connected phone to enhance watchapp capabilities. 5. Create watchapps using only JavaScript code, which controls a provided native watchapp over Bluetooth. Pebble C PebbleKit iOS PebbleKit Android Pebblekit js Pebble.js
  • 25. Coding Mask On ! WARNINGWARNING
  • 26. pebble new-project Tutorial1 pebble build pebble install --phone 192.168.1.78. Deploy pebble appDeploy pebble app
  • 27. Build A Watchapp with Pebble.jsBuild A Watchapp with Pebble.js
  • 30. May the source beMay the source be with youwith you https://github.com/evilqubit/NAP
  • 31. Final thoughtsFinal 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