Abstract:A novel single-ring absolute optical shaft encoder is designed by studying the encoding principle of traditional absolute optical shaft encoder in this paper. The description of the orientation algorithm of the encoder is specified,and an example for explaining the orientation arithmetic is given,which indicates that the theory of the encoder works. The visual interface to acquire signals of CCD is shown with VB,which provides reliable foundation to process data. The effective factors of measurement precision of the encoder are analyzed.