Rat Pack Remote Control - a technical Internet of Things (tm) basics primer
Upcoming SlideShare
Loading in...5
×
 

Rat Pack Remote Control - a technical Internet of Things (tm) basics primer

on

  • 1,178 Views

Frank, Sammy & Dean were a great team known as the “Rat Pack”. What’s true for these fellows is also true for Sinatra, Ruby and Arduino: put them together for instant awesomeness. Awesomeness as ...

Frank, Sammy & Dean were a great team known as the “Rat Pack”. What’s true for these fellows is also true for Sinatra, Ruby and Arduino: put them together for instant awesomeness. Awesomeness as in: turn plain objects into social objects, a.k.a. the Internet Of Things ™. But what is the much quoted IoT exactly, and: how does it work?
To answer these questions Sven will give you some birds eye view insights concerning what the IoT is followed by presenting a simple technical approach with free and open source tools to get things going yourself. This alone should be inspiring enough to discuss questions and ideas provoked by the talk, but here’s a little hint anyways: asking Sven what IoT maker artifacts are in his bag that day usually results in a little life demo.

Statistics

Views

Total Views
1,178
Views on SlideShare
1,129
Embed Views
49

Actions

Likes
2
Downloads
9
Comments
0

2 Einbettungen 49

http://lanyrd.com 48
https://www.xing.com 1

Zugänglichkeit

Kategorien

Details hochladen

Uploaded via as Adobe PDF

Benutzerrechte

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Als unangemessen gemeldet Als unangemessen melden
Als unangemessen melden

Wählen Sie Ihren Grund, warum Sie diese Präsentation als unangemessen melden.

Löschen
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Ihre Nachricht erscheint hier
    Processing...
Kommentar posten
Kommentar bearbeiten

Rat Pack Remote Control - a technical Internet of Things (tm) basics primer Rat Pack Remote Control - a technical Internet of Things (tm) basics primer Presentation Transcript

  • Rat Pack Remote Controla technical Internet of Things (tm) basics primerSven Kräuter - @SVEN_KRCodemotion Berlin | 05/2013
  • making things happen.who is sven kräuter?sven Kräuter is anagile & lean coach,software developerand a maker.
  • what is THE INTERNET OF THINGS?THE INTERNET OFTHINGS IS...
  • making things happen.the internet of things (Iot)objectscommunicatingvia the internetbuild the iot.
  • making things happen.the Iotgood bye„one size fits all“.
  • making things happen.the Iothello„dedicated devices“.
  • video Source:https://vimeo.com/21387481SPOTIFY BOX.making things happen.
  • video Source: sven‘s smartphoneM&C BULLI.making things happen.
  • making things happen.Category A Iotinteraction with existingonline services.
  • making things happen.Category A Iotrepresentation ofknown informationin a new way.
  • video Source: http://vimeo.com/45980092GOOD NIGHT LAMP.making things happen.
  • making things happen.Category B Iotestablishing newonline services.
  • making things happen.Category B Iotrepresentation ofnew informationin a new way.
  • nice but what‘s the purpose?let me elaborate...
  • making things happen.trend Always Onincreasing amount ofreal time data &screens do not scale.
  • making things happen.screens do not scalerepresentation of dataon a screenis just one possibility.
  • making things happen.screens do not scaleit is not necessarilythe best possibility.
  • video Source: https://vimeo.com/49425556NO PLACE LIKE HOME.making things happen.
  • what THE INTERNET OF THINGS isTHE INTERNET OF THINGS ISenabling you to communicatebeyond the boundariesof screens and keyboards.
  • what THE INTERNET OF THINGS isit IS enabling you tocommunicate online in amore intuitive &more effective way.
  • Nice. But HOW DOES IT WORK?Surprisinglysimple...
  • making things happen.The InternetTHE INTERNET (TM)Hello there! SendHello there!HTTPHTTPHTTP
  • making things happen.The Internet OF Things Category ATHE INTERNET OF THINGS (TM)I want to go to.... SendHTTPHTTPHTTPPhoto Source: flickr.com/photos/bike/5153033439/in/photostream/
  • making things happen.The Internet OF Things Category BPhoto Sources: flickr.com/photos/foxtongue/3235806474, flickr.com/photos/batterypower/398209685THE INTERNET OF THINGS (TM)HTTPHTTPHTTP
  • So - What‘s This Rat PAck Thing?IT‘s Surprisinglysimple, too.
  • making things happen.The ORIGINAL RAT PACKFrank Sinatra,DEAN Martin &Sammy Davis (Jr.).
  • making things happen.The IOT‘s RAT PACKThe Sinatra GEM,The ARDUINO System &The Ruby Language.
  • making things happen.The RAT PACK SystemTHE INTERNET OF THINGS (TM)The switchis on!HTTPHTTPHTTP
  • Rat PAck REmote Control. live demo.making things happen.
  • Rat Pack Remote Control.Source: github.com/5v3n/ratpackWHAT‘S THE VALUE PROPOSITION?Probably nothingBUT FUN. during the first three usages.making things happen.
  • Talking Of FUN, Part ILet‘s have a look atthe code.
  • the (whole) Sinatra Server.making things happen.require sinatrarequire jsonrequire hamlclass RatPackServer < Sinatra::Applicationconfigure doset :activated, 0endget / dohaml :index, :locals => {:activated => settings.activated, :indicator_class => indicator(settings.activated)}endget /status.json dorender_status_responseendput /status.json dorequest.body.rewinddata = JSON.parse request.body.readsettings.activated = data[activated]render_status_responseendprivatedef indicator(state)state == 0 ? :off : :onenddef render_status_response"{"activated": #{settings.activated}}"endend
  • the Arduino Client, PT 1.making things happen.#include "WiFly.h"#include "SPI.h"#include "Config.h"WiFlyClient client(HOST, 80);void setup(){pinMode(buttonPin, INPUT);Serial.begin(9600);WiFly.begin();if (WiFly.join(ssid, passphrase)) {Serial.println("associted with wifly network.");}else {Serial.println("Association failed.");while (1) {}}}void loop(){if(digitalRead(buttonPin) == LOW){connectClient(generateHttpPut(HOST, RESOURCE, 0));client.stop();}else if(digitalRead(buttonPin) == HIGH){connectClient(generateHttpPut(HOST, RESOURCE, 1));client.stop();}}
  • the Arduino Client, PT 2.making things happen.char* generateHttpPut(char* host, char* resource, char occupied){char postString[255];sprintf(postString, "PUT %s HTTP/1.1rnUser-Agent: %srnHost: %srnContent-Length: 16rnContent-Type:application/jsonrnrn{"activated": %c}", resource, USERAGENT, host, occupied);return postString;}void connectClient(char* http_request){if (client.connect()) {client.print(http_request);client.println();} else {Serial.println("connection failed");}while(!client.available()){Serial.print(".");}}
  • Talking Of FUN, Part IILet‘s have a look atthe Hardware.
  • the Arduino Hardware.making things happen.
  • THE BOTTOM LINEConnectingplain old objectswith the internetis easy.
  • THE BOTTOM LINEUsing the rat Pack systemmakes it actuallydead easy.
  • THE BOTTOM LINESo go get it & trythe rat Pack systemyourself.
  • Talking Of FUN, Most ImportantIt‘s all on GITHUB - Play withit, Fork it, Mod it. Enjoy!github.com/5v3n/ratpack
  • Modding: Wearable Rat PAck.making things happen.Photo Source: flickr.com/photos/arduino_cc/8726021014
  • now let‘s share thoughts!if you have experiencein these fields:what do you think?
  • now let‘s share thoughts!if you haven‘t any experiencein these fields:what do you think?
  • making things happen.let‘s keep in touch@sven_kr@making_demakingthingshappen.desven@makingthingshappen.deMaterialS: github.com/5v3n/ratpack