Use Beam Interruption for Fast Optical Detection
The Rotary Encoder Module is a rotation sensor with digital output designed for slot sensing, encoder feedback, speed counting, and position detection. It is a practical fit for makers, students, and engineers who want reliable sensor data in embedded builds.
Key details include Working voltage: 0 – 5V.; Interface: Digital GPIO; Size: 32 x 19 x 30 mm..
Why you’ll love it
- Power range: 0 – 5V.
- Compact size: 32 x 19 x 30 mm.
- Useful spec: Incremental Encoder.
- Easy wiring: Digital GPIO
- Maker-friendly build: Easy to use in prototypes, classroom projects, and custom electronics
- Common controller support: Works well with Arduino, ESP32, Raspberry Pi, and similar boards
Compare with similar products
| Product | Sensor style | Standout |
|---|---|---|
| Rotary Encoder Module | rotation sensor with digital output | Current item |
| Rotary Encoder EC11 Module | rotation sensor | model EC11 |
| Rotation Sensor Rotary Encoder Analog | rotation sensor with analog output | analog output |
| Rotary Angle Sensor Grove | rotation sensor with analog output | analog output |
What you can build
This sensor is a good fit for wheel encoders, slot sensors, paper-feed monitors, shaft counters, and motor feedback.
Starter bundles
Pair it with an Arduino-compatible board, ESP32, or Raspberry Pi, plus a breadboard and jumper wires for quick setup and testing.
Recommended add-ons
Useful add-ons include a microcontroller board, jumper wires, and pull-up or pull-down support when needed, depending on how you plan to power, mount, and log the sensor.
Technical specifications
| Product | Rotary Encoder Module |
|---|---|
| Model | KY-040. |
| Working voltage | 0 – 5V. |
| Size | 32 x 19 x 30 mm. |
| Type | Incremental Encoder. |
| Weight | 10 gm. |
| Material | PCB + Brass. |
| Cycles per revolution (CPR) | 20. |
| Interface | Digital GPIO |
Wiring & usage notes
Connect power and ground, then wire the output pin to a digital GPIO input. Check whether the module uses active-high or active-low logic in your code. Motion sensors often need calibration in software to get the best accuracy. Mounting angle and vibration can change the result.
What’s in the box
1 × Rotary Encoder Module
Frequently Asked Questions
Rotary Encoder Module w/ Push Button - KY-040 Compatible
Rotary Encoder Module w/ Push Button - KY-040 Compatible
42 in stock
Product Code
SKU:AC093
Couldn't load pickup availability
