The galvanometer parts of photoelectric analog galvanometer and grating digital galvanometer are similar, the biggest analog and digital system difference is using different encoders. The photoelectric analog galvanometer uses the photoelectric encoder. When the galvanometer drives the baffle to rotate, the area covered by the baffle will change, and the photocurrent generated will also change. Thus the corresponding relation between the photocurrent and the galvanometer deflection Angle is formed. Grating digital galvanometer uses grating encoder. When the galvanometer drives the grating size to rotate, Sin/Cos signals will be generated on the reading head. The phase of Sin/Cos signals are corresponding to the deflection Angle of the galvanometer.