The full name of this kit is "Grove Kit for Win10 Iot Core & Azure Platform". This kit and guide book will help you quickly get familiar with Windows 10 IoT Core and Azure.
The version of Windows 10 IoT Core this guide used is 10.0.17134.1.
- Download IOT Core Dashboard from https://developer.microsoft.com/en-us/windows/iot/Downloads and install.
- Open the Windows 10 IoT Core Dashboard.
- Click "Set up a new device".
- Select Raspberry Pi 3 from the dropdown.
- Enter device name, password and Wi-Fi network to connect to, the password can't be too simple otherwise you won't login the Windows 10 IoT Core web console.
- Download and flash Windows 10 IoT Core into your SD card.
- A window will pop up to show you the progress. This step can take several minutes depending on the speed of your SD card.
- Put SD Card into Raspberry Pi
- Connect a display with your Raspberry Pi, either HDMI or LVDS screen.
- Power on the Raspberry Pi.
- If you configured the WiFi SSID and password in step 5, you should see the IP address at the screen now. If you don't, please connect the Pi to a wired ethernet, or find an USB keyboard and mouse to configure the WiFi in the GUI of Windows 10 IoT Core.
- Set down the IP adress.
Notice: If there is no device found in my device in Dashboard, please make PC and raspberry Pi in the same IP segment.
We assume that you've already setup an IoT Hub and created a device (Refer to Setup Azure IoT Hub).
- Open the browser of your PC, login Windows 10 IoT Core web console "http://ip-address:8080", Account: Administrator, Password: (what you entered in the IoT Core Dashboard)
- Click the "TPM configuration" menu on the left.
- Intall "Software TPM Emulator(NoSecurity)", and click "OK" to reboot the system when prompt.
- After the system is rebooted, navigate to "http://ip-address:8080" - "TPM configuration" again.
- Copy the "Connection string—primary key" of your created device in Azure IoT Hub
- Paste into "TPM configuration --> Logical devices settings --> Logical device ID: 0 --> Azure Connection String", save.
The UWP App will connect to Azure IoT Hub, collect Grove sensor data and control Grove output.
- Open the browser of your PC, login Windows 10 IoT Core web console "http://ip-address:8080"
- Navigate "Apps --> Apps manager", if you've installed the AzureGroveKit App before, please uninstall it first (Mac Safari is proved to be not showing the App list properly, Chrome is recommended).
- Click "Add", select "Install app package from network or web location", input https://raw.githubusercontent.com/Seeed-Studio/AzureGroveKit/master/UWP/Release/AzureGroveKit_1.0.8.0_Test/Dependencies/ARM/Microsoft.NET.CoreRuntime.1.1.appx. Click "Next", and wait the installation done.
Notice: Due to the version update, cancel "Add", download the files linked above, and then select local installation.
- Click "Add", select "Install app package from network or web location", input https://raw.githubusercontent.com/Seeed-Studio/AzureGroveKit/master/UWP/Release/AzureGroveKit_1.0.8.0_Test/AzureGroveKit_1.0.8.0_arm.appxbundle. Click "Next", and wait the installation done.
- Wait a few seconds or refresh, you will find AzureGroveKit in the App list.
- Power off the Raspberry Pi, plug the GrovePi board.
- Connect necessary Groves on GrovePi:
Grove | GrovePi Port |
---|---|
D2 | Grove - Temp&Humi Sensor |
D3 | Grove - PIR Motion Sensor |
D4 | Grove – Button |
D5 | Grove - Relay |
A0 | Grove - Sound Sensor |
A1 | Grove - Light Sensor |
A2 | Grove - Gas Sensor |
I2C1 | Grove - OLED Display 0.96" |
I2C2 | Grove - Mini I2C Motor Driver |
- Power on the Raspberry Pi and login Windows 10 IoT Core web console "http://ip-address:8080"
- Move on "Apps --> Apps manager", start "AzureGroveKit" via its "Actions" dropdown.
- The App will display on the screen, find an USB mouse, click "Run", now the App starts to send messages to Azure IoT Hub, and can response to the downlink commands.
Notice: If you have an unauthorized connection or something like that, you can use
Dashboard- >connect to Azure
, choose your iot-hub, choose your device, choose raspberry pi, and provision. Reinstall and run the UWP.
- Check "YOUR IOTHUB --> Overview --> Usage", it will show the message count.
- If you're using Windows, you can use DeviceExplorer to monitor the uploaded messages.
- More UWP overview, please refer to https://github.com/Seeed-Studio/AzureGroveKit/tree/master/UWP
Notice: If UWP is not available, try using VS 2017 to open and run the project : https://github.com/Seeed-Studio/AzureGroveKit/tree/master/UWP
- Prepare your Azure account and login "https://portal.azure.com/".
- Create "New --> Internet of Things --> IoT hub", for instructions please refer to https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-create-through-portal
- Create a device, move on "All resources --> YOUR_IOTHUB --> Explorers --> IoT devices --> Add", save
- Click the device, copy "Connection string—primary key"
- Download DeviceExplorer here
- Prepare your Azure account and login "https://portal.azure.com/".
- Navigate "your-iot-hub --> Shared access policies -->iothubowner", copy "Connection string—primary key"
- Paste the connection string into DeviceExplorer, "Configuration --> Connection Information --> IoT Hub Connection String", and clieck "Update"
- Click the "Management" tab, click "List" or "Refresh"
- Click the "Data" tab, select your added device in "Device ID:" dropdown
- Click "Monitor"