Device and method for automatically testing functions of photoelectric encoder
By designing an automatic test device for photoelectric encoder including functional test setting unit, motor drive unit and other components, the problem of difficulty in effectively testing the function of photoelectric encoder before installation and use in the prior art is solved, and automatic testing and fault detection of the function of photoelectric encoder is realized, reducing the equipment failure rate and improving production efficiency.
Patent Information
- Application Number
- CN202411722620.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-11
AI Technical Summary
The prior art is difficult to effectively test the function of the photoelectric encoder before installation and use, resulting in the failure of the photoelectric encoder in time, affecting the normal operation of the onboard photoelectric equipment.
An automatic functional testing device for an optoelectronic encoder is designed, including a functional test setting unit, a motor drive unit, a mechanical angle reduction unit, an encoder angle display unit, a test result alarm unit, a power supply interface unit and a main control unit. Through automatic rotation and angle encoding tests, it is determined whether the function of the optoelectronic encoder is normal.
Functional testing of the optoelectronic encoder before installation and use is realized, avoiding equipment failure caused by failure, reducing product failure rate, and improving production efficiency.
Smart Images

Figure CN119594901A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photoelectric encoder testing, and in particular to a device and method for automatically testing the functions of a photoelectric encoder. Background Art
[0002] Photoelectric encoder is a sensor that converts the mechanical geometric displacement on the output shaft into pulses or digital quantities through photoelectric conversion. Photoelectric encoder consists of a light source, an optical code disk and a photosensitive element.
[0003] Photoelectric encoders are key components in aviation optoelectronic equipment. They can convert mechanical motion into digital signals and accurately measure position, speed and acceleration. At present, photoelectric encoders are directly installed and used, which often leads to functional failures of photoelectric encoders, making them unusable and requiring removal and replacement. In order to ensure that the photoelectric encoders function properly before installation, they need to be tested.
[0004] Therefore, it is necessary to provide a device and method for automatically testing the functions of a photoelectric encoder to solve the above problems. Summary of the invention
[0005] The invention provides a device and method for automatically testing the functions of a photoelectric encoder to solve the existing problems.
[0006] The present invention provides an automatic function test device for a photoelectric encoder, which adopts the following technical scheme, including: Functional test setting unit, used to input the coding values of test angle, automatic rotation test, manual control test, forward test, reverse test and stop test; The motor drive unit is used to amplify the phase sequence signal and then output it to the motor unit to drive the motor unit to work; The mechanical angle reduction unit is used to reduce the rotation speed of the motor unit, and the output shaft thereof is used to install a photoelectric encoder; the photoelectric encoder performs angle encoding on the rotation angle after reduction; Encoder angle display unit, used to display the digital signal of the encoding angle; A test result alarm unit is used to give an alarm when the difference between the encoding angle and the test angle does not meet the accuracy requirement; A power supply interface unit is used to connect an external power supply to the test device and to perform voltage adjustment and voltage conversion for the input power supply; And a main control unit, which is used to process the coding value input by the function test setting unit to generate a phase sequence signal of the stepping motor; and is used to decode the angle coding of the photoelectric encoder and output the angle value of the digital signal. If the difference between the angle value and the test angle does not meet the difference requirement, the test result alarm unit is controlled to alarm.
[0007] Preferably, the main control unit comprises: A key value receiving and processing unit, used for receiving the coded value input by the functional test setting unit; A central data processing unit, used for processing the code value inputted by the function test setting unit to generate a phase sequence signal of the stepping motor, and sending the phase sequence signal to the motor control output unit; A motor control output unit, used for outputting a phase sequence signal to control the operation of the motor unit; The photoelectric encoder angle decoding unit is used to decode the angle code collected by the photoelectric encoder and output the angle value of the digital signal, and judge whether the photoelectric encoder is faulty according to the difference between the angle value and the test angle and the difference requirement; The encoder angle output unit is used to send the angle value of the digital signal to the encoder angle display unit for display; And a test result judgment output unit is used to send the judgment result of whether the photoelectric encoder is faulty to the test result alarm unit.
[0008] Preferably, the code disc angle display unit comprises: Angle data display encoding module, used to format the angle value of the digital signal into a string; LCD angle display module, used to display angle values in string form.
[0009] Preferably, the test result alarm unit comprises: an LED indicator light and a speaker, wherein the LED indicator light indicates that the photoelectric encoder functions normally through a green LED and indicates that the photoelectric encoder functions malfunction through a red LED, and the speaker is used to emit a buzzer sound when the photoelectric encoder fails.
[0010] Preferably, the motor drive unit comprises a signal amplifier.
[0011] Preferably, the motor unit is a four-phase stepper motor; the mechanical angle reduction unit is a mechanical gear reducer, and the output step of the mechanical gear reducer is less than or equal to 0.5 seconds.
[0012] Preferably, the functional test setting unit includes: Matrix keyboard module, used to input command signals for test angle, automatic rotation test, manual control test, forward test, reverse test and stop test; And a key value coding module is used to convert the command signals of the test angle, automatic rotation test, manual control test, forward test, reverse test and stop test into corresponding coding values.
[0013] Preferably, the power supply interface unit comprises: A voltage adjustment module is used to convert the voltage of a 6~36V DC power supply into a +5V voltage; And a secondary power conversion module is used to convert the +5V voltage into +3.3V voltage and ±15V voltage to power the test device.
[0014] Preferably, the difference is required to be less than or equal to 10".
[0015] A method for automatically testing the function of a photoelectric encoder, comprising: Install the photoelectric encoder to be tested on the output shaft of the mechanical gear reducer; Input the coding value of the test angle, and generate the phase sequence signal of the stepper motor after processing the coding value of the test angle; The four-phase stepper motor is controlled to work according to the phase sequence signal, and the output shaft of the four-phase stepper motor is decelerated through a mechanical gear reducer; The photoelectric encoder to be tested performs angle encoding on the output shaft of the mechanical gear reducer; Convert the angle code into the angle value of the digital signal; According to the difference between the angle value and the test angle, as well as the difference requirement, the functional test result of the photoelectric encoder to be tested is obtained.
[0016] The beneficial effects of the present invention are: The present invention realizes the function test of the photoelectric encoder before installation and use, and can avoid installing a photoelectric encoder with functional failure on an airborne photoelectric device, thereby effectively reducing the product failure rate and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A test block diagram of a function automatic test device for a photoelectric encoder of the present invention; Figure 2 is a specific schematic diagram of the main control unit of the present invention; Figure 3 It is a specific schematic diagram of the encoder angle display unit of the present invention; Figure 4 A specific schematic diagram of a test result alarm unit of the present invention; Figure 5 A specific schematic diagram of a functional test setting unit of the present invention; Figure 6 It is a specific schematic diagram of the power supply interface unit of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] An embodiment of a function automatic testing device for a photoelectric encoder of the present invention is as follows: Figure 1 As shown, it includes: a functional test setting unit, a motor drive unit, a mechanical angle deceleration unit, an encoder angle display unit, a test result alarm unit, a power supply interface unit and a main control unit. In this embodiment, the main control unit adopts an FPGA data processing main control unit or an MCU data processing main control unit, wherein the functional test setting unit is used to input the coding values of the test angle, automatic rotation test, manual control test, forward test, reverse test and stop test; the motor drive unit is used to amplify the phase sequence signal and output it to the motor unit to drive the motor unit to work. The motor unit is a four-phase stepper motor. In this embodiment, the motor drive unit includes a signal amplifier; the mechanical angle deceleration unit is used to decelerate the rotation speed of the motor unit, and the output shaft of the mechanical gear reducer is used to install a photoelectric encoder. In this embodiment, the mechanical angle deceleration unit is a mechanical gear reducer, and the output step of the mechanical gear reducer is less than or equal to 0.5 seconds; the photoelectric The encoder performs angle encoding on the rotation angle after deceleration; the encoder angle display unit is used to display the digital signal of the encoding angle; the test result alarm unit is used to alarm when the difference between the encoding angle and the test angle does not meet the accuracy requirement; the power supply interface unit is used to connect the test device to an external power supply, and to adjust and convert the voltage of the input power supply; the main control unit is used to generate a phase sequence signal of the stepping motor after processing the encoding value input by the function test setting unit; it is used to decode the angle encoding of the photoelectric encoder and output the angle value of the digital signal, and judge whether the function of the photoelectric encoder is normal according to the difference between the angle value and the test angle and the difference requirement. In this embodiment, the difference requirement is less than or equal to 10". If the difference between the angle value and the test angle is less than or equal to 10", it means that the photoelectric encoder functions normally. If the difference between the angle value and the test angle is greater than 10", it means that the photoelectric encoder function is faulty, and the control test result alarm unit alarms.
[0021] like Figure 2As shown, the main control unit includes: a key value receiving and processing unit, a central data processing unit, a motor control output unit, a photoelectric encoder angle decoding unit, a code disk angle output unit and a test result judgment output unit, wherein the key value receiving and processing unit is used to receive the code value input by the function test setting unit; the central data processing unit is used to generate a phase sequence signal of the stepping motor after processing the code value input by the function test setting unit, and send the phase sequence signal to the motor control output unit; the motor control output unit is used to output the phase sequence signal to control the operation of the motor unit; the photoelectric encoder angle decoding unit is used to decode the angle code collected by the photoelectric encoder and output the angle value of the digital signal, and judge whether the photoelectric encoder is faulty according to the difference between the angle value and the test angle and the difference requirement; the code disk angle output unit is used to send the angle value of the digital signal to the encoder angle display unit for display; the test result judgment output unit is used to send the judgment result of whether the photoelectric encoder is faulty to the test result alarm unit.
[0022] like Figure 3 As shown, the code disk angle display unit includes: an angle data display encoding module and an LCD angle display module. The angle data display encoding module is used to format the angle value of the digital signal into a character string; the LCD angle display module is used to display the angle value in the form of a character string.
[0023] like Figure 4 As shown, the test result alarm unit includes: an LED indicator and a speaker. The LED indicator indicates that the photoelectric encoder functions normally through a green LED and indicates that the photoelectric encoder functions malfunction through a red LED. The speaker is used to emit a buzzer sound when the photoelectric encoder fails.
[0024] like Figure 5 As shown, the functional test setting unit includes a matrix keyboard module and a key value coding module. The matrix keyboard module is used to input the command signals of test angle, automatic rotation test, manual control test, forward test, reverse test and stop test; the key value coding module is used to convert the command signals of test angle, automatic rotation test, manual control test, forward test, reverse test and stop test into corresponding coding values.
[0025] like Figure 6 As shown, the power supply interface unit includes: a voltage adjustment module and a secondary power conversion module, the voltage adjustment module is used to convert the voltage of the 6~36V DC power supply into a +5V voltage; and the secondary power conversion module is used to convert the +5V voltage into a +3.3V voltage and a ±15V voltage to power the test device.
[0026] A method for automatically testing the function of a photoelectric encoder comprises: installing a photoelectric encoder to be tested on an output shaft of a mechanical gear reducer; inputting a coding value of a test angle, and generating a phase sequence signal of a stepper motor after processing the coding value of the test angle; controlling a four-phase stepper motor to work according to the phase sequence signal, and reducing the output shaft of the four-phase stepper motor through a mechanical gear reducer; the photoelectric encoder to be tested performs angle coding on the output shaft of the mechanical gear reducer; converting the angle coding into an angle value of a digital signal; and obtaining a function test result of the photoelectric encoder to be tested according to a difference between the angle value and the test angle, and a difference requirement.
[0027] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A functional automatic test device for a photoelectric encoder, characterized in that: include: Functional test setting unit, used to input the coding values of test angle, automatic rotation test, manual control test, forward test, reverse test and stop test; The motor drive unit is used to amplify the phase sequence signal and then output it to the motor unit to drive the motor unit to work; The mechanical angle reduction unit is used to reduce the rotation speed of the motor unit, and the output shaft thereof is used to install a photoelectric encoder; the photoelectric encoder performs angle encoding on the rotation angle after reduction; Encoder angle display unit, used to display the digital signal of the encoding angle; A test result alarm unit is used to give an alarm when the difference between the encoding angle and the test angle does not meet the accuracy requirement; A power supply interface unit is used to connect an external power supply to the test device and to perform voltage adjustment and voltage conversion for the input power supply; And a main control unit, which is used to process the coding value input by the function test setting unit to generate a phase sequence signal of the stepping motor; and is used to decode the angle coding of the photoelectric encoder and output the angle value of the digital signal. If the difference between the angle value and the test angle does not meet the difference requirement, the test result alarm unit is controlled to alarm.
2. The automatic function test device of a photoelectric encoder according to claim 1 is characterized in that: The main control unit includes: A key value receiving and processing unit, used for receiving the coded value input by the functional test setting unit; A central data processing unit, used for processing the code value inputted by the function test setting unit to generate a phase sequence signal of the stepping motor, and sending the phase sequence signal to the motor control output unit; A motor control output unit, used for outputting a phase sequence signal to control the operation of the motor unit; The photoelectric encoder angle decoding unit is used to decode the angle code collected by the photoelectric encoder and output the angle value of the digital signal, and judge whether the photoelectric encoder is faulty according to the difference between the angle value and the test angle and the difference requirement; The encoder angle output unit is used to send the angle value of the digital signal to the encoder angle display unit for display; And a test result judgment output unit is used to send the judgment result of whether the photoelectric encoder is faulty to the test result alarm unit.
3. The automatic function test device of a photoelectric encoder according to claim 1 is characterized in that: The code disc angle display unit includes: Angle data display encoding module, used to format the angle value of the digital signal into a string; LCD angle display module, used to display angle values in string form.
4. The automatic function test device of a photoelectric encoder according to claim 1 is characterized in that: The test result alarm unit includes: an LED indicator and a speaker. The LED indicator indicates that the photoelectric encoder functions normally through a green LED and indicates that the photoelectric encoder functions malfunction through a red LED. The speaker is used to emit a buzzer sound when the photoelectric encoder fails.
5. The automatic function test device of a photoelectric encoder according to claim 1 is characterized in that: The motor drive unit includes a signal amplifier.
6. The automatic function test device of a photoelectric encoder according to claim 1 is characterized in that: The motor unit is a four-phase stepper motor; the mechanical angle reduction unit is a mechanical gear reducer, and the output step of the mechanical gear reducer is less than or equal to 0.5 seconds.
7. The automatic function test device for a photoelectric encoder according to claim 1 is characterized in that The functional test setup unit includes: Matrix keyboard module, used to input command signals for test angle, automatic rotation test, manual control test, forward test, reverse test and stop test; And a key value coding module is used to convert the command signals of the test angle, automatic rotation test, manual control test, forward test, reverse test and stop test into corresponding coding values.
8. The automatic function test device of a photoelectric encoder according to claim 1 is characterized in that: The power supply interface unit includes: A voltage adjustment module is used to convert the voltage of a 6~36V DC power supply into a +5V voltage; And a secondary power conversion module is used to convert the +5V voltage into +3.3V voltage and ±15V voltage to power the test device.
9. The automatic function test device of a photoelectric encoder according to claim 1, characterized in that: The difference is required to be less than or equal to 10".
10. A method for automatically testing the function of a photoelectric encoder, characterized in that: include: Install the photoelectric encoder to be tested on the output shaft of the mechanical gear reducer; Input the coding value of the test angle, and generate the phase sequence signal of the stepper motor after processing the coding value of the test angle; The four-phase stepper motor is controlled to work according to the phase sequence signal, and the output shaft of the four-phase stepper motor is decelerated through a mechanical gear reducer; The photoelectric encoder to be tested performs angle encoding on the output shaft of the mechanical gear reducer; Convert the angle code into the angle value of the digital signal; According to the difference between the angle value and the test angle, as well as the difference requirement, the functional test result of the photoelectric encoder to be tested is obtained.
Citation Information
Patent Citations
High precision low cost angle sensor detector methods and apparatus
CN101135579A
Vacuum experiment device for satellite-borne photo-electric axial angle encoder
CN103968877A
Detection device and method for detecting photoelectric encoder precision
CN109990823A
Test equipment for encoder
CN113029221A
Method and system for testing reliability of encoder
CN118913342A