Source: Operating principle of the optical incremental encoder - Sang-Hoon Kim.
Operation:
-
When a rising edge of Phase A is detected while phase B is high, negative angle rotation.
-
When a rising edge of Phase A is detected while phase B is low, positive angle rotation.
-
Phase A and B are connected to MSP432 as GPIO input.
Red LED on left of 7-segment display for encoder angle polarity (ON for negative).
- CW is positive count direction.
- CCW is negative count direction.