Rotary Encoder Module (KY-040)

SKU: 6B8LTYXCB3
★★★★
4.5 (34 reviews)
The KY-040 Rotary Encoder Module is a versatile input device designed to detect rotational movement and direction with high accuracy. Unlike traditional potentiometers, the rotary encoder can rotate continuously without mechanical stops, making it ideal for menu navigation, parameter adjustment, volume control, and position sensing applications. The module features a 20-step incremental rotary encoder with an integrated momentary push-button switch....
Regular price Rs. 69.00
Regular price Rs. 79.00 Sale price Rs. 69.00
Save Rs. 10
Sold out
Tax included. Shipping calculated at checkout.
COD Available
Easy Return
Quality Assured
12 people are viewing this right now
For Bulk Order Contact Us View full product details
Same Day Dispatch Order before 2PM
Pan India Delivery Shipping in 24-48H
Secure Packaging Safe & Damage Free
Dedicated Support Expert Assistance

The KY-040 Rotary Encoder Module is a versatile input device designed to detect rotational movement and direction with high accuracy. Unlike traditional potentiometers, the rotary encoder can rotate continuously without mechanical stops, making it ideal for menu navigation, parameter adjustment, volume control, and position sensing applications.

The module features a 20-step incremental rotary encoder with an integrated momentary push-button switch. It generates two quadrature digital signals (CLK and DT), allowing a microcontroller to determine both the direction and amount of rotation. The built-in push button provides an additional user input, making the module ideal for interactive control systems.

The KY-040 is widely used in Arduino, ESP32, STM32, Raspberry Pi Pico, AVR, and PIC projects, including user interfaces, robotics, CNC controllers, 3D printers, audio equipment, and industrial control systems.

Key Features

  • Incremental rotary encoder
  • Continuous 360° rotation
  • Detects clockwise and counterclockwise movement
  • Built-in momentary push-button switch
  • Digital quadrature outputs
  • High positioning accuracy
  • Mechanical detent feedback
  • Compact PCB module design
  • Low power consumption
  • Stable and reliable operation
  • Easy microcontroller interfacing
  • Compatible with Arduino, ESP32, STM32, and Raspberry Pi
  • Ideal for menu navigation and parameter adjustment
  • Perfect for educational and DIY electronics projects

Shipping & Returns

Orders placed before 3 PM IST will be shipped on the same day (excluding Sundays and Public holidays) through our shipping partners. In rare cases, the pickup may get delayed during Public holidays / Bandh / Environmental disturbances.

Specifications

Specifications:

Module Type: Rotary Encoder Module
Model: KY-040
Encoder Type: Incremental Mechanical Rotary Encoder
Rotation: Continuous 360° Rotation
Number of Pulses: 20 Pulses Per Revolution (Typical)
Detent Positions: 20 Positions Per Revolution
Built-in Switch: Momentary Push Button
Operating Voltage: 3.3V to 5V DC
Operating Current: Less Than 10mA
Output Type: Digital Quadrature Output
Output Channels: CLK and DT
Switch Output: SW (Push Button)
Logic Level: TTL Compatible
Interface Pins: CLK, DT, SW, VCC, GND
Response Time: Instantaneous
Mechanical Life: More Than 30,000 Rotation Cycles (Typical)
Switch Life: More Than 20,000 Presses (Typical)
Operating Temperature: -20°C to +70°C
Storage Temperature: -40°C to +85°C
PCB Dimensions: Approximately 31mm × 19mm
Mounting Type: Through-Hole Module
Compatibility: Arduino, ESP32, STM32, Raspberry Pi Pico, AVR, PIC

Additional Resources

FAQ

1. What is the KY-040 Rotary Encoder Module used for?

The KY-040 is used to detect rotary movement and user input in applications such as menu navigation, volume control, robotics, CNC machines, and embedded systems.

2. How does the KY-040 Rotary Encoder work?

The encoder generates two digital quadrature signals (CLK and DT) as the shaft rotates. By comparing the sequence of these signals, a microcontroller can determine both the direction and amount of rotation.

3. Can the KY-040 be connected directly to Arduino and ESP32 boards?

Yes, the module operates from 3.3V to 5V and provides TTL-compatible digital outputs that can be directly connected to Arduino, ESP32, STM32, Raspberry Pi Pico, and other microcontrollers.

4. What is the purpose of the SW pin?

The SW pin is connected to the built-in momentary push button, allowing the encoder knob to function as an additional digital input for menu selection or other user actions.

5. What is the advantage of a rotary encoder over a potentiometer?

Unlike a potentiometer, a rotary encoder can rotate continuously without end stops and provides incremental digital signals, making it ideal for menu navigation, precise parameter adjustment, and user interface applications.