Shop by category
Shop all components
Encoders & Rotary Position Sensors · Generic
The M274 KY-040 is an incremental rotary encoder brick module designed for 5V microcontroller systems like Arduino, Raspberry Pi, and ESP32. It provides 20 pulses per revolution (CPR) with quadrature output for precise measurement of shaft rotation angle and direction.
📖Guide for this partKY-040 / EC11 Rotary Encoder Module→Learn how this part works on ElectrolarkFree guide, circuit simulator and quizBuy 10 or more to pay ₹43.70 each
Business and institution accounts get extra tier pricing. Sign in for 100+ pieces.
Parts you need to use it, or that are built with it in our projects.




Overview
The M274 KY-040 rotary encoder is an electromechanical incremental sensor that converts the angular position or motion of a shaft into a series of digital pulses. Its internal mechanism generates two square wave outputs (Channel A and B) in quadrature, allowing a connected microcontroller to determine both the degree of rotation and its direction with high resolution.
Built on a durable PCB with a brass shaft and mounting nut, this module is designed for direct integration into control panels and enclosures. The simple digital interface makes it a reliable choice for adding rotational user input to projects involving motor speed control, parameter adjustment, or positional feedback in mechatronic systems.
| Brand / part no. | Generic |
|---|---|
| Category | Encoders & Rotary Position Sensors |
| Encoder Type | Incremental |
| Module Weight | 10 g |
| Output Signal | Quadrature (A, B channels) Shaft Material / Thread Brass, 6.6mm diameter |
| Operating Voltage | 5V DC |
| Model / Part Number | M274 / KY-040 |
| Module Dimensions (L x W) | 32 mm x 19 mm |
| PCB Mounting Hole Diameter | 2.75 mm |
| Cycles Per Revolution (CPR) | 20 |
Typical values from the manufacturer's datasheet. Confirm the exact variant before you build a product around it.
Used in 5 of our project guides, with wiring and code.
Category: Encoders & Rotary Position Sensors; Encoder Type: Incremental; Module Weight: 10 g; Output Signal: Quadrature (A, B channels) Shaft Material / Thread Brass, 6.6mm diameter; Operating Voltage: 5V DC; Model / Part Number: M274 / KY-040. The full list is under Specifications.
It is used in 5 Geekobot projects, including Room thermostat with a rotary knob, Rotary-knob DC motor speed and direction controller and Precision servo positioner. Each project has the parts list, wiring and code.
Yes. Prices include GST and every order comes with a GST invoice. Add your GSTIN at checkout and we put it on the invoice for input credit.
Delivery is a flat ₹80 anywhere in India, and free on orders over ₹999. We ship from our Bengaluru and Guwahati warehouses, whichever is nearer to you, and the product page shows an estimated delivery date for your PIN code.
Yes, on eligible PIN codes for orders up to ₹5,000. A ₹150 COD charge is added at checkout, and checkout shows whether COD is available for your order. You can also pay by UPI, card or net banking.
Yes, if it arrives damaged, defective or is not what you ordered: tell us within 7 days of delivery and we collect it free and send a replacement or a full refund. We do not take back parts that are not faulty, so check the specs or ask us before you order. You can cancel for free until the order is dispatched.
Yes. The price per unit drops automatically at higher quantities, as shown in the price tiers above. For 100+ pieces or a purchase order, ask for a bulk quote.
Check the specifications for voltage and interface, or ask Geeko AI. It can suggest compatible boards and wiring.
Guides for this part and its category.
₹399.00
Incl. GST
₹3,365.00
Incl. GST
₹1,469.00
Incl. GST
₹389.00
Incl. GSTNo reviews yet. Bought or built with this? Be the first to review it.