User:Massima/Howto:Hatire head tracker: Difference between revisions

no edit summary
(Created page with "<big><big><big>'''HATIRE HEADTRACK (a little guide)'''</big></big></big> I write this guide to help anyone to use hathire in any sim/game. Let’s start with hw and sw requir...")
 
No edit summary
Line 1: Line 1:
<big><big><big>'''HATIRE HEADTRACK (a little guide)'''</big></big></big>
<big><big><big>'''Hatire headtrack (a little guide)'''</big></big></big>


I write this guide to help anyone to use hathire in any sim/game. Let’s start with hw and sw requirements.
I write this guide to help anyone to use hathire in any sim/game. Let’s start with hw and sw requirements.


<big>'''HARDWARE:'''</big>
<big>'''hardware:'''</big>


1. a MPU9250 device preferring a 5V tolerant device, i did not test a 9255;  
1. a MPU9250 device preferring a 5V tolerant device, i did not test a 9255;  
Line 16: Line 16:




<big>'''SOFTWARE'''</big>
<big>'''software'''</big>


<big>'''''WINDOWS:'''''</big>
<big>'''''Windows:'''''</big>


1. install arduino IDE and drivers for your board;
1. install arduino IDE and drivers for your board;
Line 26: Line 26:




<big>'''''LINUX:'''''</big>
<big>'''''Linux:'''''</big>


1. download the arduino IDE, unpack somewhere;
1. download the arduino IDE, unpack somewhere;
Line 42: Line 42:




<big>'''TRICKS:'''</big>you could have problem flashing the code on board try, while you press load, to reset the board connecting for a while RST with GND (windows and linux), remove modemmanager (linux). Perhaps if arduino IDE doesn’t start you need to  make the main binary executable with ''“chmod +x /path/filename”''(linux).
<big>'''tricks:'''</big>you could have problem flashing the code on board try, while you press load, to reset the board connecting for a while RST with GND (windows and linux), remove modemmanager (linux). Perhaps if arduino IDE doesn’t start you need to  make the main binary executable with ''“chmod +x /path/filename”''(linux).




<big>'''CONNECTIONS'''</big>
<big>'''connections'''</big>


A visual scheme is available on the edtracker site, anyway you need the following connections:
A visual scheme is available on the edtracker site, anyway you need the following connections:
Line 67: Line 67:




<big>'''THE CODE'''</big>
<big>'''the code'''</big>


I would say thanks to @hideakitai for his library (https://github.com/hideakitai), it is the only that gives us pitch, roll, yaw. I traslate them in a binary format used by hatire. So install its library in the library manager.
I would say thanks to @hideakitai for his library (https://github.com/hideakitai), it is the only that gives us pitch, roll, yaw. I traslate them in a binary format used by hatire. So install its library in the library manager.




<big>'''CALIBRATE THE MPU9250 (be aware from EM sources)'''</big>
<big>'''calibrate the MPU9250 (be aware from EM sources)'''</big>


The first step needs to open the sketch called “calibration” (file→ examples→ MPU9250), load it and open the serial console:
The first step needs to open the sketch called “calibration” (file→ examples→ MPU9250), load it and open the serial console:
Line 108: Line 108:
   mpu.setMagScale(2, +0.94);''
   mpu.setMagScale(2, +0.94);''


DO NOT ENTER DATA FOR THE ACCELEROMETER, they are commented in that file.
Do not enter data for accelerometer, they are commented in that file.




Line 114: Line 114:




'''IMPORTANT:''' if you change your environment near the magnetometer (like closer parts, headphones), you need to recalibrate it. Otherwise your HT will work badly. My issue, i worked and calibrated my HT with a mini-breadboard. When i switched to a compact solution (see the image at first page), my HT didn’t work correctly but recalibrating did the trick.
'''important:''' if you change your environment near the magnetometer (like closer parts, headphones), you need to recalibrate it. Otherwise your HT will work badly. My issue, i worked and calibrated my HT with a mini-breadboard. When i switched to a compact solution (see the image at first page), my HT didn’t work correctly but recalibrating did the trick.




<big>'''TEST'''</big>
<big>'''test'''</big>


Now it is time to test your system. The loaded code never freezes, my tests platform:
Now it is time to test your system. The loaded code never freezes, my tests platform:
Line 128: Line 128:




<big>'''SETUP'''</big>
<big>'''setup'''</big>


I share my opentrack setting ini files then you can edit yaw, pitch, roll curves but i strong suggest you, everytime, to center the position of the tracker (options → output → custom center position).
I share my opentrack setting ini files then you can edit yaw, pitch, roll curves but i strong suggest you, everytime, to center the position of the tracker (options → output → custom center position).




<big>'''LINKS'''</big>
<big>'''links'''</big>


A link on the main opentrack site is available [https://github.com/opentrack/opentrack/wiki/Built-a-Hatire-headtracker-with-a-MPU9250 here].
A link on the main opentrack site is available [https://github.com/opentrack/opentrack/wiki/Built-a-Hatire-headtracker-with-a-MPU9250 here].


All useful stuff are available [https://drive.google.com/drive/folders/15HhIHfoJ6WcMU1nhQ93dDLvj_SIr3SEa?usp=sharing here] on my gdrive space, there is an opentrack debian package too.
All useful stuff are available [https://drive.google.com/drive/folders/15HhIHfoJ6WcMU1nhQ93dDLvj_SIr3SEa?usp=sharing here] on my gdrive space, there is an opentrack debian package too.
18

edits