MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How counters measure motor speed
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How counters measure motor speed

Motor speed measurement is counting pulses per unit time. This page shows how a counter plus an encoder yields RPM, and how to choose the gate time and multiplication.

1. How it works

Principle: the motor shaft drives an encoder that emits a fixed number P of pulses per revolution, say 100 lines. Count N pulses in a fixed gate time T, say 1 second, and RPM equals N divided by P times T, times 60. A longer gate gives finer resolution but slower response; a short gate responds fast but resolves poorly. This is the M method.

2. Numbers and practice

Multiplication and accuracy: the two quadrature phases A and B can be counted on both edges for four times the resolution, sharper at low speed. At high frequency the T method, timing the interval between adjacent pulses and inverting, fits better. Use a wide enough counter, 32 bits, to avoid overflow inside the gate, which otherwise yields a fake fraction. Lost pulses from interference bias the reading low.

3. Pitfalls and fixes

Implementation: use an MCU timer or a 74-series counting chain. Condition the encoder pulses through a Schmitt trigger into the count clock, gate with a second time base, read once per second and compute RPM for the display. Keep encoder supply stable and use shielded cable or pulses drop and the reading jumps; when P times RPM over 60 exceeds the counter limit, divide first.

4. Speed measurement parameters

ParameterMeaningSelection
PPulses per revolution100 or 1000 lines
TGate time0.1 to 1s
NCount valueGuard against overflow
MultiplicationEdges times fourBetter at low speed
RPMResultN over P T times 60
InterferenceLost pulsesShielded cable

5. Notes

The M method is weak at low speed and the T method at high, so combine them. Choose the gate and the multiplication by speed range, and let the encoder line count set the resolution.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Speed measurement and counting per GB/T 4728 and IEC 60617 symbols. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Encoder interference dropping pulses:speed reads low and jumps around
② Gate too short at low speed:poor resolution and the digits dance
③ Counter width too small:overflow inside the gate and a fake fractional speed

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL