DIY Head Tracker For A Tenner

My PC recognises the arduino leonardo. This is what hobby components sent in the DIY Head tracker bundle is the micro different? Pls can a link to correct board be posted many thanks! Also I have the 9150 will this work with same coding as for the 6050?
 
My PC recognises the arduino leonardo. This is what hobby components sent in the DIY Head tracker bundle is the micro different? Pls can a link to correct board be posted many thanks! Also I have the 9150 will this work with same coding as for the 6050?

I think that should be fine. The leonardo and Pro Micro share the same 'bootloader' so , in effect behave the same way. Brumster can probably confirm (my PC is a mess of drivers :) )

If you plug it in and use the Arduino IDE, select board -> Arduino Micro as the target board and then load the basic 'blink' sketch then if the LED blinks you're OK :)

I believe 9150 is compatible but not tested it yet. I have one on order so will verify soon.
 
Ah, ok, the Leonardo is still an atmega32u4 device but I'm not sure if there are pin differences between them. Sounds more like an IDE issue, like it's checking file paths or somesuch on startup. If it happens with USB unplugged, it's not a device issue (in fact that's highly unlikely as it doesn't try to connect to anything until you tell it to). Check your COM port, I presume that's OK.

The 9150 will work but at the moment you won't get any of the benefits of it until the code is changed to read the magnetometer. So no problem to build one with a 9150 for now, in anticipation of future updates (that's what I've done).
 
My PC recognises the arduino leonardo. This is what hobby components sent in the DIY Head tracker bundle is the micro different?

As long as it looks like this :

funduino-leonardo-pro-micro.jpg



and DOESN'T like like this:

leonardo.jpg



You're OK :)
 
Last edited:
As long as it looks like this :

funduino-leonardo-pro-micro.jpg



You're OK :)

That's a relief as that's what they also sent me,

I've now installed it on my old XP machine, the IDE runs, I can set the board type and port ok (shows as Leonardo Com4 in device manager).

Blink compiles but when it comes to upload to the board I get a hardware disconnect beep from XP followed by a reconnect and an error from the compiler

avrdude: ser_open(): can't set com-state for "\\.\COM5"

why com5? bottom right status line of IDE shows 'Arduino Leonardo on Com4'
 
why com5? bottom right status line of IDE shows 'Arduino Leonardo on Com4

In the IDE under tools->board select Arduino Micro and also select the highest port number under tools->por. Port number can change when device is first plugged in as it jumps from bootloader to running the sketch.

{edit} I just checked a new Pro Micro from Hobbycraft and it works OK but It jumped from port 18 to 22 which confused the IDE (and me!) But after a couple of goes (picking the available port from tools menu option) it works fine.

Status LED on this new batch appears to be yellow , which is cool!
 
Last edited:
In the IDE under tools->board select Arduino Micro and also select the highest port number under tools->por. Port number can change when device is first plugged in as it jumps from bootloader to running the sketch.

{edit} I just checked a new Pro Micro from Hobbycraft and it works OK but It jumped from port 18 to 22 which confused the IDE (and me!) But after a couple of goes (picking the available port from tools menu option) it works fine.

Status LED on this new batch appears to be yellow , which is cool!

Hmmm after doing the above it now compiles and uploads ok with no errors reported.

Blink does not work tho' the board after compile/upload the red led (always on regardless) and a green and yellow on. The yellow green flash during uploading but then remain lit.
 
Hmmm after doing the above it now compiles and uploads ok with no errors reported.

Blink does not work tho' the board after compile/upload the red led (always on regardless) and a green and yellow on. The yellow green flash during uploading but then remain lit.

Did you remember to change the LED pin (it needs to be 17 iirc, 13 by default)
 
I feel the same and hope with some guidance from others here on walking me thru set up and use I should have a better grasp of what's going on when I purchase mine.


Has anyone used this headtracker with Diaspora yet.
 
Last edited:
For those that like to live on the bleeding edge the first cut of the new ED Tracker code is now in the wild.

http://reprapdad.wordpress.com/2014/05/13/ed-tracker-v2-for-the-brave/

It comes with the new UI to handle calibration and yaw drift compensation and also moves to a new arduino library for the MPU-6050.

Still lots to do but hopefully this puts us in the best place to continue to minimise issues such as yaw drift and dodgy bouncing axis!

Rob.

Looking good :)
 
For those that like to live on the bleeding edge the first cut of the new ED Tracker code is now in the wild.

http://reprapdad.wordpress.com/2014/05/13/ed-tracker-v2-for-the-brave/

It comes with the new UI to handle calibration and yaw drift compensation and also moves to a new arduino library for the MPU-6050.

Still lots to do but hopefully this puts us in the best place to continue to minimise issues such as yaw drift and dodgy bouncing axis!

Rob.

Excellent. I'll try it as soon as I can. Thank you for the hard work!
 
It comes with the new UI to handle calibration and yaw drift compensation and also moves to a new arduino library for the MPU-6050.

Thanks for the update.

Having just grabbed it, it looks like people will need to sort a few missing dependencies to get the UI to run (assuming they have the same issues as me):

I had to drop the bin/lib folders from a valid java install into the EDTracker2-master\UI\java directory

I also had to download JOGL (https://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL) and copy across the gluegen-rt-natives-windows-i586 and jogl-all-natives-windows-i586 files into the EDTracker2-master\UI\lib directory.

UI then ran OK. Have run the first sketch, now proceeding with the 2nd, but thought I would share for anyone else having similar issues

Edit: also, my PCBs arrived about 15 minutes before the new tools were posted, timing couldn't have been better. Thanks Brumster for getting them sent out, and thanks again to all three of you for the work so far
 
Last edited:
Thanks for the update.
Having just grabbed it, it looks like people will need to sort a few missing dependencies to get the UI to run (assuming they have the same issues as me):

Looks like my push to github didn't pick everything up. Doh! Will sort that out this evening.

I *think* if you edit EDtrackerUtil.bat to say

java -Djava.ext.dirs=lib etc
rather than
.\java\bin\java -Djava.ext.dirs=lib etc

it may work.
 
I built the head tracker and it does register as a joystick when I test it in the joystick testing utility. However when in ED after adjusting the controls for the head tracker it seems to not work on the head track axis settings when I set them and try it, it seems to register as my T-Trust throttle so I end up going slower/faster instead of head movement !
And my throttle also still makes the ship go faster and slower and so it seems I just created anouther throttle instead of head tracker.
 
I built the head tracker and it does register as a joystick when I test it in the joystick testing utility. However when in ED after adjusting the controls for the head tracker it seems to not work on the head track axis settings when I set them and try it, it seems to register as my T-Trust throttle so I end up going slower/faster instead of head movement !
And my throttle also still makes the ship go faster and slower and so it seems I just created anouther throttle instead of head tracker.

Alpha 1.x doesn't handle multiple input devices very well (latest alpha slightly better but still....) Workaround is to use something like URJ to create a single virtual joystick. (http://evilc.com/joomla/articles/9-code/autohotkey/1-ujr-universal-joystick-remapper)
 
I could not get it to work with the mouse either then I realised you need to also toggle head lock, so I will try again with my head tracker. I am alpha 3.04.
 
It works now and is lovely and smooth, much smoother than the windows test joystick implies. So I been looking around my cabin and there is a lot of drift, but I need to calibrate it and put the values in.... Still it seems to work nicely.

Also I just noticed when doing it that there was a brown book in the cabin labelled Flight traders training manual or something like that as the title is obscured by some metal. Also there is what seems like a thermos flask and a white package next to you. All these things I see now :)
 
Back
Top Bottom