Building Connected Things with Windows 10 IoT and Microsoft Azure

Setting Up Your Raspberry Pi 2

In this lab, you will install Windows 10 IoT Core on your Raspberry Pi 2.

Table of Contents

If you haven’t already done so, please follow the instructions in the ‘Getting Started’ section.

In this section, you will install Windows 10 IoT Core on your Raspberry Pi 2.

Install Windows 10 IoT Core on Raspberry Pi 2

Windows 10 IoT Core is a version of Windows 10 designed to run on small devices, like the Raspberry Pi 2. You can download and install the Windows IoT Core image onto the micro SD card.

  1. In a browser, navigate to the Microsoft Windows IoT Downloads & Tools page.
  2. Click on the Get IoT Core Dashboard button to download the dashboard utility.
  3. Once the setup.exe has downloaded, open it to install the dashboard utility.

    Once the Windows IoT Core Dashboard is installed, use it to flash the microSD card with the latest Windows IoT Core OS image.

  4. Insert the micro SD card into your SD card writer.
  5. In the IoT Dashboard, select Set up a new device.

    Set up a new device

  6. Use the drop-down list to make Device Type = Raspberry Pi 2.
  7. Select Windows 10 IoT Core for Raspberry Pi 2.
  8. Select the microSD card in the Drive drop-down list.
  9. Check the box for I accept the software license terms (of course, you have already read them).
  10. Click the Download and install button.

    Download and install

  11. When prompted, select Continue indicating that you have backed up any files from the microSD card before it gets erased.

    Accept License

    The download and install could take some time depending on your bandwidth and the size of the microSD card. When it is complete you will see the Your SD card is ready screen.

    Your SD card is ready

Connect the Raspberry Pi 2

You are now ready to connect and power on your Raspberry Pi 2.

  1. Insert the microSD card with the Windows 10 IoT Core image on it into your Raspberry Pi 2 (the slot is on the underside, on the opposite edge from the side with the USB ports).
  2. If you will be connecting to a physical network, connect a network cable from your local network to the Ethernet port on the Raspberry Pi 2. Your development device must be on the same network. If you will be using Wi-Fi, see the Joining the Wi-Fi Network section below.
  3. If you will be working with a monitor, connect an HDMI monitor to the HDMI port on the board.
  4. Connect the power supply to the micro USB port on the board. You must power this from the 5V 2A adapter - USB power from your computer is insufficient.

Windows 10 IoT Core will boot on power-up. The first boot may take a few minutes. If you have the Raspberry Pi 2 connected to a display, you should see the default app screen.

Default app

Join the Wireless Network

If your board has a WiFi adapter and it has not yet be set up, it will start to broadcast itself as a network. Unconfigured boards will begin with “AJ_” (e.g. AJ_58EA6C68).

Devices broadcasting their ID

  1. Go to My devices. From my devices, you can discover your device and configure it (including connecting to Wi-Fi).
  2. Find your board and click Configure Device. If you don’t see your board, make sure that you’ve allowed enough time for your board to boot. If all else fails, reboot your device.
  3. Enter your network credentials. Your computer will now connect to your board.

Set the Machine Name and Password

By default, your board will have the name minwinpc and an Administrator password of p@ssw0rd. It is recommended that you change both of these to avoid confusion with other devices on your network.

  1. Find your device in the list
  2. Click the edit symbol (pencil symbol). This will take you to the Settings page. From the settings page, you can launch Windows Device Portal, and set basic settings.
  3. Set the machine name and change the password (highly recommended). All devices start with a default password. The default password is p@ssw0rd. It is highly suggested that you change it.
  4. Click Accept to accept the changes and reboot the Raspberry Pi 2

Your Raspberry Pi 2 will reboot and when it is back up and running it will have the new name you gave it, and the Administrator account will use the password you created.

Test Device

Quick-Run samples are pre-built and require no compiling or coding to get going. This is a great way to make sure everything is working and easily play with your board.

  1. Navigate to Try some samples in the left nav bar.
  2. Select Hello Blinky
  3. Select your board from the drop-down list
  4. Launch the sample.

In the background, the dashboard will temporarily install the sample onto your device. Once loaded, the device will broadcast a web page over the network and IoT Dashboard will automatically connect to it. This lets you control the app without having to plug in a monitor directly to your device.

Conclusion & Next Steps

In this lab, you prepared your Raspberry Pi 2 for the following labs. Next, you will learn about how the GrovePi hardware you will be using in this workshop works with the Raspberry Pi 2.

Go to ‘Hello, Windows IoT!’ ›