Description
KY-040 360° Rotary Encoder Switch Module – Precision Control for Arduino Projects
Upgrade your DIY electronics with the KY-040 360 Degrees Rotary Encoder Switch Module. This compact, high‑resolution sensor delivers smooth, endless rotation and reliable click feedback, making it the perfect potentiometer knob kit for Arduino, Raspberry Pi, ESP32, and other micro‑controller platforms.
Key Highlights
- Full 360° rotation with detent‑free operation for precise adjustments
- Dual output signals (A & B) provide quadrature encoding for accurate direction detection
- Integrated push‑button switch adds a third input for menu selection or reset functions
- Compact 12 mm × 12 mm PCB footprint fits easily on breadboards and prototype shields
- Robust mechanical design – rated for 10 k cycles of continuous use
- Compatible with Arduino IDE, PlatformIO, and popular libraries (e.g.,
Encoder,Rotary)
Technical Specifications
- Operating voltage: 3.3 V – 5 V DC
- Resolution: 20 steps per rotation (adjustable via software)
- Pinout: VCC, GND, DT (Data), CLK (Clock), SW (Switch)
- Operating temperature: –20 °C to +85 °C
- Material: High‑quality ABS plastic housing
Why Choose the KY-040 Encoder?
The KY-040 offers a seamless blend of precision control and versatile input options. Whether you’re building a volume knob for a music player, a menu selector for a handheld device, or a speed controller for a motor, this encoder provides reliable feedback and a tactile click feel that enhances user experience.
Easy Integration
Simply connect the five pins to your Arduino board, upload a few lines of code, and start reading rotational direction and button presses instantly. The module works out‑of‑the‑box with popular Arduino libraries, so you can focus on creativity rather than wiring.
Ideal For
- Robotics and automation controls
- Audio equipment (volume, tone, balance knobs)
- IoT dashboards and smart home interfaces
- 3D printer and CNC machine user panels
- Educational kits and prototype development
Package Includes
- 1 × KY-040 360° rotary encoder module
- 1 × breadboard-friendly breakout (optional)
- Quick‑start guide with wiring diagram and sample code
Unlock precise, endless rotation and reliable click input for your next project with the KY-040 Rotary Encoder Switch Module. Order now and bring your Arduino creations to life!






Reviews
There are no reviews yet.