HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Oct 24, 2012, 10:30 PM
I do RVP
WEREE's Avatar
United States, CA, Fremont
Joined Dec 2008
458 Posts
Quote:
Originally Posted by LKJ View Post
The Flytron use only magnetic sensores, DFHT use 3 X accelerometers, 3 X gyro, and 3 X compass, the compass may be affected but the other sensores is not, i think you can not compare the 2
I have not tried it yet but was thinking about it, winter is coming here.
I knew the Flytron used a compass but I always though it used a 2-axis gyro as well. It just used the compass to correct for pan drift in real time.

I never got my DFHT working yet because of the recent problems. Will be loading the new 0.08 firmware later this week and hopefully mine will start working for the first time. Then I will try it this weekend sitting comfortably in my SUV. I hope it performs as that is the last thing that is preventing me from flying from within the vehicle. I only ever fly with head tracking. No head tracking means no flying.
WEREE is offline Find More Posts by WEREE
Last edited by WEREE; Oct 24, 2012 at 10:35 PM. Reason: Typo
Reply With Quote
Sign up now
to remove ads between posts
Old Oct 25, 2012, 05:06 AM
Oxford Panic
AndyOne's Avatar
United Kingdom, Oxford
Joined Feb 2003
3,637 Posts
Dennis,

I just found this excellent thread many thanks for posting this info.

I have a question about the downloads which I found from the link in the post#1, when I try to run any of the .EXE files I get the error shown below, what exactly is a .net framework and where do I find it.

Apologies if this question has been asked before but there are rather a lot of pages in this thread so any help in solving this would be appreciated.

Andy.
AndyOne is offline Find More Posts by AndyOne
Reply With Quote
Old Oct 25, 2012, 05:19 AM
Flying like an Angel.
BlueAngel2000's Avatar
Austria
Joined Sep 2007
1,488 Posts
@Andy:
.net Framework
faster than waiting for an answer in a forum.
BlueAngel2000 is offline Find More Posts by BlueAngel2000
Reply With Quote
Old Oct 25, 2012, 06:17 AM
Oxford Panic
AndyOne's Avatar
United Kingdom, Oxford
Joined Feb 2003
3,637 Posts
Many thanks, the message seemed to be telling me I needed to contact the originator of the software.

So I've downloaded and installed what seems like a massive Microsoft kludge and the .exe files now run.

All I have to do now is to work out how to use the other files.

Cheers,

Andy.
AndyOne is offline Find More Posts by AndyOne
Reply With Quote
Old Oct 25, 2012, 06:56 AM
Flying like an Angel.
BlueAngel2000's Avatar
Austria
Joined Sep 2007
1,488 Posts
Great.

Just do now the calibration steps:

1)Accelerometer_cal.exe
2)Magnetometer_cal_v0_03.exe
3)Headtracker_GUI_v0_05.exe for gyro calibration and changing settings

:-)

@Dennis:
An improvement for the GUI would be a: "read settings" button. :-)
Easier for adjusting settings after testing at the field.
BlueAngel2000 is offline Find More Posts by BlueAngel2000
Last edited by BlueAngel2000; Oct 25, 2012 at 07:07 AM.
Reply With Quote
Old Oct 25, 2012, 07:29 AM
Oxford Panic
AndyOne's Avatar
United Kingdom, Oxford
Joined Feb 2003
3,637 Posts
BlueAngel,

I haven't ordered the hardware yet so there's some way for me to go on this. I just wanted to know the software was viable before spending money on components.

A.
AndyOne is offline Find More Posts by AndyOne
Reply With Quote
Old Oct 25, 2012, 07:47 AM
Oxford Panic
AndyOne's Avatar
United Kingdom, Oxford
Joined Feb 2003
3,637 Posts
Sorry to be a pain but shouldn't there be a .pde Arduino program file somewhere?

A.
AndyOne is offline Find More Posts by AndyOne
Reply With Quote
Old Oct 25, 2012, 08:01 AM
Chilled and served
Henry.'s Avatar
Sweden
Joined Mar 2005
263 Posts
The .ino works fine with me and Arduino 1.0.1.
Henry. is offline Find More Posts by Henry.
Reply With Quote
Old Oct 25, 2012, 08:44 AM
Registered User
Cleveland, Ohio
Joined Jan 2006
209 Posts
Quote:
Originally Posted by AndyOne View Post
Sorry to be a pain but shouldn't there be a .pde Arduino program file somewhere?

A.
If you have installed the Arduino program, then simply double click on the DIY_headtracker.ino file. It will automatically open into the Arduino program.

From there, you can view the source code and header files.

Or, when your ready, simply connect to your hardware and click the UPLOAD button (it is a right arrow icon).
jbfoamy is offline Find More Posts by jbfoamy
Reply With Quote
Old Oct 25, 2012, 11:32 AM
Registered User
Canada, ON, Mississauga
Joined Jun 2007
363 Posts
Same here

Quote:
Originally Posted by Dr.Tom View Post
Sounds too good to be true, no drift!
must try it,

but before I order GY-85 + arduino, around 33$ total,
is there any chance it can be made to work on BMA180 acc?

because I have a very compact board laying in front of me from multiwii
(arduino 328+sensors integrated)
code: http://code.google.com/p/multiwii/so...ultiWii_shared
item: http://rctimer.com/index.php?gOo=goo...1&productname=




flashed it with this headtracker firmware to see if anything would work at all, but no good.


soldering to get pins out if needed to connect signal output is not the problem,
but IMHO the code part for the acc sensor and maybe different adresses may be the only thing needed to mod.

here's multiwii definition for GY-85 board that you already use
Code:
#if defined(GY_85)
  #define ITG3200
  #define ADXL345
  #define HMC5883
  #define ACC_ORIENTATION(X, Y, Z)  {accADC[ROLL]  = -X; accADC[PITCH]  = -Y; accADC[YAW]  =  Z;}
  #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] =  Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;}
  #define MAG_ORIENTATION(X, Y, Z)  {magADC[ROLL]  =  X; magADC[PITCH]  =  Y; magADC[YAW]  = -Z;}
  #define ADXL345_ADDRESS 0x53

and here's for this crius board, for reference on axis.
Code:
#if defined(CRIUS_SE)
  #define ITG3200
  #define BMA180
  #define HMC5883
  #define BMP085 (baro sensor, not used here on HT)
  #define ACC_ORIENTATION(X, Y, Z)  {accADC[ROLL]  = -X; accADC[PITCH]  = -Y; accADC[YAW]  =  Z;}
  #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] =  Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;}
  #define MAG_ORIENTATION(X, Y, Z)  {magADC[ROLL]  =  X; magADC[PITCH]  =  Y; magADC[YAW]  = -Z;}
axis orientations are same, so that is OK.

differece is in adresses, (and maybe output range? but that is fixed via calibration procedure I guess):

GY-85
Code:
#if !defined(ADXL345_ADDRESS)
#define ADXL345_ADDRESS 0x1D
BMA180
Code:
#if !defined(BMA180_ADDRESS)
#define BMA180_ADDRESS 0x40
so I changed address from 0x1D to 0x40,
but I don't know what to set for x axis?
#define ADXL345_X_ADDR (0x32)// Start address for x-axis
BMA180=?

it shows some values but only gyro and mag seem to be working this way.
http://imageshack.us/photo/my-images/594/12345ff.jpg/

anyone with time and will to help?
thanks
Tom I am making same board to work.
Accelerometer there is completely different chip, BMA-180 instead of ADXL345.
Rest is the same.

I use FreeIMU library, bma180 code from it. It got bugs, fixed those.

My mods to Denis code in brief are

void updateSensors() {

// Read x, y, z acceleration:
// DM ReadFromI2C(ADXL345_ADDR, ADXL345_X_ADDR, 6);

bma180.readAccel(&bma180.x, &bma180.y, &bma180.z);
accRaw[0] = bma180.x *(-1);
accRaw[1] = bma180.y *(-1);
accRaw[2] = bma180.z;

//DM accRaw[0] = ((int)sensorBuffer[0*2] | ((int)sensorBuffer[(0*2)+1]<<8))*(-1);
//DM accRaw[1] = ((int)sensorBuffer[1*2] | ((int)sensorBuffer[(1*2)+1]<<8))*(-1);
//DM accRaw[2] = (int)sensorBuffer[2*2] | ((int)sensorBuffer[(2*2)+1]<<8);



and

void init_sensors() {

ReadFromI2C(ITG3205_ADDR, 0x00,1);
ITG3205_ID = sensorBuffer[0];

#if (DEBUG)
Serial.print("ITG3205: ");
Serial.print(sensorBuffer[0]);
#endif

bma180.setAddress(BMA180_ADDRESS_SDO_LOW);
bma180.SoftReset();
bma180.enableWrite();
bma180.SetFilter(bma180.F150HZ);
bma180.setGSensitivty(bma180.G16);
bma180.SetSMPSkip();
bma180.SetISRMode();
bma180.disableWrite();
delay(100);


I definitely having issues with sensor orientation.
Could use some help here from the person who got properly working HT based on GY85 board. Need the following data:

tilt board to the right 90 deg:
- does Accelerometer does negative (down) or positive (up) and on what axis (X or Y)
- does Mag does negative (down) or positive (up) and on what axis (X or Y)
- while you turn it does Gyro does negative (down) or positive (up) and on what axis (X or Y)

Then need the same set of info for tilt board forward (nose down)
and for rotate clockwise (pan to the right).



For example Alex for MultiWii clearly indicated how sensors should react:

TILT the MULTI to the RIGHT (left side up):
MAG_ROLL, ACC_ROLL and GYRO_ROLL goes up
MAG_Z and ACC_Z goes down

TILT the MULTI forward (tail up):
MAG_PITCH, ACC_PITCH and GYRO_PITCH goes up
MAG_Z and ACC_Z goes down

Rotating the copter clockwise (YAW):
GYRO_YAW goes up

The copter stays level:
MAG_Z is positive ; ACC_Z is positive

If I have same for this HT I will make it work with Cruis board.

Can you guys help? Once it works I will share the code. Cruis board is $36 at rctimer.. all soldered. I use it for multicopters and planes stabilization with MultiWii code and it works great.

Thanks!
DenisM is offline Find More Posts by DenisM
Reply With Quote
Old Oct 25, 2012, 11:45 AM
Oxford Panic
AndyOne's Avatar
United Kingdom, Oxford
Joined Feb 2003
3,637 Posts
JBFoamy,

Many thanks but I think there's something wrong as I just get the error shown below when I try to open the .ino file...

A.
AndyOne is offline Find More Posts by AndyOne
Reply With Quote
Old Oct 25, 2012, 12:23 PM
Oxford Panic
AndyOne's Avatar
United Kingdom, Oxford
Joined Feb 2003
3,637 Posts
I think I've got it now I was using an older version of Arduino.

A.
AndyOne is offline Find More Posts by AndyOne
Reply With Quote
Old Oct 25, 2012, 12:55 PM
Registered User
United States, CA, San Diego
Joined Sep 2005
364 Posts
Dennis, you asked what project would be good to do next...well not really a different project, but a refinement on this one would be as BlueAngel mentioned above: a read settings button in the GUI. I've been taking screenshots after making changes and that is working ok for the time being, but it would be great to be able to make small changes and then upload/save again without adjusting all of the parameters.

After that, definitely the antenna tracker. Definitely.

capn
capn is offline Find More Posts by capn
Reply With Quote
Old Oct 25, 2012, 06:21 PM
Registered User
mr..speed's Avatar
near Stgt/Germany
Joined Feb 2003
1,147 Posts
Next project:

There are enough trackers out there but no HD Video transmission.

How about a digital HD real time Video Transmission for FPV, wouldn't that be a challenge for you !

edit:
I would be paying for it.
mr..speed is offline Find More Posts by mr..speed
Last edited by mr..speed; Oct 26, 2012 at 02:54 AM.
Reply With Quote
Old Oct 26, 2012, 02:42 AM
Registered User
Joined Sep 2010
2,383 Posts
Quote:
Originally Posted by mr..speed View Post
Next project:

There are enough trackers out there but no HD Video transission.

How about a digital HD realtime Video Transmission for FPV, wouldn't that be a challenge for you !
Yeah but no DIY ones including video osd based-telemetry...I'm not impressed with rssi based ones.

Yeah HD transmission would be sweet after the tracker :P
msev is online now Find More Posts by msev
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Build Log Diy osd (Arduino and opensource) Dennis Frie FPV Equipment 2402 Today 01:56 AM
Discussion PPM to PWM circuit for headtracker 38cjc38 DIY Electronics 18 Mar 04, 2011 06:43 AM
Question Adding additional PPM inputs to a headtracker/module setup. SebastianJ FPV Talk 0 Aug 19, 2009 07:38 AM
Question Adding additional PPM inputs to a headtracker. SebastianJ DIY Electronics 0 Aug 18, 2009 03:37 PM