Rotary Encoder Module

Description The KY-040 type rotary encoder is a digital input device. It is used for navigating LCD menus, adjusting volume, or controlling parameters like motor speed. By monitoring the phase shift between the two output pins, the microcontroller determines if the knob is turning clockwise or counter-clockwise61. Key Features Continuous Rotation: Unlike potentiometers, it can spin 360 degrees indefinitely in either direction. Detent Feedback: Provides a tactile "click" (usually 20 clicks per revolution) for precise step control. Integrated Button: Includes a push-button switch (switched on press) for menu selection. Quadrature Output: Outputs two square waves (CLK and DT) 90 degrees out of phase to determine direction and speed. Technical Specifications Operating Voltage: 5 V. Pulses per Revolution (PPR): 20. Output Code: 2-bit Gray Code. Pins: GND, +, SW (Switch), DT (Data), CLK (Clock). Mechanical Life: 30,000 cycles.
PKR 216
In stock