I am working on my project which is 3DOF articulated robotic arm.i have evaluated joint angles.dc motors with optical encoders are installed in each joint.i have to convert the joint angles into encoder counts..how can i do that??..