KY-040 Rotary Encoder Module with Knob Cap 5V – 1 to 8 PCS
KY-040 360° Rotary Encoder Module with Knob Cap
Level up your electronics projects with the KY-040 Rotary Encoder Module — a versatile, 5V-compatible sensor switch module perfect for makers, hobbyists, and engineers. Available in packs of 1 to 8 pieces, this module provides smooth 360-degree rotary input and a tactile push-button click, making it ideal for menu navigation, volume control, motor speed adjustment, and more on your development board builds.
Made in Mainland China.
Key Features
- Full 360° Rotation: Continuous rotary input with no mechanical stop — perfect for infinite scroll and dial-style controls
- 5V Compatible: Works seamlessly with Arduino R3, Raspberry Pi, and other common development boards
- Built-in Push Button: Integrated switch activates on knob press for multi-function control
- Knob Cap Included: Ergonomic knob cap included for comfortable and precise hand operation
- Easy Plug-and-Play Wiring: Standard 5-pin header makes wiring and prototyping fast and straightforward
- Flexible Pack Sizes: Choose from 1 to 8 modules to suit your project scale or stock your parts drawer
- Breadboard & PCB Friendly: Compact SMD design fits cleanly into development setups
Specifications
- Module Type: KY-040 Rotary Encoder
- Operating Voltage: 5V DC
- Rotation: 360° continuous (no end stop)
- Output: Digital pulse (A, B channels) + push-button (SW)
- Package: SMD
- Condition: New
- Country of Origin: Mainland China
Compatible With
- Arduino Uno R3 / Mega / Nano
- Raspberry Pi (all models)
- ESP8266 / ESP32 boards
- STM32 and other microcontroller development boards
What's in the Box?
- KY-040 Rotary Encoder Module(s) — quantity as selected (1–8 PCS)
- Knob cap(s) included
Related Products You May Like
- Electromagnetic Induction Tester – Coil & Circuit Fault Detector
- Air Compressor Pressure Gauge 0-10/0-12/0-25 Bar | DIY Tool
Learn more: OSHA guidance on hand and power tools
Frequently Asked Questions
Q: Is the KY-040 rotary encoder module compatible with Arduino R3 boards?
A: Yes! The KY-040 rotary encoder module is fully compatible with Arduino Uno R3 boards as well as other popular platforms including Arduino Mega, Nano, Raspberry Pi, ESP8266, ESP32, and most 5V microcontroller development boards. Simply connect the CLK, DT, SW, VCC (+), and GND pins and you're ready to code.
Q: What is the difference between a rotary encoder and a potentiometer?
A: Unlike a potentiometer, which has a fixed start and end point, the KY-040 rotary encoder rotates a full 360° continuously with no mechanical stop. It outputs digital pulses on two channels (A and B) to detect direction and speed, making it far more suitable for user-interface controls like menu navigation, parameter adjustment, and motor speed setting in your DIY electronics projects.
Q: How many modules do I receive, and do they all come with knob caps?
A: You can select a pack of 1 to 8 KY-040 rotary encoder modules. Each module in your selected pack comes with its own knob cap included, so you have everything you need to get started right away.