windows 10 iot core, raspberry pi y azure

Post on 14-Jan-2017

627 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

@tenerifedev

Windows 10 IoT, Raspberry Pi y Azure

David RodriguezMicrosoft Azure MVP @davidjrh

21 Enero 2016

@TenerifeDev

@tenerifedev

2

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

Servicios de Azure para IoT

Windows 10 IoT Core

¿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

El Internet de tus Cosas

https://www.windowsondevices.com

Windows 10 IoT Core Basado en Windows 10

¿Es para mí?

Requerimientos

Hardware compatible

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

Raspberry Pi 2

Raspberry Pi 2

12

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

Raspberry Pi 2

14

Raspberry Pi 2

GPIO pins

Adafruit Maker Kit

http://adafruit.com/windows10iotpi2

Creando Apps desde Visual Studio

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

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

DemoWindows 10 IoT DashboardMi primera App desde Visual Studio

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

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

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

IoT y Microsoft Azure

Escenario simpe de IoT

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

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.";

}

@tenerifedev

Windows 10 IoT, Raspberry Pi y Azure

David RodriguezMicrosoft Azure MVP @davidjrh

21 Enero 2016

@TenerifeDev

top related