In modern mechanical engineering, the worm gear drive stands out as a critical component due to its ability to achieve high transmission ratios, smooth operation, low noise, and self-locking characteristics. These features make worm gears indispensable in applications such as CNC machine tools, automotive systems, instrumentation, and metallurgical equipment. However, in demanding environments, worm gears can experience significant friction and wear on the tooth surfaces, which compromises transmission accuracy. This is particularly critical in precision worm gear mechanisms, where stringent quality requirements necessitate reliable detection of gear parameters like pitch. Traditional methods for measuring worm gear pitch often involve contact-based approaches using instruments like gear pitch meters or non-contact techniques like laser imaging, which are typically inefficient, costly, and limited in applicability. To address these challenges, I have developed an efficient worm gear pitch detection system based on the synchronous displacement sampling principle, enabling continuous, high-speed, and accurate measurements. This system integrates hardware and software components to provide real-time data acquisition and analysis, offering a practical solution for assessing worm gear performance in industrial settings.
The worm gear pitch, defined as the arc length between adjacent teeth on the pitch circle, is a fundamental parameter influencing transmission accuracy. Inaccuracies in pitch can lead to increased noise, vibration, and reduced lifespan of the gear system. My research focuses on leveraging the synchronous displacement sampling principle, which involves measuring the angular displacement of the worm gear and converting it into pitch data. This approach allows for absolute measurement of pitch, avoiding the cumulative errors associated with relative methods. By using high-resolution photoelectric encoders to capture rotational displacements and processing the signals through an FPGA-based data acquisition system, I have designed a system that achieves high precision and efficiency. The core of this system lies in an algorithm that employs pulse interpolation counting to resolve fractional parts of pulses, enhancing measurement resolution. This paper details the theoretical foundations, system design, implementation, and experimental validation of this worm gear pitch detection system, demonstrating its superiority over conventional methods in terms of speed and accuracy.

The principle of synchronous displacement sampling is central to this detection system. It involves sampling the displacement of one transmission component (e.g., the worm) relative to another (e.g., the worm gear) at equal spatial intervals, rather than equal time intervals. This is crucial because the instantaneous speeds in worm gear drives are often variable. The transmission error (TE), which represents the deviation between the theoretical and actual angular positions of the output gear, serves as a basis for pitch measurement. For a worm gear system, the TE can be expressed as: $$ TE = \phi_0 – \phi_0′ $$ where $\phi_0$ is the theoretical output angle and $\phi_0’$ is the actual output angle. By using the worm as a reference and sampling the worm gear’s displacement, the pitch can be derived from the angular relationships. The nominal pitch of a worm gear is given by: $$ P = \pi m $$ where $m$ is the module. However, due to manufacturing and operational errors, the actual pitch $P_i’$ for the $i$-th tooth can be calculated using the arc length formula: $$ P_i’ = \frac{n_i’ \cdot \pi \cdot r}{180 \cdot 60} $$ where $n_i’$ is the actual angular displacement corresponding to the $i$-th tooth, and $r$ is the pitch radius. This formula converts angular measurements into linear pitch values, enabling precise detection.
To implement this, I adopted a pulse interpolation counting method, which improves upon traditional phase comparison techniques. This method uses a high-frequency clock signal to interpolate fractional parts of pulses from the encoder signals, allowing for sub-pulse resolution. The mathematical model for the pitch measurement in a sampling period $T_i$ is: $$ P_i = \left[ \left( \sum P_1 + \frac{T_{c(i)} – T_{c(i-1)}}{N_{H(i)} – N_{H(i-1)}} \right) \div P_0 \right] \cdot \pi m $$ where $\sum P_1$ is the integer count of worm gear pulses, $T_{c(i)}$ and $T_{c(i-1)}$ are the interpolation clock counts for the fractional parts, $N_{H(i)}$ is the count of interpolation clocks per worm gear pulse, and $P_0$ is the nominal pulse count per sampling period. This model ensures that even minor displacements are accurately captured, with the theoretical resolution reaching as high as 0.02 μm under optimal conditions. The use of quadratic interpolation in the algorithm further minimizes errors caused by non-uniform speeds, making the system robust for dynamic measurements.
The design of the worm gear pitch detection system is modular, comprising lower machine hardware and upper machine software. The lower machine handles signal acquisition and processing, while the upper machine provides a user interface for data display and analysis. The overall system architecture is summarized in Table 1, which outlines the key components and their functions.
| Component | Function |
|---|---|
| Photoelectric Encoders | Measure angular displacements of worm and worm gear |
| Signal Conditioning Circuit | Convert encoder signals to TTL levels for FPGA processing |
| FPGA Data Acquisition | Implement pulse counting, interpolation, and data framing |
| USB 2.0 Communication | Transfer data to upper machine software |
| Upper Machine Software | Display real-time pitch data and save results |
For the lower machine, I selected incremental photoelectric encoders with high resolution, such as the Heidenhain ERN180 for the worm shaft and RCN8581 for the worm gear. These encoders output differential sine and cosine signals, which are processed through a signal conditioning circuit. This circuit includes operational amplifiers for differential-to-single-ended conversion, comparators for squaring the signals, and optocouplers for isolation to enhance noise immunity. The processed signals are then fed into an FPGA (Altera Cyclone IV EP4CE15F23I7), where the core detection algorithm is implemented using Verilog HDL. The FPGA performs four-fold multiplication on the encoder signals to increase resolution, generates a high-frequency interpolation clock (e.g., 40 MHz), and counts the integer and fractional parts of pulses. The data is cached in an on-chip FIFO and transmitted to the upper machine via a USB 2.0 module based on the CY7C68013A chip, configured in slave FIFO mode for bulk data transfer.
The algorithm for worm gear pitch detection involves several key steps, as detailed in the following equations. The spatial pulse equivalents for the worm and worm gear are calculated as: $$ N_1 = \frac{360 \times 60 \times 60}{\lambda_1 \cdot d_1} $$ and $$ N_2 = \frac{360 \times 60 \times 60}{\lambda_2 \cdot d_2} $$ where $\lambda_1$ and $\lambda_2$ are the encoder line counts, and $d_1$ and $d_2$ are the division factors. The nominal pulse count per sampling period is: $$ P_0 = \lambda_1 \cdot \frac{d_2}{i} $$ where $i$ is the transmission ratio. The actual pitch for each tooth is then derived using the interpolation counts, ensuring high accuracy. The FPGA logic modules, including frequency multiplication, pulse counting, and data framing, were designed and simulated to verify functionality. For instance, the four-fold multiplication module increases the effective resolution of the encoders, while the interpolation module uses the high-frequency clock to resolve fractional pulses, as shown in the timing simulations.
The upper machine software was developed using C# in the Visual Studio 2017 environment, with a WinForms interface for user interaction. It incorporates the CyUSB.NET library to communicate with the USB device, enabling real-time data reading and processing. The software features include device connection management, data acquisition control, dynamic pitch waveform display using the TeeChart control, and data saving to text files. The main interface allows users to start and stop measurements, view real-time data in a sub-window, and observe pitch variations as a step chart. This integration of hardware and software ensures a seamless workflow for worm gear pitch detection, with the system capable of handling data rates sufficient for high-speed applications.
To validate the system, I conducted simulation tests and practical experiments. In simulation, I generated synthetic encoder signals using the FPGA to emulate ideal conditions, with parameters such as encoder line counts of 2000 for the worm and 20000 for the worm gear, a transmission ratio of 100, and a worm speed of 120 RPM. The simulation results confirmed that the system correctly computed the pitch values, with the integer and fractional pulse counts matching the theoretical expectations. For example, the pitch was calculated as 15.700 mm for a module of 5 mm, demonstrating the algorithm’s accuracy. The USB communication was also tested, showing no data loss during transmission.
In practical experiments, I set up a test platform using a worm gear pair with a module of 3.8 mm, 144 teeth, and a pitch diameter of 547.2 mm. The system was compared against a semi-automatic pitch measuring instrument, with results summarized in Table 2. The worm gear pitch detection system achieved measurements consistent with the reference instrument, with maximum errors of 3.0 μm for the left flank and 2.8 μm for the right flank, within the instrument’s permissible error of 5.0 μm. Moreover, the detection time was reduced to 2 minutes per revolution at 120 RPM, compared to 5 minutes for the conventional method, highlighting the efficiency of the system. The repeatability of measurements across multiple revolutions further confirmed the system’s reliability.
| Flank | Semi-automatic Instrument (mm) | Proposed System (mm) | Error (μm) |
|---|---|---|---|
| Left | 11.9339 (tooth 94) | 11.9309 (tooth 94) | 3.0 |
| Right | 11.9300 (tooth 84) | 11.9328 (tooth 84) | 2.8 |
Error analysis considered the systematic errors from the encoders, which had a specified accuracy of ±1 arcsecond. The impact on pitch measurement was calculated using: $$ \Delta P = \frac{\Delta \phi \cdot \pi \cdot r}{1296 \cdot Z_2} $$ where $\Delta \phi$ is the encoder error in arcseconds, $r$ is the pitch radius, and $Z_2$ is the number of teeth. For the worm gear used, the maximum error contribution was less than 0.02 μm, which is negligible, ensuring that the system’s precision is maintained even for high-precision applications.
In conclusion, I have successfully designed and implemented an efficient worm gear pitch detection system based on synchronous displacement sampling and pulse interpolation counting. This system offers significant advantages in terms of accuracy, speed, and practicality compared to traditional methods. The integration of FPGA-based hardware and C# software enables real-time data processing and visualization, making it suitable for industrial use. Future work could focus on enhancing the system’s immunity to electromagnetic interference, miniaturizing the hardware into a single PCB, optimizing FPGA resource utilization, and incorporating error compensation algorithms for non-standard worm gears. This research contributes to the advancement of gear measurement technology, providing a reliable tool for quality control in worm gear production and maintenance.
The development of this worm gear pitch detection system underscores the importance of innovative measurement techniques in mechanical engineering. By addressing the limitations of existing methods, this system paves the way for more efficient and accurate gear inspections, ultimately improving the performance and longevity of worm gear drives in various applications. The use of advanced technologies like FPGA and USB communication ensures that the system remains adaptable and scalable for future enhancements, supporting the ongoing evolution of precision manufacturing.
