A few days ago, I checked functions of simple Rotary Encoder including waveforms of it. When it turns right or left, 2 waveforms are obtained. (1Y and 2Y) According to the direction, 1Y leads 2Y or 1Y lags 2Y.
If you don't read posting about basic operation of rotary encoder yet, I hope you check previous posting. You can check oscilloscope waveforms of it. ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ https://jauroun.tistor.....