Hi,
I'm a pretty avid PC gamer, and I really want a new way of interacting with the virtual world of games. I'm working on virtual reality gloves that utilize the Arduino Leonardo. I've planned everything out, except how to program the motion control. I'm using an analog triple axis accelerometer and two analog dual axis gyros to sense all 3 axes of rotation. I chose to go analog because it seemed much easier to work with. I have thought of a few different approaches, but I'm still not sure. I want to get an effect similar to a wii remote, sensing each glove's position and angle in space.
Here's my take:
I suppose I could calculate the direction of each movement. I would create a 3D vector with that. I would then subtract the calculated pull of gravity (the sensors would be calibrated before use). Using this vector, I could figure out how fast the gloves are moving and where they are based on how much they have accelerated, and for how long they have been in motion before deceleration. Then I would factor in the rotation and keep track of gravity with this rotation.
I'm just not sure this is the best approach. It's the best one I've thought of at least. I'm just wondering if anyone knows a better way to do this, if there's some standard procedure that companies like Nintendo follow when coding such a device.
Whether or not there are any better solutions, I'm still really determined to get this working. I want to apply what I'm learning in High School right now and make something cool, learn something, and have fun in the process.
I would really appreciate any help.
Thanks,
-Dylan