SKU: SENS-2725
📋 GST Invoice Available

Generic M274 KY-040 Incremental Rotary Encoder Brick Module - 20 CPR, 5V DC

₹46.00 (Inclusive of all taxes)
Out of Stock

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.

Features

  • Incremental encoder with 20 cycles per revolution (CPR) for precise angular measurement.
  • Operates on a standard 5V DC supply, compatible with Arduino, Raspberry Pi, and other 5V logic systems.
  • Quadrature output (A, B channels) provides both rotation amount and direction data.
  • Compact brick-style PCB module with a 6.6mm threaded brass shaft for secure panel mounting.
  • Ideal for motor control, menu navigation, and digital potentiometer simulation in DIY and prototyping projects.

Out of stock

Description

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.

Key Features

  • High-precision incremental encoding with 20 pulses per full 360-degree revolution.
  • Standard 5V TTL-compatible digital output signals for easy microcontroller interfacing.
  • Robust brass shaft construction with a 6.6mm threaded diameter for stable panel mounting.
  • Compact PCB brick form factor (19mm x 32mm) for space-constrained installations.
  • Quadrature phase output enables reliable direction detection and noise immunity.
  • Optimized performance-to-cost ratio for educational, hobbyist, and prototyping applications.

Applications

  • Stepper and servo motor speed and position control in robotics and CNC systems.
  • User interface knob for parameter adjustment in audio equipment, instrumentation, and embedded systems.
  • Digital potentiometer replacement for volume control or brightness adjustment circuits.
  • Rotational input device for menu navigation on LCD displays in DIY projects.
  • Angular position feedback for small-scale mechanical assemblies and educational models.

Technical Specifications

Model / Part NumberM274 / KY-040
Encoder TypeIncremental
Cycles Per Revolution (CPR)20
Operating Voltage5V DC
Output SignalQuadrature (A, B channels)
Shaft Material / ThreadBrass, 6.6mm diameter
PCB Mounting Hole Diameter2.75 mm
Module Dimensions (L x W)32 mm x 19 mm
Module Weight10 g

Frequently Asked Questions

What is the operating voltage range for the M274 KY-040 encoder?

The M274 KY-040 rotary encoder module is designed to operate at a standard 5V DC supply. It outputs TTL-level signals compatible with 5V logic microcontrollers like most Arduino boards. Do not exceed 5V on the VCC pin to prevent damage to the internal circuitry.

How do I interface this encoder with an Arduino or Raspberry Pi?

Connect the module's VCC and GND pins to your board's 5V and ground. The CLK (Channel A) and DT (Channel B) output pins should be connected to digital input pins on your microcontroller. Use a library like the Arduino Encoder library to read the quadrature pulses, which will provide counts for rotation and the direction.

What does '20 CPR' mean, and how is it used?

CPR stands for Cycles Per Revolution. This encoder generates 20 complete square wave cycles (20 pulses on Channel A and 20 on Channel B) per full 360-degree shaft rotation. By counting these pulses, your code can calculate the angle of rotation. The quadrature relationship between the two channels allows you to detect the direction of rotation.

How do I physically mount this encoder module?

The module features a brass shaft with a 6.6mm threaded section. Drill a suitable mounting hole in your panel, insert the shaft, and secure it from the back using the provided nut. The PCB has two 2.75mm holes for additional screw mounting if required for stability.

Package Includes

  • 1 x M274 KY-040 Rotary Encoder Brick Module

Additional Information

Weight 0.01 kg
Dimensions 3.2 × 1.9 cm