Swiclick

Rotary Encoder Detents vs Pulses, PPR, and CPR Explained

1.rotary encoder detent mechanism vs A/B pulse signal diagram

Swiclick makes incremental rotary encoders, and two of their specs are often confused: detents and pulses. Detents are the mechanical click stops you feel as the shaft turns, set by the encoder’s mechanical detent mechanism, and they control the feel and how many positions the knob rests in. Pulses per revolution, or PPR, is the number of electrical pulse cycles produced per turn; incremental encoders commonly provide two phase-shifted outputs, A and B, that let the controller find direction and raise the decoded count. Counts per revolution, or CPR, is a third term that datasheets define inconsistently. In some conventions it refers to pulse cycles, while in others it refers to decoded counts, which can be four times PPR when all four A and B edges are counted. The point most designers miss is that detents and pulses are independent: a knob can have more detents than pulses, or the reverse. This post explains the difference and how to choose.

Detents Are the Feel

A detent is a mechanical rest position, created by the encoder’s mechanical detent mechanism as the shaft turns. Each detent gives a distinct click the user feels and hears, and provides a tactile resting position as the shaft turns. Detents are counted per full turn, for example 20 or 24 per revolution. They are purely mechanical, so a detent count tells you how the knob feels and how many steps a user senses, not how many electrical states the encoder produces.

Pulses and Counts Are the Signal

The electrical side is separate. As the shaft turns, the encoder outputs two phase-shifted square waves, A and B, which is what quadrature refers to. Pulses per revolution, or PPR, counts how many of these pulse cycles appear per turn. CPR is less standardized: when it means decoded counts per revolution, a quadrature decoder that reads all four A and B edges can produce four counts per pulse cycle, while some manufacturers use CPR to mean cycles, which equals PPR. Confirm the definition on the datasheet before you size the resolution.

Why Detents and Pulses Do Not Have to Match

Because one is mechanical and one is electrical, the two counts are set independently, and the ratio is a design choice. A common consumer part might pair fifteen pulses with thirty detents, giving two clicks per electrical cycle, while another offers twenty-four pulses with twenty-four detents. A part may use a one-to-one pulse-to-detent ratio, while another may provide two detents per pulse. The ratio affects how the tactile steps relate to the electrical output, but the exact A and B state at each detent must be confirmed from the specific encoder’s output specification. Pick the ratio for the balance you want between how the knob feels and how finely it counts.

rotary encoder detents versus pulses per revolution comparison

Where the Detent Falls in the A/B Sequence

The detent count alone does not tell you the electrical state at each click. Depending on the encoder, a detent may align with a particular A and B state or occur at a different point in the output sequence. This matters because the firmware must interpret transitions in a way that matches the encoder’s specified output waveform. Check the datasheet timing or output diagram rather than assuming that every detent corresponds to the same quadrature state.

3.rotary encoder detent position and A/B output state diagram

Choosing for Your Interface

Match the two counts to the job. A volume or menu knob wants clear detents for feel, and a modest PPR is usually enough. A smooth scroll or a fine parameter dial wants more resolution and sometimes fewer or no detents. Once you know the feel and the resolution you need, confirm the detent count, the PPR, and how the datasheet defines CPR, since those three decide both the experience and the code. Swiclick can match an encoder to the feel and resolution your interface needs.

Closing

If you are choosing a rotary encoder, tell us the detent feel, the resolution, and whether you need a push switch, and we will match the closest encoder and confirm how its datasheet defines pulses and counts.

FAQ

What is the difference between detents and pulses on a rotary encoder?

Detents are the mechanical click positions you feel as the shaft turns, created by the encoder’s detent mechanism. Pulses per revolution describe the electrical pulse cycles generated per turn. One relates to tactile feel, the other to the electrical output, and the two do not have to match.

What is the difference between PPR and CPR?

PPR describes the number of pulse cycles generated per revolution. CPR is less standardized: when it means decoded counts, a quadrature decoder using all four A and B edges can produce four counts per pulse cycle, while some datasheets use CPR to mean cycles. Always check the manufacturer’s definition.

Why does my encoder have a different number of detents and pulses? 

Because the mechanical clicks and the electrical cycles are set independently. A ratio such as fifteen pulses to thirty detents is a deliberate trade-off between how the knob feels and how finely it counts.

Why does my encoder count skip or jump? 

Skipped or extra counts can come from contact bounce, an unsuitable decoding routine, sampling timing, or a mismatch between the firmware and the encoder’s specified A and B sequence. Check the output waveform and recommended signal-conditioning conditions in the datasheet before changing the count logic.

Do more detents mean higher resolution?

No. More detents can provide more tactile positions without increasing the encoder’s specified pulses per revolution. The number of counts the controller ultimately uses also depends on how the A and B signals are decoded.

How do I choose an encoder for a volume knob? 

Prioritize clear detents for feel, with a PPR that suits the control. Confirm the detent count, the PPR, the manufacturer’s CPR definition, and the specified A and B output waveform before finalizing the decoding routine.

Talk to an engineer

Tell us your application and the specs you need, and our engineers will match a Swiclick switch and share its datasheet and pinout. Free samples ship 1 to 50 for validation before volume.

Written by Eric Chen, Application Engineer, Swiclick.

Leave a Reply

Your email address will not be published. Required fields are marked *