iot workshop columbus

61
1 To be prepared for today’s Workshop, take a few minutes to review the following pieces of information. We will begin at 9:00 AM! 1. Open our OneNote: https://goo.gl/hMUCZU (this is CaSe SeNsItIvE) 2. Follow the Getting Ready instructions in the OneNote Notebook Welcome to the IoT Workshop

Upload: mike-branstein

Post on 24-Jan-2017

65 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Iot Workshop Columbus

1

To be prepared for today’s Workshop, take a few minutes to review the following pieces of information.

We will begin at 9:00 AM!

1. Open our OneNote: https://goo.gl/hMUCZU• (this is CaSe SeNsItIvE)

2. Follow the Getting Ready instructions in the OneNote Notebook

Welcome to the IoT Workshop

Page 2: Iot Workshop Columbus

+ Cincinnati + Louisville + Nashville + Columbus+ Detroit + Indianapolis

David Buckingham – Practice Lead, Custom App DevelopmentSlava Trofimov – Practice Lead, SQL Data Platform & AnalyticsMike Branstein – Director, Application Development

Internet of Things (IoT)

Workshop

Page 3: Iot Workshop Columbus

3

Welcome

Page 4: Iot Workshop Columbus

4

• You rarely get the chance to practice for practice’s sake• IoT and cloud architecture/development patterns can be

confusing and are frankly “new” to many of us• It’s not what’s going to change, it’s when – and the answer is likely

yesterday

• Today• The Internet of Things (IoT)• Cloud architecture• See an end-to-end solution• Hands-on practice• Get excited or inspired

Practice Makes Perfect

Page 5: Iot Workshop Columbus

5

IoT: The Internet of Toasters Things

Page 6: Iot Workshop Columbus

6Source: Oxford Ditionary

Internet of thingsnoun A proposed development of the Internet in which everyday objects have network connectivity, allowing them to send and receive data.

What is the Internet of Things?

Page 7: Iot Workshop Columbus

8

The Origin StoryKevin Ashton, 1999

Page 8: Iot Workshop Columbus

Source: Kevin Ashton, “That ‘Internet of Things’ Thing: In the real world, things matter more than ideas”, RFID Journal, June 2009, sourced by Nick Landry 9

“If we had computers that knew everything there was to know about things

—using data they gathered without any help from us—

we would be able to track and count everything, and greatly reduce waste, loss and cost.

We would know when things needed replacing, repairing or recalling, and whether they were fresh or past their best.”

IoT Origins

Page 9: Iot Workshop Columbus

10

The Internet of ThingsTraditional Internet Internet of Things

Page 11: Iot Workshop Columbus

Source: Cisco, sourced and stats created by Nick Landry 12

You Want What? More?

Page 13: Iot Workshop Columbus

15

Cloud Overview: IaaS, PaaS, SaaS

Source: Nick Landry, Microsoft

Page 14: Iot Workshop Columbus

16

• PaaS is where you “should” want to be• Use the service, don’t do the plumbing• We’ve been doing the plumbing for a long time• Challenges

• Mapping exercise• Architect the

PaaS way or thehighway

Moving to PaaS

Page 15: Iot Workshop Columbus

17

Reference Cloud IoT Architecture

Source: Nick Landry, Microsoft

Page 16: Iot Workshop Columbus

18

The Maker MovementWhat’s fueling the fire?

Page 17: Iot Workshop Columbus

19

Makers are Everywhere

Page 18: Iot Workshop Columbus

20

“You’re a Great Builder and Maker”

Page 19: Iot Workshop Columbus

21

Page 20: Iot Workshop Columbus

24

Crowdsourced Funding

Page 21: Iot Workshop Columbus

25

Since 2009!

$2.39B pledged105,959 successfully

funded projects

10.9M total backers

29.3M pledges3.4M repeat backers

Source: Kickstarter, May 2016

Page 23: Iot Workshop Columbus

27

The cool stuff.

Page 24: Iot Workshop Columbus

28

Common IoT Devices & Platforms

Page 25: Iot Workshop Columbus

33Source: Nick Landry

• Full single-board computer with SoC• Average cost: $30 to $45• Model A, A+, B, B+ and Raspberry Pi 2 B,

3, Zero• Runs Linux – flavor of Debian called

Raspbian• http://www.raspbian.org

• Huge accessory selection• Programmable

• Python• (Mono), etc.

• 5+ million units sold in 3 years of manufacture, technically the largest computer manufacturer in UK!

Raspberry Pi

Page 26: Iot Workshop Columbus

• Prototype-to-production platform• Wifi or Cellular enabled, low-voltage • Remote management capabilities• Cloud-based development environment• $19• Scale by starting with 1, move to

a PCB integrated platform, and custom hardware when you get tothe 10,000’s

• http://particle.io

Particle Photon

Page 27: Iot Workshop Columbus

35Source: Nick Landry

• Windows 10 is on Raspberry Pi 2 and 3!• http://windowsondevices.com

New Windows == More Fun!

Page 28: Iot Workshop Columbus

36

Demo: Windows 10 IoT Core

Page 29: Iot Workshop Columbus

37

The RPi can be powered either by the USB cable from the host PC or by an external DC power source (5V).

The RPi also has 5V, 3.3V and GND pins to supply voltages to your project components.

Raspberry Pi 2 Introduction

Source: Nick Landry

Page 30: Iot Workshop Columbus

38

• General Purpose Input/Output• Pin that can be controlled by

the user• Can be set to input or output • Input can be things like

temperature sensors, buttons, IR etc

• Output can be LEDs, Motors, LCDs etc

GPIO

Source: Nick Landry

Page 31: Iot Workshop Columbus

39

• 40 pins total• Pi Wedge organizes pins• 17 GPIO• 6x power• 5x SPI (Serial Peripheral

Interface) serial comm.• 2x UART, Tx (out) / Rx (in)

serial comm.• 4x I2C (comm. Protocol,

master/slave)

Raspberry Pin Out

Page 32: Iot Workshop Columbus

40Customer & KiZAN confidential

• LEDs are everywhere• Light-emitting diode – converts

electrical energy to light• The basic LED circuit is simple,

connect everything in serial• The electricity flows through

each component, thus lighting the bulb

• Direction manners

LED and Circuit Basics

Page 33: Iot Workshop Columbus

43

Breadboards offer a great way to prototype circuits. The provide a number of “buses” for connecting both power and components

Power buses run the entire horizontal length

Component buses (vertical) give you easy ways to connect pins together

Breadboards

Source: Nick Landry

Page 34: Iot Workshop Columbus

44

Raspberry Pi and Particle Photon Demos

Page 35: Iot Workshop Columbus

45

Lab 0 Introduction to your Lab Kit

Page 36: Iot Workshop Columbus

46

Lab 1 Hello World

Page 37: Iot Workshop Columbus

47

Lab 2 Momentary LED with Push Button

Page 38: Iot Workshop Columbus

48

Lab 3 Toggle LED with Push Button

Page 39: Iot Workshop Columbus

49

Lab 4 Temperature SensorNote: Tear Down Your Previous Labs

Page 40: Iot Workshop Columbus

50

• Analog Temp. Sensor• Analog to Digital

Convertor (RPi 2 only reads digital signals, so we need a convertor from Analog to Digital)

• Capacitor (to reduce line noise)

Temperature Sensor Components

Page 41: Iot Workshop Columbus

51

• Red are Power and GRD• Analog/Digital

Convertor (1 set for the analog component, another for the digital component)

• Temperature Sensor

Powering the Circuit

Page 42: Iot Workshop Columbus

52Customer & KiZAN confidential

• Serial Communications happen over 4 lines• Yellow• White• Blue• Green

• Yellow connects Temp sensor to the Convertor

Communicating with the RPi

Page 43: Iot Workshop Columbus

53

Lab 4 Temperature SensorNote: Tear Down Your Previous Labs

Page 44: Iot Workshop Columbus

54

IoT Hub Placeholder and Azure IoT Hub Walkthrough

Page 45: Iot Workshop Columbus

55

Lab 5 Streaming Temperature Data to an IoT Hub

Page 46: Iot Workshop Columbus

56

Stream Analytics

Page 47: Iot Workshop Columbus

57

Standard Data Analysis• Your data already exists –

it’s all from the past or projections of the future

• You can aggregate everything

• Not real-time• Batch processing• Reactionary in nature

Data Analysis

Page 48: Iot Workshop Columbus

58

Streaming Data Analysis• Data arrives temporally • You can’t aggregate data all at once• Real-time• Data is grouped into different

windows

Data Analysis

• What is a data window?• What’s your data window?• Concept: arriving data as an “event”

Page 49: Iot Workshop Columbus

59

Tumbling Window Hopping Window

Source: MSDN and MSDN

• Tumbling Windows that overlap• Timeunit (minutes, seconds, etc.)• Windowsize (duration)• Hopsize (skip duration)

• Series of fixed-size, non-overlapping and contiguous time windows

Temporal Windowing

Page 50: Iot Workshop Columbus

60Source: Microsoft

• Real-time stream processing in the cloud

• Real-time cloud-based ETL• Millions of events per second• Scale dynamically

What is Azure Stream Analytics?

Page 51: Iot Workshop Columbus

61

• Create Stream Analytics Job• Configure 1 or more Inputs and Outputs• Create Queries to ETL from Inputs to Outputs• Use SQL-like language

Making Cloud ETL Easy

Page 52: Iot Workshop Columbus

62

Demo Looking at a Stream Analytics Job

Page 53: Iot Workshop Columbus

Microsoft Power BI

Page 54: Iot Workshop Columbus

Stream Analytics

Machine Learning

Statistical Analysis

Intelligent Apps

INTE

LLIG

ENCE

Power BI: experience your dataAny data, any way, anywhere

45,000organizations500,000unique users185 countries

MICROSOFT CLOUD

NON-MICROSOFT CLOUD

ON-PREMISE DATA

Page 55: Iot Workshop Columbus

See all your data in a single pane of glassLive dashboards and interactive reports

• Monitor live dashboards for the data that matters most

• Track your data in real-time with support for streaming data

• Drill through to underlying reports to explore and discover new insight

• Pin new visualizations and KPIs to monitor performance

146.03K145.84K145.96K146.06K

40.08K38.84K39.99K40.33K

Page 56: Iot Workshop Columbus

Stay connected from any device

• Native apps for iPad, iPhone, and Windows devices

• Receive alerts to important changes in your data

• Share and collaborate with colleagues and take action

Page 57: Iot Workshop Columbus

Power BI Content Packs

Prebuilt Power BI experience for your service

TODAY

COMING SOON

Dynamics Marketing

Azure Mobile Engagement

Page 58: Iot Workshop Columbus

Create Power BI contentVisual data exploration & interactive reporting

Desktop tool for data exploration and interactive reporting Freeform drag and drop canvasEffortless publishing to the Power BI service

Power BI Desktop

Page 59: Iot Workshop Columbus

Connect live to your on-premises dataLive Query & Scheduled Data Refresh

SQL Server Analysis Services

Live Power BI reports

& dashboards

LiveQuery

Scheduled Refresh

Cloud

On-premises

Data Source

• Deploy quickly with a hybrid BI solution

• Manage and secure data on-premises with SQL Server Analysis Services

• Optimized query performance for interactive data exploration

• Scheduled refresh from on-premises data sources

Page 60: Iot Workshop Columbus

Power BI overviewWeb browser

HTML

Microsoft cloud

Power BI

Partner apps

Office 365

Dynamics

Azure data services

Microsoft cloud

Non Microsoft cloud software systems(e.g., SaaS applications, IOT scenarios, and data streams)

Non-Microsoft cloud

On-premises data

SQL Server analysis services

Databases andother data sources

Mobile apps

iOS

Power BI Desktop

Business analyst tools

Page 61: Iot Workshop Columbus

71Customer & KiZAN confidential

Build a Dashboard