HOW-TO GUIDE

How to Test a Rotary Encoder With a Multimeter

A mechanical rotary encoder is the endless-turning knob on amplifiers, 3D printer screens, car stereos and microwave panels. Inside are two switch contacts, A and B, that open and close slightly out of step as the shaft turns. To test a rotary encoder with a multimeter you turn it very slowly, one detent at a time, and record whether each contact is open or closed to the common pin. A good encoder steps through a fixed four-state pattern; a worn one skips states or chatters.

By the OhmSavvy Research Team ·

Fluke 179 digital multimeter
Continuity and resistance are the only ranges a static encoder test needs. See our Fluke 87V vs Fluke 179 comparison.

Encoder pins: A, B, C and the switch

The common panel-mount mechanical encoder has three pins on one side and, if it has a push function, two on the other. On many parts the middle pin of the three is the common (C), with A and B either side, but layouts differ, so check the datasheet when you have one.

A (channel A)

First switch contact. Opens and closes as the shaft turns.

B (channel B)

Second contact, offset by a quarter cycle from A.

C (common)

Shared terminal both contacts connect to, usually grounded.

SW pins

Separate momentary switch, closed while the knob is pressed.

ABCopenclosedpush switch(separate pins)here A–C is open and B–C closed: state 01
Inside, A and B are two wipers riding over a ring of contact pads. Because their pads are offset, one contact always changes state before the other, which is how the controller knows the direction.

1Identify the pins

Remove power and, ideally, take the encoder off the board or at least disconnect it from the controller so pull-up resistors don't confuse the reading. Put the meter on continuity. The common is the one pin that beeps against both of the other two at some point in the rotation. A and B never beep against each other directly. The two pins that beep only while you push the shaft are the switch.

2Step through each detent

Hold one probe on C. Check A, then B, and write each down as 1 (closed) or 0 (open), using whichever convention you like as long as it stays consistent. Click the knob one detent clockwise and repeat. Then turn very slowly between detents and watch for the intermediate states. Do a full revolution in both directions; the pattern should be identical every time and reverse cleanly when you reverse.

  1. 01

    Isolate

    Power off, unplug the controller

  2. 02

    Find C

    Beeps to both A and B

  3. 03

    Log rest state

    A and B at each click

  4. 04

    Creep between

    Catch the in-between states

  5. 05

    Reverse

    Pattern runs backwards

The quadrature state table

A and B follow a two-bit Gray code: only one of them changes at each step. Turning one way gives 00, 01, 11, 10 and back to 00; turning the other way runs the same list backwards. Which direction counts as clockwise depends on the part and the wiring. The controller decodes direction from which channel changes first, so a missing or doubled state shows up as a skipped step or a step backwards.

StepA to CB to CState (A B)
StartOpenOpen0 0
Quarter cycleOpenClosed0 1
Half cycleClosedClosed1 1
Three quartersClosedOpen1 0
Full cycleOpenOpen0 0
AB0001111000high = contact closed in this drawing
Channels A and B as square waves against shaft angle. B leads A by a quarter cycle in this direction; turn the other way and A leads. Only one edge happens at each state change.

How many of those states you see per click depends on the encoder. Parts with equal detents and pulses per revolution complete the whole cycle in one click and always rest at the same state, often 00. Parts with twice as many detents as pulses rest alternately at 00 and 11. Neither is a fault; the datasheet tells you which you have.

3Check for bouncy or worn contacts

Switch to the lowest resistance range and hold the shaft at a position where A is closed. A clean contact reads close to your shorted-lead figure, typically well under an ohm. Press the knob gently sideways and rock it inside the detent: the reading should stay put. Repeat for B. Then creep the shaft through a transition while listening to the continuity beeper; a crisp single chirp is good, a stutter or crackle of several beeps is contact bounce you can hear.

14.6ΩΩ A to C, closed
A closed contact reading 14.6 Ω instead of a fraction of an ohm: enough for some controllers to misread, and a sign of a dirty or worn track.

4Test the push switch

Put the probes on the two switch pins. The meter should read OL at rest and beep the instant you press the shaft, with no flicker as you hold it down, at several different knob positions. Also check that neither switch pin has continuity to A, B or C; on most encoders the switch is fully isolated from the rotary contacts, although some designs share the common, so confirm against the datasheet before treating a connection as a fault.

What a multimeter can't show

A meter updates a few times a second, while a knob turned at normal speed produces edges a few milliseconds apart, and bounce lasts less than that. The slow detent test proves the contacts and sequence are right; to see bounce and timing at real speed, add pull-up resistors and watch A and B on an oscilloscope or logic analyzer. As a halfway check, wire 10 kΩ pull-ups from A and B to 5V, ground C, and read each channel on DC volts: about 5V means open, near 0V means closed.

Reading the results

What you findLikely cause
Clean 00, 01, 11, 10 sequence both ways, low closed resistanceEncoder healthy; check pull-ups, firmware and wiring
One channel never closesBroken contact finger or open pin on that channel
One channel never opensShorted contact or debris bridging the track
States missing or out of order when creepingWorn track or bent wiper
Closed reading several ohms or wandering when rockedDirty, oxidised or worn contacts
Beeper stutters at each transitionContact bounce; a likely cause of skipped or reversed steps
Smooth resistance change between pins, end stopsIt's a potentiometer, not an encoder

A contact that reads OL when you expected it closed is an open path, as our OL explainer describes, and a beep that cuts in and out while you hold the knob still points to the same kind of intermittent contact covered in our intermittent continuity guide.

Meters suited to encoder testing

Encoder checks lean on the continuity beeper and the low ohms range, so the most useful feature is a beeper that responds quickly enough to reveal contact bounce as you creep through a detent. Any meter with a resistance range and a fast beeper will do; voltage ratings hardly matter on a low-voltage control panel. Compare options in our best multimeters roundup.

Meters for switch and encoder checks

Fluke 179 True RMS digital multimeter
Fluke 179

6,000-count display with analog bar graph and Min/Max-Average recording; CAT IV 600V / CAT III 1000V.

KAIWEETS KM200s True RMS digital multimeter
KAIWEETS KM200s

Budget auto-ranging True RMS meter with a backlit display, fine for knobs and switches on hobby boards.

UNI-T UT139C True RMS digital multimeter
UNI-T UT139C

True RMS, 6,000-count and manual ranging, so you can lock the ohms range while stepping the shaft.

As an Amazon Associate I earn from qualifying purchases. Prices and availability are shown on Amazon.

Frequently asked questions

How do I tell a rotary encoder from a potentiometer?

A potentiometer stops at both ends of its travel and shows a resistance that changes smoothly between its outer pins as you turn it. A mechanical encoder turns endlessly, usually clicks through detents, and each of its signal pins reads either near zero ohms or open to the common, never anything in between.

Why does my encoder rest with both contacts closed on some detents and both open on others?

That's normal for encoders with twice as many detents as pulses per revolution. Each click moves through half a quadrature cycle, so the rest state alternates between 00 and 11. Encoders with equal detents and pulses go through a full cycle per click and rest in the same state every time. The datasheet lists both numbers.

Can a multimeter test an optical or magnetic encoder?

Not with continuity. Optical and magnetic encoders contain electronics and need a supply voltage before they produce any output. You can power one at its rated voltage and read the A and B outputs as DC levels while turning the shaft slowly, but the fast pulse train needs an oscilloscope or logic analyzer.

My volume knob jumps or goes the wrong way. Is the encoder bad?

Very often, yes. Worn or dirty contacts bounce, and the controller decodes the extra edges as steps in the wrong direction. If the slow detent test shows clean states, check the firmware's debounce settings, missing pull-up resistors and the solder joints before replacing the part.

Can contact cleaner fix a worn rotary encoder?

On open-frame encoders it sometimes helps for a while when the cause is dirt or oxidation. It won't restore worn contact tracks, and it can wash out lubricant. Small encoders are inexpensive, so replacement with a part of the same pulse and detent count is usually the lasting fix.

Where to go next

More multimeter guides and reviews