Module Description 【General Parameters】Model: KY-040, Working Voltage: 5V, One round number of pulse: 20.
【No Limited Rotation Counts】The rotary encoder can count the number of pulse output during rotation in the positive direction and reverse direction through the rotation and this rotation counts are not limited.
【Encoder Key】With the key on the rotary encoder, you can reset to the initial state, that is, counting from 0.
【Application】Best choice for stepper and servo motor control. You could also use it to control devices like digital potentiometer.Specification of Rotary Encoder Module:
Model: KY-040
Working Voltage: 5V
Material: PCB + Brass
Weight: 10g
Size: 32 x 19 x 30mm
The pin outs for this rotary encoder are identified in the below.
CLK: Encoder Pin A
DT: Encoder Pin B
SW: No Pushbutton Switch
+: 5V Supply
GND: Encoder Pin C
Pin connected to for Arduino:
CLK = [pin 3]
DT = [pin 4]
Button = [pin 5]
+ = [Pin 5V]
GND = [pin GND]
Pin connected to Raspberry Pi:
CLK = GPIO16 [pin 36]
DT = GPIO15 [pin 10]
SW = GPIO14 [pin 8]
+ = 3.3V [pin 1]
GND = ground [pin 6]