Specifications
Product Details
Below mentioned are some of the features and specifications of the KY-040 Rotary Encoder module:
- Operating Voltage: 5V
- Mechanical angle: 360 Degrees
- Output: 2-bit gray code
- Positions per revolution: 30
Pin Configuration
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.
| Pin Type | Description |
| CLK | Encoder Pin A |
| DT | Encoder Pin B |
| SW | No push-button switch |
| VCC(+) | Voltage input(+5V) |
| GND | Ground(Encoder Pin C) |

