Abstract
With the continuous advancement of numerical control technology, the requirements for the position detection resolution, precision, and size of photoelectric encoders in computer numerical control machine tools are increasingly stringent. In the pursuit of high resolution and precision, this work investigates the principles of electronic subdivision and embedded hardware. It designs a high-precision image-based photonic encoder using a Field-Programmable Gate Array (FPGA). This photonic encoder captures the pattern of a rotating code disk using a complementary metal-oxide-semiconductor (CMOS) image sensor. The encoder’s core is the XC6SLX25T chip from the Spartan-6 series, with peripheral circuits including only A/D sampling and low-pass signal processing circuits. The FPGA module handles the digital signal reception, waveform conversion, quadrature frequency coarse count calculation, fine count subdivision calculation, and final position calculation of the encoder. In experiments, the output signal of the photonic encoder contains many impurities. After processing by the signal processing module, the A and B phase signals are not affected by previous interference, with a phase difference of 90°, meeting the requirements for subsequent signal processing modules. After fine count subdivision processing, the waveform graph significantly increases within one cycle, and after quadrupling the frequency, 30 subdivisions are performed within each cycle. Noise is introduced into graphic positioning or graphics are positioned under different noise conditions. Experimental results show that utilizing an improved centroid algorithm helps further suppress noise and enhance measurement accuracy in the design of image-based photonic encoders.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have