User Manual
85
We can see from the figure above: If channel A is in low lev el, and channel B converts from
high lev el to low, it indicates the Rotary Encoder has spun clockwise (CW). If channel A is in
low lev el, and channel B converts from low lev el to high, it indicates the Rotary Encoder has
spun counter-clockwise (CCW). Thus when channel A is in low level, we can know the
direction that Rotary Encoder spun by channel B.
The schematic diagram of the Rotary Encoder is shown as below . We can see that pin 3 on
the Rotary Encoder is CLK of the module, while pin 5 is DT. Then we can know the Rotary’s
rotating direction by the value of CLK and DT.
It is summarized by using oscilloscope to observ e the output waveform of CLK and DT and
operating the rotary encoder. You can try yourself.
Experimental Procedures
Step 1: Build the circuit
SunFounder