The KY-040 Rotary Encoder Module is a versatile input device designed to detect rotational position, direction, and speed. Featuring an incremental rotary encoder and a built-in push-button, this module is ideal for applications such as volume control, menu navigation, and robotics. Its compact design and wide compatibility make it a popular choice for Arduino, Raspberry Pi, and other microcontroller projects. Additionally, demo code is provided for easy setup and integration.
- Incremental Encoding: Detects rotational direction and position changes.
 - Integrated Push-Button: Adds extra functionality for menu selection or other actions.
 - Compact and Lightweight: Ideal for small projects and portable devices.
 - Easy Integration: Compatible with Arduino, Raspberry Pi, and other development boards.
 - Demo Code Provided: Simplifies the implementation process.
 
KY-040 Rotary Encoder Module Specifications
- Operating Voltage: 3.3V to 5V DC
 - Output Signal: Two-phase (A and B) incremental pulse signal
 - Push-Button Function: Integrated tactile switch (active low)
 - Pins: CLK, DT, SW, VCC, GND
 - Dimensions: 32mm x 19mm x 30mm (including knob)
 
KY-040 Rotary Encoder Module Applications
- Menu Navigation: Scroll and select options in LCD menus.
 - Volume Control: Adjust audio levels in sound systems or media players.
 - Robotics: Track rotational movements in robotic systems.
 - Gaming: Use as an input device for gaming controllers or simulators.
 - DIY Electronics: Ideal for hobbyists working on interactive projects.