Distance measuring device and distance measuring method
11762070 · 2023-09-19
Assignee
Inventors
- Yuki Matsui (Kyoto, JP)
- Ken Nakamuro (Kyoto, JP)
- Franco Zappa (Milan, IT)
- Federica Villa (Milan, IT)
- Rudi Lussana (Milan, IT)
Cpc classification
H01L31/107
ELECTRICITY
H01L27/14609
ELECTRICITY
International classification
Abstract
A distance measuring device includes a light emission portion for emitting light; a light receiving portion for receiving measurement light that is emitted by the light emission portion and reflected by a measurement object, the light receiving portion comprising a plurality of pixels, each pixel having at least one light receiving portion and outputting a light reception signal that depends on the measurement light incident on the pixel; a discrimination portion for discriminating whether the pixel receives measurement light; a pixel output control portion for selectively outputting the light reception signal of each pixel individually, depending on the determination result of the discrimination portion; and an evaluation portion for receiving the light reception signals output by the pixel output control portion and outputting a distance signal that is indicative of a distance between the measuring device and the measurement object based on these light reception signals.
Claims
1. A distance measuring device comprising: a light emission portion configured to emit light; a light receiving portion configured to receive measurement light that is emitted by the light emission portion and reflected by a measurement object, the light receiving portion comprising a plurality of pixels, each pixel having at least one light receiving portion and being configured to output a light reception signal that depends on the measurement light incident on the pixel; a discrimination portion configured to receive the light reception signal from the light receiving portion and discriminate whether the pixel receives the measurement light or only ambient light, and to output a discrimination result indicating whether the light received by the pixel includes the measurement light or only the ambient light; a pixel output control portion configured to receive the discrimination result output from the discrimination portion and selectively enable output of the light reception signal of each pixel individually or disable output of the light reception signal of each pixel individually, depending on the discrimination result of the discrimination portion; and an evaluation portion configured to receive the light reception signals output by the pixel output control portion and to output a distance signal that is indicative of a distance between the measuring device and the measurement object, based on these light reception signals, wherein the discrimination portion comprises: a detection portion for detecting whether light is received at a pixel connected to the discrimination portion during a plurality of first predetermined time intervals during a predetermined time period and during a plurality of second predetermined time intervals during the predetermined time period; and a counting portion for counting the number of times that the detection portion detects reception of light during the first predetermined time intervals and during the second predetermined time intervals during the predetermined time period, and the discrimination portion is configured to determine whether each pixel receives measurement light or the ambient light based solely on a counting result of the counting portion.
2. The distance measuring device according to claim 1, wherein the pixel output control portion is configured to enable output of the light reception signal of those pixels for which the discrimination portion determines that measurement light is received.
3. The distance measuring device according to claim 1, wherein the discrimination portion is configured to determine that a pixel receives measurement light if a count of the number of times that the detection portion detects a reception of light during the first predetermined time intervals during the predetermined time period differs from the count of the number of times that the detection portion detects reception of light during the second predetermined time intervals during the predetermined time period by at least a predetermined comparison threshold.
4. The distance measuring device according to claim 1, wherein the discrimination portion is configured to determine that a pixel does not receive measurement light if the count of the number of times that the detection portion detects reception of light during the first predetermined time intervals during the predetermined time period differs from the count of the number of times that the detection portion detects reception of light during the second predetermined time intervals during the predetermined time period by less than the predetermined comparison threshold.
5. The distance measuring device according to claim 1, wherein the discrimination portion is configured to determine that a pixel receives measurement light if the number of times that the detection portion detects reception of light during the first predetermined time intervals during the predetermined time period is smaller than an absolute or self-adjusting threshold and if the number of times that the detection portion detects reception of light during the second predetermined time intervals during the predetermined time period is larger than the absolute or self-adjusting threshold.
6. The distance measuring device according to claim 1, wherein the first predetermined time intervals and/or the second predetermined time intervals are periodic or pseudo-random time intervals.
7. The distance measuring device according to claim 1, further comprising a weighting portion for assigning a first weight to the counts of each first predetermined time interval at which the detection portion detects reception of light and/or for assigning a second weight to the counts of each second predetermined time interval at which the detection portion detects reception of light.
8. The distance measuring device according to claim 7, wherein the counting portion is further configured to sum up the weighted counts of the first predetermined time intervals and to sum up the weighted counts of the second predetermined time intervals.
9. The distance measuring device according to claim 1, wherein a plurality of pixel output control portions are connected to a single evaluation portion.
10. The distance measuring device according to claim 9, wherein the plurality of pixel output control portions are connected to a single discrimination portion.
11. The distance measuring device according to claim 1, wherein a discrimination portion is provided for each of the plurality of pixels.
12. The distance measuring device according to claim 1, wherein the discrimination portion receives the light reception signal of each of a plurality of pixels.
13. The distance measuring device according to claim 12, wherein the plurality of pixels connected to the same discrimination portion are non-adjacent to each other.
14. The distance measuring device according to claim 1, wherein the light receiving portions constituting the pixels are single photon avalanche diodes.
15. A distance measurement method for performing a measurement using the distance measuring device according to claim 1, the method comprising: emitting light with the light emission portion; receiving measurement light that is emitted by the light emission portion and reflected by the measurement object by the light receiving portion, the light receiving portion comprising a plurality of pixels, each pixel having at least one light receiving portion and being configured to output a light reception signal that depends on the measurement light incident on the pixel; discriminating whether the pixel receives the measurement light or only ambient light, and outputting a discrimination result indicating whether the light received by the pixel includes the measurement light or only the ambient light; selectively outputting the light reception signal of each pixel individually, depending on the discrimination result of the step of discriminating for each pixel individually whether the pixel receives measurement light; and outputting a distance signal that is indicative of a distance between the measuring device and the measurement object based on the received light reception signals.
16. The distance measuring device according to claim 1, wherein the discrimination portion is configured to determine whether each pixel at a given location receives the measurement light or only the ambient light based solely on the counting result of the counting portion measurement light or only ambient light.
17. The distance measuring device according to claim 1, wherein the detection portion is further for detecting whether light is received at the pixel connected to the discrimination portion during the plurality of first predetermined time intervals, at which either the measurement light or only the ambient light is received, during the predetermined time period and during the plurality of second predetermined time intervals, at which either the measurement light or only the ambient light is received, during the predetermined time period; and the counting portion is further for counting the number of times that the detection portion detects reception of light during the first predetermined time intervals and during the second predetermined time intervals during the predetermined time period.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
EMBODIMENTS OF THE INVENTION
(15) In the figures, like reference numerals designate like or functionally equivalent elements, unless otherwise indicated.
(16)
(17) The light emission portion 3 is a laser source emitting pulsed light at a predetermined frequency and at a predetermined intensity. Alternatively, the pulses may be emitted in a non-periodic manner and/or the pulses may not have constant amplitudes. For example, the amplitudes and frequencies of the pulses can be self-determined based on a signal-to-noise ratio.
(18) The light emitted by the light emission portion 3 passes the collimator 6 when exiting the distance measuring device 1. The collimator 6 forms the light emitted by the light emission portion 3 into a substantially parallel light beam, referred to as emitted light 8 below.
(19) When the emitted light 8 reaches the measurement object 2, it is reflected back towards the distance measuring device 1 by the measurement object 2. The emitted light that is reflected by the measurement object 2 forms measurement light 5. In other words, the measurement light 5 is obtained by reflection of the emitted light 8 at the measurement object 2. The measurement light 5 is converged onto a spot 19 of the light receiving portion 4 by the converging lens 7 located at the entrance of the distance measuring device 1. The spot 19 is the surface of the light receiving portion 4 that receives the incident measurement light 5. Although the spot 19 is shown to be circular, it should be clear to the skilled person that it may also have a different shape, for example elliptical.
(20) Depending on how far the object 2 is from the distance measuring device 1, the size of the spot 19 may vary. This is illustrated in
(21)
(22) The distance to the object 2 can be determined by analyzing a time of flight of the measurement light 5. The time of flight of the measurement light 5 corresponds to the time it takes for the measurement light 5 to travel from the distance measuring device 1 to the object 2 and back to the distance measuring device 1. By measuring a difference in time between the time at which a certain light pulse was emitted by the light emitting portion 3 and the time at which this light pulse is received by the light receiving portion 4, the time of flight of the measurement light 5 can be detected. These time of flight measurements will be described in greater detail with reference to
(23) In addition to receiving the measurement light 5 that is emitted by the light emission portion 3 and reflected back by the object 2, the light receiving portion 4 may also receive ambient (stray) light. Such ambient light may be caused by other light sources or may be the result of multiple reflections (echoes) of the emitted light beam at other reflection surfaces. The reception of such ambient light falsifies the determination of the distance to the object 2 performed by the distance measuring device 1 and is therefore undesirable. The distance measuring device 1 is capable of discriminating between pixels that receive measurement light 5 and pixels that do not receive measurement light 5 but only the ambient light, as will be described below.
(24)
(25) This discrimination signal DR is sent to the pixel output control portion 12, which enables or disables the output of the pixel 10 depending on the received discrimination signal DR. That is, if the discrimination signal DR indicates that the pixel 10 receives measurement light 5, the pixel output control portion 12 enables the output of the pixel 10 and forwards the light reception signal RS1 as a light reception signal RS2 to the evaluation portion 13. In other words, if the pixel 10 receives measurement light 5, the pixel output control portion sends the light reception signal RS2 to the evaluation portion, with the light reception signal RS2 corresponding to the light reception signal RS1 from the pixel 10.
(26) By contrast, if the discrimination signal DR indicates that the pixel 10 only receives ambient light, the pixel output control portion 12 disables the output of the pixel 10 and forwards a light reception signal RS2 which is not equal to the light reception signal RS1 to the evaluation portion 13. In this case, the light reception signal RS2 may be, for example, a constant low-level signal.
(27) Thus, the light reception signal RS2 transferred from the pixel output control portion 12 to the evaluation portion 13 corresponds to the light reception signal RS1 from the pixel 10 if the pixel 10 receives measurement light 5. On the other hand, the light reception signal RS2 is a constant low-level or the like if the pixel 10 does not receive any measurement light 5, as indicated by the discrimination result DR.
(28) In order to enable and disable the output of the pixel 10, the pixel output control portion 12 may be implemented as a switch. For example, it may be a transistor, such as a FET (field effect transistor), where the discrimination signal DR is applied to the gate of the FET. The pixel output control portion 12 may also comprise one or more logic gates. It should be noted that the pixel output control portion 12 is located between the pixel 10 and the evaluation portion 13. Also, in the present example, the pixel output control portion 12 is connected directly to the pixel 10. In other words, no further circuit elements are provided between the pixel 10 and the pixel output control portion 12.
(29) The evaluation portion 13 generates a signal that contains information about the time of flight of a light beam emitted by the distance measuring device 1 and received by the pixel 10 associated with that evaluation portion 13.
(30) In the present embodiment, the light reception signal RS is evaluated by the evaluation portion 13 only when the pixel 10 receives measurement light 5. If it only receives ambient light, the light reception signal RS is discarded and not considered for evaluating the distance to the object 2.
(31) Discrimination portions 11 and pixel output control portions 12 having the functionality described above may be provided for each of the pixels 10 of the light receiving portion 4. In other words, there may be a one-to-one-to-one relationship between the pixels 10, the discrimination portions 11 and the pixel output control portions 12.
(32) The functions of the discrimination portions 11a-11c and pixel output control portions 12a-12c associated with each pixel are similar to the functions of the discrimination portion 11 and pixel output control portion 12 described in view of
(33) The discrimination portion 11a determines, based on a signal RS1a received by the pixel 10a, if the pixel 10a receives measurement light 5 or not, and accordingly sends a discrimination signal DRa to the pixel output control portion 12a. The pixel output control portion 12a enables or disables the output of the pixel 10a depending on the discrimination signal DRa, i.e. depending on whether the pixel 10a receives measurement light 5 or only ambient light. The light reception signal RS1a is only forwarded to an evaluation portion 13a as the light reception signal RS2a when the output of the pixel 10a is activated by the pixel output control portion 12a. Otherwise, if the pixel 10a does not receive the measurement light 5, the light reception signal RS1a is not transmitted to the evaluation portion 13a.
(34) Similarly, the discrimination portion 11b determines, based on a signal RS1b received by the pixel 10b, if the pixel 10b receives measurement light 5 or not, and accordingly sends a discrimination signal DRb to the pixel output control portion 12b. The pixel output control portion 12b enables or disables the output of the pixel 10b depending on the discrimination signal DRb, i.e. depending on whether the pixel 10b receives measurement light 5 or only ambient light. The light reception signal RS1b is only forwarded to the evaluation portion 13b as the light reception signal RS2b when the output of the pixel 10b is activated by the pixel output control portion 12b. Otherwise, if the pixel 10b does not receive the measurement light 5, the light reception signal RS1b is not transmitted to the evaluation portion 13b.
(35) Similarly, the discrimination portion 11c determines, based on a signal RS1c received by the pixel 10c, if the pixel 10c receives measurement light 5 or not, and accordingly sends a discrimination signal DRc to the pixel output control portion 12c. The pixel output control portion 12c enables or disables the output of the pixel 10c depending on the discrimination signal DRc, i.e. depending on whether the pixel 10c receives measurement light 5 or only ambient light. The light reception signal RS1c is only forwarded to the evaluation portion 13c as the light reception signal RS2c when the output of the pixel 10c is activated by the pixel output control portion 12c. Otherwise, if the pixel 10c does not receive the measurement light 5, the light reception signal RS1c is not transmitted to the evaluation portion 13c.
(36) Based on the light reception signals RS2a, RS2b, RS2c, the evaluation portion 13a, 13b and 13c respectively output a distance signal that is indicative of the distance to the object 2. For example, the evaluation portion 13a, 13b, 13c may calculate an average value of the time of flight values determined from the light reception signals RS2a, RS2b, RS2c. Alternatively, the evaluation portions 13a, 13b, 13c may determine the distance to the object 2 using histograms, as explained further below. The evaluation portions 13a, 13b, 13c may be hard-wired on the same semiconductor chip as the pixels 10, but it is also possible to realize the functionality of the evaluation portions 13a, 13b, 13c with a CPU that performs the necessary calculations.
(37) The result of the evaluation, i.e. the distance to the object 2, may be output on a display (not shown) with which the distance measuring device 100 is provided. Alternatively, it is also possible that the distance to the object 2 is output to another processing portion, such as a controller, a CPU, a computer, another electronic circuit or the like, or used to control another process.
(38) The distance to the object 2 is determined based only on the signals from the pixels 10a-10c that receive measurement light 5. The signals from pixels 10a-10c on which only ambient light is incident are not taken into account when determining the distance to the object 2. The distance to the object 2 is thus determined with a higher accuracy.
(39) In the distance measuring device 100 according to this embodiment, each pixel 10a-10c has its own evaluation portion 13a, 13b, 13c associated thereto. The distance measuring device 100 does not comprise any combiners or multiplexers, thereby simplifying the structure of the distance measuring device 100. In alternative embodiments, the signals from the respective pixels 10a-10c which are forwarded by the respective pixel output control portions 12a-12c may also be combined using a combiner or a multiplexer (not shown). The use of a combiner or a multiplexer can be advantageous because light reception signals RS1 from several pixels 10 can be forwarded to a single discrimination portion 11 via the combiner or multiplexer. A size of the distance measuring device 100 can thereby be reduced.
(40)
(41) In a step S1, the distance measuring device 1, 100 emits light 8 using the light emission portion 3. In a step S2, measurement light 5 reflected from the object 2 is received by the light receiving portion 4 of the distance measuring device 1, 100.
(42) In a step S3, the discrimination portion 11, 11a-11c determines for each pixel 10, 10a-10c whether the received light is measurement light 5 and accordingly generates a discrimination signal DR, DRa-DRc. If it is determined in step S3 that the light received by a pixel 10, 10a-10c is measurement light 5, the pixel output control portion 12 enables the output of the light reception signals RS1 of the pixel 10, 10a-10c as the light reception signal RS2 and forwards the output to the evaluation portion 13 in step S4. Then, in a step S5, the evaluation portion 13, 13a-13c determines the distance to the object 2 based on the light reception signals RS2.
(43) Alternatively, if it is determined in step S3 that the light received by a pixel 10, 10a-10c is not measurement light 5 (i.e. when it is ambient light or noise), the pixel output control portion 12 disables the output of the pixel 10, 10a-10c and does not forward the light reception signal RS1 as the light reception signal RS2 in step S6. It should be noted that “enabling the output” and “disabling the output” may correspond to turning a switch of the pixel output control portion 12 on or off, respectively.
(44)
(45)
(46)
(47) The ambient light 18 is a random distribution of photons that reach the pixel 10. The measurement light 5 is received as pulses 27 separated by the same fixed time interval Δt that spaces the emitted pulses. The pulses 27 of measurement light 5 are received at times t.sub.B1, t.sub.B2, t.sub.B3, t.sub.B4, t.sub.B5 and t.sub.B6, which are respectively shifted by a time shift Δd as compared to the times t.sub.A1, t.sub.A2, t.sub.A3, t.sub.A4, t.sub.A5 and t.sub.A6. The time shift Δd results from the time it takes to the light 8 emitted by the light emission portion 3 to travel to the object 2 and back to the distance measuring device 101, plus any other time delays due to, for instance, the electronics, wiring or the like. The time shift Δd varies as a function of the distance to the object 2 (time of flight) and can be evaluated to determine the distance to the object 2. In
(48)
(49)
(50) The first predetermined time intervals T.sub.M1-T.sub.M6 are set such that they include the times t.sub.B1, t.sub.B2 . . . , at which the pulsed measurement light 5 is incident on the distance measuring device 101 and the second predetermined time intervals T.sub.P1-T.sub.P6 are set such that they do not include these times t.sub.B1, t.sub.B2 . . . . For example, the first predetermined time intervals T.sub.M1-T.sub.M6 may be set to start at the time when the pulsed light 8 is emitted by the distance measuring device 101 and to stop at a time that is sufficiently long such that the measurement light 5 reflected from the object 2 is included in the time interval. The length of the first predetermined time intervals T.sub.M1-T.sub.M6 is equal to the length of the second predetermined time intervals T.sub.P1-T.sub.P6 and may be several nanoseconds, for example 5 to 500 nanoseconds, depending on the range of the distance measuring device 101. Furthermore, this length may be variable. For example, it is possible that the length of this period can be adjusted manually by the user, or that it is adjusted automatically depending on the brightness of the ambient light or the desired distance range to measure. Thus, it is possible to adjust the sensing conditions to the ambient light conditions, thereby improving the accuracy even further.
(51) In this example, each pixel 10 is constituted by one single photon detector, for example a single photon avalanche diode (SPAR), which allows the detection of single photons incident on the pixel 10. That is, every time a photon is incident on a pixel 10, the pixel generates a SPAD current that is detected by the detection portion 14.
(52) Photons are incident on the pixel 10 in discrete events that are subject to a certain statistical distribution. Accordingly, during a given time interval T, there may be zero, one or a plurality of photons incident on the pixel 10. The detection portion 14 is configured such that it determines that the pixel 10 has received light during a given time interval T if a minimum number n of photons are incident on the pixel during that interval T. This minimum number n may be 1, for example, but it may also be a greater number.
(53)
(54) Assigning the number “+1” to first predetermined time intervals T.sub.M1-T.sub.M6 during which a signal is received at the pixel 10 corresponds to assigning a first weight (namely “+1”) to said first predetermined time intervals T.sub.M1-T.sub.M6. Assigning the number “−1” to second predetermined time intervals T.sub.P1-T.sub.P6 during which a signal is received at the pixel 10 corresponds to assigning a second weight (namely “−1”) to said second predetermined time intervals T.sub.P1-T.sub.P6. This weighting can be performed by a weighting portion (not shown). If no photon is received by the pixel 10 during the interval T, then it is assigned a weight of “0”.
(55) In
(56) A pixel 10 receiving only ambient light 18 is irradiated randomly by photons. Thus, when the detection portion 14 measures the presence of light at the first and second predetermined time intervals T.sub.M1-T.sub.M6 and T.sub.P1-T.sub.P6 and over a long enough time interval ΔT, statistically, the number of times that the detection portion 14 detects light at the first predetermined time intervals T.sub.M1-T.sub.M6 should be more or less equal to the number of times that it detects light at the second predetermined time intervals T.sub.P1-T.sub.P6.
(57) By contrast, a pixel 10 receiving measurement light 5 reliably receives the measurement signal 5 so that overall, the number of times that the discrimination portion 11 detects light at the first predetermined time intervals T.sub.M1-T.sub.M6 is greater than the number of times that it detects light at the second predetermined time intervals T.sub.P1-T.sub.P6. It should be noted that since the incidence of light as photons on the pixels 10 is a stochastic process, light may not necessarily be detected during all time intervals T.sub.M1-T.sub.M6, even if the pixels 10 are within the spot 19 and thus subject to measurement light 5. An example of this is given for the period T.sub.M3, during which no light is detected inside the spot of measurement light 5. However, generally speaking, the probability that light is detected inside the spot of measurement light 5 during the time intervals T.sub.M1-T.sub.M6 is much greater than during the time intervals T.sub.P1-T.sub.P6
(58) The counting portion 15 counts the number of times that the detection portion 14 detects a signal at the first predetermined time intervals T.sub.M1-T.sub.M6 and the number of times that the detection portion 14 detects a signal at the second predetermined time interval T.sub.P1-T.sub.P6 and compares these. When the result of this comparison is equal to or greater than a predetermined comparison threshold, for example greater than or equal to +2, the detection portion 14 determines that the signal received by the pixel 10 comprises measurement light 5. Otherwise, if the result of the comparison is smaller than the predetermined comparison threshold, the detection portion 14 determines that the signal received by the pixel 10 comprises only ambient light 18. The pixel output control portion 12 accordingly enables or disables the output of the pixel 10, as described above. This calculation corresponds to summing up (integrating) the weighted counts in each row of the table of
(59) An advantage of the present embodiment is that the discrimination between pixels 10 that receive measurement light 5 and pixels 10 that do not receive measurement light can be continued during the actual measurement. That is to say, the discrimination portion 11 can be configured to constantly monitor the pixel 10, so that only the signals from those pixel that actually receive measurement light 5 are taken into account for the calculation of the measurement result. In the present embodiment, the reception of six light pulses is monitored, but needless to say, the number of light pulses whose reception is monitored may also be larger or smaller than that. In one possible embodiment, the above-described discrimination is performed always on the basis of the last m (e.g. 6) light pulses emitted during a predetermined time period ΔT (e.g. 1 microsecond). Such a dynamic forwarding of the output of the pixels 10 is advantageous over an arrangement in which it is first determined which pixels are inside the spot, and then the pixels that are outside the spot are turned off, e.g. by interrupting the voltage supply to those pixels.
(60)
(61) In the following, only the differences between the method according to the first embodiment (
(62) In step S9, the number of times that the detection portion 14 detects a signal at the first predetermined time intervals T.sub.M1-T.sub.M6 and the number of times that the detection portion 14 detects a signal at the second predetermined time intervals T.sub.P1-T.sub.P6 during the time ΔT are compared and the result of this comparison is compared to the comparison threshold. If the comparison result is greater than or equal to the comparison threshold, the output of the pixel 10 is enabled in step S4. Otherwise, the output is disabled at step S6, and the steps S1, S2, S7, S8 and S9 are repeated for the entire time ΔT.
(63) After the output of the pixel 10 has been evaluated by the evaluation portion 13 in step S5 or after the output of the pixel 10 has been disabled in step S6, the process returns to step S1.
(64)
(65)
(66) The layout in
(67) The layout in
(68) The layout in
(69) The layout in
(70) The layout in
(71) In the layout of
(72) Although the present invention has been described in accordance with preferred embodiments, it is obvious for the person skilled in the art that modifications are possible in all embodiments. For example, the number of pixels 10 of the light receiving element 4 can be increased or reduced. Instead of determining a comparison result, the counting portion can integrate the received light signals over time, for example in case of analog photosensors, providing an electric signal proportional to the incoming detected light (e.g. APD, CCD, . . . ) and not just digital pulses as in case of SPADs and related sensing circuitry.
REFERENCE NUMERALS
(73) 1 distance measuring device 2 measurement object 3 light emission portion 4 light receiving portion 5 measurement light 6 collimator 7 (converging) lens 8 emitted light beam 9 light receiving surface 10 pixel 10a-10c pixel 11 discrimination portion 11a-11c discrimination portion 12 pixel output control portion 12a-12c pixel output control portion 13, 13′ evaluation portion 14 detection portion 15 counting portion 17 light pulse 18 ambient light 19 light spot 19a-19d light spot 20 optical system 21, 22 rectangle 37 pulse 100 distance measuring device 101 distance measuring device t.sub.A1-t.sub.A6 time t.sub.B1-t.sub.B6 time T.sub.M1-T.sub.M6 first predetermined time interval T.sub.P1-T.sub.P6 second predetermined time interval Δc counter time period Δd time shift Δt time period DR discrimination signal DRa-DRc discrimination signal RS1, RS2 light reception signal RS1a-RS1c light reception signal RS2a-RS2c light reception signal S1-S9 method steps