r/DIYRift • u/indigo5577 • Jan 27 '22
DiY Augmented Reality Glasses V1.0
r/DIYRift • u/indigo5577 • Nov 17 '21
r/DIYRift • u/D10D3 • Apr 16 '15
r/DIYRift • u/clearlyunseen • Jun 25 '14
r/DIYRift • u/Silicon42 • Dec 27 '20
Disclaimer: This probably only tangentially belongs here, but I hope to one day use this to create a custom firmware for this headset so it appears as a DK1 so I'll put it here anyway.
The headsets use stm32 processors to handle USB and their sensors, in particular the WVR1 (the model I tried this on) and presumably the WVR2, as it shares the "SpearI" board name, use an stm32f401ccu6 chip and may also be shared with the WVR3, although I'm less sure of that. This chip supports STmicroelectonics' DfuSe DFU mode among other bootloader modes which only requires the BOOT0 pin to be shorted to VCC at power on to activate and allows the firmware to be read out or written to over USB. And on the WVR1 there is an unpopulated pair of contacts shown in the red oval below that if shorted does exactly that.

You can see the dumped firmware here: https://drive.google.com/drive/folders/1Ck7tlNoGo_N5GT-vvPQKyvrQMgBzi8ST?usp=sharing in both the native *.dfu format that the DfuSe Demo tool from ST creates and in *.bin format that their dfu file management tool can convert it to/from. I believe it to be the most up to date version of the firmware for WVR1, although I'm not certain. It would be a great help if WVR2 and 3 owners could open up their headsets and dump their firmwares as well for comparison. The ST DfuSe software can be found here: https://www.st.com/en/development-tools/stsw-stm32080.html for free although you need to create a login to download it.
This method can possibly be applied to other stm32 based headsets as well for the purposes of archival, trouble shooting, and maybe even custom firmwares in the future, the WVR1 sure needs it at any rate.
r/DIYRift • u/indigo5577 • Jun 23 '22
r/DIYRift • u/[deleted] • Aug 08 '16
I have a DIY DK1 and a "XG Virtual Reality Headset by I AM Cardboard" also called "XG PCVR" the DIY DK1 has all the correct parts to look like a real DK1 to the computer and to the Rift software, unfortunately support has been dropped for the DK1, and the XG PCVR has a strange EDID that shows up as "Oculus Rift DKHD2" in older Rift software so it also lacks Rift software support.
I needed a way to make my hardware work and found a reddit.com post:
https://www.reddit.com/r/OSVR/comments/4shjf7/osvrfusion_room_scale_vr_with_rift_dk1_kinect_and/
that had the missing software to make it work.
Here is an install tutorial to get it working, its a little rough around the edges, and I made this tutorial almost a month after I got it working on my system so it might be missing some stuff, but hopefully it will help a few people, I will update and add some images later.
You need Notepad++, OSVR, OSVR-OpenHMD, SteamVR-OSVR and SteamVR installed for this to work.
You can get Notepad++ from: https://notepad-plus-plus.org/
You can get the OSVR Runtime from: http://access.osvr.com/binary/osvr-runtime-installer
You get OSVR-OpenHMD from: https://github.com/simlrh/OSVR-OpenHMD
you also need to download the files in "sample-configs" the "Oculus_Rift_DK1.json" seems to be optional as the OSVR Runtime already has a copy that you can use.
You get SteamVR-OSVR from: https://github.com/OSVR/SteamVR-OSVR
SteamVR is installed from inside Steam, you can find "SteamVR" under "Tools" in your library, make sure to use the regular SteamVR and not the Beta version.
(1) Install Notepad++, you will need this to edit the .JSON files that OSVR uses
(2) Install the OSVR Runtime
(3) Install OSVR-OpenHMD, put the plug-in into:
C:\Program Files\OSVR\Runtime\bin\osvr-plugins-0
then put "renderManager.extended.landscape.json" from "sample-configs" into
C:\Program Files\OSVR\Runtime\bin
you may need to edit the "renderManager.extended.landscape.json" so that VR shows up on the correct display.
I have a DK1/DK2 clone, use a Nvidia video card, and Windows 10, this is how my video displays are setup.
Right click on the Desktop, goto "Display Settings" and your LCD monitor should be display (2) and your DK1 should be display (1), click on display (1) and under "Multiple Displays" select "Extend Desktop to this display" also if you are using a DK1/DK2 clone like the PCVR that uses a phone screen you need to set "Orientation" to "Landscape Flipped" then in the "Nvidia control panel" and go to "Setup multiple displays" and and change it so that your LCD display is the on the left and the VR device is on the right, you just drag the monitor box with your mouse to put it in the correct order, also make sure the LCD monitor is set to the primary display.
The Nvidia control panel should look something like this:
http://i.imgur.com/PwWSwe4.png
With my desktop LCD displays set to 1920x1080 the "renderManager.extended.landscape.json" works without making any changes to it.
I also tried my DK1 clone and it works just fine, with my main screen set to 1920x1080 and my DK1 set to 1280x800, I have my "Multiple Displays" set the same way as above, with my desktop LCD set to primary display and the DIY DK1 set to 1280x800, it looks like this:
http://i.imgur.com/ARbDbqr.png
I did not even need the EDID spoofer!!
Then put "osvr_server_config.json" from "sample-configs" into
C:\Program Files\OSVR\Runtime\bin
For DK1 copy "Oculus_Rift_DK1.json" from
"C:\Program Files\OSVR\Runtime\bin\displays"
to
"C:\Program Files\OSVR\Runtime\bin"
For DK2 or clones with 1920x1080 screens copy "Oculus_Rift_DK2.json" from
"C:\Program Files\OSVR\Runtime\bin\displays"
to
"C:\Program Files\OSVR\Runtime\bin"
and edit "osvr_server_config.json" to be like this
{
"display": "Oculus_Rift_DK2.json",
"renderManagerConfig": "renderManager.extended.landscape.json"
}You may also have to edit the "Oculus_Rift_DK1.json" or "Oculus_Rift_DK2.json files for to get the proper distortion, look for "distortion" inside the files for the settings.
(4) Install Steam and the non beta SteamVR if you have not already, then install SteamVR-OSVR following the directions at:
https://github.com/OSVR/SteamVR-OSVR
(5) Start OSVR Server, it should look something like this:
http://i.imgur.com/wD5sHBk.png
and test by running the "D3D Example" you should see a square room with multicolored walls in your DK1 and moving the DK1 should change the view of the room, if thats working OSVR is correctly installed and setup, now exit out of "D3D Example".
(6) Start the OSVR Server, start Steam, start SteamVR, if it asks "SteamVR is disabled because it crashed the last time it ran, Would you like to try again?" click on "YES" then run the SteamVR standing room setup, have the DK1 setting on something sturdy like a table or desk, make sure the DK1 is facing the direction of your monitor and measure up from the floor to your eyes with a tape measure to get the number that standing room setup needs.
Warning --- if you put (0) into the SteamVR standing room setup, or you recalibrate, you will be low to the ground inside of the games, stuck to the floor, to fix you will need to run SteamVR standing room setup again.
(7) Install a SteamVR game, try to pick VR games that work with a Keyboard/Mouse or Gamepad.
The VR programs I have tried that work are:
Windlands
Whirligig Media Player
InCell VR
InMind VR
COSM
Gunjack
The Solus Project
Bazaar
Adventure Time: Magic Man's Head Games
Mervils: A VR Adventure
(8) Now lets start a SteamVR game, here is how you do that:
(1) Start OSVR Server
(2) Start Steam
(3) Start SteamVR, it will likely ask "SteamVR is disabled because it crashed the last time it ran, Would you like to try again?" click on "YES"
It should look something like this:
http://i.imgur.com/9kmMnS3.png
http://i.imgur.com/YZGV5df.png
(4) Start the VR program
NOTES:
Steam and SteamVR Crashes
That just seems to happen, most of the time it happens when you try to exit Steam or SteamVR, I often have to press CTRL+ALT+DELETE and start the Task manager to stop Steam or SteamVR, sometimes some games have caused a red screen or VR on the wrong screen thankfully this seems rare.
Multiple display devices
If you use more than two display devices you may have problems with your VR device.
When using a single video card with three display devices, like a LCD Monitor, TV, and VR Device, its likely one of the devices will be shut off, and you will be unable to use all three video devices at the same time.
A possible workaround, a lot of modern motherboards have integrated video, and this can possibly be enabled to give you two video cards, I am using Windows 10, and Intel CPU, and a B85 chipset motherboard, all I needed to do was enable the motherboard's integrated video in the BIOS, and now I have a second video card, I have my main LCD monitor and the VR device on the real video card, and my TV on the motherboard's integrated video, you can even clone or mirror the main LCD monitor on the TV, if you do however SteamVR will warn you that this might cause performance problems, but I have yet to see any.
Custom Lenses
If you are using custom lenses, or want Google Cardboard style undistorted side by side video, you need to edit the ""Oculus_Rift_DK1.json" or "Oculus_Rift_DK2.json file you are using, look for "distortion" and remove the settings or change them to your custom distortion like this:
],
"distortion": {
"distance_scale_x": 1,
"distance_scale_y": 1,
"polynomial_coeffs_red": [ 0, 1, 0.2 ],
"polynomial_coeffs_green": [ 0, 1, 0.24 ],
"polynomial_coeffs_blue": [ 0, 1, 0.32 ]
},to this for Google Cardboard style undistorted side by side video
],
"distortion": {
},EDID spoofer
You don't need one with this.
STM32F3DISCOVERY
I was not able to get the STM32F3DISCOVERY working with this.
r/DIYRift • u/TheSunOfSanSebastian • Jun 05 '14
r/DIYRift • u/[deleted] • Feb 14 '15
I made a DIY DK1 Rift Tracker that uses the real DK1 tracker firmware, and it works.
Here are the parts:
STM32F103C8T6 Minimum System Development Board - $7
http://www.ebay.com/itm/251714608200
MPU-6000 board - $15 - Shipping from France, slow - 2 to 3 weeks
HMC5983 board - $3 - Shipping from China, slow - 2 to 3 weeks
ST-Link V2 programmer - $20 to $30
http://www.st.com/internet/evalboard/product/251168.jsp
Six 22 Ohm Resistors, I used 1/4th watt, the color bands should be RED-RED-BLACK-GOLD, cost should be $5 or less for a 100.
The wire I used was "Female to Female Breadboard Wire", but any small good quality multi-strand wire should do, you can get 40 short pieces of that Female to Female Breadboard Wire for $5 or less.
Here is an imgur album showing more detail:
Here is the Oculus Rift Development Kit 1 GitHub page were you download the DK1 files:
https://github.com/OculusVR/RiftDK1
Have a look over here for some extra tips on how to compile the DK1 tracker firmware:
http://www.reddit.com/r/DIYRift/comments/2r2faj/question_has_anyone_noticed_the_dk1_compatible/
And some more info in this forum post:
http://www.mtbs3d.com/phpBB/viewtopic.php?f=26&t=19607&start=80
Firmware Download
A few people have asked about the DK1 firmware, so I decided to put the firmware with the all the open-source Oculus Rift DK1 files, because I was unsure of the legality of sharing the made firmware by its self, however this makes the download a little over 12MB, I changed nothing other than adding a folder with the pre-made firmware and a TXT file explaining what I just said, and the edit needed to the Tracker.coproj file.
https://www.amazon.com/clouddrive/share/CUOlD_Z9PQhZTRdoAWQXV_fzdFMT5NPHh94dcqmCrPc
If needed I will take this link down, I don't want to get in legal trouble
Some things to note:
(1) Both the older DK1 SDK and newer DK1 / DK2 SDK configuration utility show this as a real rift, when combined with the proper EDID.
(2) With the HMC5983 board installed, the Magnetic calibration works on the older DK1 Configuration Utility, but not on the newer DK1 /DK2 SDK configuration utility, I am not sure why.
(3) I was able to use the DIY Rift Tracker without HMC5983 board connected, not sure why, but the DIY Rift Tracker seems to work without the HMC5983 board just as good as the STM32F3DISCOVERY board worked as a tracker, but I only played a few minutes for each demo I tested it with, I "think" you should get drift without the HMC5983 board.
(4) I do get crashes with the newer DK1 /DK2 SDK configuration utility when clicking on the "Show Demo Scene" button, a window pops up titled "exception encountered in RiftConfigUtil", but the older DK1 SDK seems to work with out problems.
(5) Games and Demos that were made for both the DK1 and DK2 work, and "some" Steam games also work, as does Steam VR.
(6) Before you solder wires to the HMC5983 and MPU-6000 sensor boards, think about how you want to mount the sensor boards, the way I soldered the wires works well for the sensors mounted into something like that 3d printed STM32F3DISCOVERY case I used, but may not work well for the sensor boards when mounted in different positions, as the sensors need to lay flat and be properly oriented.
I uploaded a short video of the new tracker working.
https://picasaweb.google.com/111348481387450062635/DIYHMD#6123353410339389730
UPDATE 04-09-2014
I have seen a copy of the real DK1 tracker sold on ebay, have a look:
http://www.ebay.com/itm/Oculus-Rift-DK1-Game-Head-Motion-Tracker-China-Clone-Gyroscope-/161662990547
that would be a lot easier than making your own, if any one gets one please write a review of it.
r/DIYRift • u/wdrive • Jul 06 '14
Image gallery here: http://imgur.com/a/KPIHf
After a user on /r/oculus mentioned reminded me that a Tool album came with a set of stereoscopic lenses, I decided to make my own 3D viewer from stuff I had lying around.
I already had everything, so it was just a matter of piecing things together, no special tools required:
Nexus 7 (2013 edition)
Lens cleaner wipes box (taller than a standard tissue box)
Standard tissue box (for stability)
Ski goggles with the lenses removed (picked up at a surplus store)
Tool - 10,000 Days (physical copy, obviously)
Cable ties
A couple of tacks and packing material to hold the Nexus 7 in place
Piece of rope to try to hold the kit in place on my head
The video I used was Oculus Rift footage from Elite Dangerous: https://www.youtube.com/watch?v=HxBdmb2sH1Q
It turns out that the height of the lens cleaner box is about the same as the focus distance for the lenses, and the width is just wider than my tablet, making it a perfect fit for this purpose. I also have a matte screen protector on my Nexus 7, I don't know if it diffuses the image enough to eliminate the screen door effect, but I can hardly tell the pixels apart. The DK2 has an even higher pixel density than the Nexus 7, so I'm really confident the DK2 will be good enough for me.
The Nexus 7 puts a lot of weight on my face, especially with the string attached. I tend to get a headache after about 10 minutes of using it, partly from eye strain, partly from the weight. If the lenses were stronger so I could put the screen closer to my face, that might help. Also, the field of view isn't the greatest. The yay3D viewer is probably better, but I'm impatient, and besides, I have a DK2 on preorder.
As far as viewing goes, most Youtube videos work really well. The IPD of the Oculus Rift videos look to be about 64 mm on the Nexus 7, which is ideal. The 3D effect is very apparent. The Google Cardboard app doesn't work quite as well, the demos don't calibrate for the screen size, so some have very small IPD's, and others, like Windy Day, are very wide and nearly unwatchable. The Tuscany Dive demo also has a wide IPD on the Nexus 7, about 75 mm. My eyes have to strain very hard to get the 3D effect, but it's possible.
All in all, it's great at scratching that VR itch until I get my DK2. If anyone has a Nexus 7 or other 7 inch tablet and wants a 3D viewer, it's certainly possible!
r/DIYRift • u/FraggerFrogger • Apr 23 '16
Ok background : Hello i'm looking to build a DIY HTC Vive. I don't truly know what i'm getting into to be honest but i am willing to go above and beyond to make what i'm looking to make. I have recently gotten into /r/googlecardboard and /r/DIYRift i'm a modder at heart and enjoy tinkering and making stuff.
Plan : Make a diy htc vive and provide a detailed tutorial on how to do it, what software to use and what recommend hardware to use.
Reasoning : I tried the htc vive today after messing around with google cardboard head mounted displays and i was amazed i couldn't stop smiling while demoing the device.
What this thread is about : So I made this post to ask for help from the DIYRift reddit I have been lurking for a bit and you guys are awesome! So i figured why not ask DIYRift for ideas and help.
Help! : So I have ordered a BOBOVR Z4 for my head mounted display if your unfamiliar of what it is its essentially one of the best if not the best google cardboard mounted displays currently on the market.
Head Mounted Display
Phone with good enough resolution 1440p?
Motion controllers
Motion and positional tracking for headmount and controlers
Anything else i'm missing?
That's the list so far and the head mounted display is already checked off. I really want to put this together but would like some help from you guys.
If this has already been done and i'm not aware of it please let me know!
Thanks for reading and thanks for any help you can provide!
TLDR Help me build a diy htc vive
r/DIYRift • u/loxai • Oct 02 '15
I just found out about this subreddit and, seeing how Trinus is not on the Compatible Software list, I was wondering if you guys tried/know about it. It's a streaming software with VR features (several head tracking options, lens correction, etc.). I am the developer. Since this is a VR enthusiast community, I would like to read your thoughts about it :)
r/DIYRift • u/indigo5577 • Oct 01 '22
r/DIYRift • u/indigo5577 • Dec 15 '21
r/DIYRift • u/indigo5577 • Oct 02 '20