VR-Rifle-Blueprints icon indicating copy to clipboard operation
VR-Rifle-Blueprints copied to clipboard

A DIY VR rifle utilizing a HTC Vive tracker and an Arduino Due board.

DIY VR Rifle Blueprints

Rifle Body

The rifle body is mainly based on the MagHak Virtual Reality Rifle.

Main Body

Stock (AR 15 style)

Stock Parts

Alternatives

Receiver

The receiver consists of six parts:

  • Receiver housing.
  • Receiver inlay.
  • Trigger.
  • Receiver rail adapter.
  • Skeleton Grip.
  • Joystick mount.
  • M4x20 screw to attach grip.
  • M3x35 screw and M3 nut to connect housing, inlay and rail adapter together.
  • Spring with diameter 9mm and length 38mm between inlay and trigger.

Stock Parts

Vive Tracker Mount

The Vive tracker mount features a side-tightening wheel and consists of three parts:

  • Upper body.
  • Screw with wheel.
  • Lower body with rail adapter.
  • 4x M4x6 screws.

Arduino Mount

ToDo: Create a proper mount for the Arduino board.

Makeshift mount:

Electronic Parts

There are six components:

  • Arduino board
  • Triggger
  • Joystick
  • Buttons
  • Vive traker
  • Power source

Wiring Diagram

Arduino Board (Arduino Due)

The Arduino board has to support USB host mode to be able to talk to the Vive tracker. The Arduino AVR boards do not support USB host mode out-of-the-box but require additional hardware. The Arduino Due is ARM based and does support USB host mode. THerefore we are using it. The disadvantage is that it operates using 3.3V instead of 5V.

Trigger

The trigger features a potentiometer to measure how far the trigger is pulled, and an endstop switch for when the trigger reaches it maximal position.

Parts:

Trigger Potentiometer: Trigger Potentiometer Trigger Potentiometer 2: Inside trigger housing Trigger Endstop: Trigger Endstop

Joystick

Buttons

Parts:

The system and menu buttons are mounted inside the opening of the receiver housing. The grip button is supposed to be mounted somewhere on the grip, but it has not been desided yet where exactly.

Receiver Housing Buttons

Power Source

The easiest and cheapest power source seems to be a USB power bank. The Arduino board and connected electronic parts consume about 100-200 mA, with connected Vive tracker about 300-400 mA (possible charging bug?). A USB power bank with 2200 mAh costs about 10 Euro and should last about 5-6 hours.

Possible Extensions

  • Status LED(s)
  • Haptic Feedback: Haptic feedback events are not send via USB but can only be accessed via the tracker's pogo pins.