iot workshop in macao
TRANSCRIPT
Introduction
Internet of Things
© 2015 Cisco and/or its affiliates. All rights reserved. Presentation_ID Cisco Public
39% of the world population is connected
13B connected things
80%
Technology powers
of business processes
5000
More data in one year than in previous
Internet of Everything
© 2015 Cisco and/or its affiliates. All rights reserved. Presentation_ID Cisco Public 7
Source: http://www.slideshare.net/Cisco/enabling-the-internet-of-everything-ciscos-iot-architecture
© 2015 Cisco and/or its affiliates. All rights reserved. Presentation_ID Cisco Public
7.2 6.8 7.6 World Population
Adoption rate of digital infrastructure:
5X faster than electricity and telephony
50 Billion “Smart Objects”
50
2010 2015 2020
0
40
30
20
10 Billi
ons
of D
evic
es
25
12.5
Inflection point
Timeline
IoT Is Here Now – and Growing!
Source: http://www.slideshare.net/Cisco/enabling-the-internet-of-everything-ciscos-iot-architecture
© 2015 Cisco and/or its affiliates. All rights reserved. Presentation_ID Cisco Public
Cisco Internet of Things Portfolio
36
Oil and Gas Energy-Utility Transportation Mining Manufacturing City SP/M2M Defense
Management
IoT Security
Application Enablement [Fog Computing/IOx]
Connected Factory x Connected Train x City Safety and Security x Energy Distribution Automation x Connected Well
IE 2000 IE 3000 CGS2000
Industrial Switching
IP67 IE 4000
IE 5000
Industrial Routing
CGR 2000
ASR 903
Industrial Wireless
Field AP - 1552
Industrial AP (Rockwell) Field AP - IW 3700 802.11ac
Positive Train Control
Field Network
CGR 1000
819H
809H
IR910
IR 509
829H
Embedded Networks
5900 ESR, ESS 2020 Switches
5921 ESR Software Router
Connected Safety & Security
Video Surveillance Manager and IP Cameras
Physical Access Manager
Digital Media
DMM Digital Media Manager
Digital Media Processors
Source: http://www.slideshare.net/Cisco/enabling-the-internet-of-everything-ciscos-iot-architecture
Source: http://www.slideshare.net/Cisco/enabling-the-internet-of-everything-ciscos-iot-architecture
© 2015 Cisco and/or its affiliates. All rights reserved. Presentation_ID Cisco Public
IoE Solutions
Manufacturing
Transportation
Energy and Minerals
Public Sector
B2C
Industries Verticals
Connected Factory
Connected Transportation
Connected Utilities
Connected Mining
Connected City
Connected Public Safety
Connected SP /M2M
Connected Oil and Gas
Connected Retail
Connected Health
Connected Factory Energy Mgmt.
Connected Roadways
Connected Pipelines
Connected Mobile Workforce
Asset Visibility and Monitoring
SCC Infrastructure Management (City Wi-Fi, Parking, Lighting, Location, Traffic, Safety and Security)
Connected Schools
Remote Tower Management
Store-in-a-box
Virtual Patient Observation
Connected Factory Wireless
Connected Trains
Connected Refinery
Connected AMI
Connected Predictive Maintenance
Connected Border
CMX digital Experience
Patient Wayfinding
Connected Factory Security
Connected Stations
Secure Ops
Connected Substation Automation
Connected Mine Remote Operations
Connected Law Enforcement
Fleet/Asset Management
Remote Expert/ Mobile Advisor
Patient Media Experience
Workspaces (Smart Spaces and REGS)
Secure Ops
Connected Factory Automation
Connected Trackside
Connected Oilfield
Connected Distribution Automation
Connected Defense
Digital Media Store Experience
Cisco Health Presence
Connected Sports and Entertainment Connected Stadium
Connected Stadium Wi-Fi StadiumVision StadiumVision Mobile
Solutions and Use Cases
Sol
utio
n S
KU
s (IV
SG
) Io
E
Sal
es, B
T E
cosy
stem
pa
rtner
s C
CS
S
ervi
ces
(AS
,TS
)
GTM
FSI Omni-channel Customer Interaction
Pervasive Employee Collaboration
In-branch customer experience Energy Management
IoT Workshop at Macao Polytechnic Institute
What is Internet of Things (IoT)?• Industrial Internet
http://www.iiconsortium.org/• Watson Internet of Things
http://www.ibm.com/internet-of-things/• Target Open House
http://openhouse.target.com/
主流 Mainstream
「辺境」 Periphery
Hands-on
Getting Started with ESP8266
IoT Workshop at Macao Polytechnic Institute
Setting up Your ESP8266 Board1. Solder headers to your board2. Turn on the power slide switch3. Connect a USB (A to Micro B) cable
Source: https://learn.sparkfun.com/tutorials/esp8266-thing-development-board-hookup-guide/hardware-overview
IoT Workshop at Macao Polytechnic Institute
Setting up an Environment for ESP8266 #11. Install Arduino 1.6.8 from the Arduino website.2. Start Arduino and open Preferences window (File > Preferences on
Windows, Arduino > Preferences... on Mac OS X).3. Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json
into Additional Board Manager URLs field.4. Hit OK. Then navigate to the Board Manager by going to Tools > Boards >
Boards Manager. Look for esp8266. Click on that entry, then select Install.5. With the Board addon installed, all that’s left to do is select “SparkFun
ESP8266 Thing Dev” from the Tools > Boards menu.6. Then select your serial port number under the Tools > Port menu.
IoT Workshop at Macao Polytechnic Institute
Setting up an Environment for ESP8266 #21. Navigate File > Examples > ESP8266 (as a part of Examples from Custom
Libraries) > Blink2. Hit the button on your Arduino IDE to start uploading3. If you see the onboard LED is blinking, that means you finished setting up
successfully
IoT Workshop at Macao Polytechnic Institute
Setting up an Environment for ESP8266 #31. Navigate to Library Manager by going Sketch > Include Library > Manage
Libraries...2. Look for PubSubClient and install3. Look for ArduinoJson and install4. Grab examples from the Dropbox folder and copy to your Arduino folder5. Open a Serial Monitor by going Tools > Serial Monitor6. Change the baud rate from 9600 bps (default) to 115200 bps
IoT Workshop at Macao Polytechnic Institute
How Different from Arduino Uno?• A Wi-Fi (802.11 b/g/n) wireless modem is integrated• The processor is faster and has much memory space• 3.3V, instead of 5V• Limited number of pins• Some pins (i.e. D0) are used for special functions• The on-board LED is connected to D5, instead of D13• Only one analog input (i.e. A0) and range is 0 - 1V, instead of 0 - 5V
GND GNDVin Vin5 D5 LED0 D0 Used in
reset
4 D413 D13 MOSI12 D12 MISO16 D16 XPDADC A0 10-bit 1V15 D15
GNDGND3V33.3V2D2SDA14D14SCL/SCLK
RSTResetTXD7TXRXD8RX5VV_USBNCNot Connected
GNDGND
ESP8266 Thing Dev Board (WRL-13711)Arduino add-on available80MHz
MicroB USB3.7-6V
Power connector Pow
er switch
u. antenna connectorNot Connected
To use swap the solder jumper
PCB Antenna
Power (ESP8266 Thing)Vin: 3.7V-6VVUSB: 5VVCC:3.3V @500mAMax 12mA per I/O pin
Typical Power (ESP8266 module)Transmit 135-215mAReceive 60-62mAStandby 0.9mADeep sleep 10uA
LEDsPower: RedUser (pin 5): BlueRX: YellowTX: Green
Wi-Fi802.11 b/g/nWi-Fi Direct (P2P) soft AP
GPIO0On bootup will run program if high and bootloader if lowTied to DTR to run bootloader when reset
Jumpers on backPWR-LED - cut to disconnect power LEDSLEEP-EN - Connect RST to XPD to enable sleep (disables programming)
Name
Power
GND
Control
Arduino
ADC
Serial
Misc
_
IoT Workshop at Macao Polytechnic Institute
IFTTT Primer1. Point your web browser to https://ifttt.com/ and create an account2. Install an application for your smart phone (if available)3. Create a recipe to get familiar with IFTTT terms (e.g. recipes, channels,
triggers, actions and so on)
IoT Workshop at Macao Polytechnic Institute
Available Triggers for the Instagram Channel• Any new photo/video by you• New photo/video by you with specific hashtag• New photo by you in area• You like a photo/video• New photo/video by specific user• New photo by anyone in area• New photo/video by anyone with specific hashtag
IoT Workshop at Macao Polytechnic Institute
Example of ESP8266 as a Trigger Device1. Point your web browser to https://ifttt.com/maker to connect the Maker
channel to your account2. Copy your key and paste it to your notebook3. Create a recipe; choose the Maker channel for the trigger and choose
something (e.g. IF Notifications) for the action4. Connect a button and a resistor to the D4 pin of your board5. Open IFTTT_Trigger6. Navigate to a tab named 'config.h' and replace the SSID, password and key
with your's7. Upload the example to the board, hit the button and see what happens
IoT Workshop at Macao Polytechnic Institute
Example of ESP8266 as an Action Device1. Point your web browser to https://beebotte.com/ and create an account2. Create a Channel (e.g. ifttt) and a Resource (e.g. action)3. Copy the Channel Token and paste it to your notebook4. Create a recipe; choose something (e.g. Instagram) as the trigger and
choose the Maker channel for the action URL: https://api.beebotte.com/v1/data/write/ifttt/action?token=**********
5. Open IFTTT_Action_Beebotte6. Navigate to a tab named 'config.h' and replace the SSID, password and key7. Upload the example to the board8. Provoke the trigger and see what happens
IoT Workshop at Macao Polytechnic Institute
Let’s Try!1. Create an example to fire a trigger when your indoor brightness changes
(e.g. from bright to dark); How might we convert the voltage range from 0 - 3.3V to 0 - 1V, to fit the range of the analog input pin of your board?
2. Write a code to move a servo motor when something happened (e.g. a person posted a Tweet); How might we connect a servo motor to your board and control it?
IoT Workshop at Macao Polytechnic Institute
Resources• ESP8266 Thing Development Board Hookup Guide
https://learn.sparkfun.com/tutorials/esp8266-thing-development-board-hookup-guide
• Exampleshttps://github.com/kotobuki/esp8266_examples
• MQTT (MQ Telemetry Transport)http://mqtt.org/
• Arduino Client for MQTThttp://pubsubclient.knolleary.net/
IoT Workshop at Macao Polytechnic Institute
Related Toolkits• Blynk
http://www.blynk.cc/• Node-RED
http://nodered.org/