HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Nov 11, 2012, 06:46 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,080 Posts
Quote:
Originally Posted by capn View Post
Hi guys, I recently changed out the nano board on my tracker as well. I was having an issue with my tracker constantly causing the servos to twitch/jitter when the tracker was motionless. I thought that perhaps it was because of the fact that I had mounted the sensor on top of the nano and was getting some sort of interference. That board was a knock-off nano, built by another company. I had no issues with the pan returning to zero on that tracker, but I thought maybe I would try swapping the nano with an actual arduino nano and since I have, the servos are silent when the tracker is motionless.

Here's the strange part of this though...after swapping out the generic nano for the arduino nano and uploading the code and doing all of the calibrations, I was having the same pan returning to center problem as everyone else. This was also after I remotely located the sensor board with about 8" of wire. The tracker was not causing the twitching in the servos anymore, but was basically useless as a result of the panning problem. So, I tried doing a different method of calibration for the magnetometer. I mounted the sensorboard on my goggles with the sensors up, and the round mounting hole located to the right side of the goggles. Instead of situating the goggles and thus, the sensorboard the exact same way as they are shown in the pictures in Dennis' mag calibration gui, I simple started the first one with the goggles flat, upright and facing away...then clicked set. I then rotated the goggles 180 degrees (now facing me) and clicked set in the second part... then I rotated them back 180 degrees and flipped them upside down for the final setting. For whatever reason, this completely fixed the pan returning to zero and actually the tracker is so smooth and functional now that it is amazing. Perhaps you guys could try the same procedure and see if it works for you. Again, with my first build and calibration I was making sure that the sensorboard was in the exact orientation shown in Dennis' pictures (e.g. in the third picture it shows the sensorboard up, but the text says "now position the unit upside down".)

Hopefully that didn't just confuse everyone and might actually work for someone.

capn
Thanks for sharing. A wrong magnetometer-calibration would explain the return-to-center problem. But I can't explain the difference between the two calibrations you have done.

All the problems with faulty Arduino boards and sensorboards are quite annoying. Buying from Sparkfun etc. should ensure some better quality. With some minor changes the code can also be used with other sensorboards.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Sign up now
to remove ads between posts
Old Nov 11, 2012, 06:56 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,080 Posts
A few have asked for the GUI-code. It was never the plan to release it (mainly as it's a bit messy and not coded very well), but as I'm too busy to keep things updated.. oh well

https://dl.dropbox.com/u/3947315/HeadTracker_GUI.rar
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Nov 11, 2012, 04:18 PM
Registered User
United States, CA, San Diego
Joined Sep 2005
394 Posts
Dennis,

How much is involved in making the code work for the sparkfun 9DOF stick ( https://www.sparkfun.com/products/10724 )? If I were to buy one and send it to you could you update the code for it?

capn
capn is offline Find More Posts by capn
Reply With Quote
Old Nov 11, 2012, 04:33 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,080 Posts
Quote:
Originally Posted by capn View Post
Dennis,

How much is involved in making the code work for the sparkfun 9DOF stick ( https://www.sparkfun.com/products/10724 )? If I were to buy one and send it to you could you update the code for it?

capn
It seems to be pretty much the same sensors used, as on the cheap sensorboard. With some luck you might be able to make it work with just very few or no changes. I don't have much time at the moment, and would feel bad making you pay for hardware that I don't have time to look at, but if you are comfortable with a bit of coding yourself, I don't mind to give you a little guidance on the necessary changes.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Nov 12, 2012, 03:31 AM
Registered User
Joined Sep 2011
101 Posts
Hi Guys

Someone suggested that the Arduino Nano needs to separated from the GY-85 IMU Sensor Module because of noise. Still no luck.

Cheers

Jason

DFHT Test 3 (1 min 36 sec)
WhiteNite1971 is offline Find More Posts by WhiteNite1971
Last edited by WhiteNite1971; Nov 12, 2012 at 04:59 AM.
Reply With Quote
Old Nov 12, 2012, 11:22 AM
Registered User
Joined May 2010
101 Posts
Quote:
Originally Posted by Dennis Frie View Post
A few have asked for the GUI-code. It was never the plan to release it (mainly as it's a bit messy and not coded very well), but as I'm too busy to keep things updated.. oh well

https://dl.dropbox.com/u/3947315/HeadTracker_GUI.rar
Thanks!

Do you plan on implementing a Read button in the GUI? When adjusting the settings in the GUI it's easy to forget what you entered last time. Or is it already there? I might be missing something.

If it's not there, it should "just" be a matter of sending a $Debug to the serial port and parsing the answer.
XDreamer is offline Find More Posts by XDreamer
Reply With Quote
Old Nov 13, 2012, 05:09 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,080 Posts
Quote:
Originally Posted by XDreamer View Post
Thanks!

Do you plan on implementing a Read button in the GUI? When adjusting the settings in the GUI it's easy to forget what you entered last time. Or is it already there? I might be missing something.

If it's not there, it should "just" be a matter of sending a $Debug to the serial port and parsing the answer.
As always I'm quite busy, and at the moment I use my spare-time on other projects. I don't plan to add the button atm, but as you mentioned, it just requires the GUI to read the serial-data. Shouldn't be very difficult.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Nov 13, 2012, 05:10 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,080 Posts
Quote:
Originally Posted by WhiteNite1971 View Post
Hi Guys

Someone suggested that the Arduino Nano needs to separated from the GY-85 IMU Sensor Module because of noise. Still no luck.

Cheers

Jason

http://www.youtube.com/watch?v=wL7YKL3DW2Q&feature=plcp
I haven't seen that behaviour before. Do you know what kinda PPM-signal your transmitter accepts?
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Nov 13, 2012, 05:28 AM
Flying like an Angel.
BlueAngel2000's Avatar
Austria
Joined Sep 2007
1,488 Posts
Maybe a suggestion for a new project:

A small 433MHz RF beacon on arduino based:
which has an input for various GPS (i mean it does understand different baud, update,.. settings, so we can use the GPS we use for the OSD)
and a small arduino with LCD for the ground station to see the coordinates.

I know that similar projects do exists, but no ones based on the simple arduino boards. ;-)
BlueAngel2000 is offline Find More Posts by BlueAngel2000
Reply With Quote
Old Nov 13, 2012, 05:28 AM
Registered User
Joined May 2010
101 Posts
Quote:
Originally Posted by Dennis Frie View Post
As always I'm quite busy, and at the moment I use my spare-time on other projects. I don't plan to add the button atm, but as you mentioned, it just requires the GUI to read the serial-data. Shouldn't be very difficult.
I'm on it! Will post the result here... I just didn't want to start coding if you were already on the way of implementing it.
XDreamer is offline Find More Posts by XDreamer
Reply With Quote
Old Nov 13, 2012, 06:15 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,080 Posts
Quote:
Originally Posted by XDreamer View Post
I'm on it! Will post the result here... I just didn't want to start coding if you were already on the way of implementing it.
Very nice, thanks
I can give you access to google-code if you want to upload the improved version
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Nov 14, 2012, 01:48 PM
Registered User
Gabek's Avatar
Magyarország, Baranya, Pécs
Joined Feb 2008
425 Posts
Hi!

It seams that my Arduino nano came without boot loader.

Is it possible to upload boot loader without AVR?
I think i know the answer, but hope...

THX,
Gábor
Gabek is offline Find More Posts by Gabek
Reply With Quote
Old Nov 14, 2012, 01:58 PM
HOL
Registered User
Danmark, Midtjylland, Galten
Joined Oct 2011
36 Posts
Quote:
Originally Posted by Gabek View Post
Hi!

It seams that my Arduino nano came without boot loader.

Is it possible to upload boot loader without AVR?
I think i know the answer, but hope...

THX,
Gábor

You can do it with the cheap USBasp from HK:

http://www.hobbyking.com/hobbyking/s...occessors.html

And it's in stock right now.
HOL is offline Find More Posts by HOL
Reply With Quote
Old Nov 15, 2012, 03:22 AM
Registered User
Gabek's Avatar
Magyarország, Baranya, Pécs
Joined Feb 2008
425 Posts
Quote:
Originally Posted by HOL View Post
You can do it with the cheap USBasp from HK:

http://www.hobbyking.com/hobbyking/s...occessors.html

And it's in stock right now.
Thank You HOL,

My friend has one, and the boot loader is uploaded now.

But!

I seam to have strong interference from 72 mhz!
So the tracker stops working. No reaction at all.
When i remove 72 mhz modul than it works as it should.

I will try to use shielded cables.
Will see what happens....

Anyone had similar problem?

Gábor
Gabek is offline Find More Posts by Gabek
Reply With Quote
Old Nov 15, 2012, 09:44 AM
Registered User
United States, CA, San Diego
Joined Sep 2005
394 Posts
Just an FYI,

I was able to get a second tracker working well. Testing it without heatshrink on the sensorboard (the gy-85 is mounted remote from the arduino with about 1meter of cable) it worked perfectly. The graph in the GUI responded as it should, so I decided to shrinkwrap the sensorboard to protect it. After I got done, I tested it again and the pan was returning to zero and it was behaving poorly. I removed the heatshrink and situated the wires away from the top of the sensor (I heatshrinked the wires on top of the sensorboard in order to make the whole thing neater and smaller). After clearing the wires away from the sensorboard, the tracker began working well again. I could make the graph show bad behavior simply by moving the wires back and forth over the sensor as it sat motionless. I don't know if it's the fault of the wire I used (an old wired mouse's cable) or if the board is just sensitive. I reapplied the heatshrink, this time making sure the wires ran at the edge of the board, away from the components on its top and all is well again.

capn
capn is offline Find More Posts by capn
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 2416 Dec 11, 2014 03:00 PM
Discussion PPM to PWM circuit for headtracker 38cjc38 DIY Electronics 18 Mar 04, 2011 07:43 AM
Question Adding additional PPM inputs to a headtracker/module setup. SebastianJ FPV Talk 0 Aug 19, 2009 08:38 AM
Question Adding additional PPM inputs to a headtracker. SebastianJ DIY Electronics 0 Aug 18, 2009 04:37 PM