Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Industrial Incremental Encoders

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
Short answerWhat the Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) isIndustrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) pinoutWiring the Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32)Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

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.

PinFunction
Red / BrownVCC (5-24V)
Black / Blue0V
Green / WhiteA
White / BlackB
Yellow / OrangeZ index (if fitted)
ShieldTo 0V at the controller end
PinFunction
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
03

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) pinConnectionNote
VCC5-24V supplyPer the label
0VGNDCommon with Arduino
AD2Interrupt pin, pull-up to 5V
BD3Interrupt pin, pull-up to 5V
ZD4Optional
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
04

Example code

Counting CHANGE on A gives 2 counts per pulse. For fast shafts, use an ESP32 PCNT unit or the Encoder library.

Count an NPN open-collector encoder · Arduino C++Verify & upload in Electrolark
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);
}
05

Setup and tuning

Output type

check NPN open collector, push-pull or line driver output; open collector needs pull-ups.

Supply

most run on 5 to 24 V; match the input voltage of your controller.

Microcontroller

use optocouplers or dividers for 12 to 24 V outputs into 3.3 or 5 V pins.

Coupling

connect the shaft with a flexible coupling to avoid bearing stress.

Reading

count A and B with interrupts or a hardware encoder counter for direction.

06

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
07

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.
08

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.
09

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
  • Hongyan Technology EC25-20P Hollow Shaft Incremental Encoder – 5-Pin Plug-in
    ₹71View
  • Hongyan Technology EC28A C15H15P3 Hollow Shaft Incremental Encoder – 4096 P/R, 1024H
    ₹51View
  • Hongyan Technology EC3501 C15H15P3 Hollow Shaft Encoder
    ₹48View
  • Hongyan Technology EC3501 C15H30P3 Hollow Shaft Encoder
    ₹92View
  • Hongyan Technology EC43-20P20 Hollow Shaft Encoder
    ₹239View
  • Hongyan Technology EC56-15P30 Hollow Shaft Encoder – 15P30 Resolution
    ₹179View
  • Hongyan Technology RS11 Threadless Insert – RS11A Model
    ₹40View
  • Hongyan Technology RS11A Rotary Encoder – M8 Thread Insert
    ₹46View
  • Jayashree Encoders J-50S Shaft Encoder (SG) – IP50/IP54, 4500 RPM, 4kg Radial Load
    ₹3,779View
  • Jayashree Encoders J-58B (SG) Servo Mount Encoder – 1024 PPR, IP65/IP50, 2m Cable
    ₹3,899View
  • Jencoder J-40S (SG) Shaft Encoder – 40mm Size, 4500 RPM, IP54, Stainless Steel Shaft
    ₹3,719View
  • Jencoder J-58B SERVO MOUNT Encoder – IP50/IP65, 6000 RPM, 2m Cable
    ₹4,209View
  • HS-S32-L Rotary Encoder 600 PPR Incremental Optical Encoder – NPN Open Collector Output, 5-24V DC
    ₹192View
  • HS-S32A Rotary Encoder – 600 PPR, NPN Open Collector, 5-24V DC
    ₹149View
  • HS-S32P Rotary Encoder – 600 PPR, NPN Open Collector Output, 5-24V DC
    ₹159View
  • Rotary Encoder 1000PPR/4000CPR with Index – Optical, IP54, NPN Open Collector, 2m Cable
    ₹3,939View
  • ZKP3808 2000 PPR Hollow Shaft ABZ Rotary Encoder with IP54 Protection & 2m Cable
    ₹3,365View
  • ZSS600-100B-5L Hand Wheel Pulse Encoder – 100 PPR, 5VDC, 60mm Diameter
    ₹1,659View
  • ZSS600-25B-12E Hand Wheel Pulse Encoder for CNC – 25 Resolution, 12VDC
    ₹1,529View
  • Fixed Slide Bracket for Encoder Mounting With Long Axis – Aluminium & Steel Plate
    ₹1,279View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 24V 4A AC-DC Switching Power Supply Board
    ₹411View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
  • Digital Multimeter
    ₹177View
Shop Encoders & Rotary Position Sensors

Keep learning

ComparisonIntermediateOptical, Magnetic and Absolute Rotary EncodersAn incremental encoder gives pulses and counts movement from a start point.3 min read · SensorsHow-toBeginnerRotary EncodersA rotary encoder is a knob that turns endlessly and outputs two square-wave signals, A and B, a quarter step apart.3 min read · Switches, Relays & InputConcept explainerIntermediateMotor Encoders and Speed FeedbackA motor encoder reports how far and how fast a shaft has turned.3 min read · Motors & Motion

Sources

  • Hengstler RI series data sheets
  • Hongyan and Jayashree encoder data

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) isIndustrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32) pinoutWiring the Industrial incremental shaft and hollow-shaft encoders (Hengstler, Hongyan, Jayashree, HS-S32)Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide8 items · ₹32,473

Hengstler RI32-0/1000ER.14KB Rotary Encoder, Optical, Incremental, 1000 PPR, Horizontal, Without Push Switch · Hongyan Technology EC25-20P Hollow Shaft Incremental Encoder – 5-Pin Plug-in · Hongyan Technology EC28A C15H15P3 Hollow Shaft Incremental Encoder – 4096 P/R, 1024H · Hongyan Technology EC3501 C15H15P3 Hollow Shaft Encoder · Hongyan Technology EC43-20P20 Hollow Shaft Encoder · Hongyan Technology EC56-15P30 Hollow Shaft Encoder – 15P30 Resolution · Hongyan Technology RS11 Threadless Insert – RS11A Model · Hongyan Technology RS11A Rotary Encoder – M8 Thread Insert

Run itChange the inputs and watch the output

600 PPR counted on both edges of A: 1200 counts per turn. Negative is the other direction.

Serial monitor115200 baud
120 counts, 0.100 turns

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question