IxD Lab Final Project (Software Part)

Microsoft Hololens connecting IoT guide

Jeffrey Chou
3 min readApr 28, 2017

System Elements

1. A PC with Windonws 10 and Visual Studio 2017 installed
2. Unity 3D with HoloToolkit and JSON Object
3. Microsoft Hololens
4. Particle Photon and its cloud server

System Structure

Environment Setup

  1. To be able to connect to Hololens, you must need to have Windows 10 with Visual Studio 2017 installed. The hololen emulator is optional, but if you do want to install it with Visual Studio 2017, please make sure you check this link first.
  2. Before start to work on project in Unity, make sure you import the HoloToolkit and follow the setup instruction.

Unity Project

In the unity project, you will need to import JSON Object asset in order to read JSON object from the internet.

You will need to create a controller for reading the event. The code is shown below.

ArticleController.cs

Build the Project in Unity

Go to File Build Setting

  1. Switch to Windows Store, click on Player Setting and do the following setting.
    a. Other Settings -> Virtual Reality SDKs
    b. Publish Settings -> Internet Client / InternetClient
  2. The setting of build shown below

Deploy in Visual Studio

After build the Visual Studio Solution (.sln), click on it. Visual Studio will load automatically.

  1. Change the setting to “Release”, “x86” and “Device”
  2. Click Build -> Deploy Solution (Deploy might fail, make sure Hololens is connected to the computer and is on. Do not run other application while deploy the solution.)
  3. Click Debug -> Start Without Debugging, the program will start.
  4. Once it is deployed, you could also run the program in Hololens without connecting computer.

Related Link

For the project overview, please refer to this post.
For the tangible input, please refer to this
post.

Reference

JSON Object @ Unity Asset Store

HoloToolkit

Connecting HoloLens with IoT @ Medium

--

--