Internet of Things
 Aiko Gateway and Nodes
 OpenWRT plus Arduinos
    Andy Gelme @geekscape
    UrbanCamp Melbourne
      Sunday 2009-09-13

     http://geekscape.org
(join-in)


• Please ask lots of questions !
• Comments, suggestions, feedback welcome !


• http://github.com/geekscape/Aiko
(what?)
• Distributed network of connected devices
• Various domains ...
   • Building (home) automation
   • Vehicle embedded computers
   • Wearable computers
   • Ambient / Ubiquitous computing
   • Augmented Reality
• Becoming cheaper and easier to network anything !
• http://github.com/geekscape/Aiko
(for-example)




• http://github.com/geekscape/Aiko
(live-web-site)
• https://watchmything.com/sites/11       (eleven)
•   https://watchmything.com/groups/sams-distributed-devices




• http://github.com/geekscape/Aiko
(+ openwrt arduino)
• ASUS router with firmware replaced by OpenWRT
   • Running AikoGateway server (written in Lua)
• Arduino embedded microprocessor
   • Running AikoNode client (written in C / C++)
• Option: ZigBee mesh networking
• Option: 3G USB adapter
• Option: Battery powered (100% wireless)
• http://github.com/geekscape/Aiko
(conceptual-diagram)
                             Any web-site, e.g
                         http://watchmything.com

                                     ADSL, Cable or 3G

       Multiple users           OpenWRT              Multiple gateways
       Multiple sites             AikoGateway
                               AikoGateway          May include Arduino



  Ethernet              WiFi               ZigBee mesh

          Arduino                Arduino              Arduino
         AikoNode               AikoNode             AikoNode


• http://github.com/geekscape/Aiko
(openwrt)
• Turns an inexpensive router into a super-router
   • Supports a wide range of routers
   • We prefer ASUS WL-500G ($50 or less)
• Linux kernel, busybox, web server (Lua / LuCI), ...
• Very easy to install (ask @samotage) and customize
• Large, active development community
• http://openwrt.org
• AikoNode ... http://github.com/geekscape/Aiko
(arduino)
• Inexpensive and simple embedded computing
• Write code using C / C++ with a simple IDE
• 5 VDC: 13 digital I/O and 6 analog inputs
• Many different form factors
• Lots of available “shields” (daughter boards)
• Large, active development community
• http://arduino.cc
• http://github.com/geekscape/Aiko
(arduino)




• http://github.com/geekscape/Aiko
(aikoNode)
• Modular framework for event-driven device handlers
• Simple way to create more complex Arduino sketches
• Includes a simple communication mechanism ...
   • Based on S-Expressions (Lisp / Scheme)
   • (node name timestamp (stream value unit))
• Abstraction layer on top of different communications
• Multiple AikoNodes can interact with AikoGateway
• http://github.com/geekscape/Aiko
(aikoGateway)
• Server (router) for event-driven communications
• Written in Lua for specifically for OpenWRT
• Also runs on Linux, Mac OS X and other stuff
• Handles interactions between multiple AikoNodes
  and web-sites, such as http://watchmything.com
• Low barrier to entry for anyone wishing to hack
• Doesn’t require a GCC cross-compiler tool-chain
   • Edit on-the-fly and restart the process ... easy !
• http://github.com/geekscape/Aiko
(openwrt-ate-my-arduino)




• http://github.com/geekscape/Aiko
(future ?)
• Release AikoGateway code (next week)
• Support all Arduino communications options ...
   • Ethernet, WiFi, ZigBee mesh, USB port
• Built-in web server extensions ...
   • Manage and configure AikoNodes
   • Home automation user interface
• No single-point-of-failure ...
   • Multiple, collaborating AikoGateways
• http://github.com/geekscape/Aiko
(d.i.y)
• Looking for people interested in ...
• Want to build your own AikoGateway in a weekend ?
• Roughly $50 ASUS router + $60 Arduino and parts
• Melbourne HackerSpaces weekend session
   • Designed to be simple and easy
   • Mid-October ?
• Contact andyg@geekscape.org or DM @geekscape
• http://github.com/geekscape/Aiko
(thanks)
• Heavy lifting ...
   • Pete Yandell @notahat (AikoNode)
   • Luke Weston @lukeweston (Pebble shield design)
   • Sam Sabey @samotage (OpenWRT hacking)
• Big round of applause for @benbalbo, @kathyreid and
  @kattekrab for organizing yet another awesome
  UrbanCamp !


• http://github.com/geekscape/Aiko

Internet of Things

  • 1.
    Internet of Things Aiko Gateway and Nodes OpenWRT plus Arduinos Andy Gelme @geekscape UrbanCamp Melbourne Sunday 2009-09-13 http://geekscape.org
  • 2.
    (join-in) • Please asklots of questions ! • Comments, suggestions, feedback welcome ! • http://github.com/geekscape/Aiko
  • 3.
    (what?) • Distributed networkof connected devices • Various domains ... • Building (home) automation • Vehicle embedded computers • Wearable computers • Ambient / Ubiquitous computing • Augmented Reality • Becoming cheaper and easier to network anything ! • http://github.com/geekscape/Aiko
  • 4.
  • 5.
    (live-web-site) • https://watchmything.com/sites/11 (eleven) • https://watchmything.com/groups/sams-distributed-devices • http://github.com/geekscape/Aiko
  • 6.
    (+ openwrt arduino) •ASUS router with firmware replaced by OpenWRT • Running AikoGateway server (written in Lua) • Arduino embedded microprocessor • Running AikoNode client (written in C / C++) • Option: ZigBee mesh networking • Option: 3G USB adapter • Option: Battery powered (100% wireless) • http://github.com/geekscape/Aiko
  • 7.
    (conceptual-diagram) Any web-site, e.g http://watchmything.com ADSL, Cable or 3G Multiple users OpenWRT Multiple gateways Multiple sites AikoGateway AikoGateway May include Arduino Ethernet WiFi ZigBee mesh Arduino Arduino Arduino AikoNode AikoNode AikoNode • http://github.com/geekscape/Aiko
  • 8.
    (openwrt) • Turns aninexpensive router into a super-router • Supports a wide range of routers • We prefer ASUS WL-500G ($50 or less) • Linux kernel, busybox, web server (Lua / LuCI), ... • Very easy to install (ask @samotage) and customize • Large, active development community • http://openwrt.org • AikoNode ... http://github.com/geekscape/Aiko
  • 9.
    (arduino) • Inexpensive andsimple embedded computing • Write code using C / C++ with a simple IDE • 5 VDC: 13 digital I/O and 6 analog inputs • Many different form factors • Lots of available “shields” (daughter boards) • Large, active development community • http://arduino.cc • http://github.com/geekscape/Aiko
  • 10.
  • 11.
    (aikoNode) • Modular frameworkfor event-driven device handlers • Simple way to create more complex Arduino sketches • Includes a simple communication mechanism ... • Based on S-Expressions (Lisp / Scheme) • (node name timestamp (stream value unit)) • Abstraction layer on top of different communications • Multiple AikoNodes can interact with AikoGateway • http://github.com/geekscape/Aiko
  • 12.
    (aikoGateway) • Server (router)for event-driven communications • Written in Lua for specifically for OpenWRT • Also runs on Linux, Mac OS X and other stuff • Handles interactions between multiple AikoNodes and web-sites, such as http://watchmything.com • Low barrier to entry for anyone wishing to hack • Doesn’t require a GCC cross-compiler tool-chain • Edit on-the-fly and restart the process ... easy ! • http://github.com/geekscape/Aiko
  • 13.
  • 14.
    (future ?) • ReleaseAikoGateway code (next week) • Support all Arduino communications options ... • Ethernet, WiFi, ZigBee mesh, USB port • Built-in web server extensions ... • Manage and configure AikoNodes • Home automation user interface • No single-point-of-failure ... • Multiple, collaborating AikoGateways • http://github.com/geekscape/Aiko
  • 15.
    (d.i.y) • Looking forpeople interested in ... • Want to build your own AikoGateway in a weekend ? • Roughly $50 ASUS router + $60 Arduino and parts • Melbourne HackerSpaces weekend session • Designed to be simple and easy • Mid-October ? • Contact andyg@geekscape.org or DM @geekscape • http://github.com/geekscape/Aiko
  • 16.
    (thanks) • Heavy lifting... • Pete Yandell @notahat (AikoNode) • Luke Weston @lukeweston (Pebble shield design) • Sam Sabey @samotage (OpenWRT hacking) • Big round of applause for @benbalbo, @kathyreid and @kattekrab for organizing yet another awesome UrbanCamp ! • http://github.com/geekscape/Aiko