CN208109153U - Photoelectric shaft encoder detector - Google Patents

Photoelectric shaft encoder detector Download PDF

Info

Publication number
CN208109153U
CN208109153U CN201820652510.0U CN201820652510U CN208109153U CN 208109153 U CN208109153 U CN 208109153U CN 201820652510 U CN201820652510 U CN 201820652510U CN 208109153 U CN208109153 U CN 208109153U
Authority
CN
China
Prior art keywords
signal
module
photoelectric
encoder
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201820652510.0U
Other languages
Chinese (zh)
Inventor
吴勇
雷磊
张建虎
李林涛
崔新友
彭炜
陈世纯
张军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PLA University of Science and Technology
Original Assignee
PLA University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PLA University of Science and Technology filed Critical PLA University of Science and Technology
Priority to CN201820652510.0U priority Critical patent/CN208109153U/en
Application granted granted Critical
Publication of CN208109153U publication Critical patent/CN208109153U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Optical Transform (AREA)

Abstract

本实用新型公开了一种光电轴角编码器检测仪,包括信号处理模块,与待测光电编码器连接,用于将光电编码器输出的信号处理为适合检测的信号;接口模块;信号调理模块,与所述接口模块连接,用于对光电编码器输出的不同的编码信号进行整形滤波处理;控制与检测模块,与信号调理模块和接口模块连接,用于对经所述信号调理模块处理后的编码信号和所述接口模块传输的信号进行判别、角速度测量。本实用新型的光电轴角编码器检测仪能对装备的光电轴角编码器输出的性能进行检测,对编码器输出脉冲个数是否正常进行检测,测量出编码器的角速度;对编码器正转、反转两种脉冲信号进行判别;对脉冲信号的幅度进行测量,通过显示模块实时显示检测的波形。

The utility model discloses a detector for a photoelectric shaft angle encoder, which comprises a signal processing module connected with the photoelectric encoder to be tested for processing the signal output by the photoelectric encoder into a signal suitable for detection; an interface module; and a signal conditioning module , connected with the interface module, used for shaping and filtering the different coded signals output by the photoelectric encoder; the control and detection module, connected with the signal conditioning module and the interface module, used for processing by the signal conditioning module The encoded signal and the signal transmitted by the interface module are discriminated and angular velocity is measured. The detector of the photoelectric shaft-angle encoder of the utility model can detect the output performance of the equipped photoelectric shaft-angle encoder, detect whether the output pulse number of the encoder is normal, and measure the angular velocity of the encoder; , Reverse the two pulse signals for discrimination; measure the amplitude of the pulse signal, and display the detected waveform in real time through the display module.

Description

一种光电轴角编码器检测仪A Photoelectric Shaft Angle Encoder Detector

技术领域technical field

本实用新型涉及武器装备检测的技术领域,具体来说,涉及一种光电轴角编码器检测仪。The utility model relates to the technical field of weapon equipment detection, in particular to a photoelectric shaft angle encoder detector.

背景技术Background technique

在装备中使用的光电轴角编码器主要用于检测回转件的回转方向、旋转角度和旋转速度,在该系列装备上应用十分广泛。光电轴角编码器用于产生角度位置信号,把角位移或直线位移转换成电信号的一种装置。在使用过程中,装备中的光电轴角编码器故障率比较高,在进行修理时,又往往无法进行精确的故障定位,无法判断光电轴角编码器的好坏。因此,迫切需要研制一套能准确、迅速故障定位的光电轴角编码器检测仪,可以有效地降低维修成本。The photoelectric shaft encoder used in the equipment is mainly used to detect the rotation direction, rotation angle and rotation speed of the rotary parts, and it is widely used in this series of equipment. A photoelectric shaft encoder is a device used to generate angular position signals and convert angular displacement or linear displacement into electrical signals. In the process of use, the failure rate of the photoelectric shaft encoder in the equipment is relatively high. When repairing, it is often impossible to accurately locate the fault and judge whether the photoelectric shaft encoder is good or bad. Therefore, there is an urgent need to develop a set of photoelectric shaft encoder detectors that can accurately and quickly locate faults, which can effectively reduce maintenance costs.

实用新型内容Utility model content

本实用新型所要解决的技术问题在于提供一种能准确、迅速故障定位的光电轴角编码器检测仪,可以有效地降低维修成本。The technical problem to be solved by the utility model is to provide a photoelectric shaft angle encoder detector capable of accurate and rapid fault location, which can effectively reduce the maintenance cost.

本实用新型的技术方案可以通过以下技术措施来实现:一种光电轴角编码器检测仪,包括信号处理模块,与待测光电编码器连接,用于将光电编码器输出的信号处理为适合检测的信号,包括光电编码器信号处理单元、数据转换单元、数字信号处理单元;The technical solution of the utility model can be realized through the following technical measures: a photoelectric shaft angle encoder detector, including a signal processing module, connected with the photoelectric encoder to be tested, and used to process the signal output by the photoelectric encoder to be suitable for detection Signals, including photoelectric encoder signal processing unit, data conversion unit, digital signal processing unit;

接口模块,与所述信号处理模块连接,用于实现检测仪对不同型号的光电编码器进行检测;The interface module is connected with the signal processing module, and is used to realize that the detector detects different types of photoelectric encoders;

信号调理模块,与所述接口模块连接,用于对光电编码器输出的不同的编码信号进行整形滤波处理,并送至控制与检测模块;The signal conditioning module is connected with the interface module, and is used for shaping and filtering the different encoded signals output by the photoelectric encoder, and sending them to the control and detection module;

控制与检测模块,与所述信号调理模块和接口模块连接,用于对经所述信号调理模块处理后的编码信号和所述接口模块传输的信号进行判别、角速度测量。The control and detection module is connected with the signal conditioning module and the interface module, and is used for distinguishing and measuring the angular velocity of the coded signal processed by the signal conditioning module and the signal transmitted by the interface module.

进一步地,所述光电编码器信号处理单元包括数字信号提取电路、转换电路和放大电路;Further, the photoelectric encoder signal processing unit includes a digital signal extraction circuit, a conversion circuit and an amplification circuit;

所述光电编码器信号处理单元用于将光电编码器输出的光信号转化为电信号并对所述电信号进行处理后输出给所述数据转换单元;The photoelectric encoder signal processing unit is used to convert the optical signal output by the photoelectric encoder into an electrical signal, process the electrical signal and output it to the data conversion unit;

所述数据转换单元用于接收经过所述光电编码器信号处理单元处理的电信号并转换成数字信号;The data conversion unit is used to receive the electrical signal processed by the photoelectric encoder signal processing unit and convert it into a digital signal;

所述数字信号处理单元用于接收所述数字信号并转换为检测信号发送至所述接口模块。The digital signal processing unit is used to receive the digital signal and convert it into a detection signal and send it to the interface module.

优选地,所述信号调理模块包括脉冲化单元和方向判别单元;Preferably, the signal conditioning module includes a pulse unit and a direction discrimination unit;

所述脉冲化单元与所述方向判别单元连接,用于将光电编码器输出的两路正弦波进行整形处理生成方形波信号;The pulsating unit is connected to the direction discriminating unit, and is used for shaping the two-way sine waves output by the photoelectric encoder to generate a square wave signal;

所述方向判别单元用于对所述方形波信号进行处理,并将得到的计数方波信号和方向信号送入到所述控制与检测模块进行测量。The direction judging unit is used to process the square wave signal, and send the obtained counting square wave signal and direction signal to the control and detection module for measurement.

优选地,所述控制与检测模块包括Arduino Due微控制器,所述Arduino Due微控制器采用型号为Atmel SAM3X8E CPU的微控制器板。Preferably, the control and detection module includes an Arduino Due microcontroller, and the Arduino Due microcontroller adopts a microcontroller board modeled as Atmel SAM3X8E CPU.

本实用新型还包括与所述接口模块连接的自检模块,所述自检模块包括一单片机,用于通过单片机产生自检信号,并送到所述控制与检测模块进行脉冲计数,实现检测仪工作性能的判断。The utility model also includes a self-inspection module connected with the interface module, the self-inspection module includes a single-chip microcomputer, which is used to generate a self-inspection signal through the single-chip microcomputer, and sends it to the control and detection module for pulse counting, so as to realize the Judgment of work performance.

优选地,本实用新型还包括电源模块,用于对为检测仪供电的电源进行降压稳压处理,给待测光电编码器提供工作电压。Preferably, the utility model also includes a power supply module, which is used for stepping down and stabilizing the power supply for the detector, and providing a working voltage for the photoelectric encoder to be tested.

优选地,本实用新型还包括与所述控制与检测模块连接的显示模块;所述显示模块包括LCD显示屏、LCD控制器、触摸屏、通讯接口和界面处理单元,所述通讯接口用于与外部控制单元连接,实现系统的人机交互界面;所述LCD显示屏用于实时显示所述控制与检测模块的脉冲个数。Preferably, the utility model also includes a display module connected with the control and detection module; the display module includes an LCD display screen, an LCD controller, a touch screen, a communication interface and an interface processing unit, and the communication interface is used for communicating with the external The control unit is connected to realize the human-computer interaction interface of the system; the LCD display is used to display the pulse number of the control and detection module in real time.

由上,本实用新型的光电轴角编码器检测仪能够对装备的光电轴角编码器输出的性能进行检测,对编码器输出脉冲个数是否正常进行检测,测量出编码器的角速度;对编码器正转、反转两种脉冲信号进行判别;对脉冲信号的幅度进行测量,通过显示模块实时显示检测的波形。通过不同的接口模块实现对多种装备的光电轴角编码器的测试,还可以扩展为其他系列装备的轴角编码器进行检测。From the above, the detector of the photoelectric shaft angle encoder of the utility model can detect the output performance of the equipped photoelectric shaft angle encoder, detect whether the output pulse number of the encoder is normal, and measure the angular velocity of the encoder; Discriminate the forward and reverse pulse signals of the device; measure the amplitude of the pulse signal, and display the detected waveform in real time through the display module. Through different interface modules, the test of photoelectric shaft-angle encoders of various equipments can be realized, and it can also be extended to detect the shaft-angle encoders of other series of equipments.

附图说明Description of drawings

利用附图对本实用新型作进一步说明,但附图中的实施例不构成对本实用新型的任何限制。The utility model is further described by using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present utility model.

图1是本实用新型优选实施例的光电轴角编码器检测仪的结构框图;Fig. 1 is the structural block diagram of the photoelectric shaft angle encoder detector of preferred embodiment of the present utility model;

图2是本实用新型优选实施例的光电轴角编码器检测仪的信号调理模块的结构框图;Fig. 2 is the structural block diagram of the signal conditioning module of the photoelectric shaft angle encoder detector of the preferred embodiment of the present invention;

图3是本实用新型优选实施例的光电轴角编码器检测仪的信号调理模块的电路图;Fig. 3 is the circuit diagram of the signal conditioning module of the photoelectric shaft angle encoder detector of the preferred embodiment of the present invention;

图4是本实用新型优选实施例的光电轴角编码器检测仪的检测界面图。Fig. 4 is a detection interface diagram of the photoelectric shaft angle encoder detector in the preferred embodiment of the present invention.

具体实施方式Detailed ways

为使本实用新型更加容易理解,下面将进一步阐述本实用新型的具体实施例。In order to make the utility model easier to understand, specific embodiments of the utility model will be further described below.

如图1所示,本实用新型的光电轴角编码器检测仪主要由电池10、电源模块20、接口模块30、自检模块40、信号调理模块50、控制与检测模块60、显示模块70、信号处理模块80组成,其中虚线部分为待测光电编码器,不属于检测仪。As shown in Figure 1, the photoelectric shaft angle encoder tester of the present invention is mainly composed of a battery 10, a power supply module 20, an interface module 30, a self-test module 40, a signal conditioning module 50, a control and detection module 60, a display module 70, The signal processing module 80 is composed, and the dotted line part is the photoelectric encoder to be tested, which does not belong to the detector.

本实用新型的检测仪采用9V电池10供电,电源模块20对9V电源进行降压稳压处理,为各个模块和待测光电编码器提供工作的5V电压。信号处理模块80与待测光电编码器连接,用于将光电编码器输出的信号处理为适合检测的信号,包括光电编码器信号处理单元81、数据转换单元82、数字信号处理单元83,所述光电编码器信号处理单元81用于将光电编码器输出的光信号转化为电信号并对所述电信号进行处理后输出给所述数据转换单元82,所述光电编码器信号处理单元81包括数字信号提取电路、转换电路和放大电路,其中转换电路将所述光信号转换为电信号,所述数字信号提取电路用于对所述电信号的精码与粗码的提取,所述放大电路对所述精码与粗码放大处理。所述数据转换单元82接收经过所述光电编码器信号处理单元81处理的电信号并转换成数字信号,数据转换单元82包括电压比较器电路与信号波动补偿电路,所述电压比较器电路将所述光电编码器信号处理单元81输出的粗码、精码进行整形转换为数字信号,并结合补偿电路转换为高质量的数字信号,所述信号波动补偿电路对所述数字信号波动的补偿,以弥补因为温度变换、电压变换造成数据的变化;最后数据转换单元82将高质量的数字信号发送至数字信号处理单元83。数字信号处理单元83由FPGA芯片及其外围电路组成,所述数字信号处理单元83接收所述数字信号并转换为检测信号发送至所述接口模块30。The detector of the utility model is powered by a 9V battery 10, and the power supply module 20 performs step-down and stable voltage processing on the 9V power supply to provide working 5V voltage for each module and the photoelectric encoder to be tested. The signal processing module 80 is connected with the photoelectric encoder to be tested, and is used to process the signal output by the photoelectric encoder into a signal suitable for detection, including a photoelectric encoder signal processing unit 81, a data conversion unit 82, and a digital signal processing unit 83. The photoelectric encoder signal processing unit 81 is used to convert the optical signal output by the photoelectric encoder into an electrical signal and process the electrical signal and output it to the data conversion unit 82. The photoelectric encoder signal processing unit 81 includes digital A signal extraction circuit, a conversion circuit and an amplification circuit, wherein the conversion circuit converts the optical signal into an electrical signal, the digital signal extraction circuit is used for extracting the fine code and the rough code of the electrical signal, and the amplification circuit The fine code and the coarse code are enlarged and processed. The data conversion unit 82 receives the electrical signal processed by the photoelectric encoder signal processing unit 81 and converts it into a digital signal. The data conversion unit 82 includes a voltage comparator circuit and a signal fluctuation compensation circuit, and the voltage comparator circuit converts the The rough code and the fine code output by the photoelectric encoder signal processing unit 81 are transformed into digital signals, and converted into high-quality digital signals in conjunction with the compensation circuit, and the signal fluctuation compensation circuit compensates for the fluctuation of the digital signal, so as to Make up for data changes caused by temperature transformation and voltage transformation; finally, the data conversion unit 82 sends the high-quality digital signal to the digital signal processing unit 83 . The digital signal processing unit 83 is composed of an FPGA chip and its peripheral circuits. The digital signal processing unit 83 receives the digital signal and converts it into a detection signal and sends it to the interface module 30 .

接口模块30与所述信号处理模块80连接,可以现实检测仪对不同型号装备的光电编码器的检测。CLKA和CLKB为经信号处理模块处理后的光电编码器输出的两路相位相差90°的编码信号,信号调理模块50与所述接口模块30连接,用来对这两路信号进行整形滤波等信号处理,最后送至控制与检测模块60。控制与检测模块60与所述信号调理模块50和所述接口模块30连接,用来实现光编码器脉冲个数的计数、幅度的测量、正转、反转两种脉冲信号的判别、角速度的测量,即用于对经所述信号调理模块50处理后的编码信号和所述接口模块30传输的信号进行判别、角速度测量。The interface module 30 is connected with the signal processing module 80, which can realize the detection of photoelectric encoders equipped with different models by the real tester. CLKA and CLKB are two coded signals with a phase difference of 90° output by the photoelectric encoder processed by the signal processing module, and the signal conditioning module 50 is connected to the interface module 30 for shaping and filtering the two signals. processing, and finally sent to the control and detection module 60. The control and detection module 60 is connected with the signal conditioning module 50 and the interface module 30, and is used to realize the counting of the number of optical encoder pulses, the measurement of the amplitude, the discrimination of the forward and reverse pulse signals, and the determination of the angular velocity. The measurement is used to distinguish and measure the angular velocity between the coded signal processed by the signal conditioning module 50 and the signal transmitted by the interface module 30 .

如图2所示,信号调理模块50包括脉冲化单元51和方向判别单元52,所述脉冲化单元51与所述方向判别单元52连接,对光电编码器输出的CLKA,CLKB两路正弦波信号进行整形处理,变成方波信号后,送入方向判别单元52进行处理。经方向判别单元52处理后,分别将计数方波信号和方向信号送入控制与检测模块60进行测量,最终送到显示模块70进行显示。信号调理模块50用于检测信号的调理,主要是把待测正弦波信号整形处理,变成方波信号后,送入方向判别单元52进行处理,得到计数方波信号(NUM)和方向信号(DIR)送入控制与检测模块60进行测量。图3为信号调理模块的电路图,其中,GAL20V8是通用阵列逻辑器件,现场可编程器件。它最多可以有20个输入引脚、最多可以有8个输出引脚。它既可以实现组合逻辑的逻辑功能,也可以实现时序逻辑的逻辑功能。As shown in Figure 2, the signal conditioning module 50 includes a pulse unit 51 and a direction discrimination unit 52, the pulse unit 51 is connected to the direction discrimination unit 52, and the CLKA output by the photoelectric encoder, the CLKB two-way sine wave signal Carry out shaping processing to become a square wave signal, and send it to the direction discrimination unit 52 for processing. After being processed by the direction judging unit 52, the counting square wave signal and the direction signal are respectively sent to the control and detection module 60 for measurement, and finally sent to the display module 70 for display. The signal conditioning module 50 is used for the conditioning of the detection signal. It mainly processes the sine wave signal to be tested in shaping and becomes a square wave signal, then sends it to the direction discrimination unit 52 for processing, and obtains the counting square wave signal (NUM) and the direction signal ( DIR) is sent to the control and detection module 60 for measurement. Figure 3 is a circuit diagram of the signal conditioning module, in which GAL20V8 is a general-purpose array logic device and a field programmable device. It can have up to 20 input pins and up to 8 output pins. It can not only realize the logic function of combinational logic, but also realize the logic function of sequential logic.

本实用新型的光电轴角编码器检测仪的控制与检测模块60包括意大利最新开发的Arduino Due微控制器,采用型号为Atmel SAM3X8E CPU的微控制器板,其为第一块基于32位ARM核心的arduino.使用32位ARM核心的Due相较于以往的使用8位AVR核心的其他arduino更强大:32位核心在一个时钟能处理32位的数据。微控制器板包括54个数字I/O引脚(其中12路PWM输出),12个模拟输入通道,2个模拟输出通道(DAC),IO口总输出电流130mA。3.3V端口输出能力800mA,5V端口输出能力800mA,Flash 512KB(所有空间都可以储存用户程序),SRAM 96KB(两个部分:64KB and 32KB),时钟速率84MHz[4-5]。由于arduinodue的工作电压为3.3V。IO口可承载电压也为3.3V,所以经过调理电路产生的5V脉冲不能直接处理。本检测仪通过sn74lvc4245芯片把5V的脉冲整形为3.3V的脉冲。The control and detection module 60 of the photoelectric shaft angle encoder detector of the present utility model includes the newly developed Arduino Due microcontroller in Italy, and adopts a microcontroller board whose model is Atmel SAM3X8E CPU, which is the first 32-bit ARM core-based Arduino. Due with 32-bit ARM core is more powerful than other arduinos with 8-bit AVR core: 32-bit core can process 32-bit data in one clock. The microcontroller board includes 54 digital I/O pins (including 12 PWM outputs), 12 analog input channels, 2 analog output channels (DAC), and the total output current of the IO port is 130mA. 3.3V port output capacity is 800mA, 5V port output capacity is 800mA, Flash 512KB (all space can store user program), SRAM 96KB (two parts: 64KB and 32KB), clock rate 84MHz[4-5]. Since the working voltage of arduinodue is 3.3V. The loadable voltage of the IO port is also 3.3V, so the 5V pulse generated by the conditioning circuit cannot be directly processed. The detector shapes the 5V pulse into a 3.3V pulse through the sn74lvc4245 chip.

本实用新型还包括与所述接口模块30连接的自检模块40,所述自检模块40包括一单片机,用于通过单片机产生自检信号,并送到所述控制与检测模块50进行脉冲计数,实现检测仪工作性能的判断。The utility model also includes a self-inspection module 40 connected with the interface module 30, and the self-inspection module 40 includes a single-chip microcomputer, which is used to generate a self-inspection signal by the single-chip microcomputer, and sends it to the control and detection module 50 for pulse counting , to realize the judgment of the working performance of the detector.

如图4所示,本实用新型还包括与所述控制与检测模块60连接的显示模块70,显示模块70采用国产开发的可编程智能LCD(即Programmable Smart LCD,简称PS-LCD)。PS-LCD显示模块包括LCD显示屏、LCD控制器、触摸屏、通讯接口和界面处理单元,界面处理单元和通讯接口形成于一体的智能显示模组,所述通讯接口用于与外部控制单元(如:51单片机、ARM、DSP、PC、PLC、总线设备等)连接,实现系统的人机交互界面;所述LCD显示屏用于实时显示所述控制与检测模块的脉冲个数。PS-LCD的采用JavaScript的脚本语言,JavaScript是因特网上最流行的脚本语言,它存在于全世界所有Web浏览器中,能够增强用户与Web站点和Web应用程序之间的交互。本实用新型的显示模块70通过脚本编写实时地显示微控制器采集送过来的脉冲个数,并进行判断。用LCD模拟器验证界面效果和通讯过程,重复前面步骤直到满意为止。PS-LCD作为先进的智能人机界面产品,能通过通讯接口轻松灵活地与外部控制单元实现数据交互。目前,PS-LCD支持两种通讯协议:CTP(Cooky TalkingProtocol)协议和用户自定义(UserDefine)协议。本实用新型的检测仪采用的第一种通信协议CTP协议。在CTP通讯模式下,PS-LCD在收到通讯命令后,会立刻执行,结束后会向主控制器返回结果。由于PS-LCD的串口通信协议跟微控制器Arduino Due的通信协议不一致,在通信过程中要进行转换和控制。为了取消PS-LCD命令执行结果的自动回复消息,在CTP通讯模式下,通过调用ctpSet(“reply”,0)函数取消PS-LCD的自动回复。PS-LCD同时通过通讯协议产生的串口信号来控制微控制器的工作,真正实现人机互动的效果。生成界面输出文件spf,然后将spf文件通过PS-LCD专用软件工具Flex下载到PS-LCD验证最终界面效果。As shown in Figure 4, the utility model also includes a display module 70 connected to the control and detection module 60, and the display module 70 adopts a domestically developed programmable smart LCD (Programmable Smart LCD, PS-LCD for short). PS-LCD display module comprises LCD display screen, LCD controller, touch screen, communication interface and interface processing unit, the intelligent display module that interface processing unit and communication interface are formed in one, and described communication interface is used for and external control unit (such as : 51 single-chip microcomputers, ARM, DSP, PC, PLC, bus equipment, etc.) are connected to realize the human-computer interaction interface of the system; the LCD display is used to display the pulse number of the control and detection module in real time. PS-LCD uses JavaScript scripting language. JavaScript is the most popular scripting language on the Internet. It exists in all Web browsers in the world and can enhance the interaction between users and Web sites and Web applications. The display module 70 of the present invention displays the number of pulses collected and sent by the microcontroller in real time through script writing, and makes judgments. Use the LCD simulator to verify the interface effect and communication process, and repeat the previous steps until you are satisfied. As an advanced intelligent human-machine interface product, PS-LCD can easily and flexibly realize data interaction with an external control unit through a communication interface. Currently, PS-LCD supports two communication protocols: CTP (Cooky Talking Protocol) protocol and user-defined (UserDefine) protocol. The first communication protocol CTP protocol adopted by the detector of the utility model. In CTP communication mode, PS-LCD will execute immediately after receiving the communication command, and will return the result to the main controller after completion. Because the serial port communication protocol of PS-LCD is inconsistent with the communication protocol of microcontroller Arduino Due, it needs to be converted and controlled during the communication process. In order to cancel the automatic reply message of the PS-LCD command execution result, in the CTP communication mode, cancel the automatic reply of the PS-LCD by calling the ctpSet(“reply”, 0) function. At the same time, PS-LCD controls the work of the microcontroller through the serial port signal generated by the communication protocol, and truly realizes the effect of human-computer interaction. Generate the interface output file spf, and then download the spf file to the PS-LCD through the PS-LCD special software tool Flex to verify the final interface effect.

本实用新型根据所要测试的光电编码器,选择不同的型号,不同型号的光电编码器定义不同的发送信号,以1型光电编码器为例,选择按钮的脚本编写子程序如下:The utility model selects different models according to the photoelectric encoder to be tested, and different types of photoelectric encoders define different sending signals. Taking Type 1 photoelectric encoder as an example, the subroutine for selecting the script of the button is as follows:

pulse.text="";//脉冲显示个数清零//pulse.text="";//Reset the number of pulse display//

result.text="";//脉冲判断结果清零//result.text="";//clear pulse judgment result//

du.text="";//角速度显示结果清零//du.text="";//The angular velocity display result is cleared//

if(xinghao.currentIndex=1)//选择第一种型号//if(xinghao.currentIndex=1)//select the first model//

sysCom0.write(0x43);//向单片机发出C控制字符//sysCom0.write(0x43);//Send C control characters to the microcontroller//

else if(xinghao.currentIndex=2)//选择第二种型号//else if(xinghao.currentIndex=2)//select the second model//

sysCom0.write(0x44);//向单片机发出C控制字符//sysCom0.write(0x44);//Send C control characters to the microcontroller//

………22………twenty two

其中sysCom0.write(0x43)为写入串口发送缓冲区,串口向外部发送一字节数据0x43,即是字符‘C’。当Arduino微控板接收到串口送过来的‘C’字符时,即可判断出待测试的光电编码器型号Ⅰ型,启动相对应的程序进行测试。同理当选择第二种型号测试时,Arduino微控板将接收到串口送过来的‘D’字符时,即可判断出待测试的光电编码器型号Ⅱ型,启动相对应的程序进行测试。Among them, sysCom0.write(0x43) is to write into the serial port sending buffer, and the serial port sends a byte of data 0x43 to the outside, which is the character 'C'. When the Arduino micro-control board receives the 'C' character sent from the serial port, it can determine the type I photoelectric encoder to be tested, and start the corresponding program for testing. Similarly, when the second type of test is selected, the Arduino micro-control board will receive the 'D' character sent from the serial port, then it can determine the type II photoelectric encoder to be tested, and start the corresponding program for testing.

综上所述,本实用新型的光电轴角编码器检测仪能够对装备的光电轴角编码器输出的性能进行检测:一、对编码器输出脉冲个数是否正常进行检测,测量出编码器的角速度;二、对编码器正转、反转两种脉冲信号进行判别;三、对脉冲信号的幅度进行测量。四、通过显示模块实时显示检测的波形。五、通过不同的接口模块实现对多种装备的光电轴角编码器的测试,还可以扩展为其他系列装备的轴角编码器进行检测。In summary, the photoelectric shaft-angle encoder tester of the present utility model can detect the output performance of the equipped photoelectric shaft-angle encoder: 1. Detect whether the number of encoder output pulses is normal, and measure the Angular velocity; 2. Discriminate the forward and reverse pulse signals of the encoder; 3. Measure the amplitude of the pulse signal. 4. Display the detected waveform in real time through the display module. 5. Through different interface modules, the test of photoelectric shaft-angle encoders of various equipments can be realized, and it can also be extended to test the shaft-angle encoders of other series of equipment.

最后所应当说明的是,以上实施例仅用以说明本实用新型的技术方案而非对本实用新型保护范围的限制,尽管参照较佳实施例对本实用新型作了详细说明,本领域的普通技术人员应当理解,可以对本实用新型的技术方案进行修改或者等同替换,而不脱离本实用新型技术方案的实质和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present utility model rather than limiting the protection scope of the present utility model. Although the utility model has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art It should be understood that the technical solution of the utility model can be modified or equivalently replaced without departing from the essence and scope of the technical solution of the utility model.

Claims (8)

1.一种光电轴角编码器检测仪,其特征在于,包括:1. A photoelectric shaft angle encoder detector, characterized in that, comprising: 信号处理模块,与待测光电编码器连接,用于将光电编码器输出的信号处理为适合检测的信号,包括光电编码器信号处理单元、数据转换单元、数字信号处理单元;The signal processing module is connected with the photoelectric encoder to be tested, and is used to process the signal output by the photoelectric encoder into a signal suitable for detection, including a photoelectric encoder signal processing unit, a data conversion unit, and a digital signal processing unit; 接口模块,与所述信号处理模块连接,用于实现检测仪对不同型号的光电编码器进行检测;The interface module is connected with the signal processing module, and is used to realize that the detector detects different types of photoelectric encoders; 信号调理模块,与所述接口模块连接,用于对光电编码器输出的不同的编码信号进行整形滤波处理,并送至控制与检测模块;The signal conditioning module is connected with the interface module, and is used for shaping and filtering the different encoded signals output by the photoelectric encoder, and sending them to the control and detection module; 控制与检测模块,与所述信号调理模块和接口模块连接,用于对经所述信号调理模块处理后的编码信号和所述接口模块传输的信号进行判别、角速度测量。The control and detection module is connected with the signal conditioning module and the interface module, and is used for distinguishing and measuring the angular velocity of the coded signal processed by the signal conditioning module and the signal transmitted by the interface module. 2.根据权利要求1所述的光电轴角编码器检测仪,其特征在于,所述光电编码器信号处理单元包括数字信号提取电路、转换电路和放大电路;2. The photoelectric shaft angle encoder tester according to claim 1, wherein the photoelectric encoder signal processing unit comprises a digital signal extraction circuit, a conversion circuit and an amplification circuit; 所述光电编码器信号处理单元用于将光电编码器输出的光信号转化为电信号并对所述电信号进行处理后输出给所述数据转换单元;The photoelectric encoder signal processing unit is used to convert the optical signal output by the photoelectric encoder into an electrical signal, process the electrical signal and output it to the data conversion unit; 所述数据转换单元用于接收经过所述光电编码器信号处理单元处理的电信号并转换成数字信号;The data conversion unit is used to receive the electrical signal processed by the photoelectric encoder signal processing unit and convert it into a digital signal; 所述数字信号处理单元用于接收所述数字信号并转换为检测信号发送至所述接口模块。The digital signal processing unit is used to receive the digital signal and convert it into a detection signal and send it to the interface module. 3.根据权利要求1所述的光电轴角编码器检测仪,其特征在于,所述信号调理模块包括脉冲化单元和方向判别单元;3. The photoelectric shaft angle encoder tester according to claim 1, wherein the signal conditioning module includes a pulse unit and a direction discrimination unit; 所述脉冲化单元与所述方向判别单元连接,用于将光电编码器输出的两路正弦波进行整形处理生成方形波信号;The pulsating unit is connected to the direction discriminating unit, and is used for shaping the two-way sine waves output by the photoelectric encoder to generate a square wave signal; 所述方向判别单元用于对所述方形波信号进行处理,并将得到的计数方波信号和方向信号送入到所述控制与检测模块进行测量。The direction judging unit is used to process the square wave signal, and send the obtained counting square wave signal and direction signal to the control and detection module for measurement. 4.根据权利要求1所述的光电轴角编码器检测仪,其特征在于,所述控制与检测模块包括Arduino Due微控制器。4. The photoelectric shaft angle encoder tester according to claim 1, wherein the control and detection module comprises an Arduino Due microcontroller. 5.根据权利要求4所述的光电轴角编码器检测仪,其特征在于,所述Arduino Due微控制器采用型号为Atmel SAM3X8E CPU的微控制器板。5. The photoelectric shaft angle encoder detector according to claim 4, wherein the Arduino Due microcontroller adopts a microcontroller board that is an Atmel SAM3X8E CPU. 6.根据权利要求1所述的光电轴角编码器检测仪,其特征在于,还包括与所述接口模块连接的自检模块,所述自检模块包括一单片机,用于通过单片机产生自检信号,并送到所述控制与检测模块进行脉冲计数,实现检测仪工作性能的判断。6. The photoelectric shaft angle encoder tester according to claim 1, further comprising a self-test module connected to the interface module, the self-test module comprising a single-chip microcomputer for generating self-test by the single-chip microcomputer The signal is sent to the control and detection module for pulse counting to realize the judgment of the working performance of the detector. 7.根据权利要求1所述的光电轴角编码器检测仪,其特征在于,还包括电源模块,用于对为检测仪供电的电源进行降压稳压处理,给待测光电编码器提供工作电压。7. The photoelectric shaft angle encoder tester according to claim 1, further comprising a power supply module for stepping down and stabilizing the power supply for the tester to provide work for the photoelectric encoder to be tested Voltage. 8.根据权利要求1所述的光电轴角编码器检测仪,其特征在于,还包括与所述控制与检测模块连接的显示模块;8. The photoelectric shaft angle encoder tester according to claim 1, further comprising a display module connected to the control and detection module; 所述显示模块包括LCD显示屏、LCD控制器、触摸屏、通讯接口和界面处理单元,所述通讯接口用于与外部控制单元连接,实现系统的人机交互界面;所述LCD显示屏用于实时显示所述控制与检测模块的脉冲个数。The display module includes an LCD display screen, an LCD controller, a touch screen, a communication interface and an interface processing unit, and the communication interface is used to connect with an external control unit to realize a human-computer interaction interface of the system; the LCD display screen is used for real-time Display the number of pulses of the control and detection module.
CN201820652510.0U 2018-05-03 2018-05-03 Photoelectric shaft encoder detector Expired - Fee Related CN208109153U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201820652510.0U CN208109153U (en) 2018-05-03 2018-05-03 Photoelectric shaft encoder detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201820652510.0U CN208109153U (en) 2018-05-03 2018-05-03 Photoelectric shaft encoder detector

Publications (1)

Publication Number Publication Date
CN208109153U true CN208109153U (en) 2018-11-16

Family

ID=64114359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201820652510.0U Expired - Fee Related CN208109153U (en) 2018-05-03 2018-05-03 Photoelectric shaft encoder detector

Country Status (1)

Country Link
CN (1) CN208109153U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108444519A (en) * 2018-05-03 2018-08-24 中国人民解放军陆军工程大学 Detector for detecting photoelectric shaft-position encoder in equipment
CN109470293A (en) * 2018-12-25 2019-03-15 哈工大机器人(合肥)国际创新研究院 A kind of detection device and detection method of adaptive coder output

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108444519A (en) * 2018-05-03 2018-08-24 中国人民解放军陆军工程大学 Detector for detecting photoelectric shaft-position encoder in equipment
CN109470293A (en) * 2018-12-25 2019-03-15 哈工大机器人(合肥)国际创新研究院 A kind of detection device and detection method of adaptive coder output

Similar Documents

Publication Publication Date Title
CN103019940B (en) A kind of electric energy meter embedded software half simulation testing device
CN102156263A (en) Excitation system simulation test device for synchronous generator
CN108444519A (en) Detector for detecting photoelectric shaft-position encoder in equipment
CN208109153U (en) Photoelectric shaft encoder detector
CN101957428A (en) Automatic test method and tool of monitoring circuit board
CN203949716U (en) A kind of digital weighing sensor
CN205156949U (en) Aerogenerator fault detection device
CN205749675U (en) Harmonic detection test platform
CN202330385U (en) General gas prober with parameter setting function
CN203951437U (en) Photovoltaic plant wind resistance checkout gear
CN103793287B (en) Method and system for capturing analog signal cycles
CN206945266U (en) A kind of disconnecting switch mechanical feature detection device
CN201322753Y (en) Rotating-speed measuring device
CN201637820U (en) Low-cost programmable logic array logic analyzing device
CN204705693U (en) Small-sized Aviation cable fault detect orientator
CN203489914U (en) A wind-driven generator parameter integrated monitoring apparatus based on a STD bus
CN113109691A (en) Portable circuit board test equipment based on VI curve
CN101776773B (en) Testing system of ship weather instrument
CN104133136A (en) A turntable frequency response test device
CN205754101U (en) Model-Based Design of Speed Control System of Permanent Magnet Synchronous Motor
CN206149295U (en) A multi-interface high-precision Internet of Things simulation tester and system
CN201251713Y (en) Digital course generator
CN205621278U (en) Power consumption information acquisition terminal Test device
CN203038260U (en) Electric energy meter embedded software semi-stimulation tester
CN204479630U (en) A kind of multi-functional data system of Oscillograph

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181116