Description
The rotary encoder can count the pulse outputting times during the process of rotation in positive and reverse direction by rotating. This rotating counting is unlimited, not like potential counting. It can be restored to initial state to count from 0.
Connections:
- Connect the VCC pin of the rotary encoder to the 5V pin on the Arduino.
- Connect the GND pin of the rotary encoder to the GND pin on the Arduino.
- Connect the Output A pin to one of the Arduino’s digital pins (e.g., pin 2).
- Connect the Output B pin to another digital pin (e.g., pin 3).