terminal29 / Arduino-Tracker-Plugin

Plugin for OSVR that uses an Arduino + MPU6050 to do rotational headtracking.
8 stars 2 forks source link

Arduino Tracker

Plugin for OSVR that uses an Arduino + MPU6050 to do rotational headtracking.

How to use

  1. Open Arduino_Tracker_Sketch in the Arduino IDE, and upload it to your board.
    • Open the serial monitor and set the baudrate to 115200 and if you see something like this, it worked: Q:WW:XX:YY:ZZ
  2. Place the dll into your osvr-plugins-0 folder.
  3. Add the following to your osvr_server_config file, substituting "com4" with the com port your arduino is connected to:
    "drivers": [{
        "plugin": "inf_osvr_arduino",
        "driver": "ArduinoTracker",
        "params": {
            "port":"com4"
        }
    }],
    ...
    "aliases": {
        "/me/head": "/inf_osvr_arduino/ArduinoTracker/semantic/arduino"
    }
  4. Run the calibration procedure the first time you use the plugin with the key combo CTRL + SHIFT + I. See notes below for more info...
  5. Place your headset in the "Forward" direction and press the key combo CTRL + SHIFT + O to reset this position to 0 (looking directly forward on the Z axis)
notes