Component guide · Intermediate · 6 min read
Industrial Incremental Encoders

Hengstler RI32, RI38 and RI58, Hongyan EC25 to EC56 Hollow Shaft and RS11, Jayashree J-40S, J-50S and J-58B, HS-S32 600 PPR, 1000 PPR and ZKP3808 2000 PPR, ZSS600 CNC Hand Wheels and Mounting Bracket
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
An incremental encoder gives two square waves, A and B, as its shaft turns, plus an index pulse Z once per turn on many models. Count the pulses for position and time them for speed; the order of A and B gives direction. PPR is pulses per revolution, so a 600 PPR encoder gives 2400 counts per turn when you count every edge. Check the output type before wiring.
Key specs at a glance
- Resolution
- 20 to 5000 PPR
- Outputs
- NPN open collector, push-pull, voltage or RS422 line driver
- Supply
- 5V or 5-24V / 10-30V DC
- Shafts
- Solid 6 to 10mm, or hollow and blind shaft
- Speed
- Up to 4500-6000 RPM mechanically
- Protection
- IP50 to IP65
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Hengstler RI32-0/1000ER.14KB Rotary Encoder, Optical, Incremental, 1000 PPR, Horizontal, Without Push Switch₹31,799
Option 2Hengstler RI32-0/360ER.14KB Rotary Encoder, Optical, Incremental, 360 PPR, 0 Detents, Horizontal, Without Push Switch₹31,869
Option 3Hengstler RI38 Series 0529104 Rotary Encoder, Optical, Incremental, 100 PPR, Horizontal, Flange Mount₹37,129
Option 4Hengstler RI38 Series 0529110 Rotary Encoder, Optical, Incremental, 500 PPR, Horizontal, Without Push Switch₹33,209
Option 5Hengstler RI58-0/5000AS.41RB Rotary Encoder, Optical Incremental, 5000 PPR, RS422 + Alarm Output, Horizontal Mount, 6mm Solid Shaft₹37,479
Option 6Hengstler RI58-D/5000ED.37IB Rotary Encoder, Optical Incremental, 5000 PPR, 0 Detents, Horizontal, Without Push Switch₹67,159
What the Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) is
Industrial incremental shaft encoders, such as the Omron E6B2 and similar, output A and B pulse trains (and sometimes Z) as a shaft turns, for speed and position on motors and conveyors.
Use them for conveyor and wheel distance, motor speed feedback, CNC jog wheels and measuring wheels. Mount with a flexible coupling or a spring arm on hollow-shaft models; a rigid joint will wreck the bearings.
NPN open-collector outputs need a pull-up to your logic voltage: enable INPUT_PULLUP or fit 4.7k to 3.3V or 5V, and power the encoder from 5-24V with a common ground. RS422 line-driver models (A, A-, B, B-) need an RS422 receiver such as an AM26LS32. Never feed a 24V push-pull output straight into a microcontroller pin.
Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) pinout
The pins on the Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) and what each one does.
| Pin | Function |
|---|---|
| Red / Brown | VCC (5-24V) |
| Black / Blue | 0V |
| Green / White | A |
| White / Black | B |
| Yellow / Orange | Z index (if fitted) |
| Shield | To 0V at the controller end |
- Red / Brown
- VCC (5-24V)
- Black / Blue
- 0V
- Green / White
- A
- White / Black
- B
- Yellow / Orange
- Z index (if fitted)
- Shield
- To 0V at the controller end
Wiring the Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32)
Wire colours differ by maker; always follow the label or data sheet.
| Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) pin | Connection | Note |
|---|---|---|
| VCC | 5-24V supply | Per the label |
| 0V | GND | Common with Arduino |
| A | D2 | Interrupt pin, pull-up to 5V |
| B | D3 | Interrupt pin, pull-up to 5V |
| Z | D4 | Optional |
- VCC
- Connection:
- 5-24V supply
- Note:
- Per the label
- 0V
- Connection:
- GND
- Note:
- Common with Arduino
- A
- Connection:
- D2
- Note:
- Interrupt pin, pull-up to 5V
- B
- Connection:
- D3
- Note:
- Interrupt pin, pull-up to 5V
- Z
- Connection:
- D4
- Note:
- Optional
Example code
Counting CHANGE on A gives 2 counts per pulse. For fast shafts, use an ESP32 PCNT unit or the Encoder library.
volatile long count = 0;
const int A = 2, B = 3;
const int PPR = 600;
void onA() { count += (digitalRead(A) == digitalRead(B)) ? 1 : -1; }
void setup() {
Serial.begin(115200);
pinMode(A, INPUT_PULLUP);
pinMode(B, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(A), onA, CHANGE);
}
void loop() {
noInterrupts(); long c = count; interrupts();
Serial.print(c); Serial.print(" counts, ");
Serial.print(c / (2.0 * PPR), 3); Serial.println(" turns");
delay(200);
}Setup and tuning
check NPN open collector, push-pull or line driver output; open collector needs pull-ups.
most run on 5 to 24 V; match the input voltage of your controller.
use optocouplers or dividers for 12 to 24 V outputs into 3.3 or 5 V pins.
connect the shaft with a flexible coupling to avoid bearing stress.
count A and B with interrupts or a hardware encoder counter for direction.
What you need
Shop this list20 of 20 found in our store · ₹2,55,357
Hengstler RI32-0/1000ER.14KB Rotary Encoder, Optical, Incremental, 1000 PPR, Horizontal, Without Push Switch: the part this guide coversHengstler RI32-0/1000ER.14KB Rotary Encoder, Optical, Incremental, 1000 PPR, Horizontal, Without Push Switch₹31,799
Hengstler RI32-0/360ER.14KB Rotary Encoder, Optical, Incremental, 360 PPR, 0 Detents, Horizontal, Without Push Switch: another version this guide coversHengstler RI32-0/360ER.14KB Rotary Encoder, Optical, Incremental, 360 PPR, 0 Detents, Horizontal, Without Push Switch₹31,869
Hengstler RI38 Series 0529104 Rotary Encoder, Optical, Incremental, 100 PPR, Horizontal, Flange Mount: another version this guide coversHengstler RI38 Series 0529104 Rotary Encoder, Optical, Incremental, 100 PPR, Horizontal, Flange Mount₹37,129
Hengstler RI38 Series 0529110 Rotary Encoder, Optical, Incremental, 500 PPR, Horizontal, Without Push Switch: another version this guide coversHengstler RI38 Series 0529110 Rotary Encoder, Optical, Incremental, 500 PPR, Horizontal, Without Push Switch₹33,209
Hengstler RI58-0/5000AS.41RB Rotary Encoder, Optical Incremental, 5000 PPR, RS422 + Alarm Output, Horizontal Mount, 6mm Solid Shaft: another version this guide coversHengstler RI58-0/5000AS.41RB Rotary Encoder, Optical Incremental, 5000 PPR, RS422 + Alarm Output, Horizontal Mount, 6mm Solid Shaft₹37,479
Hengstler RI58-D/5000ED.37IB Rotary Encoder, Optical Incremental, 5000 PPR, 0 Detents, Horizontal, Without Push Switch: another version this guide coversHengstler RI58-D/5000ED.37IB Rotary Encoder, Optical Incremental, 5000 PPR, 0 Detents, Horizontal, Without Push Switch₹67,159
Hongyan Technology EC25-20P Hollow Shaft Incremental Encoder – 5-Pin Plug-in: another version this guide coversHongyan Technology EC25-20P Hollow Shaft Incremental Encoder – 5-Pin Plug-in₹71
Hongyan Technology EC28A C15H15P3 Hollow Shaft Incremental Encoder – 4096 P/R, 1024H: another version this guide coversHongyan Technology EC28A C15H15P3 Hollow Shaft Incremental Encoder – 4096 P/R, 1024H₹51
Hongyan Technology EC3501 C15H15P3 Hollow Shaft Encoder: another version this guide coversHongyan Technology EC3501 C15H15P3 Hollow Shaft Encoder₹48
Hongyan Technology Technology EC3501 C15H30P3 Hollow Shaft Encoder: another version this guide coversHongyan Technology EC3501 C15H30P3 Hollow Shaft Encoder₹92Closest match, check the specs
Hongyan Technology EC43-20P20 Hollow Shaft Encoder: another version this guide coversHongyan Technology EC43-20P20 Hollow Shaft Encoder₹239
Hongyan Technology EC56-15P30 Hollow Shaft Encoder – 15P30 Resolution: another version this guide coversHongyan Technology EC56-15P30 Hollow Shaft Encoder – 15P30 Resolution₹179
Hongyan Technology RS11 Threadless Insert – RS11A Model: another version this guide coversHongyan Technology RS11 Threadless Insert – RS11A Model₹40
Hongyan Technology RS11A Rotary Encoder – M8 Thread Insert: another version this guide coversHongyan Technology RS11A Rotary Encoder – M8 Thread Insert₹46
Jayashree Encoders J-50S Shaft Encoder (SG) – IP50/IP54, 4500 RPM, 4kg Radial Load: another version this guide coversJayashree Encoders J-50S Shaft Encoder (SG) – IP50/IP54, 4500 RPM, 4kg Radial Load₹3,779
Jayashree Encoders Encoders J-58B (SG) Servo Mount Encoder – 1024 PPR, IP65/IP50, 2m Cable: another version this guide coversJayashree Encoders J-58B (SG) Servo Mount Encoder – 1024 PPR, IP65/IP50, 2m Cable₹3,899
Jencoder J-40S (SG) Shaft Encoder – 40mm Size, 4500 RPM, IP54, Stainless Steel Shaft: another version this guide coversJencoder J-40S (SG) Shaft Encoder – 40mm Size, 4500 RPM, IP54, Stainless Steel Shaft₹3,719
Jencoder J-58B SERVO MOUNT Encoder – IP50/IP65, 6000 RPM, 2m Cable: another version this guide coversJencoder J-58B SERVO MOUNT Encoder – IP50/IP65, 6000 RPM, 2m Cable₹4,209
HS-S32-L Rotary Encoder 600 PPR Incremental Optical Encoder – NPN Open Collector Output, 5-24V DC: another version this guide coversHS-S32-L Rotary Encoder 600 PPR Incremental Optical Encoder – NPN Open Collector Output, 5-24V DC₹192
Generic HS-S32A Rotary Encoder – 600 PPR, NPN Open Collector, 5-24V DC: another version this guide coversHS-S32A Rotary Encoder – 600 PPR, NPN Open Collector, 5-24V DC₹149
Alternatives and when to choose them
- Optical and absolute encoders: how encoders work.
- Absolute industrial encoders: position kept at power-up.
- Rotary encoders: panel knobs.
Common mistakes to avoid
- Connecting 24 V outputs to a 5 V pin.
- Using a rigid coupling.
- Leaving out pull-ups.
- Polling instead of interrupts.
Frequently asked questions
How many pulses per revolution do I need?
Pick the PPR for your required resolution, such as 600 PPR for general use.
Why do I need pull-up resistors?
NPN open collector outputs only pull low; the pull-up makes the high level.
Can I connect a 24 V encoder to Arduino?
Use optocouplers or a divider; never directly.
How do I get direction?
Read both A and B channels in quadrature.
Why does the count miss pulses?
The code is too slow; use interrupts or a hardware counter.
Parts for this guide
Hengstler RI32-0/1000ER.14KB Rotary Encoder, Optical, Incremental, 1000 PPR, Horizontal, Without Push Switch₹31,799View
Hengstler RI32-0/360ER.14KB Rotary Encoder, Optical, Incremental, 360 PPR, 0 Detents, Horizontal, Without Push Switch₹31,869View
Hengstler RI38 Series 0529104 Rotary Encoder, Optical, Incremental, 100 PPR, Horizontal, Flange Mount₹37,129View
Hengstler RI38 Series 0529110 Rotary Encoder, Optical, Incremental, 500 PPR, Horizontal, Without Push Switch₹33,209View
Hengstler RI58-0/5000AS.41RB Rotary Encoder, Optical Incremental, 5000 PPR, RS422 + Alarm Output, Horizontal Mount, 6mm Solid Shaft₹37,479View
Hengstler RI58-D/5000ED.37IB Rotary Encoder, Optical Incremental, 5000 PPR, 0 Detents, Horizontal, Without Push Switch₹67,159View- ₹71View
- ₹51View
- ₹48View
- ₹92View
- ₹239View
- ₹179View
- ₹40View
- ₹46View
- ₹3,779View
- ₹3,899View
- ₹3,719View
- ₹4,209View
- ₹192View
- ₹149View
- ₹159View
- ₹3,939View
- ₹3,365View
- ₹1,659View
- ₹1,529View
- ₹1,279View
- ₹359View
- ₹411View
- ₹49View
- ₹177View
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.










