Go Down

Topic: Arduino 3DOF Head Tracker (Read 39877 times) previous topic - next topic



There are many FPV (First Person View, for flying RC planes) shops online that sells head tracker, cameras, wireless transmitter, goggles and everything else. The reason why I'm doing a DIY is because head trackers are very expensive ($150-200), if you just want to buy a whole setup, look here: http://www.rcgroups.com/forums/showthread.php?t=620659.

Good luck,


zitron - Any chance I can get a copy of your plotter code. I'd like to incorporate it as a debug test form in a application of mine.

I like to extend it so it could take input from serial and my application at the same time.

Please let me know...



My laptop that had the old source code was stolen, but I was able to find a backed-up old version of the program that only allowed plotting of one input. My programs are written in Delphi 7.0, using someone else's plotting component that I don't have source code for. Would that work for you?



...Wondering if you have any advice for me.  I'm attempting to link the rotation of a physical object with a gyro/accelerometer in it, to a 3-d model in Processing.  The trouble I'm having is that the rotation around the X and Z axies works when there is no rotation around Y, but when you rotate 90degrees around Y, the movement on the physical model now doesn't correspond anymore(reversed).  Am I doing something wrong?  Or is there a way to correct this?


you might be interested in my approach to track yaw.
i've made my own tilt compensated compass.





Did anyone else have problems with the code posted by MLuckman?

The code provided by MLuckman is supposed to read:
void PrintTerms( int t1, int t2, int t3, int t4 )

When compiling the code I am getting the following error message:

In function 'void loop()':
error: too few arguments to function 'void PrintTerms(int, int, int, int)'

Unfortunately I am too new to this to understand how to fix it. Help?!


MLuckman code cited is here:



Dear Friends

I need to connect the arduino with FSX
some program you guys use? It is by FSUIPC?
My job is to receive information from FSX
and show the displays LCDS.
If you can help me, thank you.



Can you help me out how you wire the gyro on the arduino. I have the same gyro. i just want to experiment with it but i couldnt make it to initialize. Been googling for hours to find an answer. Im a newbie in arduino and electronics, but i do have some soldering skills and some basic electronics knowledge.


See: http://www.rcgroups.com/forums/showpost.php?p=11857416&postcount=33


Which ones goes to arduino?

sensor output = analog pin 0
3V in = 3v arduino pin

I tried it and did an analogRead(gyroPin) which gyroPin = 0
im only getting 667 +- readings.


I noticed that your code has Vin on it. Do i need to put something in the Vin pin?

Ref Voltage = Vin ?


Im also wondering about the potentiometer, im not sure how you wire it.
And i think you put a resistor also on the Sensor out. Could you please help me with the wiring? Thank you in advance.


Hi Zitron,

I tried compiling your code but I got the following error:

Code: [Select]
In function 'void loop()':
error: 'floatToString' was not declared in this scope

Where can I get the floatToString function from??


Go Up