Processing IMU data

I’m working with an IMU for the first time and was wondering if anyone already had code to take the data from an IMU and convert it into real time position. I’m using the ISM33 6dof micro imu and the arduino IDE. I’ve taped the imu into a box and found a constant z value when the z is experiencing gravity, but I’m not sure what to do next. Any help is appreciated. Thanks.

Consumer grade IMUs are fine for estimating 3D orientation, but It is not possible to use them for estimating velocity or position (dead reckoning) for more than a few seconds at a time. They are too noisy and inaccurate.

As discussed in this article, accurately subtracting the acceleration due to gravity is one of the most serious problems: https://web.archive.org/web/20180112063 … n-velocity