Data Sheet
Rotation Sensor User Manual Waveshare
2
GND
GND
VCC
3.3V
Port
Arduino pin
SIA
D2
SIB
D3
SW
NC
GND
GND
VCC
5V
Here is the configuration of the serial port.
Baud rate
115200
Data bits
8
Stop bit
1
Parity bit
None
③ There are three actions of the rotary encoder: clockwise rotation,
anticlockwise rotation, and reset button press. The serial ouput of the
module varies with different actions.
Clockwise
rotation
Anticlockwise
rotation
Reset button
press
Turn right
Turn left
Turn down
④ Connect SIA, SIB, SW of the module to CH0,CH1,CH2 of a logic
analyzer, respectively.
For clockwise rotation, the waveform outputs are shown as below:
For anticlockwise rotation, the waveform outputs are shown as below:
When the reset button is pressed, the waveform outputs are shown as
below: