Optical encoder and calculation method of optical encoder
阅读说明:本技术 光编码器和光编码器的计算方法 (Optical encoder and calculation method of optical encoder ) 是由 加藤庆显 于 2020-03-27 设计创作,主要内容包括:一种光编码器,包括:标尺;头部,其包括光源、图像捕获器和具有第一透镜和第二透镜的透镜阵列;和计算器。该计算器包括:信号生成器,其生成正弦波信号;分析区域提取器,其提取第一分析区域和第二分析区域;信号组合器,其基于区域间距离,使用第二分析区域的正弦波信号来生成延伸到第一分析区域的第一端的正弦波信号,使得生成的正弦波信号与第一分析区域的正弦波信号重叠,并且将第一分析区域的正弦波信号与该生成的正弦波信号进行组合;以及位移量计算器,其基于由信号组合器组合的正弦波信号来计算相对位移量。(An optical encoder, comprising: a scale; a head including a light source, an image capturer, and a lens array having a first lens and a second lens; and a calculator. The calculator includes: a signal generator that generates a sine wave signal; an analysis region extractor that extracts a first analysis region and a second analysis region; a signal combiner that generates a sine wave signal extending to a first end of the first analysis region using the sine wave signal of the second analysis region based on the inter-region distance such that the generated sine wave signal overlaps with the sine wave signal of the first analysis region, and combines the sine wave signal of the first analysis region with the generated sine wave signal; and a displacement amount calculator that calculates a relative displacement amount based on the sine wave signals combined by the signal combiner.)
1. An optical encoder, comprising:
a scale having a periodic scale pattern disposed along a measurement direction;
a head portion that faces the scale and is displaced relative to the scale along the measurement direction, the head portion including:
a light source that emits light to the scale;
an image capturer that captures an image of light from the light source that arrives via the scale; and
a lens array disposed between the scale and the image capturer, the lens array comprising:
a first lens that forms an image on the image capturer that arrives via the scale pattern; and
a second lens that is arranged parallel to the first lens along the measurement direction and forms an image arriving via the scale pattern on the image capturer, and
a calculator to calculate a signal based on relative displacement between the scale and the head, the calculator comprising a processor and a memory storing a set of executable instructions, wherein when the processor executes the executable instructions the calculator operates as:
a signal generator that generates respective sine wave signals from an image formed by the first lens and an image formed by the second lens captured by the image capturer;
an analysis region extractor that extracts a sine wave signal of at least one cycle from the sine wave signal of the image formed by the first lens to serve as a first analysis region, and extracts a sine wave signal of the same cycle number as that of the first analysis region from the sine wave signal of the image formed by the second lens to serve as a second analysis region;
a signal combiner that generates a sine wave signal extending to a first end of the first analysis region using the sine wave signal of the second analysis region based on an inter-region distance that is a distance from the first end of the first analysis region to a first end of the second analysis region such that the generated sine wave signal overlaps with the sine wave signal of the first analysis region, and combines the sine wave signal of the first analysis region with the generated sine wave signal based on the sine wave signal of the second analysis region; and
a displacement amount calculator that calculates a relative displacement amount between the scale and the head portion based on the sine wave signals combined by the signal combiner.
2. The optical encoder of claim 1, wherein:
the image capturer includes light receivers arranged in parallel along the measuring direction at a placement pitch p,
the analysis region extractor extracts the first analysis region and the second analysis region from a sine wave signal of an image formed by the first lens and a sine wave signal of an image formed by the second lens in such a manner that one period Λ is multiplied by an integer Q, and
the light receivers are arranged in parallel as a multiple of an integer q so that the light receivers are divisible by one period Λ and the placement pitch p.
3. The optical encoder according to claim 2, wherein when a point on a first end of the first analysis region is defined as N-1, a point on a second end of the first analysis region is defined as N-m, a point on a first end of the second analysis region is defined as N-m +1, a point on a second end of the second analysis region is defined as N-N, a signal intensity of the nth point is defined as yn, one period included in the first analysis region and the second analysis region is defined as Λ, the inter-region distance is defined as d, a placement pitch of the optical receiver is defined as p, and a phase is defined as Φ, the signal combiner and the displacement amount calculator combine the signals using formula (1),
and calculating a relative displacement amount between the scale and the head.
4. A calculation method of an optical encoder including a scale having a periodic scale pattern arranged along a measurement direction, a head facing the scale and displaced relative to the scale along the measurement direction, the head portion includes a light source that emits light toward the scale, an image capturer that captures an image of the light from the light source that reaches via the scale, and a lens array disposed between the scale and the image capturer, wherein the lens array includes a first lens and a second lens, wherein the first lens forms an image on the image capturer that arrives via the scale pattern, and the second lens is arranged parallel to the first lens along the measurement direction and forms an image arriving via the scale pattern on the image capturer, the method comprising:
generating respective sine wave signals from an image formed by the first lens and an image formed by the second lens captured by the image capturer;
extracting a sine wave signal of at least one cycle from a sine wave signal of an image formed by the first lens to be used as a first analysis area,
extracting a sine wave signal of the same number of cycles as the number of cycles of the first analysis area from a sine wave signal of an image formed by the second lens to serve as a second analysis area;
generating a sine wave signal extending to a first end of the first analysis region using the sine wave signal of the second analysis region based on an inter-region distance that is a distance from the first end of the first analysis region to the first end of the second analysis region such that the generated sine wave signal overlaps with the sine wave signal of the first analysis region;
combining the sine wave signal of the first analysis region with the generated sine wave signal based on the sine wave signal of a second analysis region; and
calculating a relative displacement amount between the scale and the head based on the combined sine wave signal.
Technical Field
The present invention relates to an optical encoder including a lens array, and a calculation method of the optical encoder.
Background
Conventionally, there is known an optical encoder including a scale having a periodic scale pattern disposed along a measurement direction, a head facing the scale and displaced relative to the scale along the measurement direction, and a calculator calculating a signal based on a relative displacement between the scale and the head. The head includes a light source that emits light to the scale, an image capturer that captures an image of the light from the light source that reaches via the scale, and a lens that is disposed between the scale and the image capturer. The calculator calculates a relative displacement amount between the scale and the head based on the light from the light source captured by the image capturer.
Fig. 7A and 7B are graphs illustrating a method of performing phase analysis on a sinusoidal signal using a conventional calculator. For example, as shown in fig. 7A, the calculator generates a sine wave signal from light captured in an image capture area H, which is an area in the image capture device where light can be captured. One period of the sine wave signal is represented by Λ. The calculator calculates the amount of relative displacement between the scale and the head by performing phase analysis on the generated sine wave signal. At this time, the calculator may perform high-precision analysis using fourier transform in phase analysis.
In this example, the size of the optical encoder depends on the focal length of the optical system (lens). Specifically, light from the light source is emitted to the image capturer via the scale and the lens, but in order to clearly emit an image (light) that arrives via the scale, the focal length of the lens must be adjusted. In order to focus the system so that the entire image emitted to the image capturer (i.e., the entire image capturing area H) is clearly formed, a certain amount of distance must be provided between the scale and the lens and between the lens and the image capturer. Further, the size of the lens is configured to be a size proportional to the image capturing area H. Therefore, the optical encoder can be made large in association with the size of the lens, the focal length, and the size of the image capturing area H.
In response to these problems, for example, in japanese unexamined patent publication No. 2005-522682 and japanese patent laid-open publication No. 2012-32295, a lens array having a plurality of small-diameter lenses is used instead of a single lens. The plurality of small-diameter lenses in the lens array each have a small image capturing area and a short focal length, and therefore, the optical encoder can be made smaller than when a single lens is used. However, when the lens array is used, an image cannot be formed at the boundary between the plurality of small-diameter lenses, and as shown in fig. 7B, an image emitted to the image capturer is formed in a state where each small-diameter lens is isolated, for example, as in the first image capturing area H1 and the second image capturing area H2.
In view of these problems, an optical encoder of japanese unexamined patent publication No. 2005-522682 (photoelectric encoder) is configured to balance the arrangement of each small-diameter lens so that images formed by photodetectors (image capturers) are overlapped with a coordinate phase, and by adjusting the periodicity of the lens array, no isolation occurs in the images formed by the photodetectors. Further, when the lens array is formed of, for example, plastic, characteristics such as the focal length of each small-diameter lens may vary due to temperature changes such as thermal expansion, but the optical encoder of japanese patent laid-open publication No. 2012-32295 corrects the amount of variation in each small-diameter lens using, for example, the least square method. In the isolated sine wave signals as in the first image-capturing region H1 and the second image-capturing region H2, the phase can be analyzed with the same accuracy as when fourier transform is employed using the least squares method.
However, in the optical encoder of japanese patent laid-open publication No. 2012-32295, even when the phase can be analyzed with high accuracy by the calculation, unstable matrix calculation occurs when the optical encoder is mounted in, for example, a microcomputer, and a significant phase error may occur due to, for example, the influence of rounding errors. In addition, phase analysis using the least squares method has a very large amount of calculation content compared to fourier transform, and thus requires time for calculation.
Disclosure of Invention
An advantage of the present invention is to provide an optical encoder that can calculate the relative displacement amount between a scale and a head with high accuracy even when a lens array having a plurality of small-diameter lenses is used.
An optical encoder according to the present invention is an optical encoder including a scale having a periodic scale pattern provided along a measurement direction, a head facing the scale and displaced relative to the scale along the measurement direction, and a calculator that calculates a signal based on a relative displacement between the scale and the head, and the head includes: a light source that emits light to the scale; an image capturer that captures an image of light from the light source that reaches via the scale; and a lens array disposed between the scale and the image capturer. The lens array includes a first lens and a second lens, wherein the first lens forms an image arriving via the scale pattern on the image capturer, and the second lens is arranged parallel to the first lens along the measurement direction, and forms an image arriving via the scale pattern on the image capturer. The calculator includes: a signal generator that generates respective sine wave signals from an image formed by the first lens and an image formed by the second lens captured by the image capturer; an analysis region extractor that extracts a sine wave signal of at least one cycle from the sine wave signal of the image formed by the first lens to serve as a first analysis region, and extracts a sine wave signal of the same cycle number as that of the first analysis region from the sine wave signal of the image formed by the second lens to serve as a second analysis region; a signal combiner that generates a sine wave signal extending to the first end of the first analysis region using the sine wave signal of the second analysis region based on an inter-region distance that is a distance from the first end of the first analysis region to the first end of the second analysis region such that the generated sine wave signal overlaps with the sine wave signal of the first analysis region, and combines the sine wave signal of the first analysis region with the generated sine wave signal based on the sine wave signal of the second analysis region; and a displacement amount calculator that calculates a relative displacement amount between the scale and the head portion based on the sine wave signals combined by the signal combiner.
According to the present invention, in the calculator, a sine wave signal extending to the first end of the first analysis region is generated from the sine wave signal of the second analysis region based on the inter-region distance using the signal combiner so that the generated sine wave signal overlaps with the sine wave signal of the first analysis region, and the sine wave signal of the first analysis region is combined with the generated sine wave signal based on the sine wave signal of the second analysis region, and the relative displacement amount between the scale and the head is calculated based on the sine wave signal combined by the signal combiner using the displacement amount calculator. Therefore, the signal of the image not formed at the boundary between the first lens and the second lens (which is a plurality of small-diameter lenses) can be interpolated without any complicated calculation or correction. Therefore, even when a lens array having a plurality of small-diameter lenses is used, the optical encoder can calculate the relative displacement amount between the scale and the head with high accuracy.
In this case, preferably, the image capturer includes light receivers arranged in parallel along the measurement direction at a placement pitch p, the analysis region extractor extracts the first analysis region and the second analysis region from the sine wave signal of the image formed by the first lens and the sine wave signal of the image formed by the second lens in such a manner that one period Λ is multiplied by an integer Q, and the light receivers are arranged in parallel as a multiple of the integer Q so that the light receivers are divisible by both the one period Λ and the placement pitch p.
According to this configuration, the analysis region extractor performs extraction on the first analysis region and the second analysis region, respectively, in such a manner that one period Λ of the sine wave signal is multiplied by an integer Q, and the optical receivers are arranged in parallel as a multiple of the integer Q so that the optical receivers are divisible by both the one period Λ and the placement pitch p, and thus, for example, fourier transform can be used to analyze the phase. Therefore, even when a lens array is used, the optical encoder can analyze the phase with high accuracy using fourier transform.
In this case, preferably, when a point on the first end of the first analysis region is defined as N ═ 1, a point on the second end of the first analysis region is defined as N ═ m, a point on the first end of the second analysis region is defined as N ═ m +1, a point on the second end of the second analysis region is defined as N ═ N, the signal intensity of the nth point is defined as yn, one period included in the first analysis region and the second analysis region is defined as Λ, the inter-region distance is defined as d, the placement pitch of the optical receivers is defined as p, and the phase is defined as Φ, the signal combiner and the displacement amount calculator combine signals using formula (1) provided in the following embodiments, and calculate the relative displacement amount between the scale and the head.
According to such a configuration, the calculator can calculate the relative displacement amount between the scale and the head portion using the formula (1), and therefore, the present invention can be easily mounted on, for example, a microcomputer.
A calculation method of an optical encoder according to the present invention is a calculation method of an optical encoder including a scale having a periodic scale pattern provided along a measurement direction, a head facing the scale and displaced relative to the scale along the measurement direction, and a calculator that calculates a signal based on a relative displacement between the scale and the head, and the head includes a light source that emits light to the scale; an image capturer that captures an image of light from the light source that reaches via the scale; and a lens array disposed between the scale and the image capturer. The lens array includes a first lens and a second lens, wherein the first lens forms an image arriving via the scale pattern on the image capturer, and the second lens is arranged parallel to the first lens along the measurement direction, and forms an image arriving via the scale pattern on the image capturer. The calculator includes: a signal generating step of generating respective sine wave signals from an image formed by the first lens and an image formed by the second lens captured by the image capturer; an analysis region extraction step of extracting a sine wave signal of at least one cycle from the sine wave signal of the image formed by the first lens to be used as a first analysis region, and extracting a sine wave signal of the same cycle number as the cycle number of the first analysis region from the sine wave signal of the image formed by the second lens to be used as a second analysis region; a signal combining step of generating a sine wave signal extending to a first end of a first analysis region using a sine wave signal of a second analysis region based on an inter-region distance that is a distance from the first end of the first analysis region to the first end of the second analysis region such that the generated sine wave signal overlaps with the sine wave signal of the first analysis region, and combining the sine wave signal of the first analysis region with the generated sine wave signal based on the sine wave signal of the second analysis region; and a displacement amount calculating step of calculating a relative displacement amount between the scale and the head portion based on the sine wave signals combined in the signal combining step.
According to the present invention, in the calculator, a sine wave signal extending to the first end of the first analysis region is generated from the sine wave signal of the second analysis region based on the inter-region distance in the signal combining step so that the generated sine wave signal overlaps with the sine wave signal of the first analysis region, and the sine wave signal of the first analysis region is combined with the generated sine wave signal based on the sine wave signal of the second analysis region, and in the displacement amount calculating step, the relative displacement amount between the scale and the head is calculated based on the combined sine wave signal. Therefore, the signal of the image not formed at the boundary between the first lens and the second lens (which is a plurality of small-diameter lenses) can be interpolated without any complicated calculation or correction. Therefore, even when the optical encoder uses a lens array having a plurality of small-diameter lenses, the calculation method of the optical encoder can calculate the relative displacement amount between the scale and the head with high accuracy.
Drawings
The present invention is further described in the detailed description which follows, in reference to the noted plurality of drawings by way of non-limiting examples of exemplary embodiments of the present invention, in which like reference numerals represent similar parts throughout the several views of the drawings, and wherein:
FIG. 1 is a perspective view of an optical encoder according to an embodiment of the present invention;
FIG. 2 is a block diagram illustrating an optical encoder;
FIG. 3 is a flowchart showing a method of calculating the relative displacement amount with a calculator of an optical encoder;
fig. 4A to 4C are graphs showing a method of calculating the relative displacement amount with a calculator of an optical encoder;
fig. 5D and 5E are graphs showing a method of calculating the relative displacement amount with a calculator of an optical encoder;
fig. 6A and 6B are perspective views of an optical encoder according to a modification; and
fig. 7A and 7B are graphs illustrating a method of performing phase analysis on a sinusoidal signal using a conventional calculator.
Detailed Description
The particulars shown herein are by way of example and for purposes of illustrative discussion of the embodiments of the present invention only and are presented in the cause of providing what is believed to be the most useful and readily understood description of the principles and conceptual aspects of the present invention. In this regard, no attempt is made to show structural details of the invention in more detail than is necessary for a fundamental understanding of the invention, the description taken with the drawings making apparent to those skilled in the art how the forms of the invention may be embodied in practice.
Hereinafter, an embodiment of the present invention is described with reference to fig. 1 to 4C. In each drawing, the long direction of the
The
The
For example, the
The
Fig. 2 is a block diagram showing the
The
Based on the inter-area distance (distance from the first end of the first analysis area to the first end of the second analysis area), the
Fig. 3 is a flowchart illustrating a method of calculating the relative displacement amount with the calculator 7 of the
First, as shown in fig. 3, a signal generation step is performed in which, when the
Next, as shown in fig. 3 and 4A, an analysis region extraction step is performed in which the
The
Next, a signal combining step is performed in which, based on the inter-area distance D, that is, the distance from the first end (left side on the drawing sheet) of the first analysis area H1 to the first end (left side on the drawing sheet) of the second analysis area H2, as shown in fig. 4B and 4C, the
In addition, as shown in fig. 3, a displacement amount calculating step is performed in which the
The
[ equation 1]
Even when a sine wave signal for finding a phase cannot be obtained by merely isolating sine wave signals generated by the
In this way, the following effects and advantages can be achieved according to the present embodiment:
(1) in the calculator 7, a sine wave signal extending to the first end of the first analysis region H1 is generated from the sine wave signal of the second analysis region H2 based on the inter-region distance d using the
(2) The
(3) The calculator 7 can calculate the relative displacement amount between the
(4) In the calculator 7, in the signal combining step, a sine wave signal extending to the first end of the first analysis region H1 is generated from the sine wave signal of the second analysis region H2 based on the inter-region distance d so that the generated sine wave signal overlaps with the sine wave signal of the first analysis region H1, and the sine wave signal of the first analysis region H1 is combined with the generated sine wave signal based on the sine wave signal of the second analysis region H2, and in the displacement amount calculating step, the relative displacement amount between the
Modifying
Further, the present invention is not limited to the above-described embodiments, and includes modifications and improvements within a range in which the advantages of the present invention can be achieved. For example, in the above-described embodiment, the
In the above embodiment, the
In the above-described embodiment, the analysis-
In the above-described embodiment, in fig. 4A to 5E, the first analysis region H1 is shown on the left side of the drawing sheet and the second analysis region H2 is shown on the right side, but the left side of the drawing sheet may be regarded as the second analysis region H2 and the right side of the drawing sheet may be regarded as the first analysis region H1. Also, based on the inter-area distance d, which is the distance from the first end (left side on the drawing sheet) of the first analysis area H1 to the first end (left side on the drawing sheet) of the second analysis area H2, as shown in fig. 4B and 4C, the
In the above-described embodiment, the
Also, the
Fig. 6A and 6B are perspective views of an optical encoder according to a modification. Specifically, fig. 6A is a perspective view of an optical encoder 1A according to a first modification, and fig. 6B is a perspective view of an
In the first modification, the
In the second modification, as shown in fig. 6B, the
As described above, the present invention can be advantageously applied to an optical encoder including a lens array, and a calculation method of the optical encoder.
It should be noted that the foregoing examples have been provided merely for the purpose of explanation and are in no way to be construed as limiting of the present invention. While the present invention has been described with reference to exemplary embodiments, it is understood that the words which have been used herein are words of description and illustration, rather than words of limitation. Changes may be made, within the purview of the appended claims, as presently stated and as amended, without departing from the scope of the present invention in its aspects. Although the invention has been described herein with reference to particular structure, materials and embodiments, the invention is not intended to be limited to the particulars disclosed herein; rather, the invention extends to all functionally equivalent structures, methods and uses, such as are within the scope of the appended claims.
The present invention is not limited to the above-described embodiments, and various changes and modifications are possible without departing from the scope of the present invention.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:分体式角度编码器的调制盘及其安装总成和安装方法