TCS Pune

Quadrature Encoder Speed and Distance

Robotics & Automation practical

Quadrature Encoder Speed and Distance

Decode direction, speed and distance from a quadrature encoder and detect missed counts.

Learning objective

Decode direction, speed and distance from a quadrature encoder and detect missed counts.

Components and tools

  • Development board
  • Current-limited low-voltage supply
  • Digital multimeter
  • Oscilloscope or logic analyser
  • Emergency power disconnect

Safety before motion

  • Use level shifting or pull-ups appropriate to the encoder.nSecure rotating parts before speed tests.nUse hardware counters for high-rate encoders.

Pin and power connections

Controller pinDriver / device pinPurposeVoltage / notes
Interrupt AEncoder AQuadrature phase ALogic levelnInterrupt B

Practical procedure

  1. Verify encoder voltage and output type.nRotate slowly and inspect A/B phase.nCount one channel, then x2/x4 decoding.nCalculate distance per count.nIncrease speed and check for lost counts.

Measurement checkpoints

CheckpointExpectedInstrumentSafety limit
PhaseA/B approximately 90° apartLogic analyserValid logic levelsnDistance

Troubleshooting

SymptomCheckCorrective action
Direction wrongA/B order reversedSwap in software or wiringnCounts missing
Engineering sizing tools

Calculate before powering

Motor-driver selector

Battery and runtime

Encoder distance

Mandatory pre-start gate

Machine safety checklist

The simulated enable button remains locked until every item is confirmed.

Complete all six checks.
Ready when you are

Need help with your laptop or computer?

Send us the model and fault details. Start your repair request online or contact TCS Pune directly.

WA