Contact Us
  • Home
  • COMPONENTS
  • Rotary Encoders and Optical Encoders for Motion Feedback

Rotary Encoders and Optical Encoders for Motion Feedback

Contacting encoders give 12 or 24 pulses per turn for a front panel knob, with detents and a push switch in the same body. Reflective optical encoders resolve 75 to 180 lines per inch on a codewheel and need no shaft coupling. A magnetic part reads absolute angle as 12 bit over I2C for motor and valve feedback. Each row lists pulses or lines, output type, supply and mounting, because those decide the firmware and the bracket.
quote now

Product Specifications

Product Overview

A rotary encoder turns a mechanical angle into a signal a microcontroller can count, and the three families that do it are picked by what the firmware needs rather than by price. A contacting encoder closes a pair of gold plated contacts as the shaft turns and gives two square waves in quadrature, so the host counts edges for position and compares the phase of the two channels for direction. It is the least expensive option, it works from a single 5 V rail at a few milliamps, and it needs two pull up resistors and two small filter capacitors. What it cannot do is turn fast: the contacts bounce for about 2 ms, which caps the usable speed at 60 rpm on the PEC11R family and 100 rpm on the PEC12R, and the contacts wear out after 30,000 cycles.

A reflective optical encoder removes the contacts. An LED and a photodetector array sit in one surface mount package, a codewheel with printed windows passes over them, and the detector outputs logic levels directly. There is no contact wear, no bounce, and the resolution is set by the codewheel, not by the package: the AEDR-8300 series is offered at 36, 75, 150 and 180 lines per inch, and with two channel quadrature the host counts four edges per line, so a 180 line wheel on a 25 mm radius gives about 1,130 counts per turn. The trade is mechanical: the gap between the package and the codewheel has to be held to a fraction of a millimetre, the wheel has to be concentric within about 0.1 mm, and the optical radius of 11 mm is part of the datasheet because the geometry sets the duty cycle.

An absolute magnetic encoder answers a different question. Instead of counting edges from an unknown start, it reports the angle directly, so the host knows where the shaft is the moment power is applied. The AS5600 uses four Hall elements under a diametrically magnetised magnet, resolves 12 bit over a full turn, and puts the result on I2C, on a ratiometric analog output or on a PWM pin. The zero angle and the maximum angle are programmable, which lets a 90 degree valve be mapped across the whole output range, and the part reports when the magnet is missing or too weak.

The mechanical details decide whether a part can be used at all. A contacting encoder for a front panel has a threaded bushing, a flatted or knurled shaft and a detent option, and the detent count has to match the pulse count or the knob will feel as if it skips. The PEC11R series is ordered as a code that carries shaft length, shaft style, detent option, switch option and pulses per turn in one string, which is why two parts that look identical on a photograph can behave differently. The optical parts are ordered the same way: resolution, channel count and packaging are all inside the ordering code.

The table below covers the three families we quote most often. Pulses per turn, lines per inch, supply range, output format, speed limit, rotational life and mounting come from the maker data sheet for each order code, and no figure is carried across from a different family.

Key Specifications

ParameterContacting, PEC11RReflective optical, AEDR-8300Magnetic absolute, AS5600
Sensing methodGold plated contact brushes on a code discLED and photodetector array reading a codewheelFour Hall elements under a diametric magnet
Resolution12, 18 or 24 pulses per turn (48 to 96 counts)36, 75, 150 or 180 lines per inch12 bit, 4096 steps per turn
Output2 bit quadrature code2 channel TTL quadrature, single channel optionI2C, ratiometric analog or PWM
Supply5 V DC, 10 mA contact rating5.0 V, 3.3 V to 5 V on the 212 LPI version3.3 V direct or 5.0 V through the internal LDO
Speed limit60 rpm operating, 2.0 ms contact bounceSet by the codewheel and the host filter, not by contactsNo mechanical limit, the magnet is contactless
Rotational life30,000 cycles minimumNo contact wearNo contact wear
Operating temperature-30 C to +70 C-20 C to +85 C-40 C to +125 C
Mounting12 mm body, threaded bushing, PC pinsSurface mount leadless, 3.96 x 5.12 x 1.63 mmSOIC-8, magnet on the shaft end
ExtrasPush momentary switch option, detentsOptical radius 11 mm, gap set by the wheelProgrammable zero and full scale, magnet detection

Included Models and Order Codes

The table lists the order codes we quote most often for panel knobs, motor feedback and linear stages. Resolution, output, supply, shaft or package and temperature come from the maker data sheet for that code. The contacting codes are read left to right: body, detent option, shaft length, shaft style, switch option and pulses per turn, so a change in one character changes the feel of the knob as well as the signal.

Part NumberTypeResolutionOutputSupplySpeed or LifeMounting
PEC11R-4015F-S0024Contacting incremental24 pulses per turn2 bit quadrature plus push switch5 V, 10 mA60 rpm, 30,000 cycles12 mm body, 15 mm flatted shaft, PC pin
PEC11R-4220F-S0012Contacting incremental12 pulses per turn, 24 detents2 bit quadrature plus push switch5 V, 10 mA60 rpm, 30,000 cycles12 mm body, 20 mm flatted shaft, PC pin
PEC12R-4225F-S0024Contacting incremental24 pulses per turn, 24 detents2 bit quadrature plus push switch5 V, 10 mA100 rpm, 30,000 cycles12 mm body, 25 mm shaft, IP40
AEDR-8300-1K2Reflective optical75 lines per inch2 channel TTL quadrature5.0 VNo contact wearSMT, 3.96 x 5.12 x 1.63 mm
AEDR-8300-1P2Reflective optical150 lines per inch2 channel TTL quadrature5.0 VNo contact wearSMT, 3.96 x 5.12 x 1.63 mm
AEDR-8300-1Q2Reflective optical180 lines per inch2 channel TTL quadrature5.0 VNo contact wearSMT, 3.96 x 5.12 x 1.63 mm
AEDR-8320-1Q0Reflective optical, analog180 lines per inch2 channel analog, interpolated by the host5.0 VNo contact wearSMT, 6.50 x 4.20 x 1.69 mm
AEDR-8300-1W2Reflective optical212 lines per inch2 channel TTL quadrature3.3 V to 5.0 VNo contact wearSMT leadless
AS5600Magnetic absolute12 bit, 4096 stepsI2C, analog, PWM3.3 V or 5.0 VContactlessSOIC-8 plus 6 mm magnet

Key Features

Quadrature gives direction for free – two channels 90 electrical degrees apart let the host read direction from which channel leads, so a single input capture pin per channel is enough and no second sensor is needed.

Detents must match the pulse count – on the PEC11R a 12 pulse code with 24 detents reports two counts per click, which is what a menu encoder wants, while 24 pulses with 24 detents reports one count per click and feels like a fine trim.

Bounce sets the filter, not the firmware loop – contact bounce is 2.0 ms maximum at 15 rpm, so a 1 ms sampling loop will see false edges unless a hardware RC or a software debounce of 3 ms to 5 ms is added.

Optical parts move the resolution to the wheel – the same AEDR-8300 package covers 36 to 180 lines per inch, so a product that needs more counts changes the codewheel rather than the board.

Analog optical output for interpolation – the AEDR-8320 puts out two sinusoids instead of logic levels, and an external interpolator turns 180 lines per inch into 4,096 to 7,840 counts per turn for fine positioning.

Absolute angle at power up – the AS5600 reports the shaft angle immediately after reset, so a valve or a gimbal does not need a homing move before it knows where it is.

Applications

These parts are quoted for products that need to know an angle or a position, typically where:

Front panel knobs and menu encoders – a contacting encoder with detents and a push switch gives the click feel and the select action in one 12 mm body, and the 24 pulse code gives two counts per click for a fast menu.

Motor and actuator feedback – an optical encoder on the motor shaft or a magnetic part on the output shaft closes the loop, and the magnetic route avoids a coupling and a codewheel inside a sealed gearbox.

Linear stages and printers – a reflective encoder reading a linear codestrip gives position along the axis without a rack, and the 180 line strip at 7.09 lines per mm is the resolution the carriage needs.

The encoder sits on the same front panel board as the display and the keypad, so it is quoted with the SUPERB PCB and the SUPERB PCBA build for that assembly.

Sourcing and Cross-Reference

Selection starts with the counts per turn the firmware needs and the speed it has to read them at. A panel knob turns at hand speed, so a contacting part at 60 rpm is enough and costs the least. A motor shaft at 3,000 rpm needs an optical or magnetic part, because the contact bounce of a mechanical encoder is longer than the time between two edges at that speed.

The second check is mechanical. A contacting encoder needs a panel cut out, a bushing thread and a knob that fits the shaft, and the shaft length in the order code has to match the panel thickness plus the knob depth. An optical part needs a codewheel, a hub and a gap that stays inside the datasheet window over temperature, and the wheel has to be balanced if the shaft turns fast. A magnetic part needs the magnet centred within 0.25 mm of the package centre with a 6 mm magnet, and the field has to stay inside the linear range of the Hall elements.

Where an order code has gone to a not recommended for new builds status, or where the exact code cannot be found, the replacement is checked on resolution, output format, supply, shaft or package and temperature at once. A part that matches the pulses but not the detent count changes the feel of the product, and a part that matches the resolution but not the optical radius will not read the existing codewheel. The route for that check is on our source obsolete components page, and the mechanical comparison is on pin to pin cross reference.

For volume builds, SUPERB Assembly support covers the encoder footprint, the pull up and filter parts on the two channels and the shaft clearance in the panel drawing.

Q: Can you confirm whether PEC11R-4015F-S0024 has detents, and quote the matching knob and the 24 detent code as an alternative?

A: Yes. Send the counts per turn, the shaft or wheel drawing and the supply rail, and the SUPERB Tech team will confirm the order code, the detent count and the filter values from the maker data sheet before quoting.

Why Buyers Source Encoders Through SUPERB

  1. Order code read back before quoting: the detent, shaft and switch characters are confirmed against the data sheet, because two codes that differ by one character give a different knob feel.
  2. Counts per turn stated, not just pulses: quadrature doubles or quadruples the pulse figure, and the quotation gives the count the firmware will actually see.
  3. Speed limit stated with the reason: the 60 rpm and 100 rpm figures come with the 2.0 ms bounce that causes them, so a motor application is not quoted a contacting part by mistake.
  4. Wheel and magnet hardware named: optical radius, gap and magnet diameter are given with the part, which is what the mechanical drawing needs before the bracket is cut.

Related Product Families

This page is part of the component range we supply for industrial, telecom, medical and defence builds. Continue with: Sensors and detectors, Digital potentiometers, Gyroscopes, Ambient light and proximity sensors, Ultrasonic distance sensors, Sourcing obsolete components, Component lead time solutions.