Presentation is loading. Please wait.

Presentation is loading. Please wait.

Let’s do some IoT stuff… with an Arduino board and Azure Stream Analytics Internet of Things.

Similar presentations


Presentation on theme: "Let’s do some IoT stuff… with an Arduino board and Azure Stream Analytics Internet of Things."— Presentation transcript:

1 Let’s do some IoT stuff… with an Arduino board and Azure Stream Analytics Internet of Things

2 Merci à nos sponsors…

3 Session Logistics Speaker : Florian Eiden SQL Server MVP/ Data Architect @fleid_bi/ http://fleid.fr English or French? Recorded, but you are here, so you are the important ones! Content : 20% slide deck, 80% demo Some code : C, Python; on Linux and Mac OS… But Azure and Power BI! Yes you can leave now, no offence taken ;) Cellenza 156, bd Haussmann 75008 Paris, France http://www.cellenza.com http://blog.cellenza.com

4 Internet of Things What’s the point? International Business Times : Connected CattleConnected Cattle By David GilbertDavid Gilbert

5 Internet of Things What’s the point? 4 different scenarios (Clemens Vasters – MSDN)Clemens Vasters – MSDN Telemetry : my device streams data from sensors Inquiries : my device asks for stuff for its process to complete Commands : I order my device to do something Notifications : I notify my device so that it can do stuff if it wants to

6 Complete Picture Event Hub Stream Analytics PowerBI.com Azure SQL DB IP compatible device (Windows/Linux) Sensors http

7 Arduino.cc (Genuino) https://www.arduino.cc/en/Tutorial/Blink

8 Arduino.cc (Genuino) https://www.arduino.cc/en/Tutorial/Blink

9 Arduino Yun = Base + Linux + Wifi & Ethernet Base System : Circuit board + pseudo C Yun Linux : Linux… so Python in my case :) (Because Azure SDK in Python!) Pseudo C Python

10 Event Hub : a broker, with retention, in PaaS Event Hub http

11 Arduino : C Let’s go have a look ;)

12 Arduino : Python Let’s go have a look ;) First on the Mac Then on the Arduino by ssh Then see

13 So now that we have data coming in, lets play with it!

14 14 (Stream Analytics) Data at Rest SELECT count(*) FROM ParkingLot WHERE type = 'Auto' AND color = 'Red' Question “How many red cars are in the parking lot?” Answering with a relational database Walk out to the parking lot Count vehicles that are: Red, Car

15 15 (Stream Analytics) Data in Motion Different Question “How many red cars have passed exit 18A on A-10 in the last hour?” Answering with a relational database Pull over, park all vehicles in a lot, keep them there for an hour Count vehicles in the lot Not a great solution…

16 16 Stream Analytics SELECT count(*) FROM A-10 WHERE Type = ‘Car’ and Color = ‘Red’ GROUP BY TumblingWindow(hour, 1) Different Question “How many red cars have passed exit 18A on A-10 in the last hour?”

17 17 Temporal aggregation, in T- SQL TumblingWindow(minute,5) HoppingWindow(minute, 10, 5) SlidingWindow(minute, 3)

18 18 End-to-End Architecture Data SourceCollectProcessDeliver Event Inputs -Event Hubs -Azure Storage Blobs Transform -Temporal joins -Filter -Aggregates -Projections -Windows -etc. Enrich -Join with reference data Prepare -Output to storage for further processing Outputs -Azure SQL DB -Azure Storage Blobs -Event Hubs -Power BI -… Azure Storage Temporal Semantics Guaranteed delivery Guaranteed up time Azure Stream Analytics Reference Data -Azure Storage Blobs -…

19 Power BI (powerbi.com, the yellow one)powerbi.com NB : you need the “Pro” one (10$/month) for real time stuff

20 To go further Arduino.cc : Starter Kit (Genuino) / Arduino Yun (Linux+Wifi) Arduino.cc Arduino + Event Hub Ola Loogman (Kloud) : The IoT with Arduino, Event Hubs and the Azure Python SDK (blog)blog Event Hub et Stream Analytics Dipanjan Banik – Stream Analytics Hands on Lab : TollApp (download)download Visual Studio Community Edition (download)download Azure 1 free month offer (activate)activate Power BI : PowerBI.comPowerBI.com

21 http://GUSS.pro/sqlsa t


Download ppt "Let’s do some IoT stuff… with an Arduino board and Azure Stream Analytics Internet of Things."

Similar presentations


Ads by Google