Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

magnetometer reading from arduino

Discussion in 'AR/VR (XR) Discussion' started by j_campbell, Feb 11, 2015.

  1. j_campbell

    j_campbell

    Joined:
    Dec 8, 2014
    Posts:
    33
    Hi - I know my topic isn't linked entirely with VR however some of the previous arduino posts (slightly dated now) seemed to be by DIY enthusiasts trying to create their own headsets using accelerometers and/or magnetometers so it seemed like the best place for my query.

    I am trying to measure a users 'hand steadiness' in order to control a video game character. I had intended on using a Leap Motion controller but shake measurement is not an option as the Leap SDK eliminates any slight shake this from the captured hand gestures. Instead I am using a MinIMU-9 Gyro/Accelerometer/Compass linked with Arduino. I can measure pitch/roll etc in Arduino...and I have passed previous arduino measurements into Unity via the serial command but I am looking for a sample Unity file that takes an average of these arduino signals and passes them into Unity to do something very basic like rotating a model or toggle the opacity of an object. If anyone knows of any tutorial(s) or sample file(s) I'd appreciate any links/knowledge in this area.

    Moderators - If this link should be posted elsewhere please let me know.