40
@tenerifedev Windows 10 IoT, Raspberry Pi y Azure David Rodriguez Microsoft Azure MVP @davidjrh 21 Enero 2016 @TenerifeDev

Windows 10 IoT Core, Raspberry Pi y Azure

Embed Size (px)

Citation preview

Page 1: Windows 10 IoT Core, Raspberry Pi y Azure

@tenerifedev

Windows 10 IoT, Raspberry Pi y Azure

David RodriguezMicrosoft Azure MVP @davidjrh

21 Enero 2016

@TenerifeDev

Page 2: Windows 10 IoT Core, Raspberry Pi y Azure

@tenerifedev

2

AgendaIntroducción a Windows 10 IoT CoreRaspberry Pi 2Creando IoT apps en .NET desde Visual Studio

Servicios de Azure para IoT

Page 3: Windows 10 IoT Core, Raspberry Pi y Azure

Windows 10 IoT Core

Page 5: Windows 10 IoT Core, Raspberry Pi y Azure

¿Qué es IoT?

“Internet de las cosas (IoT, por sus siglas en inglés)es un concepto que se refiere a la interconexión digital de objetos cotidianos con internet. Alternativamente, Internet de las cosas es el punto en el tiempo en el que se conectarían a internet más “cosas u objetos” que personas”https://es.wikipedia.org/wiki/Internet_de_las_cosas

Page 6: Windows 10 IoT Core, Raspberry Pi y Azure

El Internet de tus Cosas

https://www.windowsondevices.com

Page 7: Windows 10 IoT Core, Raspberry Pi y Azure

Windows 10 IoT Core Basado en Windows 10

Page 8: Windows 10 IoT Core, Raspberry Pi y Azure

¿Es para mí?

Page 9: Windows 10 IoT Core, Raspberry Pi y Azure

Requerimientos

Page 10: Windows 10 IoT Core, Raspberry Pi y Azure

Hardware compatible

http://ms-iot.github.io/content/en-US/win10/SupportedInterfaces.htm

Page 11: Windows 10 IoT Core, Raspberry Pi y Azure

Raspberry Pi 2

Page 12: Windows 10 IoT Core, Raspberry Pi y Azure

Raspberry Pi 2

12

Page 13: Windows 10 IoT Core, Raspberry Pi y Azure

Raspberry Pi 2 A 900MHz quad-core ARM Cortex-A7 CPU 1GB RAM 4 USB ports 40 GPIO pins Full HDMI port Ethernet port Combined 3.5mm audio jack and composite video Camera interface (CSI) Display interface (DSI) Micro SD card slot VideoCore IV 3D graphics core

Page 14: Windows 10 IoT Core, Raspberry Pi y Azure

Raspberry Pi 2

14

Page 15: Windows 10 IoT Core, Raspberry Pi y Azure

Raspberry Pi 2

Page 16: Windows 10 IoT Core, Raspberry Pi y Azure

GPIO pins

Page 17: Windows 10 IoT Core, Raspberry Pi y Azure

Adafruit Maker Kit

http://adafruit.com/windows10iotpi2

Page 18: Windows 10 IoT Core, Raspberry Pi y Azure

Creando Apps desde Visual Studio

Page 19: Windows 10 IoT Core, Raspberry Pi y Azure

Preparando entorno de desarrollo1. Instalar Windows 102. Instalar Visual Studio 2015 (Community o

superior)3. Instalar Visual Studio 2015 Update 14. Instalar Windows IoT Core Project

Templates5. Habilitar modo desarrollador

http://ms-iot.github.io/content/en-US/GetStarted.htm

Page 20: Windows 10 IoT Core, Raspberry Pi y Azure

Windows 10 IoT Dashboard http://go.microsoft.com/fwlink/?LinkID=708576

Page 21: Windows 10 IoT Core, Raspberry Pi y Azure

DemoWindows 10 IoT DashboardMi primera App desde Visual Studio

Page 22: Windows 10 IoT Core, Raspberry Pi y Azure

Acceso remoto a Windows 10 IoT Device Portal (puerto 8080) FTP (puerto 21) PowerShell

net start WinRM Set-Item WSMan:\localhost\Client\TrustedHosts -Value 10.209.3.136 Enter-PSSession -ComputerName 10.209.3.136 -Credential localhost\

Administratorhttps://ms-iot.github.io/content/en-US/win10/samples/PowerShell.htm

Page 23: Windows 10 IoT Core, Raspberry Pi y Azure

Proyectoshttps://microsoft.hackster.io (+230 proyectos)

Y no olvides mirar https://github.com/ms-iot

Page 24: Windows 10 IoT Core, Raspberry Pi y Azure

IoT y Microsoft Azure

Page 25: Windows 10 IoT Core, Raspberry Pi y Azure

Escenario simpe de IoT

Page 26: Windows 10 IoT Core, Raspberry Pi y Azure
Page 27: Windows 10 IoT Core, Raspberry Pi y Azure
Page 28: Windows 10 IoT Core, Raspberry Pi y Azure
Page 29: Windows 10 IoT Core, Raspberry Pi y Azure
Page 30: Windows 10 IoT Core, Raspberry Pi y Azure

Hello Azure: Open the Door (AAD)Web App Azure AD

1) Sign-In

1) Login2) Open-Door

2) Insert message

3) Read message

Queue Raspberry Pi

Browser/Native

4) On/Off

Switch

Page 31: Windows 10 IoT Core, Raspberry Pi y Azure
Page 32: Windows 10 IoT Core, Raspberry Pi y Azure
Page 33: Windows 10 IoT Core, Raspberry Pi y Azure

Escribiendo en un GPIOusing Windows.Devices.Gpio;

private const int LED_PIN = 5;

private void InitGPIO() { var gpio = GpioController.GetDefault();

if (gpio == null) {

pin = null; GpioStatus.Text = "There is no GPIO controller on this device."; return;

} var pin = gpio.OpenPin(LED_PIN); var pinValue = GpioPinValue.High; pin.Write(pinValue); pin.SetDriveMode(GpioPinDriveMode.Output); GpioStatus.Text = "GPIO pin initialized correctly.";

}

Page 34: Windows 10 IoT Core, Raspberry Pi y Azure
Page 35: Windows 10 IoT Core, Raspberry Pi y Azure
Page 36: Windows 10 IoT Core, Raspberry Pi y Azure
Page 37: Windows 10 IoT Core, Raspberry Pi y Azure
Page 40: Windows 10 IoT Core, Raspberry Pi y Azure

@tenerifedev

Windows 10 IoT, Raspberry Pi y Azure

David RodriguezMicrosoft Azure MVP @davidjrh

21 Enero 2016

@TenerifeDev