This Arduino based (ROBOTIS CM9.04) program processes the raw rotation, acceleration, and magnetic data from the IMU-9 (GY-80) to derive an estimate of the board’s absolute orientation, which it outputs through the OpenCM9.04’s serial interface, turning the GY-80 and CM9.04 into an attitude and heading reference system (AHRS).