Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Code PaLOUsa Azure IoT Workshop

96 views

Published on

Discover the world of IoT and how they're shaping our world with a hands-on approach. Affordable, internet-connected devices are becoming ubiquitous - with the rise of Arduino, Raspberry Pi, and the Particle Photon, it's now possible to quickly prototype and design an internet-ready device that monitors weather patterns, responds to movement, or collects and transmits data to the cloud for under $100. In this full-day workshop, we'll begin with a hands-on introduction to IoT and build IoT devices. With a Raspberry Pi 2 kit running Windows 10 IoT Core, we’ll build a simple temperature sensor, collecting ambient temperature readings, and stream the data to an Azure IoT Hub. Once the data is in Azure, we’ll analyze it with Azure Stream Analytics, and ship it to an Azure SQL Database. Finally, we’ll report on the data and build dashboards of our temperature readings using Power BI.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Code PaLOUsa Azure IoT Workshop

  1. 1. + Cincinnati + Louisville + Nashville + Columbus + Detroit + Indianapolis David Buckingham – Practice Lead, Custom App Development Mike Branstein – Director, Application Development Internet of Things (IoT) Workshop
  2. 2. 2 Welcome
  3. 3. 3 • 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
  4. 4. 4 IoT: The Internet of Toasters Things
  5. 5. Source: Wikipedia 5 Internet of things noun The the inter-networking of physical devices, vehicles (also referred to as "connected devices" and "smart devices"), buildings, and other items embedded with electronics, software, sensors, actuators, and network connectivity which enable these objects to collect and exchange data. What is the Internet of Things?
  6. 6. Source: WorldoMeters and Gartner 10 How Big is IoT? 2014 2015 2016 2020 IoT Devices World Population 7.3 billion 20.8 billion 7.7 billion
  7. 7. 13 The cool stuff.
  8. 8. 14 Common IoT Devices & Platforms
  9. 9. Source: Raspberry Pi Foundation 19 • Series of single-board computers • Developed in the UK to promote teaching, learning, solving problems, and having fun • Low-cost, high-performance • $30 - $45 • Features • Runs Linux, Windows 10 IoT • Programmable • Tons of accessories Raspberry Pi
  10. 10. • 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 to the 10,000’s • http://particle.io Particle Photon
  11. 11. 21 New Windows == More Fun!
  12. 12. 22 Demo: Windows 10 IoT Core
  13. 13. 23 Input: • USB from PC or wall Output: • 5V, 3.3V and GROUND Raspberry Pi 2 Introduction
  14. 14. 24 • Programmatically control the pins via common software libraries • Each pin: • Has a number • Used as input or output • Read data from components when configured as input pins • Write/send data to components as output pins GPIO = General Purpose Input/Output
  15. 15. 25 • 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) Pi Wedge Pin Out
  16. 16. 29 Used for prototyping Buses are connected underneath the board with pin holes to tap into the connection Horizontal buses run the entire length of the board Vertical buses are shorter, each column is separate Breadboards
  17. 17. 31 Lab 0 Introduction to your Lab Kit
  18. 18. 32 Lab 1 Hello World
  19. 19. 33 Lab 2 Momentary LED with Push Button
  20. 20. 34 Lab 3 Temperature Sensor
  21. 21. 35 • 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
  22. 22. 36 • Red are Power and GRD • Analog/Digital Convertor (1 set for the analog component, another for the digital component) • Temperature Sensor Powering the Circuit
  23. 23. Customer & KiZAN confidential 37 • Serial Communications happen over 4 lines • Yellow • White • Blue • Green • Yellow connects Temp sensor to the Convertor Communicating with the RPi
  24. 24. 39 IoT Hub Placeholder and Azure IoT Hub Walkthrough
  25. 25. 40 Why is IoT Exploding?
  26. 26. Why use the cloud to build apps?
  27. 27. On and off Unpredictable bursting Growing fast Predictable bursting
  28. 28. 45 Cloud Overview: IaaS, PaaS, SaaS
  29. 29. 46 • 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 the highway Moving to PaaS
  30. 30. 47 Reference Cloud IoT Architecture Source: Microsoft
  31. 31. IoT Hub {“device”:”kizan-pi-01”, “tempC”:”25.5”, “tempF”:”77.9”} The Lab Cloud IoT Architecture Stream Analytics Service Bus Topic Subscribe to Average Temp Topic Power BI {“avgTempC”:”24.3”, “avgTempF”:”75.7”} SQL Azure Raw data ETL temp avgs Service Bus ETL temp avgs
  32. 32. IoT Hub {“device”:”kizan-pi-01”, “tempC”:”25.5”, “tempF”:”77.9”} The Lab Cloud IoT Architecture Stream Analytics Service Bus Topic Subscribe to Average Temp Topic Power BI {“avgTempC”:”24.3”, “avgTempF”:”75.7”} SQL Azure Raw data ETL temp avgs Service Bus ETL temp avgs
  33. 33. 60 Stream Analytics
  34. 34. Standard Data Analysis 61 • 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
  35. 35. Streaming Data Analysis 62 • 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”
  36. 36. Tumbling Window Hopping Window Source: MSDN and MSDN 63 • 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
  37. 37. Source: Microsoft 64 • Real-time stream processing in the cloud • Real-time cloud-based ETL • Millions of events per second • Scale dynamically What is Azure Stream Analytics?
  38. 38. 65 • 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
  39. 39. 66 Demo Looking at a Stream Analytics Job
  40. 40. What is Power BI?
  41. 41. Live Query & Scheduled Data Refresh
  42. 42. Customer & KiZAN confidential 76 Build a Dashboard

×