This application is a National Stage Patent Application of PCT International Patent Application No. PCT/JP2018/007826 (filed on Mar. 1, 2018) under 35 U.S.C. § 371, which claims priority to Japanese Patent Application No. 2017-079611 (filed on Apr. 13, 2017), which are all hereby incorporated by reference in their entirety.
The present disclosure relates to a position detection device and a position detection method.
Conventionally, for example, Patent Document 1 discloses an absolute encoder having a scale unit having at least a main track, a first address track, and a second address track and processing means detecting a phase difference from the scale unit, performing address determination on the basis of a plurality of detected phase differences, and calculating a position or an angle of a target to be measured.
Patent Document 1: Japanese Patent Application. Laid-Open No. 2013-96813
However, in the technology described in the above Patent Document, when detecting the phase difference from the scale unit, a phase modulation signal corresponding to a detection signal of a sensor is output, but there is a problem that an angle accuracy decreases since it is affected by a signal distortion due to a processing error of the scale unit, an assembly error of the sensor, or the like.
Therefore, it has been required to suppress an influence of the signal distortion due to the processing error, the assembly error of the sensor, or the like.
According to the present disclosure, there is provided a position detection device including: a waveform correction unit that corrects waveforms of a first signal and a second signal, the first signal being detected from a first track provided on a moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; and a position calculation unit that calculates a position of the moving body on the basis of the corrected first signal and second signal.
Furthermore, according to the present, disclosure, there is provided a position detection device including: a first interpolation angle calculation unit that calculates a first interpolation angle from a first signal detected from a first track provided on a moving body and having a scale of predetermined cycles; a second interpolation angle calculation unit that calculates a second interpolation angle from a second signal detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; a first position calculation unit that calculates a position of the moving body on the basis of the first interpolation angle and the second interpolation angle; an interpolation angle correction unit that corrects the first interpolation angle and the second interpolation angle on the basis of the position of the moving body; and a second position calculation unit that calculates a position of the moving body on the basis of the corrected first interpolation angle and second interpolation angle.
Furthermore, according to the present disclosure, there is provided a position detection method including: correcting waveforms of a first signal and a second signal, the first signal being detected from a first track provided on a moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; and calculating a position of the moving body on the basis of the corrected first signal and second signal.
Furthermore, according to the present disclosure, there is provided a position detection method including: calculating a first interpolation angle from a first signal detected from a first track provided on a moving body and having a scale of predetermined cycles; calculating a second interpolation angle from a second signal detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; calculating a position of the moving body on the basis of the first interpolation angle and the second interpolation angle; correcting the first interpolation angle and the second interpolation angle on the basis of the position of the moving body; and calculating a position of the moving body on the basis of the corrected first interpolation angle and second interpolation angle.
As described above, according to the present disclosure, it is possible to suppress an influence of a signal distortion due to a processing error, an assembly error of a sensor, or the like.
Note that the effect described above is not necessarily restrictive, and any effect set forth in the present specification or other effects that can be grasped from the present specification may be accomplished together with or instead of the effect described above.
Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Note that in the present specification and the drawings, components having substantially the same functional configuration will be denoted by the same reference numerals and an overlapping description will be omitted.
Note that a description will be given in the following order.
1. Premise Technology
2. Configuration Example of Position Detection Device According to Present Embodiment
3. Method of Acquiring Correction Value by Interpolation Angle
4. Configuration Example of Repeating Waveform Correction and Angle Calculation
5. Configuration Example of Correcting interpolation Angle
6. Configuration Example in Case of Three Tracks
1. Premise Technology
The rotating body 100 is configured as, for example, a rotating body having a gear shape or a ruggedness or a rotating body in which N poles and S poles are alternately magnetized. The detection unit 201 and the detection unit 202 detect changes in magnetism, light, and the like due to rotation of the rotating body 100.
The rotating body 100 illustrated in
Examples of the detection units 201 and 202 can include a magnetic sensor, a light receiving element and the like. The present embodiment is applicable to various encoders such as a magnetoresistive encoder, a magnetic (magnetization) encoder, an electric induction type encoder, and an optical encoder.
When calculating an absolute angle, arctangent 2 (atan(2) (hereinafter, referred to as atan 2 or arctan 2)) of sin voltages and cos voltages of each of Track A and Track B are calculated, and a difference between arctangent 2 (atan(2)) of the sin voltages and the cos voltages is calculated to obtain the absolute angle from a cycle difference (one cycle) between the tracks.
θref=atan 2(cosA,sinA)−atan 2(cosB,sinB) (1)
More specifically, since Track A has 64 cycles, cycles of fluctuations of sinA and cosA are 64 cycles, respectively. Since calculating arctangent 2 is equal to obtaining phases of sinA and cosA and sinA and cosA fluctuate in 64 cycles with respect to one period of the rotating body 100 (mechanical angle one period), the fluctuations of the phases (fluctuations of arctangent 2) also occur in 64 cycles. Therefore, a calculation result of arctangent 2 repeats an increase and decrease in 64 cycles. Since Track B has 63 cycles, a calculation result of arctangent 2 repeats an increase and decrease in 63 cycles. Therefore, atan(cosA·sinA) repeats the increase and decrease in 64 cycles, while atan(cosB·sinB) repeats the increase and decrease in 63 cycles, and a difference between atan(cosA·sinA) and atan(cosB·sinB) thus increases with an increase of a rotation angle when the rotating body 100 rotates once. Therefore, the absolute angle can be calculated from Equation 1.
Furthermore, a gear or rugged shape, or one cycle of magnetization is also referred to as a slit. The slits can be represented by fan-shaped regions obtained by dividing one rotation (which is 2π [rad] and corresponds to a moving range of the rotating body 100) of the rotating body 100. In addition to the method of obtaining the absolute angle by the method described above, there is a method of improving an accuracy by obtaining which slit the absolute angle is positioned in on the basis of the absolute angle obtained by Equation 1 and obtaining an interpolation angle in one slit to increase a substantial resolution. Note that the slit and the interpolation angle will be described in detail later.
Since the absolute angle obtained by the method of Equation 1 is affected by a signal distortion due to a processing error of the rotating body 100, assembly errors of the detection units 201 and 202, or the like, an angle accuracy decreases. Therefore, in the present embodiment, waveforms of the sin voltage and the cos voltage are corrected in a manner using two tracks to improve the angle accuracy.
2. Configuration Example of Position Detection Device According to Present Embodiment
As described above, the rotating body 100 includes tracks configured by a gear shape or a ruggedness, or magnetization. In a two-track manner, two tracks A and B are prepared, gear or rugged shapes having different cycles are formed in the respective tracks or magnetization or the like is performed in the respective tracks, and a cycle difference between Track A and Track B is 1. As described above, one cycle of teeth, irregularities, and magnetization is referred to as a slit. For example, in a case where Track A has 64 slits, Track B has 63 slits.
Rotation and movement of Track A are detected by the detection unit 200 of Track A. Furthermore, rotation and movement of Track B are detected by the detection unit 210 of Track B. Two sinusoidal waves (sin voltage and cos voltage) having a phase difference of 90° therebetween are obtained from the respective detection units 200 and 210. The angle calculation unit 300 calculates the absolute angle θref on the basis of Equation 1. As described above, by calculating arctangent 2 (atan 2) of the signals of each of Track A and Track B and taking a difference between arctangent 2 (atan 2) of the signals, it is possible to obtain the absolute angle θref using the cycle difference between Track A and Track B.
By the way, a distortion or a noise may occur in the voltage waveforms (sin voltages and cos voltages) having the phase difference of 90° therebetween obtained by the detection units 200 and 210 due to machining error, an assembly error or the like. Therefore, a difference between ideal voltage waveforms (ideal values) and the voltage waveforms (actual values) obtained by the detection units 200 and 210 can be taken in advance and can be stored in the correction table 500 to be used to correct the sin voltage and the cos voltage.
By performing calibration in advance, the waveform of the cos voltage obtained by the detection unit 200, which is illustrated in
The waveform correction unit 400 corrects the sin voltages and the cos voltages of each track on the basis of information of the correction table 500.
In this manner, the waveform correction unit 400 corrects the voltage waveforms (cos voltages and sin voltages) obtained by the detection units 200 and 210 on the basis of data of the correction table 500. At this time, the waveform correction unit 400 acquires a correction value (difference) corresponding to the absolute angle θref obtained by the angle calculation unit 300 with reference to the absolute angle θref, from the correction table 500. Therefore, the absolute angle θref is calculated using the cos voltages and the sin voltages of each track in which the distortion or the noise is corrected, and the absolute angle θref can thus be obtained with a high accuracy.
Examples of a method of extracting the correction value from the correction table 500 can include a method of adopting a correction value of an angle closest to the absolute angle θref obtained by the angle calculation unit 300, and the like. Furthermore, it is also possible to adopt a value obtained by interpolating a plurality of correction values of angles close to the absolute angle θref obtained by the angle calculation unit 300. Furthermore, a method of obtaining a more accurate correction value by performing interpolation from correction values of the previous and subsequent angles can be considered.
3. Method of Acquiring Correction Value by Interpolation Angle
The angle calculation unit 300 calculates a slit number corresponding to the absolute angle θref. Furthermore, the angle calculation unit 300 calculates an angle in the slit (referred to as an interpolation angle θinterp) corresponding to the absolute angle θref. The interpolation angle θinterp is calculated from the following Equation 2.
θinterp=atan 2(cosA,sinA) (2)
In
Correction Value=(V1+V2+V3)/3
As described above, by calculating an average value of error information of adjacent slits having the same interpolation angle, even in a case where an error is included in the absolute angle θref calculated by the angle calculation unit 300, an influence of the error can be decreased. In a case of using one correction value corresponding to the absolute angle θref, when an error is included in the correction value, a position detection accuracy may decrease, but by calculating the average value of the error information of the adjacent slits having the same interpolation angle, it is possible to further improve the accuracy as compared with the case of using one correction value.
Specifically, errors of the sin voltage and the cos voltage have a sinusoidal shape as illustrated in
Therefore, by calculating the average of the error information, even though the error information of the adjacent slits is erroneously used, the error information is averaged by the error information of the previous and subsequent slits, and it is thus possible to suppress a phenomenon in which the sin voltage and the cos voltage after being corrected become discontinuous. However, when the error information is averaged, even in a case where a correct slit is obtained from an angle calculation result of the angle calculation unit 300, there is a possibility that the error information will deviate from correct error information due to an influence of the error information of the previous and subsequent slits. As described above, if the interpolation angles are the same as each other, a distribution of the errors changes gently, and it is thus possible to suppress the error in a case where the average value is calculated.
4. Configuration Example of Repeating Waveform Correction and Angle Calculation
5. Configuration Example of Correcting Interpolation Angle
In
Also in a waveform of the interpolation angle θinterp illustrated in
An angle calculation unit 310 illustrated in
The interpolation angle correction unit 700 corrects the interpolation angles before being corrected, which are calculated by the interpolation angle calculation unit 250 and the interpolation angle calculation unit 260, on the basis of error information of the interpolation angles obtained from the correction table 510. At this time, the interpolation angle correction unit 700 obtains a slit number corresponding to the absolute angle θref sent from the angle calculation unit 310, and corrects an interpolation angle corresponding to the slit number using the difference recorded in the correction table 510. The corrected interpolation angle is sent to an angle calculation unit 620. The angle calculation unit (second position calculation unit) 620 calculates an absolute angle on the basis of the corrected interpolation angle. More specifically, the angle calculation unit 620 calculates the absolute angle on the basis of the corrected interpolation angle and the slit number corresponding to the absolute angle θref sent from the angle calculation unit 310.
Also in a case of correcting the interpolation angle, it is possible to further increase a calculation accuracy of an angle by repeatedly performing calculation from a viewpoint similar to that of
6. Configuration Example in Case of Three Tracks
A case where the number of tracks is two has been described hereinabove, but the number of tracks can further increase.
As described above, according to the present embodiment, even in a case where an individual difference of an encoder is large or even in a case where individuals of the encoder have an anomalous error distribution, an angle deviation can be corrected by a simple mechanism such as table reference, and a position detection accuracy can thus be increased. Furthermore, even in the case where the individual difference of the encoder is large or even in the case where the individuals of the encoder have the anomalous error distribution, by setting contents of the table according to the individuals, there is no need to change a correction logic and it is possible to perform correction with a good accuracy.
Furthermore, by performing table correction on the voltage waveform, it is possible to suppress a high frequency noise (synchronization component of an encoder slit cycle). Furthermore, by performing a table reference method with reference to the interpolation angle, it is possible to suppress an error at the time of table reference and it is possible to improve an accuracy of the table correction.
Furthermore, by repeatedly performing the table correction and the angle calculation, it is possible to gradually improve an angle accuracy. Furthermore, it is also possible to adjust the number of times of calculation according to a required accuracy.
The present embodiment can be applied regardless of a shape and a manner of the encoder. Furthermore, the present embodiment can also be applied to any type of voltage signal detected by a sensor as long as an ideal signal is recognized.
Hereinabove, the preferred embodiments of the present disclosure have been described in detail with reference to the accompanying drawings, but the technical scope of the present disclosure is not limited to such embodiments. It will be apparent to those skilled in the art of the present disclosure that various modifications or alterations can be conceived within the scope of the technical idea described in the claims, and it is naturally understood that these modifications or alterations also fall within the technical scope of the present disclosure.
Furthermore, the effects described in the present specification are only illustrative or exemplary rather than being restrictive. That is, the technology according to the present disclosure can accomplish other effects apparent to those skilled in the art from the description of the present specification, in addition to or instead of the effects described above.
Note that the following configurations also fall within the technical scope of the present disclosure.
(1)
A position detection device including:
a waveform correction unit that corrects waveforms of a first signal and a second signal, the first signal being detected from a first track provided on a moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; and
a position calculation unit that calculates a position of the moving body on the basis of the corrected first signal and second signal.
(2)
The position detection device according to the above (1), in which the first signal includes two sinusoidal waves having a phase difference of 90° therebetween, and the second signal includes two sinusoidal waves having a phase difference of 90° therebetween.
(3)
The position detection device according to the above (2), in which the position calculation unit calculates the position of the moving body from a difference between a first value and a second value, the first value being obtained by calculating arctangent 2 of the two sinusoidal waves of the first signal, and the second value being obtained by calculating arctangent 2 of the two sinusoidal waves of the second signal.
(4)
The position detection device according to any one of the above (1) to 3, in which the waveform correction unit corrects the waveform of the first signal with a first correction value and corrects the waveform of the second signal with a second correction value on the basis of a table in which the first correction value and the second correction value are recorded in advance, the first correction value being a difference between an actual value and an ideal value of the first signal, and the second correction value being a difference between an actual value and an ideal value of the second signal.
(5)
The position detection device according to the above (4), further including a second position calculation unit that calculates a position of the moving body on the basis of the first signal and second signal before being corrected,
in which the table records the first correction value and the second correction value in association with the position of the moving body in advance, and
the waveform correction unit corrects the waveform of the first signal and the waveform of the second signal on the basis of the first correction value and the second correction value obtained by applying the position of the moving body calculated by the second position calculation unit to the table.
(6)
The position detection device according to the above (5), in which the waveform correction unit corrects the waveform of the first signal and the waveform of the second signal on the basis of a plurality of the first correction values and the second correction values obtained by applying a first position of the moving body calculated by the second position calculation unit and a plurality of second positions adjacent to the second position to the table.
(7)
The position detection device according to the above (6), in which the waveform correction unit corrects the waveform of the first signal and the waveform of the second signal on the basis of an average value of a plurality of the first correction values and an average value of a plurality of the second correction values.
(8)
The position detection device according to the above (6), in which the first position and the second position are spaced apart from each other by adjacent slits among a plurality of slits obtained by dividing a moving range of the moving body.
(9)
The position detection device according to the above (5), further including a second waveform correction unit that further corrects the waveform of the first signal and the waveform of the second signal corrected by the waveform correction unit, on the basis of the first correction value and the second correction value obtained by applying the position of the moving body calculated by the position calculation unit to the table.
(10)
The position detection device according to any one of the above (1) to (9), further including:
a first signal detection unit that detects the first signal; and
a second signal detection unit that detects the second signal.
(11)
A position detection device including:
a first interpolation angle calculation unit that calculates a first interpolation angle from a first signal detected from a first track provided on a moving body and having a scale of predetermined cycles;
a second interpolation angle calculation unit that calculates a second interpolation angle from a second signal detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles;
a first position calculation unit that calculates a position of the moving body on the basis of the first interpolation angle and the second interpolation angle;
an interpolation angle correction unit that corrects the first interpolation angle and the second interpolation angle on the basis of the position of the moving body; and
a second position calculation unit that calculates a position of the moving body on the basis of the corrected first interpolation angle and second interpolation angle.
(12)
The position detection device according to the above (11), in which the first signal includes two sinusoidal waves having a phase difference of 90° therebetween, and the second signal includes two sinusoidal waves having a phase difference of 90° therebetween.
(13)
The position detection device according to the above (12), in which the first interpolation angle calculation unite, calculates the first interpolation angle by calculating arctangent 2 of the two sinusoidal waves of the first signal, and
the second interpolation angle calculation unit calculates the second interpolation angle by calculating arctangent 2 of the two sinusoidal waves of the second signal.
(14)
The position detection device according to the above (11), in which the interpolation angle correction unit corrects the first interpolation angle with a first correction value and corrects the second interpolation angle with a second correction value on the basis of a table in which the first correction value and the second correction value are recorded in advance, the first correction value being a difference between an actual value and an ideal value of the first interpolation angle, and the second correction value being a difference between an actual value and an ideal value of the second interpolation angle.
(15)
The position detection device according to claim 11, further including:
a first signal detection unit that detects the first signal; and
a second signal detection unit that detects the second signal.
(16)
The position detection device according to any one of the above (1) to (15), is which the moving body rotates around a rotation center.
(17)
The position detection device according to any one of the above (1) to (15), in which the moving body linearly moves.
(18)
The position detection device according to any one of the above (1) to (17), in which the scale is configured by a gear shape or a rugged shape provided on the moving body or is configured by alternately magnetizing N poles and S poles.
(19)
The position detection device according the above (10) or (15), in which the first detection unit detects the first signal corresponding to a change in light or a change in a magnetic field due to movement of the scale of the first track, and
the second detection unit detects the second signal corresponding to a change in light or a change in a magnetic field due to movement of the scale of the second track.
(20)
The position detection device according to any one of the above (1) to (19), in which the second track has a scale having cycles smaller by one cycle than the predetermined cycles.
(21)
A position detection method including:
correcting waveforms of a first signal and a second signal, the first signal being detected from a first track provided on a moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; and
calculating a position of the moving body on the basis of the corrected first signal and second signal.
(22)
A position detection method including:
calculating a first interpolation angle from a first signal detected from a first track provided on a moving body and having a scale of predetermined cycles;
calculating a second interpolation angle from a second signal detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles;
calculating a position of the moving body on the basis of the first interpolation angle and the second interpolation angle;
correcting the first interpolation angle and the second interpolation angle on the basis of the position of the moving body; and
calculating a position of the moving body on the basis of the corrected first interpolation angle and second interpolation angle.
Number | Date | Country | Kind |
---|---|---|---|
JP2017-079611 | Apr 2017 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2018/007826 | 3/1/2018 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2018/190019 | 10/18/2018 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6466889 | Schödlbauer | Oct 2002 | B1 |
6935193 | Heisenberg et al. | Aug 2005 | B2 |
9347802 | Horiguchi | May 2016 | B2 |
20020041241 | Oberhauser | Apr 2002 | A1 |
20110147572 | Nakamura | Jun 2011 | A1 |
20150076332 | Nagura | Mar 2015 | A1 |
20150160427 | Miyashita | Jun 2015 | A1 |
20150171999 | Cho et al. | Jun 2015 | A1 |
Number | Date | Country |
---|---|---|
2003-083768 | Mar 2003 | JP |
2007-327770 | Dec 2007 | JP |
2009-025176 | Feb 2009 | JP |
2010-145203 | Jul 2010 | JP |
2013-096813 | May 2013 | JP |
2014-124000 | Jul 2014 | JP |
2015-121405 | Jul 2015 | JP |
2015-194462 | Nov 2015 | JP |
WO 2014034317 | Mar 2014 | WO |
Entry |
---|
Tan et al. (“New Interpolation Method for Quadrature Encoder Signals”, IEEE Transactions on Instrumentation and Measurement, vol. 51, No. 5, 2002, p. 1073-1079). (Year: 2002). |
Jun. 29, 2020, European Search Report issued for related EP application No. 18784419.6. |
Number | Date | Country | |
---|---|---|---|
20200003585 A1 | Jan 2020 | US |