Pages: 1 2 3 [4]   Go Down
Author Topic: Arduino 3DOF Head Tracker  (Read 17678 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 1
Posts: 223
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

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,
-Z-
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...


Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 223
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Danrens,

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?

-Z-
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...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?
Thanks!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

compare:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1267295038

Arne
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 )
{
  Serial.print(t1);
  Serial.print(",");
  Serial.print(t2);
  Serial.print(",");
  Serial.print(t3);
  Serial.print(",");
  Serial.print(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?!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

MLuckman code cited is here:

http://www.sunsys.net/arduino_images/LISY300AL_MMA7260QT_Filtered100Hz.pde
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Levi
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 223
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which ones goes to arduino?

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

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Ref Voltage = Vin ?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.



Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Zitron,

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

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

Where can I get the floatToString function from??

Thanks
Logged

Pages: 1 2 3 [4]   Go Up
Jump to: