Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new driver for SparkFun 9DoF Razor IMU M0 #165

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

der-b
Copy link
Contributor

@der-b der-b commented Aug 24, 2018

Hi,

for a DIY VR-Device i use the SparkFun 9DoF Razor IMU M0. Therefore I implemented a new driver for OpenHMD and i would like to share my code with you project.

Kind regards,

Bernd

@TheOnlyJoey
Copy link
Member

TheOnlyJoey commented Aug 24, 2018 via email

@buzztiaan
Copy link

lol, i was literally just asking about DIY position tracking on the irc channel ;)

@der-b
Copy link
Contributor Author

der-b commented Aug 24, 2018

I don't have an article yet. I build the first prototype some days ago. I also adapted arcan and safespaces to work with my device. Before i write an article about it i like to push back all the necessary changes i had to made and get some working experiences.

The device i build is based on three components:

  1. A VR-Set for smartphones (in my case the DESTEC V4 VR)
  2. A 2K 5.5 inch display from china
  3. SparkFun 9DoF Razor IMU M0

I used tape to put everything together (see images).
img_20180824_124236
img_20180824_124423
Uploading IMG_20180824_124758.jpg…
img_20180824_124807
img_20180824_124812

PS: One of the issues of the build is, that the display has a resolution of 1440x2560 because it is intended for smartphones. That means the height is greater as the width. Therefor the screen rotated by 90 degree. Unfortunately, while implementing software for VR this is often not expected.

kind regards

@buzztiaan
Copy link

buzztiaan commented Aug 24, 2018

cant you just output a 90 degree rotated output from your videocard?

something like ; xrandr --output HDMI-2 --rotate left

and this is totally what i want to do aswell, but starting from a cardboard version :)

@TheOnlyJoey
Copy link
Member

Discussed this within the community, We allow pulling in drivers like this, but the build flags need to be provided a bit differently.

We will also require Meson and CMake compilation (which is both easy to add), before adding to master.
The Autotools flag would be driver-community-sparkfun9dof
The CMake flag would be OPENHMD_COMMUNITY_SPARKFUN9DOF.
Since this has a external dependency on Arduino and Arduino libraries, it should be disabled by default.
New dependencies are always calculated in heavily and something like this is to heavy to require by default for a special use case.

@der-b der-b mentioned this pull request Sep 10, 2018
Fixed meson build for communit-spakfun9dof.
Fixed naming for autotool build.
@der-b
Copy link
Contributor Author

der-b commented Sep 11, 2018

I think i implemented your requirements.

@JustinS-B
Copy link

Has this part of the project progressed at all, or has it died? I already have a SparkFun 9DoF Razor IMU M0 board & screen, but can't find any links to the article on how to build it, or any instructions.

@Wallbraker
Copy link
Member

@der-b Can you rebase this on master and fix the conflicts with master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants