18
edits
No edit summary |
No edit summary |
||
Line 40: | Line 40: | ||
5. Restart udev as root with ''“service udev restart”''; | 5. Restart udev as root with ''“service udev restart”''; | ||
<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). | ||
Line 64: | Line 65: | ||
[[File:My headtrack built.jpg|thumb|my headtrack built]] | [[File:My headtrack built.jpg|thumb|my headtrack built]] | ||
<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> | ||
Line 106: | Line 109: | ||
DO NOT ENTER DATA FOR THE ACCELEROMETER, they are commented in that file. | DO NOT ENTER DATA FOR THE ACCELEROMETER, they are commented in that file. | ||
5. Load the code!!! you can cange the magnetic declination for your country (http://www.magnetic-declination.com) too. | 5. Load the code!!! you can cange the magnetic declination for your country (http://www.magnetic-declination.com) too. | ||
Line 131: | Line 135: | ||
<big>'''LINKS'''</big> | <big>'''LINKS'''</big> | ||
A link on the main opentrack 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 | 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. |
edits