SlideShare a Scribd company logo
1 of 53
http://BuildAzure.com
Getting Started with IoT
Using Azure, Windows IoT and Raspberry Pi
Chris Pietschmann
Senior Cloud Solution Architect
http://Opsgility.com
~15 years architecting enterprise systems
Microsoft MVP (2008 – 2012)
http://BuildAzure.com
@BuildAzure
The Internet of Things
IoT Devices
Agenda
•IoT Architecture
•Raspberry Pi
•Windows IoT Core
•Azure IoT
IoT Architecture
Device-to-Cloud Messaging
• Data Event / Messages are sent from the hardware device to the
cloud
• Sensor readings
• Telemetry stream
• Generally feeds into some kind of Message Queue for
processing
Lambda Architecture
• Data Aggregation
• Real-Time Processing /
Analytics
• fast
• Batch Processing
• slow
Cloud-to-Device Messaging
• Command / Messages sent to the hardware device
• Instruction to perform an action
• Turn something on: Light, Fan, Open Door, etc
• Start / Stop gathering telemetry
• 2-way messaging
MQTT Protocol
• Message Queuing Telemetry Transport
• Publish / Subscribe, simple and lightweight protocol
• Encryption performed using SSL
• Designed for low-bandwidth, high-latency or unreliable
networks
• Created in 1999 http://mqtt.org
Other Protocols
• AMQP
• Advanced Message Queuing Protocol
• http://amqp.org
• HTTP
• Standard web protocol
• Custom or Device Specific
• Legacy or Proprietary
IoT Gateways
• Similar to a Proxy
• Provide aggregation point for device communications
• Field Gateway
• Low powered or simple devices may not have capacity to provide security
necessary for IoT; maybe no SSL
• Protocol Gateway
• Provides protocol adaptation
• Translates from custom / proprietary protocol to one cloud supports; like
MQTT or AMQP
• Offers a single security attack vector connected to Internet
IoT Architecture
Raspberry Pi
Raspberry Pi
• Designed with the purpose to help teach Basic
Computer Science in schools
• Very active community building all kinds of stuff
• First boards released in 2012
• Many editions have been released since
http://www.raspberrypi.org
Raspberry Pi 2 & 3
• ARM CPU
• Header with 40 GPIO Pins
• Network: Ethernet, Wifi
• Video: HDMI, Composite Video
• Storage: Micro SD Card
• 4 USB Ports
• Operating System support:
• Raspbian / Linux
• Windows 10 IoT Core
Raspberry Pi 2 & 3
Raspberry Pi 2
• 900 Mhz 32-bit quad-core
ARM Cortex-A7 CPU
• 1GB RAM
• Released Feb 2015
Raspberry Pi 3
• 1.2 Ghz 64-bit quad-core
ARMv8 CPU
• 1 GB RAM
• Integrated:
• Wifi 802.11n
• Bluetooth 4.1 w/ BLE
• Released Feb 2016
Certified for IoT Starter Kit
• Adafruit Raspberry Pi Kit
• Raspberry Pi 3
• Breadboard
• Jumper wires
• Temp, Pressure, Humidity
Sensor
• RGB Color Sensor
• Photo cell
• LEDs
• Resistors
• and more
http://bit.ly/AzureIoTStarterKits
Windows IoT Core
Windows IoT Core
• Windows 10 optimized for smaller devices
• With Display or Headless
• Supports Auto-update over Windows Update
• Hardware Support
• Raspberry Pi 2 & 3, Qualcomm DragonBoard 410c, MinnowBoard MAX
FREE
Device UI - Dashboard
• Device Name
• Network & IP Address
• Windows 10 Version
Device UI – Setup Wifi & Bluetooth
• Setup Wifi
• Setup Bluetooth
IoT Development
• Universal Windows Apps (UWP) API
• Same development tools for Windows 10 Desktop, Phone, Xbox,
HoloLens, and Windows IoT Core
• Visual Studio 2015, .NET, XAML
IoT Dashboard
• Easily Flash SD Card
• Configure Device Settings
• Device name
• Administrator Password
• Wifi network
https://developer.microsoft.com/en-us/windows/iot/downloads
Device Web Portal
• Headless Management of
Device
• http://{IP Address}:8080
• Login: Administrator
• Password defined when SD Card
was flashed
Windows IoT Remote Client
• Needs “Windows IoT Remote
Server” turned on.
• Can be done from the Device
Web Portal
• Available in Windows Store
Windows IoT Core Pro
Commercial Version is available
https://www.windowsforiotdevices.com/
Azure IoT
Azure IoT Suite
IoT Hub
Notification Hubs
Stream Analytics
Machine Learning
Power BI
IoT Hub
• Device-to-Cloud messaging
• Support AMQP, MQTT, HTTP/1
• Cloud-to-Device messaging
• 2-way communication between Cloud and IoT Device
• Scalable
• Supports millions of simultaneous devices
• Device Management / Security
• Azure IoT Gateway SDK Beta
• Open Source SDK for building IoT Gateways
IoT Hub SDKs
• Multi-platform
• C
• Node.js
• Java
• .NET
• Python
https://github.com/
Azure/azure-iot-sdks
IoT Hub Architecture
Notification Hub
• Send Push Notifications to any platform
• Mobile Push Notification, not to be confused with SMS messages
• Supports All Major Platforms
• iOS, Android, Windows, Kindle, Baidu
• Highly Scalable
• Millions of Mobile Devices and Billions of Notifications
Stream Analytics
• Real-time stream processing
• Stream millions of events per second
• Can handle multiple Inputs and Outputs
• Input: IoT Hub, Event Hubs, Blob Storage
• Output: SQL Database, DocumentDB, Azure Storage, Event Hubs, Power
BI, Service Bus Queues/Topics
• Uses SQL-like query syntax for Input to Output mapping
Stream Analytics Architecture
Stream Analytics
SQL Database
DocumentDB
IoT Hub
Machine Learning
• PaaS Predictive Analytics
• Create Learning Models using ML
Studio
• Outputs Web Service that can be
run on Schedule and connected to
database
• Add intelligence to apps or
provide insights to BI tools
Power BI
• PaaS Service
• Create Interactive Reports
• Easily embed BI and
analytics within apps
Other PaaS Services
App Service Web Apps
• Platform as a Service (PaaS)
• Host Web Applications
• ASP.NET, Node.js, PHP, Java
• Foundation for other services
• API Apps
• Mobile Apps
• Functions
Azure Functions
• Server-less
• Well not really, actually built on top of App Service Web Apps
• Language Support:
• C# and Node.js
• Isolated Function of Code
• Run on Schedule or Trigger
Service Bus Queue
• Message Queue
• First In, First Out
• Enable loosely coupled applications
• More robust than Storage Queues
DocumentDB
• NoSQL document database
• JSON documents
• Schema-free
• Highly scalable
• SQL query syntax
Demo
Raspberry Pi GPIO http://bit.ly/RPiHeaderPins
Connect Temperature Sensor
• Adafruit BME280
• Temperature, Humidity,
Barometric Pressure
• Connect to I2C bus on header
pins 3 and 5
http://bit.ly/RPWeather3
Connect LED
• Blue LED
• 220 Ohm Resistor
• Connected to
GPIO 4
• Located on
Header Pin 7
All wired up
Demo Hardware
Demo Architecture
UWP App / Raspberry Pi IoT Hub
Stream
Analytics
DocumentDB
Function
Service Bus
Queue
Demo: Into the Code and Portal
More Information
• http://hackster.io/microsoft
• http://adafruit.com
• http://BuildAzure.com @BuildAzure
Thank you to our sponsor

More Related Content

Viewers also liked

NashTech - Azure IoT Solutions on Microsoft Azure
NashTech - Azure IoT Solutions on Microsoft AzureNashTech - Azure IoT Solutions on Microsoft Azure
NashTech - Azure IoT Solutions on Microsoft AzurePhi Huynh
 
Thinking Strategically About IoT
Thinking Strategically About IoTThinking Strategically About IoT
Thinking Strategically About IoTHolly Cummins
 
SkopjePulse: Designing a better city with IoT
SkopjePulse: Designing a better city with IoTSkopjePulse: Designing a better city with IoT
SkopjePulse: Designing a better city with IoTNetcetera
 
Internet of Things (IoT) - We Are at the Tip of An Iceberg
Internet of Things (IoT) - We Are at the Tip of An IcebergInternet of Things (IoT) - We Are at the Tip of An Iceberg
Internet of Things (IoT) - We Are at the Tip of An IcebergDr. Mazlan Abbas
 
Embracing iot in the enterprise
Embracing iot in the enterpriseEmbracing iot in the enterprise
Embracing iot in the enterpriseGabriella Davis
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshopNitesh Malviya
 
Azure IoT Hub: 30 minutes Intro & Demo
Azure IoT Hub: 30 minutes Intro & DemoAzure IoT Hub: 30 minutes Intro & Demo
Azure IoT Hub: 30 minutes Intro & DemoAndri Yadi
 
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-gInternet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-gMohan Kumar G
 
Next Generation Embedded Systems Security for IOT: Powered by Kaspersky
Next Generation Embedded Systems Security for IOT:  Powered by KasperskyNext Generation Embedded Systems Security for IOT:  Powered by Kaspersky
Next Generation Embedded Systems Security for IOT: Powered by KasperskyL. Duke Golden
 
A Secure Model of IoT Using Blockchain
A Secure Model of IoT Using BlockchainA Secure Model of IoT Using Blockchain
A Secure Model of IoT Using BlockchainAltoros
 
One Click Enterprise IoT Services - March 2017 AWS Online Tech Talks
One Click Enterprise IoT Services - March 2017 AWS Online Tech TalksOne Click Enterprise IoT Services - March 2017 AWS Online Tech Talks
One Click Enterprise IoT Services - March 2017 AWS Online Tech TalksAmazon Web Services
 
Tapjoy: Building a Real-Time Data Science Service for Mobile Advertising
Tapjoy: Building a Real-Time Data Science Service for Mobile AdvertisingTapjoy: Building a Real-Time Data Science Service for Mobile Advertising
Tapjoy: Building a Real-Time Data Science Service for Mobile AdvertisingSingleStore
 
Ingesting Drone Data into Big Data Platforms
Ingesting Drone Data into Big Data Platforms Ingesting Drone Data into Big Data Platforms
Ingesting Drone Data into Big Data Platforms Timothy Spann
 
IoT and the Role of Platforms
IoT and the Role of PlatformsIoT and the Role of Platforms
IoT and the Role of PlatformsTiE Bangalore
 
JustGiving – Serverless Data Pipelines, API, Messaging and Stream Processing
JustGiving – Serverless Data Pipelines,  API, Messaging and Stream ProcessingJustGiving – Serverless Data Pipelines,  API, Messaging and Stream Processing
JustGiving – Serverless Data Pipelines, API, Messaging and Stream ProcessingLuis Gonzalez
 
M2M transitioning to IoT opportunity for telcos. Success references.
M2M transitioning to IoT opportunity for telcos. Success references.M2M transitioning to IoT opportunity for telcos. Success references.
M2M transitioning to IoT opportunity for telcos. Success references.Pedro Menendez-Valdes
 
IOT based smart security and monitoring devices for agriculture
IOT based smart security and monitoring devices for agriculture IOT based smart security and monitoring devices for agriculture
IOT based smart security and monitoring devices for agriculture sneha daise paulson
 

Viewers also liked (17)

NashTech - Azure IoT Solutions on Microsoft Azure
NashTech - Azure IoT Solutions on Microsoft AzureNashTech - Azure IoT Solutions on Microsoft Azure
NashTech - Azure IoT Solutions on Microsoft Azure
 
Thinking Strategically About IoT
Thinking Strategically About IoTThinking Strategically About IoT
Thinking Strategically About IoT
 
SkopjePulse: Designing a better city with IoT
SkopjePulse: Designing a better city with IoTSkopjePulse: Designing a better city with IoT
SkopjePulse: Designing a better city with IoT
 
Internet of Things (IoT) - We Are at the Tip of An Iceberg
Internet of Things (IoT) - We Are at the Tip of An IcebergInternet of Things (IoT) - We Are at the Tip of An Iceberg
Internet of Things (IoT) - We Are at the Tip of An Iceberg
 
Embracing iot in the enterprise
Embracing iot in the enterpriseEmbracing iot in the enterprise
Embracing iot in the enterprise
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshop
 
Azure IoT Hub: 30 minutes Intro & Demo
Azure IoT Hub: 30 minutes Intro & DemoAzure IoT Hub: 30 minutes Intro & Demo
Azure IoT Hub: 30 minutes Intro & Demo
 
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-gInternet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
 
Next Generation Embedded Systems Security for IOT: Powered by Kaspersky
Next Generation Embedded Systems Security for IOT:  Powered by KasperskyNext Generation Embedded Systems Security for IOT:  Powered by Kaspersky
Next Generation Embedded Systems Security for IOT: Powered by Kaspersky
 
A Secure Model of IoT Using Blockchain
A Secure Model of IoT Using BlockchainA Secure Model of IoT Using Blockchain
A Secure Model of IoT Using Blockchain
 
One Click Enterprise IoT Services - March 2017 AWS Online Tech Talks
One Click Enterprise IoT Services - March 2017 AWS Online Tech TalksOne Click Enterprise IoT Services - March 2017 AWS Online Tech Talks
One Click Enterprise IoT Services - March 2017 AWS Online Tech Talks
 
Tapjoy: Building a Real-Time Data Science Service for Mobile Advertising
Tapjoy: Building a Real-Time Data Science Service for Mobile AdvertisingTapjoy: Building a Real-Time Data Science Service for Mobile Advertising
Tapjoy: Building a Real-Time Data Science Service for Mobile Advertising
 
Ingesting Drone Data into Big Data Platforms
Ingesting Drone Data into Big Data Platforms Ingesting Drone Data into Big Data Platforms
Ingesting Drone Data into Big Data Platforms
 
IoT and the Role of Platforms
IoT and the Role of PlatformsIoT and the Role of Platforms
IoT and the Role of Platforms
 
JustGiving – Serverless Data Pipelines, API, Messaging and Stream Processing
JustGiving – Serverless Data Pipelines,  API, Messaging and Stream ProcessingJustGiving – Serverless Data Pipelines,  API, Messaging and Stream Processing
JustGiving – Serverless Data Pipelines, API, Messaging and Stream Processing
 
M2M transitioning to IoT opportunity for telcos. Success references.
M2M transitioning to IoT opportunity for telcos. Success references.M2M transitioning to IoT opportunity for telcos. Success references.
M2M transitioning to IoT opportunity for telcos. Success references.
 
IOT based smart security and monitoring devices for agriculture
IOT based smart security and monitoring devices for agriculture IOT based smart security and monitoring devices for agriculture
IOT based smart security and monitoring devices for agriculture
 

Recently uploaded

Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreelreely ones
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101vincent683379
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...CzechDreamin
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfEasyPrinterHelp
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 

Recently uploaded (20)

Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 

Getting Started with IoT using Azure, Windows IoT Core, and Raspberry Pi

  • 1. http://BuildAzure.com Getting Started with IoT Using Azure, Windows IoT and Raspberry Pi
  • 2.
  • 3. Chris Pietschmann Senior Cloud Solution Architect http://Opsgility.com ~15 years architecting enterprise systems Microsoft MVP (2008 – 2012) http://BuildAzure.com @BuildAzure
  • 8. Device-to-Cloud Messaging • Data Event / Messages are sent from the hardware device to the cloud • Sensor readings • Telemetry stream • Generally feeds into some kind of Message Queue for processing
  • 9. Lambda Architecture • Data Aggregation • Real-Time Processing / Analytics • fast • Batch Processing • slow
  • 10. Cloud-to-Device Messaging • Command / Messages sent to the hardware device • Instruction to perform an action • Turn something on: Light, Fan, Open Door, etc • Start / Stop gathering telemetry • 2-way messaging
  • 11. MQTT Protocol • Message Queuing Telemetry Transport • Publish / Subscribe, simple and lightweight protocol • Encryption performed using SSL • Designed for low-bandwidth, high-latency or unreliable networks • Created in 1999 http://mqtt.org
  • 12. Other Protocols • AMQP • Advanced Message Queuing Protocol • http://amqp.org • HTTP • Standard web protocol • Custom or Device Specific • Legacy or Proprietary
  • 13. IoT Gateways • Similar to a Proxy • Provide aggregation point for device communications • Field Gateway • Low powered or simple devices may not have capacity to provide security necessary for IoT; maybe no SSL • Protocol Gateway • Provides protocol adaptation • Translates from custom / proprietary protocol to one cloud supports; like MQTT or AMQP • Offers a single security attack vector connected to Internet
  • 16. Raspberry Pi • Designed with the purpose to help teach Basic Computer Science in schools • Very active community building all kinds of stuff • First boards released in 2012 • Many editions have been released since http://www.raspberrypi.org
  • 17. Raspberry Pi 2 & 3 • ARM CPU • Header with 40 GPIO Pins • Network: Ethernet, Wifi • Video: HDMI, Composite Video • Storage: Micro SD Card • 4 USB Ports • Operating System support: • Raspbian / Linux • Windows 10 IoT Core
  • 18. Raspberry Pi 2 & 3 Raspberry Pi 2 • 900 Mhz 32-bit quad-core ARM Cortex-A7 CPU • 1GB RAM • Released Feb 2015 Raspberry Pi 3 • 1.2 Ghz 64-bit quad-core ARMv8 CPU • 1 GB RAM • Integrated: • Wifi 802.11n • Bluetooth 4.1 w/ BLE • Released Feb 2016
  • 19. Certified for IoT Starter Kit • Adafruit Raspberry Pi Kit • Raspberry Pi 3 • Breadboard • Jumper wires • Temp, Pressure, Humidity Sensor • RGB Color Sensor • Photo cell • LEDs • Resistors • and more http://bit.ly/AzureIoTStarterKits
  • 21. Windows IoT Core • Windows 10 optimized for smaller devices • With Display or Headless • Supports Auto-update over Windows Update • Hardware Support • Raspberry Pi 2 & 3, Qualcomm DragonBoard 410c, MinnowBoard MAX FREE
  • 22. Device UI - Dashboard • Device Name • Network & IP Address • Windows 10 Version
  • 23. Device UI – Setup Wifi & Bluetooth • Setup Wifi • Setup Bluetooth
  • 24. IoT Development • Universal Windows Apps (UWP) API • Same development tools for Windows 10 Desktop, Phone, Xbox, HoloLens, and Windows IoT Core • Visual Studio 2015, .NET, XAML
  • 25. IoT Dashboard • Easily Flash SD Card • Configure Device Settings • Device name • Administrator Password • Wifi network https://developer.microsoft.com/en-us/windows/iot/downloads
  • 26. Device Web Portal • Headless Management of Device • http://{IP Address}:8080 • Login: Administrator • Password defined when SD Card was flashed
  • 27. Windows IoT Remote Client • Needs “Windows IoT Remote Server” turned on. • Can be done from the Device Web Portal • Available in Windows Store
  • 28. Windows IoT Core Pro Commercial Version is available https://www.windowsforiotdevices.com/
  • 30. Azure IoT Suite IoT Hub Notification Hubs Stream Analytics Machine Learning Power BI
  • 31. IoT Hub • Device-to-Cloud messaging • Support AMQP, MQTT, HTTP/1 • Cloud-to-Device messaging • 2-way communication between Cloud and IoT Device • Scalable • Supports millions of simultaneous devices • Device Management / Security • Azure IoT Gateway SDK Beta • Open Source SDK for building IoT Gateways
  • 32. IoT Hub SDKs • Multi-platform • C • Node.js • Java • .NET • Python https://github.com/ Azure/azure-iot-sdks
  • 34. Notification Hub • Send Push Notifications to any platform • Mobile Push Notification, not to be confused with SMS messages • Supports All Major Platforms • iOS, Android, Windows, Kindle, Baidu • Highly Scalable • Millions of Mobile Devices and Billions of Notifications
  • 35. Stream Analytics • Real-time stream processing • Stream millions of events per second • Can handle multiple Inputs and Outputs • Input: IoT Hub, Event Hubs, Blob Storage • Output: SQL Database, DocumentDB, Azure Storage, Event Hubs, Power BI, Service Bus Queues/Topics • Uses SQL-like query syntax for Input to Output mapping
  • 36. Stream Analytics Architecture Stream Analytics SQL Database DocumentDB IoT Hub
  • 37. Machine Learning • PaaS Predictive Analytics • Create Learning Models using ML Studio • Outputs Web Service that can be run on Schedule and connected to database • Add intelligence to apps or provide insights to BI tools
  • 38. Power BI • PaaS Service • Create Interactive Reports • Easily embed BI and analytics within apps
  • 40. App Service Web Apps • Platform as a Service (PaaS) • Host Web Applications • ASP.NET, Node.js, PHP, Java • Foundation for other services • API Apps • Mobile Apps • Functions
  • 41. Azure Functions • Server-less • Well not really, actually built on top of App Service Web Apps • Language Support: • C# and Node.js • Isolated Function of Code • Run on Schedule or Trigger
  • 42. Service Bus Queue • Message Queue • First In, First Out • Enable loosely coupled applications • More robust than Storage Queues
  • 43. DocumentDB • NoSQL document database • JSON documents • Schema-free • Highly scalable • SQL query syntax
  • 44. Demo
  • 45. Raspberry Pi GPIO http://bit.ly/RPiHeaderPins
  • 46. Connect Temperature Sensor • Adafruit BME280 • Temperature, Humidity, Barometric Pressure • Connect to I2C bus on header pins 3 and 5 http://bit.ly/RPWeather3
  • 47. Connect LED • Blue LED • 220 Ohm Resistor • Connected to GPIO 4 • Located on Header Pin 7
  • 50. Demo Architecture UWP App / Raspberry Pi IoT Hub Stream Analytics DocumentDB Function Service Bus Queue
  • 51. Demo: Into the Code and Portal
  • 52. More Information • http://hackster.io/microsoft • http://adafruit.com • http://BuildAzure.com @BuildAzure
  • 53. Thank you to our sponsor

Editor's Notes

  1. NOTES: Here’s a bunch of Consumer IoT devices available today ATTRIBUTION: http://nest.com http://tesla.com http://sonos.com http://amazon.com http://vizio.com http://sony.com http://apple.com http://smartthings.com
  2. NOTES: Devices generate events / messages sent to a Queue. In Azure this would be Azure IoT Hub or Event Hubs Them event data is sent 2 directions For Real-Time processing, like using Azure Stream Analytics and possibly Machine Learning For Batch Processing, like Azure SQL Database or DocumentDB for archiving The end result is basically the same for both paths; some kind of database to persist the data for longer term storage and retrieval Finally an application on the other end that will do something with the data. Perhaps reporting like Power BI or just some kind of business app
  3. NOTES: MQTT has become a standard protocol for “Internet of Things” Operates over TCP/IP port 1883 reserved for MQTT, and 8883 with SSL / encryption
  4. LINKS: https://azure.microsoft.com/en-us/documentation/articles/iot-hub-protocol-gateway/
  5. LINKS: https://azure.microsoft.com/en-us/documentation/articles/iot-hub-what-is-azure-iot/
  6. Attribution: http://www.prioryfinepastries.com/our-pies/ http://www.prioryfinepastries.com/wp-content/gallery/pies/cherry-pie.png
  7. Link: http://bit.ly/AzureIoTStarterKits
  8. https://www.microsoft.com/en-us/windowsforbusiness/windows-iot
  9. Attribution: Cloud graphic is from https://azure.microsoft.com/en-us/suites/iot-suite/
  10. LINKS: https://azure.microsoft.com/en-us/documentation/articles/iot-hub-what-is-iot-hub/ https://azure.microsoft.com/en-us/documentation/articles/iot-hub-compare-event-hubs/ https://azure.microsoft.com/en-us/blog/introducing-the-azure-iot-gateway-sdk-beta/
  11. https://github.com/Azure/azure-iot-sdks/blob/master/readme.md
  12. NOTES: Protocols supported: MQTT, AMQP, HTTP LINKS: https://azure.microsoft.com/en-us/documentation/articles/iot-hub-what-is-iot-hub/
  13. NOTES: Baidu is a Chinese cloud service LINKS: - https://azure.microsoft.com/en-us/services/notification-hubs/ - https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-baidu-china-android-notifications-get-started/
  14. LINKS: - https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-push-notification-overview/
  15. LINKS: https://azure.microsoft.com/en-us/services/stream-analytics/ https://azure.microsoft.com/en-us/documentation/articles/stream-analytics-introduction/
  16. LINKS: https://azure.microsoft.com/en-us/services/machine-learning/
  17. LINKS: https://powerbi.microsoft.com/en-us/ https://powerbi.microsoft.com/en-us/features/
  18. Link: http://bit.ly/RPiHeaderPins
  19. NOTE: Link is for the Weather Station V 3.0 project I put up on Hackster.io. Project includes code, wiring diagram and other info necessary for connecting this up. Links: https://www.adafruit.com/products/2652 https://www.hackster.io/23021/weather-station-v-3-0-b8b8bc http://bit.ly/RPWeather3
  20. NOTES: - I am using a cobbler with a Breakout ribbon to connect the Raspberry Pi to the Breadboard.
  21. NOTES - LED turns on at 29c for 1.5 seconds