Feature

●Type: KY-040 Rotary Decoder Encoder.
●Operating Voltage: 5V. One round number of pulse: 20.
●Size: 30x19x28mm/1.18x0.75x1.10 Inches(LxWxH). Package:2 PCS.
●Unlike rotary potentiometer count, the rotation counts are not limited.
●With the button on the rotary encoder can be reset to its initial state, that starts counting from 0.


Description

Description:
Type: KY-040 Rotary Decoder Encoder.
Operating Voltage: 5V.
One round number of pulse: 20.
Width: 19mm/0.75 Inches.
Length: 30mm/ 1.18 Inches.
Height: 28mm/1.10 Inches.
Material of Knob Cap: Aluminium Alloy.
Diameter of Knob Cap: 14mm/ 0.55 Inches.
Height of Knob Cap: 17mm/ 0.67Inches.
Package:2 PCS.

Pin description:
CLK - equivalent to output A in regular encoder.
DT - equivalent to output B in regular encoder.
GND - equivalent to output C in regular encoder.
SW - reset switch.
+ (VCC) - positive supply to the unit.

The KY-040 rotary encoder is a 360 degree rotary input device (i.e. a control knob) that provides an indication of how much the knob has been rotated AND which direction it is rotating in.
It is a great device for stepper and servo motor control. You can also use it to control devices like digital potentiometers. It is ideal for navigating menus on a display or taking inputs such as numbers or text characters. The range of input can be easily defined and mapped in software. A push button switch is built into this encoder.
If you push on the shaft, the normally open switch "SW" will close. This can be used as an On/Off switch, to change control functions, ranges, selecting a menu item or entering a number. The "D" shaft of the encoder can be fitted with a knob for using it in a product.