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.

KiZAN IoT Workshop - Memphis

134 views

Published on

KiZAN will bring 25 Raspberry Pi starter kits that run Windows 10 IoT Core. This will enable participants to build a really compelling IoT/Azure/Power BI story in a single day! Interet of Things (IoT) Raspberry Pi starter kit

We’ll start off the day with an introduction to IoT and build IoT devices (hands on). Next, 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

KiZAN IoT Workshop - Memphis

  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: Oxford Ditionary 5 Internet of things noun 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?
  6. 6. Source: Cisco & Internet World Stats, sourced and created by Nick Landry 10 How Big?
  7. 7. Source: Cisco, sourced and stats created by Nick Landry 11 You Want What? More?
  8. 8. Source: Nick Landry 12 The Enablers
  9. 9. 13 The cool stuff.
  10. 10. 14 Common IoT Devices & Platforms
  11. 11. Source: Nick Landry 19 • 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
  12. 12. • 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
  13. 13. Source: Nick Landry 21 • Windows 10 is on Raspberry Pi 2 and 3! • http://windowsondevices.com New Windows == More Fun!
  14. 14. 22 Demo: Windows 10 IoT Core
  15. 15. 23 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
  16. 16. 24 • 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
  17. 17. 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
  18. 18. 29 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
  19. 19. 31 Lab 0 Introduction to your Lab Kit
  20. 20. 32 Lab 1 Hello World
  21. 21. 33 Lab 2 Momentary LED with Push Button
  22. 22. 34 Lab 3 Temperature Sensor
  23. 23. 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
  24. 24. 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
  25. 25. 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
  26. 26. 39 IoT Hub Placeholder and Azure IoT Hub Walkthrough
  27. 27. Source: Nick Landry 40 The Enablers
  28. 28. 42 Cloud Overview: IaaS, PaaS, SaaS Source: Nick Landry, Microsoft
  29. 29. 43 • 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. 44 Reference Cloud IoT Architecture Source: Nick Landry, 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. Source: Nick Landry 46 The Enablers
  33. 33. 47 The Maker Movement What’s fueling the fire?
  34. 34. 48 Makers are Everywhere
  35. 35. 49 “You’re a Great Builder and Maker”
  36. 36. 50
  37. 37. 52
  38. 38. 53 Crowdsourced Funding
  39. 39. 54 Since 2009! $2.39B pledged 105,959 successfully funded projects 10.9M total backers 29.3M pledges3.4M repeat backers Source: Kickstarter, May 2016
  40. 40. 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
  41. 41. 57 Stream Analytics
  42. 42. Standard Data Analysis 58 • 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
  43. 43. Streaming Data Analysis 59 • 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”
  44. 44. Tumbling Window Hopping Window Source: MSDN and MSDN 60 • 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
  45. 45. Source: Microsoft 61 • Real-time stream processing in the cloud • Real-time cloud-based ETL • Millions of events per second • Scale dynamically What is Azure Stream Analytics?
  46. 46. 62 • 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
  47. 47. 63 Demo Looking at a Stream Analytics Job
  48. 48. Any data, any way, anywhere
  49. 49. 146.03K145.84K145.96K146.06K 40.08K38.84K39.99K40.33K
  50. 50. Live Query & Scheduled Data Refresh
  51. 51. Power BI overview
  52. 52. Customer & KiZAN confidential 72 Build a Dashboard

×