DISCONNECTED
Controls
Rotation / Position
ROTARY ENCODER

A rotary encoder converts shaft rotation into electrical pulses. The quadrature output (two 90°-phase-shifted signals A and B) allows a microcontroller to determine both direction and speed of rotation.

Specifications
Supply voltage3.3 – 5 V
Resolution20 PPR (pulses per revolution)
OutputQuadrature A, B + push switch
Max speed∼ 600 RPM
Switch life50,000 cycles
Package5-pin module with shaft
How It Works

Two offset Hall sensors or optical interrupts produce signals A and B, each 90° out of phase. If A leads B, rotation is clockwise; if B leads A, it is counter-clockwise. Counting edges gives absolute position; edge rate gives velocity.

Typical Use Cases
Menu navigation Motor feedback CNC positioning Volume control Stepper driver Pan-tilt mount
Limitations

Incremental — loses position on power cycle (add battery backup or home on startup). Requires interrupt pins or fast polling to avoid missed pulses at high speed. Mechanical encoders suffer from switch bounce.

Data In
System
Q & A

Sign in to chat with Claude about this sensor.

Settings

Reference Document

Uploaded docs ground Claude's answers in your course material. Stored per user, persists across sessions.

Sign in