Your cart is currently empty!
The KY-040 Rotary Encoder Module tracks rotation and direction with 20 cycles per revolution (CPR) and includes a push-button switch. Perfect for Arduino, Raspberry Pi, and DIY projects, it’s ideal for volume control, motor tuning, and menu navigation. Durable brass shaft, 5V/3.3V compatible, and easy to integrate!
4 in stock
Take control of your next project with the KY-040 Rotary Encoder Module—a compact and reliable input device that translates rotational movement into digital signals. Featuring 20 cycles per revolution (CPR) and a built-in push button, this module is perfect for creating interactive menus, adjusting motor speed, navigating user interfaces, and more. Ideal for Arduino, Raspberry Pi, and other microcontroller platforms.
🌀 Incremental Rotation Sensing
Detects direction and steps using quadrature (A/B) phase output—track clockwise and counterclockwise movement with precision.
🔘 Built-In Push Button
Integrated tactile switch lets you press the shaft to select options or change modes.
🎯 High Resolution
Offers 20 pulses per revolution, giving fine control over adjustments.
🔌 Easy to Interface
Standard 5-pin header makes it simple to connect to most microcontrollers.
🔁 Durable Brass Shaft
Robust construction ensures smooth rotation and long-lasting performance.
⚡ Compatible with 3.3V & 5V Systems
Works seamlessly with Arduino, ESP32, Raspberry Pi, and other boards.
Parameter | Description |
---|---|
Model | KY-040 |
Type | Incremental Rotary Encoder |
Cycles per Revolution | 20 CPR |
Voltage Range | 0 – 5V (3.3V/5V logic compatible) |
Switch Life | ≥ 100,000 presses |
Dimensions | 32mm × 19mm × 30mm |
Materials | Brass Shaft + PCB |
CLK (A): Phase A output
DT (B): Phase B output
SW: Button switch output (active low)
+ (VCC): Connect to 3.3V or 5V
GND: Ground connection
🎚️ Volume & Menu Control: Scroll through settings or adjust audio levels
🤖 Robotics: Monitor wheel rotation or joint angles for precise movement
🔧 Motor Speed Control: Adjust RPM in CNC, laser cutters, or 3D printers
🕹️ DIY Game Controllers: Create knobs, dials, or selectors
⚙️ Industrial Interfaces: Navigate through machine UI or control systems
Quadrature Output:
Generates two digital signals (A and B) that allow you to detect rotation direction and count steps.
Clockwise: A leads B
Counterclockwise: B leads A
Push Button Switch:
Shaft press pulls the SW pin LOW—ideal for triggering menu selections.
Code Integration:
Use Arduino libraries like Encoder.h
for seamless software decoding.
Plug-and-play with most dev boards
Dual-function: Rotate + Press
Excellent value for budget-conscious makers
Built to last with over 100k cycles of use
1 × KY-040 Rotary Encoder Module
🛠️ Add tactile, rotary control to your next project! From adjusting brightness or volume to navigating custom menus, the KY-040 gives you the precision and interaction your build deserves.
👉 Order now and bring your project to life with reliable, responsive control!
Reviews
There are no reviews yet.