Overview:
The KY-040 Rotary Encoder Module is a popular sensor used to detect rotational movement and direction. It operates using incremental encoding, which means it detects changes in position relative to its previous state. The module includes a built-in push-button switch, allowing it to function both as a rotary sensor and as a tactile button. It's widely used in applications where precision control or user interface input is required, and is compatible with Arduino, Raspberry Pi, and other microcontroller platforms.
KY-040 Rotary Encoder Module
Key Features:
- Incremental Rotary Encoder: Detects the direction and amount of rotation.
- Push-Button Switch: Built-in tactile switch for additional user input (e.g., selection or confirmation).
- Bidirectional Sensing: Tracks both clockwise and counterclockwise rotations.
- Smooth Operation: Low-friction design for accurate and reliable readings.
- Digital Output: Provides digital signals representing the rotation and button state.
Specifications:
- Operating Voltage: 5V DC
- Resolution: 20 steps per revolution
- Encoder Type: Incremental with quadrature outputs
- Button Switch: Integrated push button
- Mechanical Angle: 360 degrees rotation
- Output Type: 2-bit gray code (digital signal for CLK and DT pins)
- Dimensions: 30mm x 18mm x 30mm
- Pinout:
- GND: Ground
- VCC: Power supply (5V)
- SW: Button switch signal
- DT: Data pin for direction detection
- CLK: Clock pin for position tracking
Applications:
- Rotary Knob Controls: Commonly used in user interfaces for adjusting parameters or scrolling through menus.
- Motor Control: Useful in controlling motor speed or direction in robotics and automation.
- Robotic Navigation: Encodes precise rotational information for position tracking in robots.
- Interactive Displays: Can be used in multimedia systems or control panels to navigate through settings.
- DIY Projects: Ideal for home automation, CNC machines, 3D printers, and more, where precise control over rotation is needed.
The KY-040 Rotary Encoder Module is a versatile, reliable tool for a variety of projects requiring rotation detection and control. Its ease of use and compatibility with various microcontroller platforms make it an excellent choice for both beginner and advanced projects.