ThatMightyGuy/bno08x_hatire_headtracker — reverse-engineered prompt
Reverse engineered prompt
Build me an Arduino head tracker firmware for a BNO08X sensor that works with OpenTrack using the Hatire input. I’m using an Arduino Pro Micro and the sensor is connected over I2C, so keep SPI out unless it’s clearly separated and optional.
The goal is simple, when I move the sensor, OpenTrack should see smooth head rotation for games. Read the IMU rotation data as fast as practical, convert it into yaw, pitch, and roll that Hatire expects, and send it over USB serial in the right format. Please make it easy to flash from the Arduino IDE, with clear comments for the pins, serial speed, sensor setup, and anything I need to change.
Also include a short README style note explaining wiring, the need for 3.3V logic or level shifting, how to choose the Hatire source in OpenTrack, and what to do if the output jitters. Look up current docs online if you need to.
Want more depth? Deep Reverse