STEP 0. Update a code in UnlimitedHand
STEP 1. The serial connection
STEP 2. Make a UnlimitedHand object


STEP 0. Update a code in the UnlimitedHand

In this tutorial, we will unpdate an Arduino code in the UnlimitedHand to use the UnlimitedHand in the Unity Environment.


STEP 0-0. Install the UnlimitedHand Library for Arduino

If you haven't yet installed the UnlimitedHand library, please visit this page "Install the UnlimitedHand Library for Arduino"
update0.png

STEP 0-1. Connect UnlimitedHand with USB cable

Connect the UnlimitedHand to your computer with an USB cable, and power on the device.
sketch1_1.JPG

Plug the USB calbe into your computer and UnlimitedHand
sketch1_2.JPG

STEP 0-2. Select a code "Serial_4Unity_4Processing"

update3.png

STEP 0-3.Upload an arduino code to the UnlimitedHand

Specify the USB serial port from "Tools" -> "Port" (/dev/cu/usbserial-* on Mac, COM* on Windows)
sketch3_1.JPG

Select "Arduino/Genuino Uno" from "Tools" -> "Board"
sketch3_2.JPG

Click on the arrow button to upload the arduino code onto the UnlimitedHand.
The Arduino IDE will display "Uploading...", and UnlimitedHand will vibrate.
sketch3_3.JPG

When upload is completed, Arduino IDE displays "Done uploading."

STEP 0-4.Check Arduino sketch

Click the magnifier button on upper-right corner of the Arduino IDE to launch the Serial Monitor.
sketch4_1.JPG

Set the Baudrate to 115200 at the bottom-right corner dropdown list in the Serial Monitor Window.
sketch4_2.JPG


Troubleshooting: Sketch upload failure

If you have trouble uploading the sketch, turn off the device by pressing and holding the power button.
sketchT1_1.JPG

Then turn on the device again.
sketchT1_2.JPG

You can try other sample codes by retrying from STEP 0-3.



Connecting UnlimitedHand to a Unity Project

In this tutorial, we will run through how a UH object is created in the Unity Environment.
The following link includes a download of a First Person Shooter Unity Kit.
(Details of the Kit itself can be found on the same site).

FPS Kit v.4

Once downloaded, open up the sample project to get started.


STEP 1. Select "Edit" -> "Project Setting" -> "Player"

Connect the UnlimitedHand to your computer with an USB cable, and power on the device.
serial1.JPG

STEP 2. Select "Inspector" -> "Other Settings" and locate the "Optimization" section.

serial2.JPG

STEP 3. Change the Api Compatiblity Level from ".NET 2.0 Subset" to ".NET 2.0"

serial3.JPG


* This is modified version of "FPS Kit 2" made by: https://www.youtube.com/user/OneManArmy3D
* You can download original version of kit here: http://armedunity.com/files/file/13-fps-kit-2/
Example Project:FPS Kit v1.3.5 The detail of this example project is written on the bottom of this web page.


Make a UH object

STEP 1. "Hierarcy" -> "Create" -> "Create Empty"

-> Object is created named "Game Object"

UHobj1.JPG


STEP 2. Right-click on the "Game Object" -> Rename

UHobj2.JPG


STEP 3. Rename the "UnlimitedHand"

UHobj3.JPG


STEP 4. Right-click on the New Scripts -> Select the Import New Asset

UHobj4.JPG


STEP 5. Select the downloaded UH.cs

UHobj5_1.JPG

UHobj5_2.JPG


STEP 6. Rename the "UnlimitedHand"

UHobj6.JPG


STEP 7. Click the Add Component in the Inspector, search for "UH" 竊� Select the "UH"

UHobj7.JPG


STEP 8. Sure UH (Script) has been added as Component

UHobj8.JPG



/*** Licence information ***/
* This is modified version of "FPS Kit 2" made by: https://www.youtube.com/user/OneManArmy3D
* You can download original version of kit here: http://armedunity.com/files/file/13-fps-kit-2/