Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
Doug Seven, Josh Holmes, Ivan Judson
Microsoft DX-TED, Partner Catalyst Team
Get settled and start preparing your machine
...
FieldGateways
ProtocolAdapters
OSSProject
CloudGateway
EventHub->IoTHub
Hot Path Analytics
Azure Stream Analytics, Azure S...
FieldGateways
ProtocolAdapters
OSSProject
CloudGateway
EventHub->IoTHub
Hot Path Analytics
Azure Stream Analytics, Azure S...
MCU + Atheros /
Linux
MCU (e.g. ATMega) ARM/Atom / Linux, Windows
Micro-controller (MCU) MCU + SoC Micro-Computer
Example ...
Labs 1-3
Atheros AR9331ATmega32u4
AR9331 LinuxWi-Fi
Ethernet
Micro USB
USB Host
ATmega 32u4
MicroSD
Digital IO 1-13
Analog Output 0-53.3V, 5V, GND
GND
 Side rails create a circuit up and down
 Rows create a circuit (A-E & F-J)
Hello, World!
 Voltage = current (in amps) x resistance
 V = IR or R = V/I or I = V/R
 Resistance (R) = Voltage (V) / Current (I)
 R...
 5mm Green LED (1)
 330-Ohm 1/4 Watt resistor
(Orange-Orange-Brown) (1)
http://ThingLabs.io/arduino/01/
Reading Analog Input
A voltage divider splits input
voltage input amongst two or
more components.
The resisted voltage indicates
the value.
Bri...
 Photoresistor (1)
 10k-Ohm 1/4 Watt resistor
(Brown-Black-Orange) (1)
http://ThingLabs.io/arduino/02/
Controlling Output with Input
 5mm Green LED (1)
 330-Ohm 1/4 Watt resistor
(Orange-Orange-Brown) (1)
 Photoresistor (1)
 10k-Ohm 1/4 Watt resistor
...
Labs 4-6
 Nitrogen is an open-source, JavaScript backend for IoT.
 Nitrogen provides
 Device Management
 Security and permissio...
Bad User
Motorized
Blinds
Rogue
Light
Light
Sensor
Nitrogen
Service
Lighting
App
Light
LightSwitch
Mobile
App
Sending Data to the Cloud
 Photoresistor (1)
 10k-Ohm 1/4 Watt resistor
(Brown-Black-Orange) (1)
 Update to package.json
 Must rerun npm install...
Sending Command & Control Messages
 isRelevant – should I care about the message?
 Message type is _lightState or _lightLevel and
the message is either fro...
 5mm Green LED (1)
 330-Ohm 1/4 Watt resistor
(Orange-Orange-Brown) (1)
 Photoresistor (1)
 10k-Ohm 1/4 Watt resistor
...
Connecting Multiple Things
 Permissions enable control over which Principals can interact (or not) with other
Principals
 Permission Types
 admin
...
http://ThingLabs.io/arduino/06/
Light Device Light Sensor Device
IoT Labs
Prochain SlideShare
Chargement dans…5
×

IoT Labs

860 vues

Publié le

These are the slides that accompany the labs at http://www.thinglabs.io/arduino

Publié dans : Internet
  • Login to see the comments

IoT Labs

  1. 1. Doug Seven, Josh Holmes, Ivan Judson Microsoft DX-TED, Partner Catalyst Team Get settled and start preparing your machine by following the instructions at… http://ThingLabs.io/arduino/00/ @ThingLabsIo
  2. 2. FieldGateways ProtocolAdapters OSSProject CloudGateway EventHub->IoTHub Hot Path Analytics Azure Stream Analytics, Azure Storm Cold / Batch Analytics & Visualizations Azure HDInsight, AzureML, Power BI, Azure Data Factory Hot Path Business Logic PaaS V2 & Actor Framework EnterpriseProcessConnections BizTalkServices,NotificationHubs Devices Linux,Android,iOS,RTOS,Windows Device Connectivity Analytics & Operationalized Insights Business Connectivity
  3. 3. FieldGateways ProtocolAdapters OSSProject CloudGateway EventHub->IoTHub Hot Path Analytics Azure Stream Analytics, Azure Storm Cold / Batch Analytics & Visualizations Azure HDInsight, AzureML, Power BI, Azure Data Factory Hot Path Business Logic PaaS V2 & Actor Framework EnterpriseProcessConnections BizTalkServices,NotificationHubs Devices Linux,Android,iOS,RTOS,Windows Device Connectivity Analytics & Operationalized Insights Business Connectivity
  4. 4. MCU + Atheros / Linux MCU (e.g. ATMega) ARM/Atom / Linux, Windows Micro-controller (MCU) MCU + SoC Micro-Computer Example Arduino Pro Mini Arduino Uno Arduino Yún Raspberry Pi 2 MinnowBorad MAX Micro- controller ATmega168 ATmega328 ATmega32u4 -- -- Processor -- -- Atheros AR9331 (Wi-Fi SoC) ARM Cortex-A7 Intel Atom E3825 GPU No No No Yes Yes
  5. 5. Labs 1-3
  6. 6. Atheros AR9331ATmega32u4
  7. 7. AR9331 LinuxWi-Fi Ethernet Micro USB USB Host ATmega 32u4 MicroSD
  8. 8. Digital IO 1-13 Analog Output 0-53.3V, 5V, GND GND
  9. 9.  Side rails create a circuit up and down  Rows create a circuit (A-E & F-J)
  10. 10. Hello, World!
  11. 11.  Voltage = current (in amps) x resistance  V = IR or R = V/I or I = V/R  Resistance (R) = Voltage (V) / Current (I)  R = 5V / 15mA (1,000 milliamps = 1 amp)  R = 5 / .015  R = 333.333 Ohms (330 Ohms is close enough)  R = 5V / 10mA  R = 5/.01  R = 500 Ohms (560 Ohms is close enough)
  12. 12.  5mm Green LED (1)  330-Ohm 1/4 Watt resistor (Orange-Orange-Brown) (1) http://ThingLabs.io/arduino/01/
  13. 13. Reading Analog Input
  14. 14. A voltage divider splits input voltage input amongst two or more components. The resisted voltage indicates the value. Brighter light == Less resistance;
  15. 15.  Photoresistor (1)  10k-Ohm 1/4 Watt resistor (Brown-Black-Orange) (1) http://ThingLabs.io/arduino/02/
  16. 16. Controlling Output with Input
  17. 17.  5mm Green LED (1)  330-Ohm 1/4 Watt resistor (Orange-Orange-Brown) (1)  Photoresistor (1)  10k-Ohm 1/4 Watt resistor (Brown-Black-Orange) (1) http://ThingLabs.io/arduino/03/
  18. 18. Labs 4-6
  19. 19.  Nitrogen is an open-source, JavaScript backend for IoT.  Nitrogen provides  Device Management  Security and permissions  Data Ingest  Command & Control  Nitrogen includes a JavaScript client library for device and web applications
  20. 20. Bad User Motorized Blinds Rogue Light Light Sensor Nitrogen Service Lighting App Light LightSwitch Mobile App
  21. 21. Sending Data to the Cloud
  22. 22.  Photoresistor (1)  10k-Ohm 1/4 Watt resistor (Brown-Black-Orange) (1)  Update to package.json  Must rerun npm install http://ThingLabs.io/arduino/04/
  23. 23. Sending Command & Control Messages
  24. 24.  isRelevant – should I care about the message?  Message type is _lightState or _lightLevel and the message is either from or to this device ID  isCommand – do I need to execute the message?  Message type is _lightLevel  obsoletes – do I care any more? (e.g. have I already processes this)  Does the CommadManager think this is obsolete?  Is the downstream message _lightState, and is it in response to the specified upstream message, and is the upstream message type _lightLevel  executeQueue – do whatever needs to be done based on the message  Iterate the activeCommands and perform some action  start – get things going  Starts the CommandManager, gets all the messages and subscribes to future messages
  25. 25.  5mm Green LED (1)  330-Ohm 1/4 Watt resistor (Orange-Orange-Brown) (1)  Photoresistor (1)  10k-Ohm 1/4 Watt resistor (Brown-Black-Orange) (1) http://ThingLabs.io/arduino/05/
  26. 26. Connecting Multiple Things
  27. 27.  Permissions enable control over which Principals can interact (or not) with other Principals  Permission Types  admin  view  send  subscribe  Permissions enable explicit authorization control  n2 permission add --action subscribe --authorized true --issueTo <PRINCIPAL ID> --principalFor <PRINCIPAL ID>
  28. 28. http://ThingLabs.io/arduino/06/ Light Device Light Sensor Device

×