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 365.
|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|
|Full Size Breadboard||1|
|Premium Male/Male Jumper Wires||1|
|Premium Female/Male Jumper Wires||1|
|MCP3008 – 8-Channel 10-Bit ADC||1|
|Adafruit BMP280 Temperature + Barometric Sensor (BOSCH)||1|
|Adafruit TCS34725 Color Sensor||1|
- 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
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 IoTFFURaspberryPi2.
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
- Insert MicroSD card, this is where Windows 10 IoT Core is installed.
- Insert WiFi Dongle into one of the USB ports
- Insert Ethernet Cable and connect it to your local network.
- Connect the power supply to the micro USB port
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.