In this study, we used the common and low-cost optical flow sensor as the core of image processing. We simply adopted a set of designed discs with pattern sticker on it as a checkerboard disk to transfer the angle variation (rotation) to a linear motion. Angle variation is obtained using lower cost sensors. Therefore, significantly reduction of the manufacturing cost of the grating, which is inside the optical angle encoder could be made. Angle sensors can be used more widely and universally in a wide variety of designs in the foreseeable future.