DIY Head Tracker For A Tenner

Ok how do I uncomment the tracker and the switch will only go in your PCB board one way I got the switch from hobby components and fits perfect
 
I will update the PDF guide as soon as possible; most of it stands true for the beta version of EDTrackerII code but obviously some of it needs updating in terms of filenames and library installation. For the moment, remember it's just for the version 1 stuff.
 
Look for this line :-

Code:
//comment this in if you want so see output to the serial monitor
//#define DEBUGOUTPUT

A line beggining with two slashes is a comment line; it's non-functional code, it won't get executed. By removing the two slashes you enable it as code again.

So take of the two slashes before "#define DEBUGOUTPUT", recompile, and you should now get output on the serial monitor

Obviously outputting text all the time is less efficient so once you've got it working properly, it's good habit to put the comment back in, recompile and upload, so the microcontroller isn't wasting cycles. Having said that, at 16 million clock cycles every second (which in microcontroller land is generally 1 or 2 low-level ops per clock tick) I've never really noticed any performance problem, even on debug and alpha quality code...
 
Still having problems with one of the PC's but will wait to see what develops after Alpha 4 hopefully today.

Out of interest, is the only way to get the driver for running EDtracker on a PC to install the full Arduino IDE or are the drivers available separate.

I haven't even tried ED Tracker 2 yet as the "For The Brave" has put me off a bit. Is it a good idea to a go with it?
 
When I run the Ed Tracker 2 exe all I get is a blank window.
I have followed the instructions to the letter (on 2 PC's)
Guessing its a Java thing, I'm running Version 7 Update 55.
 
You can download the IDE as a non-install (ie. ZIP) package, and the drivers are then in a folder <arduino>/drivers within it. So just take that folder and plop it on the target PC.

Again, not strictly necessary for pure joystick operation as pocketmoon has said, but I appreciate it's annoying having an unknown device keep popping up.

Not that I would condone it, <cough> but there are ways of fudging USB IDs and having it look like some conventional device, but we wouldn't dare do such things because the USB police would come looking for us in their black-windowed cars.
 
When I run the Ed Tracker 2 exe all I get is a blank window.
I have followed the instructions to the letter (on 2 PC's)
Guessing its a Java thing, I'm running Version 7 Update 55.

What OS are you on ?

As a workaround you could download the Processing IDE (it's very much like the Arduino IDE) - it's just an "unzip anywhere" type install.

You could then create a project called EDTrackerUtil and drop the two .pde files from the source directory into it along with head3.stl and the vlw (font) file (all in the same folder) That might work for now...
 
You can download the IDE as a non-install (ie. ZIP) package, and the drivers are then in a folder <arduino>/drivers within it. So just take that folder and plop it on the target PC.

Again, not strictly necessary for pure joystick operation as pocketmoon has said, but I appreciate it's annoying having an unknown device keep popping up.

Not that I would condone it, <cough> but there are ways of fudging USB IDs and having it look like some conventional device, but we wouldn't dare do such things because the USB police would come looking for us in their black-windowed cars.

Thank's I will give that a try.
 
Out of interest after building the two boards yesterday, to test I loaded the little LED blink sketch as I have in the past with other Arduino's. It compiled etc. but didn't work. Should it have worked, is this board any different from the Uno etc. Also would an official Arduino Micro fit the PCB.
 
Last edited:
loaded the little LED blink sketch as I have in the past with other Arduino's. It compiled etc. but didn't work..

Did you change the LED pin ID? By default it is listed as pin 13, but it is actually pin 17 on the boards we are using

Also would an official Arduino Micro fit the PCB.

Looks to have the wrong pinout to me. It looks like the 'pro micro' we are using is a clone of the Leonardo Micro, but the official Ardunio site doesn't have a reference image I can use to confirm this.
 
Last edited:
Did you change the LED pin ID? By default it is listed as pin 13, but it is actually pin 17 on the boards we are using



Looks to have the wrong pinout to me. It looks like the 'pro micro' we are using is a clone of the Leonardo Micro, but the official Ardunio site doesn't have a reference image I can use to confirm this.


That explains why it didnt work. I didn't know it was on 17. Doh.

I have just ordered another Pro Micro from ebay as the usual source has run out. I think it's the same and will fit. http://goo.gl/Pj86ai too late if it doesn't.
 
Just FYI, Rob and I have been in discussion about providing a way to flash the device directly from the UI, avoiding the need for any Arduino IDE, compiling, code editing, etc if you're not interested in that route. The "simple" approach. We will distribute a compiled HEX (still with the source code; necessary for license reasons) but you can basically just flash that straight in if you're happy with the default device behaviour.

I have it on my list but I need to finish something else first as a priority.

So this will only get easier with time; bear with us. We all have day jobs, as I'm sure you understand ;)
 
Just FYI, Rob and I have been in discussion about providing a way to flash the device directly from the UI, avoiding the need for any Arduino IDE, compiling, code editing, etc if you're not interested in that route. The "simple" approach. We will distribute a compiled HEX (still with the source code; necessary for license reasons) but you can basically just flash that straight in if you're happy with the default device behaviour.

That would be a brilliant idea. I am sure most people would find that very useful and preferable. Myself I will prob continue with the IDE as I have a few Arduino's for different things. One runs a quadcopter.

I have it on my list but I need to finish something else first as a priority.

So this will only get easier with time; bear with us. We all have day jobs, as I'm sure you understand ;)

Of course. I did have a day job but retired early a few years ago. I keep forgetting other people have real jobs :)

The two files I had to replace in the library of the IDE – HID.cpp and USBAPI.h. Are they just specifically for this project or can I leave them there for any other Arduino work. Or do I need to swap the old ones back.
 
The two files I had to replace in the library of the IDE – HID.cpp and USBAPI.h. Are they just specifically for this project or can I leave them there for any other Arduino work. Or do I need to swap the old ones back.

You can leave them there (there are diff versions depending on the version of the Arduino IDE). We just added a 'joystick' to the list of usb 'HID' devices (already had keyboard and mouse)..
 
Back
Top Bottom