internet of things for dummies

80
Internet Of Things The Internet Messenger by Buky Schwartz

Upload: paolo-aliverti

Post on 14-Jul-2015

415 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Internet of Things for Dummies

Internet Of Things

The Internet Messenger by Buky Schwartz

Page 2: Internet of Things for Dummies

Di cosa parleremo?

- Cos'è Internet degli oggetti (oggi)- Prospettive- Hardware - Software- Demo

Page 3: Internet of Things for Dummies

Qualche osservazione

Page 4: Internet of Things for Dummies
Page 5: Internet of Things for Dummies
Page 6: Internet of Things for Dummies
Page 7: Internet of Things for Dummies

Quanto ci hacambiati?

Page 8: Internet of Things for Dummies
Page 9: Internet of Things for Dummies
Page 10: Internet of Things for Dummies

http://www.someecards.com/usercards/viewcard/MjAxMy05YzM4NjhkYjE2NzQ3NmFl

Page 11: Internet of Things for Dummies

1990

Page 12: Internet of Things for Dummies

2014

Page 13: Internet of Things for Dummies
Page 14: Internet of Things for Dummies

http://www.tangibleinteraction.com/projects

Page 15: Internet of Things for Dummies
Page 16: Internet of Things for Dummies
Page 17: Internet of Things for Dummies
Page 18: Internet of Things for Dummies
Page 19: Internet of Things for Dummies

Qualche altroesempio...

Page 20: Internet of Things for Dummies
Page 21: Internet of Things for Dummies
Page 22: Internet of Things for Dummies

Wearable

Illustrazione di Rob Nance

Page 23: Internet of Things for Dummies
Page 24: Internet of Things for Dummies

Hiris

Page 25: Internet of Things for Dummies
Page 26: Internet of Things for Dummies
Page 27: Internet of Things for Dummies
Page 28: Internet of Things for Dummies
Page 29: Internet of Things for Dummies
Page 30: Internet of Things for Dummies

Smart City

Smart Home Trasporti integrati

Wearable

Page 31: Internet of Things for Dummies

Cosa sta accadendo?

Sembra che ogni oggetto debbaessere connesso

Page 32: Internet of Things for Dummies
Page 33: Internet of Things for Dummies
Page 34: Internet of Things for Dummies

Iot: Oggetti connessi in Rete?

Page 35: Internet of Things for Dummies

1980 - Wireless Sensor1970 - RFID

Page 36: Internet of Things for Dummies

Un nuovo modo di comunicare

Page 37: Internet of Things for Dummies

Comunicazione

UX

Tecnologia

Page 38: Internet of Things for Dummies

http://www.gartner.com/newsroom/id/2603623

Page 39: Internet of Things for Dummies

Dispositivo IoT

Page 40: Internet of Things for Dummies

Quanti dispositivi?

Page 41: Internet of Things for Dummies

http://www.gartner.com/newsroom/id/2636073

Gartner Says the Internet of ThingsInstalled Base Will Grow to 26Billion Units By 2020

Altre fonti:3/5 bilioni di device tradizionali1 trillione di device iot

Page 42: Internet of Things for Dummies

Come interagiscono?

Page 43: Internet of Things for Dummies
Page 44: Internet of Things for Dummies

TCP/IP?

Page 45: Internet of Things for Dummies

http://www.gartner.com/newsroom/id/2603623

Page 46: Internet of Things for Dummies

Non esiste ancora una vera epropria architettura per IoT!

Page 47: Internet of Things for Dummies

L'Hardware

- schede a microcontrollore- connettività- sensori & Co

Page 48: Internet of Things for Dummies

Come realizzo un oggetto IoToggi?

Page 49: Internet of Things for Dummies

Arduino

Page 50: Internet of Things for Dummies

Arduino Ethernet

Page 51: Internet of Things for Dummies

Arduino YUN

Page 52: Internet of Things for Dummies

Raspberry PI

Page 53: Internet of Things for Dummies

Flyport

Page 54: Internet of Things for Dummies

Intel Edison

Page 55: Internet of Things for Dummies

Sensori e attuatori

Page 56: Internet of Things for Dummies

Network e comunicazioni

Page 57: Internet of Things for Dummies

WiFi

● Semplice da gestire● Diffuso

● Costo● Potenza consumata

Page 58: Internet of Things for Dummies

BlueTooth

● Semplice da gestire● Consuma poco● Diffuso

● Non consente connessionediretta a Internet

Page 59: Internet of Things for Dummies

ZigBee

● Consuma molto poco● Più semplice del BT

● Non consente connessionediretta a Internet

● Meno diffuso di altretecnologie

Page 60: Internet of Things for Dummies

RF module

● Consuma molto poco● Ampio raggio● Piccole dimensioni● Basso costo

● Non consente connessionediretta a Internet

● Più difficile da utilizzare● Poco diffuso/standard

Page 61: Internet of Things for Dummies

Il Software

Page 62: Internet of Things for Dummies

Topologie

Page 63: Internet of Things for Dummies

Web: old style

Page 64: Internet of Things for Dummies
Page 65: Internet of Things for Dummies
Page 66: Internet of Things for Dummies
Page 67: Internet of Things for Dummies

EmbeddedServer:TCPUDPMQTTREST...

Client Http:HTTPWebSocketMQTT

Page 68: Internet of Things for Dummies

Un esempio

Page 69: Internet of Things for Dummies
Page 70: Internet of Things for Dummies

demo

Page 71: Internet of Things for Dummies

Raspberry PI + Button

Page 72: Internet of Things for Dummies

Raspberry PI + Buttonimport urllib2import RPi.GPIO as GPIOimport time

GPIO.setmode(GPIO.BCM)GPIO.setup(7, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

while 1: if (GPIO.input(7) == 1): response = urllib2.urlopen('http://192.168.0.4/setled.php?led=1') html = response.read() else: response = urllib2.urlopen('http://192.168.0.4/setled.php?led=0') html = response.read()

time.sleep(0.2)

Page 73: Internet of Things for Dummies

php<?php

$state = $_GET['led'];

$file = 'led.txt';

$value = $state."\n";

file_put_contents($file, $value, LOCK_EX);

?>

Page 74: Internet of Things for Dummies

php<?php

$myfile = fopen("led.txt", "r") or die("Unable to open file!");

echo "<".trim(fread($myfile,filesize("led.txt"))).">";

fclose($myfile);

?>

Page 75: Internet of Things for Dummies

Arduino Ethernet

Page 76: Internet of Things for Dummies

Arduino Ethernet/* Repeating Web client*/

#include <SPI.h>#include <Ethernet.h>

byte mac[] = { 0x90, 0xA2, 0xDA, 0x0E, 0xD4, 0xB1};

Page 77: Internet of Things for Dummies

Arduino Ethernetvoid setup() { if (Ethernet.begin(mac) == 0) { Ethernet.begin(mac); } delay(1000);

pinMode(9, OUTPUT); digitalWrite(9, LOW);}

Page 78: Internet of Things for Dummies

Arduino Ethernetvoid loop() { if (client.available()) { char c = client.read(); if (c == '<') { startRead = true; pos = 0; memset(& inString, 0, 32); } else if (startRead) { if (c!= '>') { inString[pos] = c; pos++; } else { startRead = false; client.stop(); client.flush(); String str = String(inString); if (str.toInt() == 1){ digitalWrite(9, HIGH); Serial.println("ON"); } else { digitalWrite(9, LOW); Serial.println("OFF"); } } } }

Page 79: Internet of Things for Dummies

Arduino YUN: bridgeBridge.begin();

HttpClient client;

client.get("http://arduino.cc/asciilogo.txt");

while (client.available()) { char c = client.read(); Serial.print(c);}Serial.flush();

Page 80: Internet of Things for Dummies

Grazie!

Paolo [email protected]