The HC-020K encoder is a high-resolution and short response time position counter. It consists of an optical beam sensor and a slotted disc to generates a pulse train. This sensor can be connected to any microcontroller via its 3-pin header. If you need to detect rotation direction in addition to speed and position, you'll need to use two