An encoder is a rotary sensor that converts rotational displacement into a series of digital pulse signals. By rotating, it can count the number of pulses output during the forward and reverse rotations. Unlike a potentiometer, this type of rotational count is unlimited. By using the button on the rotary encoder, certain specific functions can be implemented. The reading system typically employs a differential method, where two identical waveforms with a phase difference of 180° are compared to improve the quality and stability of the output signal. Encoders are widely used in applications such as automotive volume control and air conditioning adjustment. Parameters Model: HS-S32AOperating Voltage: 3.3-5.5VConnector Type: 2.54mm 5P straight pin headerMounting Hole Specifications: Hole diameter 3mm, Hole distance 10mmModule Dimensions: Length 3.8cm, Width 2cm, Height 3cmPin Description: V (Connect to power positive) G (Connect to power ground) SW (Button switch) DT (Data) CLK (Clock) Schematic Diagram