KY-040 Rotary encoder module
The Rotary Encoder can count the number of pulses output in the forward and reverse directions by rotation, and the rotation count is not like the potentiometer. This rotation count is not limited. With the key on the rotary encoder, that is, counting from 0.
4 in stock
The KY-040 Rotary encoder module is designed so that a low is an output when the switches are closed and a high when the switches are open.
The low is generated by placing a ground at Pin C and passing it to the CLK and DT pins when switches are closed.
The high is generated with a 5V supply input and pull-up resistors, such that CLK This website uses cookies to enhance your experience. By continuing to visit this and DT are both high when switches are open.
 If you push on the shaft, a normally open switch will close. The feature is useful if you want to change the switch function. For example, you may wish to have the ability to between coarse and fine adjustments.
SPECIFICATIONS
- Chip: KY-040
- Operating voltage: 5V
- Speed: 20 positions/revolutions
Pin Configuration of KY-040 Rotary Encoder
The KY-040 module has 5 output pins. Two of which are for the power of the module whereas, 3 are for the output data of the turns and direction of the knob. The table below describes the pin type and the function of each pin in the Rotary module.
- CLKÂ Â Rotary encoder pin A
- DTÂ Â Â Rotary encoder pin B
- SWÂ Â Â Push-button pin. Normally open, shorted to GND on press
- VCCÂ Â Voltage supply
- GNDÂ Â Ground
Package Contents:
1 x KY-040 Rotary encoder module
Development Resources: demo codes, schematics, datasheets, etc
Notes:
1. There may be slight size deviations due to manual measurement, different measuring methods and tools.
2. The picture may not reflect the actual colour of the item because of different photographing light, angles and display monitors.
| Weight | 0.010 kg |
|---|---|
| Dimensions | 5 × 2 × 3 cm |







