Arduino project that uses the reading from the IMU and sends it to OpenTrack for head tracking. Project is able to read yaw, roll and pitch.
Parts needed:
✔ Arduino board (I used micro pro)
✔ GY-85
Connect pins:
Arduino | GY-85 |
---|---|
5V (VCC on mirco pro) | VCC_IN |
GND | GND |
SCL (pin 3 on micro pro) | SCL |
SDA (pin 2 on micro pro) | SDA |
There are 2 ways to program Arduino with provided code.
Import project into PlatformIO, set up arduino board and communication port and finally upload.
Copy and paste contents of main code, import library from lib/GY-85, set up arduino board and communication port and finally upload.
I've provided python code that recieves sensor readings from Arduino throught serial communication protocol and sends them to OpenTrack using "UDP over network" method.
To run code type into terminal: python source.py
To exit from script press Ctrl+C