End effector position using accelerometers in tip