Rahul Sharma

Solutions Architect - Microsoft Dynamics AX | Azure

Blog
This is a technology blog covering Microsoft Dynamics AX, Microsoft Dynamics CRM, Microsoft Azure, IoT, .Net, SharePoint, SQL Server, SSRS, SSAS, SSIS, Apache Cassandra, MongoDB, and related technologies. Join this blog on facebook {Rahul Sharma}, to start a discussion !!! NOTE: My employer is not responsible for the content published here.

Index | MS Dynamics AX | MS Dynamics CRM
View blog as >> Magazine | Sidebar | Flipcard | Mosaic | Snapshot | Timeslide

Windows 10 IoT Core on Raspberry Pi 2

This is the first post from the series covering Internet of Things, connecting your devices & sensors with the line of business applications such as Microsoft Dynamics AX.

This is not a production ready architecture but will provide high level knowledge to architects looking to integrate various devices, sensors, and other resources with Azure and Microsoft Dynamics AX.


Hardware Essentials

Item

Quantity

Raspberry Pi 2 Board 1
Adafruit Raspberry Pi Case 1
8GB SD card with Windows IoT Core 1
5V 2A Power Supply with MicroUSB Cable 1
USB WiFi Module 1
Ethernet Cable 1
Full Size Breadboard 1


Hardware Components

Item

Quantity

Premium Male/Male Jumper Wires 1
Premium Female/Male Jumper Wires 1
MCP3008 - 8-Channel 10-Bit ADC 1
Assorted LEDs 6
Potentiometers 2
Tactile Switches 3
Resistors 10
Capacitor 1


Sensors

Item

Quantity

Photocell 1
Adafruit BMP280 Temperature + Barometric Sensor (BOSCH) 1
Adafruit TCS34725 Color Sensor 1


Software

  • Window 10 IoT Core – This is the OS we will be using on Raspberry Pi.
  • Windows 10 – This is the OS on our development machine.
  • Visual Studio 2015 Community Edition with Windows IoT Core Project Templates on development machine.
  • Universal Windows Application – We will create UWP headless app on development machine and will deploy on Raspberry Pi.
  • IoTCoreWatcher – Download from here. This tool displays all the Windows 10 IoT Core devices on your network.
  • Azure IoT suit – We will use Azure as our cloud infrastructure support and IoT framework. 

Lets get started now.

Install and prepare SD card for Windows 10 IoT Core

This will be done on your Windows 10 development machine.
Install Windows IoT Core Tools
  • Download Windows IoT Core image (IOT Core RPI.iso) from here and save the ISO on your local drive (Dev machine).
  • Double click to mount ISO as a virtual drive.
  • Install Windows_10_IoT_Core_RPi2.msi. When installation is complete, flash.ffu will be located at C:\Program Files (x86)\Microsoft IoT\FFU\RaspberryPi2.
Put Windows 10 IoT Core image on SD card
  • Insert micro SD card into your development machine's card reader.
  • Use IoTCoreImageHelper.exe to flash the SD card. This can be found on your Windows 10 dev machine as WindowsIoTImageHelper. This will list all your devices, select your SD card you want to flash, and then provide the location of the ffu file.
  • That's it, you now have SD card with Windows 10 IoT Core. Safely remove SD card and use it in your Raspberry Pi.


Set up Raspberry Pi

  1. Insert MicroSD card, this is where Windows 10 IoT Core is installed. 
  2. Insert WiFi Dongle into one of the USB ports
  3. Insert Ethernet Cable and connect it to your local network.
  4. Connect the power supply to the micro USB port



IoTCoreWatcherTool

Download and install this on your development Windows 10 machine. This tool displays all the Windows 10 IoT Core devices on local network and displays device information such as name, MAC, IP address, etc.

Boot Windows 10 IoT Core

Connect the power supply to Raspberry Pi and Windows 10 IoT Core will boot automatically.

Windows IoT Core Watcher should display your device in few minutes.

Enable WiFi on Raspberry Pi

In Windows IoT Core Watcher, right click on your device, then select Web Browser Here. This web-based management tool can be used to control your Windows 10 IoT Core device. You can shutdown, reboot, apps management, see running apps, see installed apps, configure BT, networking etc.
  • Enter Administrator for the username, and supply your password (p@ssw0rd by default).
  • Click on Networking in the left-hand pane.
  • Under Available networks, select network you would like to connect to and supply the connection credentials. Click Connect to initiate the connection





At this point we have Raspberry Pi 2 Model B running with Windows 10 IoT Core.



Next, we will create a UWP headless app and will deploy on Raspberry Pi.


Join me on facebook and feel free to post your comments / feedback / queries.
Comments
0 Comments