Capturing Arm Movement with MMA8451

Currently trying to complete a project using an Arduino UNO and accelerometer MMA8451 to control a robot arm. I am struggling to develop a consistent algorithm to collect accurate movement of the accelerometer. Any suggestions or pointers would be greatly appreciated.

If I recall correctly, to control movement requires both an accelerometer and a gyro. And you still can't get very accurate result. Your calculated position will deteriorate in time. Better position control is achieved with stepper motors and servos. And limit switches.