CN111579811A - Method and device for determining output speed of driver by using photoelectric encoder - Google Patents

Method and device for determining output speed of driver by using photoelectric encoder Download PDF

Info

Publication number
CN111579811A
CN111579811A CN201910119232.1A CN201910119232A CN111579811A CN 111579811 A CN111579811 A CN 111579811A CN 201910119232 A CN201910119232 A CN 201910119232A CN 111579811 A CN111579811 A CN 111579811A
Authority
CN
China
Prior art keywords
speed
measurement
photoelectric encoder
drive
driver
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.)
Pending
Application number
CN201910119232.1A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910119232.1A priority Critical patent/CN111579811A/en
Publication of CN111579811A publication Critical patent/CN111579811A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals
    • G01P3/486Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals delivered by photo-electric detectors

Abstract

The invention discloses a method and a device for determining the output speed of a driver by using a photoelectric encoder, and relates to the technical field of computers. One embodiment of the method comprises: according to the sampling period t of the photoelectric encodersDetermining the measuring speed v of the photoelectric encoder by the actually measured number N of the photoelectric encoder and the reduction ratio K of the driver; according to the preset speed of the driver
Figure DDA0001971281530000011
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure DDA0001971281530000012
According to the embodiment, the speed measurement noise can be reduced by analyzing the speed measurement principle and the error source of the photoelectric encoder, and the abnormal data rejection standard is determined, so that the accuracy of measuring the speed by using the photoelectric encoder is improved.

Description

Method and device for determining output speed of driver by using photoelectric encoder
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for determining an output speed of a driver using a photoelectric encoder, an electronic device, and a computer-readable medium.
Background
The photoelectric encoder has the main working principle of photoelectric conversion, and is a sensor for converting mechanical geometric displacement of an output shaft into pulse or digital quantity through the photoelectric conversion. The photoelectric encoder is mainly composed of a grating disk and a photoelectric detection device, in a servo system, the grating disk and a motor are coaxial, so that the rotation of the motor drives the grating disk to rotate, then a plurality of pulse signals are output by the photoelectric detection device, and the current rotating speed of the motor can be calculated according to the pulse number per second of the signals. The code wheel of the photoelectric encoder outputs two optical codes with the phase difference of 90 degrees, and the rotating direction of the motor can be judged according to the change of the state of the two-channel output optical codes. And can be classified into an incremental type, an absolute type, and a hybrid incremental type. Photoelectric encoders have been widely used in the field of measuring the speed of devices. For example, an Automated Guided Vehicle (AGV) is provided with a photoelectric encoder, and the AGV performs positioning in real time based on sensors such as a carried photoelectric sensor, a carried vision sensor, and a carried gyroscope; based on the positioning data and the target data, the AGV movement control system sends a control instruction to a driving wheel of the driver to drive the AGV to move to a set position. Photoelectric encoder installs on driving wheel system as the necessary sensor equipment of AGV usually, can be used to measure AGV's fast information such as wheel, can realize functions such as AGV's location and motion planning further based on fast information of wheel. Therefore, the speed measurement precision of the photoelectric encoder obviously influences the actual navigation precision of the AGV.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
for speed data directly measured by a photoelectric encoder, the current method is to directly use original measured speed data; or the weighted average equal smoothing process is carried out by experience. The direct use of raw measurement speed data introduces noisy data into the system that will significantly affect control accuracy; and the data smoothing process will cause measurement lag and influence the control effect.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for determining an output speed of a driver by using a photoelectric encoder, which can reduce speed measurement noise by analyzing a speed measurement principle and an error source of the photoelectric encoder, and determine an abnormal data rejection standard, thereby improving accuracy of speed measurement by using the photoelectric encoder.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of determining an output speed of a driver using a photoelectric encoder, including: according to the sampling period t of the photoelectric encodersDetermining the measuring speed v of the photoelectric encoder by the actually measured number N of the photoelectric encoder and the reduction ratio K of the driver; according to the preset speed of the driver
Figure BDA0001971281510000021
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure BDA0001971281510000022
Optionally, the method further comprises: using the formula
Figure BDA0001971281510000023
Determining an output speed of the drive
Figure BDA0001971281510000024
Where i denotes the ith measurement, i is 1,2,3, … n,
Figure BDA0001971281510000025
output speed, v, of the drive representing the i +1 th measurementiThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure BDA0001971281510000026
representing the preset speed of the drive at the ith measurement.
Optionally, the method further comprises: using the formula
Figure BDA0001971281510000027
Determining an output speed of the drive
Figure BDA0001971281510000028
Wherein a is a weight coefficient, 0 < a < 1, i represents the ith measurement, i is 1,2,3, … n,
Figure BDA0001971281510000029
output speed, v, of the drive representing the i +1 th measurementiThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure BDA00019712815100000210
representing the preset speed of the drive at the ith measurement.
Optionally, the method further comprises: determining the measured speed v of the photosensor and the output speed of the driver determined according to claim 2
Figure BDA00019712815100000211
Whether the difference between is greater than a noise threshold value, wherein the noise threshold value is based on the sampling period tsAnd the reduction ratio K is determined; if the difference is not greater than the noise threshold, the output speed of the driver is determined according to claim 3; if the difference is greater than the noise threshold, the output speed of the drive is determined according to claim 2 or a predetermined speed of the drive is used as the output speed of the drive.
Optionally, the calculation formula of the measurement speed v of the photoelectric encoder is
Figure BDA0001971281510000031
Wherein i represents the ith measurement, i ═ 1,2,3, … n; v. ofiThe measurement speed, N, of the photoelectric encoder representing the ith measurementiImplementation of said photoelectric encoder representing the ith measurementAnd measuring the quantity.
Optionally, the weight coefficient a is 0.5.
Optionally, the noise threshold is
Figure BDA0001971281510000032
Wherein b is more than 0 and less than or equal to 4.
To achieve the above object, according to another aspect of embodiments of the present invention, there is provided an apparatus for determining an output speed of a driver using a photoelectric encoder, including: a measurement module for measuring the sampling period t of the photoelectric encodersDetermining the measuring speed v of the photoelectric encoder by the actually measured number N of the photoelectric encoder and the reduction ratio K of the driver; a calculation module for calculating a preset speed of the driver
Figure BDA0001971281510000033
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure BDA0001971281510000034
Optionally, the calculation module is further configured to use a formula
Figure BDA0001971281510000035
Determining an output speed of the drive
Figure BDA0001971281510000036
Where i denotes the ith measurement, i is 1,2,3, … n,
Figure BDA0001971281510000037
output speed, v, of the drive representing the i +1 th measurementiThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure BDA0001971281510000038
representing the preset speed of the drive at the ith measurement.
Optionally, the calculation module is further configured to use a formula
Figure BDA0001971281510000041
Determining an output speed of the drive
Figure BDA0001971281510000042
Wherein a is a weight coefficient, 0 < a < 1, i represents the ith measurement, i is 1,2,3, … n,
Figure BDA0001971281510000043
representing the output speed, v, of the i +1 th measurementiIndicating the measurement speed of the ith measurement,
Figure BDA0001971281510000044
representing the preset speed of the drive at the ith measurement.
Optionally, the calculation module is further configured to determine a measurement speed v of the photosensor and an output speed of the driver determined according to claim 2
Figure BDA0001971281510000045
Whether the difference between is greater than a noise threshold value, wherein the noise threshold value is based on the sampling period tsAnd the reduction ratio K is determined; if the difference is not greater than the noise threshold, the output speed of the driver is determined according to claim 3; if the difference is greater than the noise threshold, the output speed of the drive is determined according to claim 2 or a predetermined speed of the drive is used as the output speed of the drive.
Optionally, the measurement module is further configured to use a formula
Figure BDA0001971281510000046
Calculating the measuring speed v of the photoelectric encoder; where i denotes the ith measurement, i ═ 1,2,3, …n;viThe measurement speed, N, of the photoelectric encoder representing the ith measurementiThe number of actual measurements of the photoelectric encoder representing the i-th measurement.
Optionally, the weight coefficient a is 0.5.
Optionally, the noise threshold is
Figure BDA0001971281510000047
Wherein b is more than 0 and less than or equal to 4.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement a method of any of the methods of determining an output speed of a drive using a photoelectric encoder.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which, when executed by one or more processors, implements any one of the methods of determining an output speed of a drive using a photoelectric encoder.
One embodiment of the above invention has the following advantages or benefits: because the technical means of determining the output speed of the driver according to the measuring speed of the photoelectric encoder and the preset speed of the driver is adopted, the technical problem that the speed noise is high in the traditional method is solved, and the technical effect of improving the speed measuring precision of the photoelectric encoder is achieved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a method of determining the output speed of a drive using an optical-to-electrical encoder, in accordance with an embodiment of the present invention;
FIG. 2 is a schematic diagram of the main parts of an apparatus for determining the output speed of a drive using an optical-to-electrical encoder according to an embodiment of the present invention;
FIG. 3 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 4 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
FIG. 1 is a schematic diagram of the main steps of a method of determining the output speed of a drive using an optical-to-electrical encoder, according to an embodiment of the invention, as shown in FIG. 1:
step S101 represents the sampling period t according to the photoelectric encodersDetermining the measuring speed v of the photoelectric encoder by the actually measured number N of the photoelectric encoder and the reduction ratio K of the driver; the predefined reduction ratio K is one of transmission parameters of the driver, and can be equal to a gear reduction ratio and the like according to different driving modes; n may be a decimal number.
Said measured velocity viIs calculated as in formula (1)
Figure BDA0001971281510000061
Wherein i represents the ith measurement, i ═ 1,2,3, … n; v. ofiThe measurement speed, N, of the photoelectric encoder representing the ith measurementiThe number of actual measurements of the photoelectric encoder representing the i-th measurement.
Further, the actual number is set to
Figure BDA0001971281510000062
(may be a decimal number), the count deviation for the ith measurement is recorded as
Figure BDA0001971281510000063
True speed of the drive
Figure BDA0001971281510000064
Is calculated by the formula
Figure BDA0001971281510000065
Wherein
Figure BDA0001971281510000066
Represents the true speed of the drive for the ith measurement, so
Figure BDA0001971281510000067
However, the actual number of photoelectric encoders
Figure BDA0001971281510000068
And true speed of the drive
Figure BDA0001971281510000069
The measured speed v of the photoelectric encoder has an error because the measured number N has a deviation delta N instead of a known value
Figure BDA00019712815100000610
So if the true speed of the drive is calculated by equation (3) only
Figure BDA00019712815100000616
Will introduce errors
Figure BDA00019712815100000612
The real speed of the driver is the output speed of the driver, and the output speed is directly measured by using a photoelectric encoder in the conventional technology, namely the measured speed of the photoelectric encoder.
According to the counting principle of the photoelectric encoder, the value range of the counting deviation is delta Ni∈[-2,2]Then there is
Figure BDA00019712815100000613
The relative measurement error is
Figure BDA00019712815100000614
Or
Figure BDA00019712815100000615
Thus, the longer the sampling period and/or the greater the speed of the drive, the smaller the relative measurement error, i.e. the greater the count, the smaller the relative measurement error.
Step S102 represents a preset speed according to the driver
Figure BDA0001971281510000071
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure BDA0001971281510000072
The preset speed of the driver refers to a target value of the speed set by the system for the driver through commands.
Let the driver true tracking error at the i and i +1 measurements
Figure BDA0001971281510000073
Are respectively as
Figure BDA0001971281510000074
The measurement tracking error e of the photoelectric encoder is respectively
Figure BDA0001971281510000075
In the ideal case, the drive runs smoothly, with transients (within 10 ms)
Figure BDA0001971281510000076
Then there is
Figure BDA0001971281510000077
Then it can be obtained according to equation (3)
Figure BDA0001971281510000078
Wherein the predicted speed of the drive is
Figure BDA0001971281510000079
Further, let
Figure BDA00019712815100000710
Wherein a is a weight coefficient, 0 < a < 1, i represents the ith measurement, i is 1,2,3, … n,
Figure BDA00019712815100000711
output speed, v, of the drive representing the i +1 th measurementiThe measured speed of the drive representing the i-th measurement,
Figure BDA00019712815100000712
representing the preset speed of the drive measured the ith time. For convenience of calculation, the weight coefficient a is preferably 0.5.
Further, due to Δ NiFor random disturbance, it satisfies a uniform distribution with a mean value of 0, which is expected to be E Δ Ni)=0。
The output speed according to equation (5)
Figure BDA00019712815100000713
Is calculated by the formula
Figure BDA00019712815100000714
Predicted speed of the drive according to equation (4)
Figure BDA00019712815100000715
Is calculated by the formula
Figure BDA00019712815100000716
Where i denotes the ith measurement, i is 1,2,3, … n,
Figure BDA00019712815100000717
the predicted speed, v, of the drive representing the i +1 th measurementiThe measured speed of the drive representing the i-th measurement,
Figure BDA00019712815100000718
representing the preset speed of the drive at the ith measurement. In equations (6) and (7), the measured velocity v on the right side of the equationi、vi+1And a preset speed
Figure BDA00019712815100000719
Are known quantities, the output speed of the drive can be determined according to equation (6) and equation (7)
Figure BDA0001971281510000081
And predicted speed of the drive
Figure BDA0001971281510000082
Further, the predicted speed of the drive can be used as the output speed of the drive, i.e. there is
Figure BDA0001971281510000083
Still further, the method further comprises:
determining the measured speed v of the photoelectric encoder and the predicted speed of the driver
Figure BDA0001971281510000084
Whether the difference between is greater than a noise threshold value, wherein the noise threshold value is based on the sampling period tsAnd the reduction ratio K is determined.
Is provided with
Figure BDA0001971281510000085
The difference between the predicted speed value and the measured speed value should be satisfied theoretically
Figure BDA0001971281510000086
Figure BDA0001971281510000087
According to the principle of photoelectric encoders, Δ Ni,ΔNi+1∈[-2,2]Then there is | Δ Ni+ΔNi+1|≤4,
So that the noise threshold is
Figure BDA0001971281510000088
Wherein b is a threshold coefficient, and b is more than 0 and less than or equal to 4.
If the difference is not greater than the noise threshold, the output speed of the driver is used
Figure BDA00019712815100000815
Calculated according to equation (6).
If the difference is greater than the noise threshold, predicting speed with the driver
Figure BDA0001971281510000089
Or a preset speed of the drive
Figure BDA00019712815100000810
As output speed of the drive, i.e.
Figure BDA00019712815100000811
Figure BDA00019712815100000812
Or
Figure BDA00019712815100000813
The step can filter out speed data with larger noise and improve the calculation precision.
FIG. 2 is a schematic diagram of the main parts of an apparatus 200 for determining the output speed of a drive using an optical-to-electrical encoder according to an embodiment of the present invention, as shown in FIG. 2:
a measurement module 201 for measuring the sampling period t of the photoelectric encodersAnd determining the measuring speed v of the photoelectric encoder by the actually measured counting number N of the photoelectric encoder and the reduction ratio K of the driver.
The measurement module 201 is also used to use formulas
Figure BDA00019712815100000814
Calculating the measuring speed v of the photoelectric encoder; wherein i represents the ith measurement, i ═ 1,2,3, … n; v. ofiThe measurement speed, N, of the photoelectric encoder representing the ith measurementiThe number of actual measurements of the photoelectric encoder representing the i-th measurement.
A calculation module 202 for calculating a preset speed of the drive
Figure BDA0001971281510000091
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure BDA0001971281510000092
The calculation module 202 is also used to use formulas
Figure BDA0001971281510000093
Determining an output speed of the drive
Figure BDA0001971281510000094
Where i denotes the ith measurement, i is 1,2,3, … n,
Figure BDA0001971281510000095
output speed, v, of the drive representing the i +1 th measurementiThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure BDA0001971281510000096
representing the preset speed of the drive at the ith measurement.
The calculation module 202 is also used to use formulas
Figure BDA0001971281510000097
Determining an output speed of the drive
Figure BDA0001971281510000098
Wherein a is a weight coefficient, 0 < a < 1, i represents the ith measurement, i is 1,2,3, … n,
Figure BDA0001971281510000099
output speed, v, of the drive representing the i +1 th measurementiThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure BDA00019712815100000910
representing the preset speed of the drive at the ith measurement. The weight coefficient a is preferably 0.5.
The calculation module 202 is also used to determine the measured speed v of the photosensor and the output speed of the driver determined according to claim 2
Figure BDA00019712815100000911
Whether a difference between is greater than a noise threshold, wherein the noise isAcoustic threshold value according to said sampling period tsAnd the reduction ratio K is determined; the noise threshold is
Figure BDA00019712815100000912
Wherein b is more than 0 and less than or equal to 4.
If the difference is not greater than the noise threshold, the output speed of the driver is based on
Figure BDA00019712815100000913
And (4) determining.
If the difference is greater than the noise threshold, the output speed of the driver is based on
Figure BDA00019712815100000914
Determining or taking a preset speed of the drive as an output speed of the drive.
Fig. 3 illustrates an exemplary system architecture 300 of a method of determining an output speed of a drive using an optical-to-electrical encoder or an apparatus for determining an output speed of a drive using an optical-to-electrical encoder to which embodiments of the present invention may be applied.
As shown in fig. 3, the system architecture 300 may include terminal devices 301, 302, 303, a network 304, and a server 305. The network 304 serves as a medium for providing communication links between the terminal devices 301, 302, 303 and the server 305. Network 304 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal device 301, 302, 303 to interact with the server 305 via the network 304 to receive or send messages or the like.
The terminal devices 301, 302, 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 305 may be a server providing various services, such as a background management server providing support for users using the terminal devices 301, 302, 303.
It should be noted that a method for determining the output speed of the drive by using the optical-electrical encoder provided by the embodiment of the present invention is generally executed by the server 305, and accordingly, an apparatus for determining the output speed of the drive by using the optical-electrical encoder is generally disposed in the server 305.
It should be understood that the number of terminal devices, networks, and servers in fig. 3 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
FIG. 4 is a block diagram of a computer system 400 suitable for implementing a terminal device of an embodiment of the present invention. The terminal device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU)401 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, the processes described in the above step diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, the disclosed embodiments of the invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the step diagrams. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program performs the above-described functions defined in the system of the present invention when executed by a Central Processing Unit (CPU) 401.
It should be noted that the computer readable media shown in the present invention include computer readable signal media or computer readable storage media, or any combination of the two. A computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, semiconductor system, apparatus, or device, or any combination of the foregoing. Computer-readable storage media specifically include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any combination of the foregoing. In the present invention, a computer readable storage medium includes any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device; a computer readable signal medium includes a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave, which may take many forms, including, but not limited to, electromagnetic signals, optical signals, or any combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF (radio frequency), etc., or any combination of the preceding.
The block diagrams or step diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention, may each represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or step diagrams, and combinations of blocks in the block diagrams or step diagrams, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware. The described modules or units may also be provided in a processor, and may be described as: a processor includes a measurement module and a calculation module. Where the names of these modules or units do not in some way constitute a limitation of the module or unit itself, for example, the calculation module may also be described as "for a preset speed of the drive
Figure BDA0001971281510000131
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure BDA0001971281510000132
The module of (1) ".
On the other hand, the embodiment of the present invention also provides a computer-readable medium, which may be included in the apparatus described in the above embodiment; or may be separate and not incorporated into the device. The above computer readableThe medium carries one or more programs which, when executed by an apparatus, cause the apparatus to comprise: according to the sampling period t of the photoelectric encodersDetermining the measuring speed v of the photoelectric encoder by the actually measured number N of the photoelectric encoder and the reduction ratio K of the driver; according to the preset speed of the driver
Figure BDA0001971281510000133
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure BDA0001971281510000134
According to the technical scheme of the embodiment of the invention, the speed measurement noise can be reduced by analyzing the speed measurement principle and the error source of the photoelectric encoder, and the abnormal data rejection standard is determined, so that the accuracy of measuring the speed by using the photoelectric encoder is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (16)

1. A method of determining an output speed of a drive using an opto-electronic encoder, comprising:
according to the sampling period t of the photoelectric encodersDetermining the measuring speed v of the photoelectric encoder by the actually measured number N of the photoelectric encoder and the reduction ratio K of the driver;
according to the preset speed of the driver
Figure FDA0001971281500000011
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure FDA0001971281500000012
2. The method of claim 1, further comprising: using the formula
Figure FDA0001971281500000013
Determining an output speed of the drive
Figure FDA0001971281500000014
Where i denotes the ith measurement, i is 1,2,3, … n,
Figure FDA0001971281500000015
output speed, v, of the drive representing the i +1 th measurementiThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure FDA0001971281500000016
representing the preset speed of the drive at the ith measurement.
3. The method of claim 1, further comprising:
using the formula
Figure FDA0001971281500000017
Determining an output speed of the drive
Figure FDA0001971281500000018
Wherein a is a weight coefficient, 0 < a < 1, i represents the ith measurement, i is 1,2,3, … n,
Figure FDA0001971281500000019
denotes the i +1 th measurementOf the driver, viThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure FDA00019712815000000110
representing the preset speed of the drive at the ith measurement.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
determining the measured speed v of the photosensor and the output speed of the driver determined according to claim 2
Figure FDA00019712815000000111
Whether the difference between is greater than a noise threshold value, wherein the noise threshold value is based on the sampling period tsAnd the reduction ratio K is determined;
if the difference is not greater than the noise threshold, the output speed of the driver is determined according to claim 3;
if the difference is greater than the noise threshold, the output speed of the drive is determined according to claim 2 or a predetermined speed of the drive is used as the output speed of the drive.
5. The method according to claim 1, wherein the measurement speed v of the photoelectric encoder is calculated by the formula
Figure FDA0001971281500000021
Wherein i represents the ith measurement, i ═ 1,2,3, … n; v. ofiThe measurement speed, N, of the photoelectric encoder representing the ith measurementiThe number of actual measurements of the photoelectric encoder representing the i-th measurement.
6. The method of claim 3, wherein the weighting factor a is 0.5.
7. The method of claim 4, wherein the noise threshold is
Figure FDA0001971281500000022
Wherein b is more than 0 and less than or equal to 4.
8. An apparatus for determining an output speed of a drive using an opto-electronic encoder, comprising:
a measurement module for measuring the sampling period t of the photoelectric encodersDetermining the measuring speed v of the photoelectric encoder by the actually measured number N of the photoelectric encoder and the reduction ratio K of the driver;
a calculation module for calculating a preset speed of the driver
Figure FDA0001971281500000023
And the measured speed v of the photoelectric encoder determines the output speed of the driver
Figure FDA0001971281500000024
9. The apparatus of claim 8, wherein the calculation module is further configured to use a formula
Figure FDA0001971281500000025
Determining an output speed of the drive
Figure FDA0001971281500000026
Where i denotes the ith measurement, i is 1,2,3, … n,
Figure FDA0001971281500000032
output speed, v, of the drive representing the i +1 th measurementiSaid photoelectric encoder representing the ith measurementThe speed of the code device is measured and,
Figure FDA0001971281500000033
representing the preset speed of the drive at the ith measurement.
10. The apparatus of claim 8, wherein the calculation module is further configured to use a formula
Figure FDA0001971281500000034
Determining an output speed of the drive
Figure FDA0001971281500000035
Wherein a is a weight coefficient, 0 < a < 1, i represents the ith measurement, i is 1,2,3, … n,
Figure FDA0001971281500000036
output speed, v, of the drive representing the i +1 th measurementiThe measurement speed of the photoelectric encoder representing the ith measurement,
Figure FDA0001971281500000037
representing the preset speed of the drive at the ith measurement.
11. Device according to claim 9 or 10, wherein the calculation module is further configured to determine the measured speed v of the photosensor and the output speed of the driver determined according to claim 2
Figure FDA0001971281500000038
Whether the difference between is greater than a noise threshold value, wherein the noise threshold value is based on the sampling period tsAnd the reduction ratio K is determined;
if the difference is not greater than the noise threshold, the output speed of the driver is determined according to claim 3;
if the difference is greater than the noise threshold, the output speed of the drive is determined according to claim 2 or a predetermined speed of the drive is used as the output speed of the drive.
12. The apparatus of claim 8, wherein the measurement module is further configured to use a formula
Figure FDA0001971281500000031
Calculating the measuring speed v of the photoelectric encoder; wherein i represents the ith measurement, i ═ 1,2,3, … n; v. ofiThe measurement speed, N, of the photoelectric encoder representing the ith measurementiThe number of actual measurements of the photoelectric encoder representing the i-th measurement.
13. The apparatus of claim 10, wherein the weighting factor a is 0.5.
14. The apparatus of claim 11, wherein the noise threshold is
Figure FDA0001971281500000041
Wherein b is more than 0 and less than or equal to 4.
15. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
16. A computer-readable medium, on which a computer program is stored, which, when being executed by one or more processors, carries out the method according to any one of claims 1-7.
CN201910119232.1A 2019-02-18 2019-02-18 Method and device for determining output speed of driver by using photoelectric encoder Pending CN111579811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910119232.1A CN111579811A (en) 2019-02-18 2019-02-18 Method and device for determining output speed of driver by using photoelectric encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910119232.1A CN111579811A (en) 2019-02-18 2019-02-18 Method and device for determining output speed of driver by using photoelectric encoder

Publications (1)

Publication Number Publication Date
CN111579811A true CN111579811A (en) 2020-08-25

Family

ID=72125965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910119232.1A Pending CN111579811A (en) 2019-02-18 2019-02-18 Method and device for determining output speed of driver by using photoelectric encoder

Country Status (1)

Country Link
CN (1) CN111579811A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0618283A (en) * 1992-07-03 1994-01-25 Nikon Corp Photoelectric absolute encoder
CN201731895U (en) * 2010-06-22 2011-02-02 上海理工大学 Coder testing device based on virtual instrument
CN103048484A (en) * 2012-12-03 2013-04-17 苏州汇川技术有限公司 Speed measurement system and method of servo motor
CN104569472A (en) * 2015-01-23 2015-04-29 上海大学 Speed acquisition method based on photoelectric pulse encoder
CN105738642A (en) * 2016-02-03 2016-07-06 上海新源工业控制技术有限公司 T-method motor speed measurement method of four-way parallel sampling
CN207991579U (en) * 2018-02-13 2018-10-19 吉林宇恒光电仪器有限责任公司 Photoelectric encoder angular error automatic checkout system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0618283A (en) * 1992-07-03 1994-01-25 Nikon Corp Photoelectric absolute encoder
CN201731895U (en) * 2010-06-22 2011-02-02 上海理工大学 Coder testing device based on virtual instrument
CN103048484A (en) * 2012-12-03 2013-04-17 苏州汇川技术有限公司 Speed measurement system and method of servo motor
CN104569472A (en) * 2015-01-23 2015-04-29 上海大学 Speed acquisition method based on photoelectric pulse encoder
CN105738642A (en) * 2016-02-03 2016-07-06 上海新源工业控制技术有限公司 T-method motor speed measurement method of four-way parallel sampling
CN207991579U (en) * 2018-02-13 2018-10-19 吉林宇恒光电仪器有限责任公司 Photoelectric encoder angular error automatic checkout system

Similar Documents

Publication Publication Date Title
CN112643665B (en) Calibration method and device for installation error of absolute pose sensor
CN110293563B (en) Method, apparatus, and storage medium for estimating pose of robot
JP2016114603A (en) Method and system for processing gps drifting
CN111207740A (en) Method, device, equipment and computer readable medium for positioning vehicle
CN112478540B (en) Method and device for controlling rotation of tray
CN112590929B (en) Correction method, apparatus, electronic device, and medium for steering wheel of autonomous vehicle
CN113306570B (en) Method and device for controlling an autonomous vehicle and autonomous dispensing vehicle
CN111912428B (en) Method and system for detecting gyroscope
EP3677873B1 (en) Instant correction method for encoder and system thereof
CN111579811A (en) Method and device for determining output speed of driver by using photoelectric encoder
CN110044252A (en) A kind of measuring device and measuring method for detection axis rotational angle
CN110133316B (en) Precise speed measurement system and method for photoelectric encoder
CN112462326A (en) Position information determining method and device, electronic equipment and storage medium
CN116678403A (en) Temperature compensation method, device, equipment and storage medium of inertial measurement device
CN111181559B (en) Method, device, equipment and storage medium for rotary soft decoding
CN114724115B (en) Method, device and equipment for generating obstacle positioning information and computer readable medium
CN112788743A (en) Positioning method and device based on ultra-wideband technology
CN115235527A (en) Sensor external parameter calibration method and device and electronic equipment
CN115495038A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN112649017A (en) Method and device for calibrating system error of odometer
CN114399587A (en) Three-dimensional lane line generation method and device, electronic device and computer readable medium
CN114488237A (en) Positioning method and device, electronic equipment and intelligent driving method
CN115223735A (en) Rod position determination method and device for pressurized water reactor control rod and rod position measurement system
CN114046815A (en) Encoder self-correction method and device based on deep learning
CN117375462B (en) Stepping motor calibration method, device, equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination