Distance measuring device

Abstract: A distance measuring device includes a light emitting element (100) which emits light toward an object (900) to be distance measured. A distance to the object (900) is computed based on photo-currents outputted from a semiconductor position sensitive light detector (200) upon which the light reflected from the object (900) is incident. Background light components coming from a background of the object is detected and canceled from the output obtained from the position sensitive light detector (200), and position information is outputted which is represented by temperature-dependent variables. Therefore, computation of the distance to the object is not affected by temperature.

Description: The present invention relates to a distance measuring device for measuring a distance from the measuring device to an object by emitting light toward the object and detecting light reflected therefrom. A distance measuring device having a semiconductor position sensitive light detector (hereinafter referred to as "PSD") has been extensively used particularly in autofocusing cameras. FIG. 1 schematically shows such a distance measuring device. The distance measuring device includes a PSD 10, a signal extraction circuit 20 connected to the PSD 10, and a distance computing circuit 30 connected to the signal extraction circuit 20. The PSD 10 is a silicon semiconductor having a 3-layer structure consisting of a P-layer, an I-layer and an N-layer. The PSD 10 receives a light spot on a light receiving surface and produces photo-currents I 1 and I 2 from output electrodes 11 and 12, respectively, depending on the position of the light spot incident on the light receiving surface. The signal extraction circuit 20 extracts wanted signal components from the currents I 1 and I 2 and cancels unwanted components contained in the currents I 1 and I 2 , such as noise. The distance computing circuit 30 computes a distance from the measuring device to an object to be measured based on the extracted signal outputted from the signal extraction circuit 20. In the following description, a distance from the measuring device to an object to be measured or photographed will be simply referred to as "distance" unless mentioned specifically to refer to another distance. The output electrodes 11 and 12 are provided at both ends of the P-layer of the PSD 10, and a common electrode is provided to the N-layer at a position apart by an equi-distance from the output electrodes 11 and 12. A predetermined bias voltage V B is applied to the common electrode so that the P-N junction of the PSD 10 is operated in a reverse-biased condition. The P-layer serves as a light receiving surface upon which a light spot is incident. When the light is incident thereupon, the P-layer produces a photo-current I 0 according to a photo-electric conversion effect. The photo-current I 0 is divided into photo-currents I 1 and I 2 . Specifically, the photo-current I 1 is given by I 0 x {L 2 /(L 1 + L 2 )} and the photo-current I 2 is given by I 0 x {L 1 /(L 1 + L 2 )}. The distance L 1 is from the light spot incident position on the surface of the P-layer to the output electrode 11, and the distance L 2 is from the light spot incident position to the output electrode 12. The thus divided photo-currents I 1 and I 2 are applied to the signal extraction circuit 20. The distance measuring device has a light emitting diode LED which emits a light spot toward the object 90 to be photographed. The LED is disposed apart by a predetermined distance from the PSD 10. The P-layer of the PSD 10 receives the light spot reflected from the object 90 (hereinafter referred to as "reflection light spot"). With such an arrangement, a principle of trigonometrical survey is applied to measure the distance. More specifically, there is a proportional geometrical relationship between the distance and the position of the reflection light spot incident upon the P-layer of the PSD 10, which position being defined by L 1 and L 2 . Therefore, the distance can be computed if a current ratio of the photo-current I 1 to I 2 is given. This computation is performed by the distance computing circuit 30. Because the P-layer of the PSD 10 has an area larger than the area upon which the reflection light spot is incident, the photo-currents I 1 and I 2 derived from the output electrodes 11 and 12 contain not only the reflection light spot but also background light and noise components. If the distance measurements are performed based simply on the photo-currents I 1 and I 2 , the accuracy of the measured distance is lowered due to the inclusion of the background light and the noise components. In light of the above, the noise cancellation circuit as shown in FIG. 2 is provided in the signal extraction circuit 20. Although FIG. 2 indicates the noise cancellation circuit coupled to the output electrode 11, the same circuit is coupled to the output electrode 12. The noise cancellation circuit includes a buffer circuit having an operational amplifier A 1 which is d.c. biased with a bias voltage supply V R1 , and a PMOSFET Q 1 . The buffer circuit d.c. biases the output electrode 11 to the voltage of the bias voltage supply V R1 and also outputs an amplified photo-current I 1 to a node x. As shown in FIG. 2, the node x is connected to the collector of an NPN transistor Q 2 , the base of an NPN transistor Q 3 , and the non-inverting input terminal of an operational amplifier A 2 . A current mirror circuit configured by PNP transistors Q 4 and Q 5 is connected to the collector of the transistor Q 3 . A series-connection of diodes D 1 and D 2 is connected to the collector of the transistor Q 5 . A voltage V 01 developed across the diodes D 1 and D 2 is applied to the distance computing circuit 30. The operational amplifier A 2 has an inverting input terminal applied with a reference voltage V R2 , and an output terminal connected to the base of the transistor Q 2 through a switch SW. A capacitor C is connected between the base of the transistor Q 2 and ground. In operation, the light emitting diode LED is turned OFF for a predetermined period of time τ. During the period of time the LED is OFF, the switch SW is closed to measure the background light. In this condition, a voltage V X corresponding to the light intensity of the background light appears on the node x. The operational amplifier A 2 performs subtraction of the reference voltage V R2 from the voltage V X , so that the capacitor C is charged with a voltage Vh (=V X - V R2 ) corresponding to the light intensity of the background light. It should be noted that the reference voltage V R2 corresponds to noises generated from the PSD 10 and the operational amplifier A 2 is provided for removing the noise component from the voltage V X appearing at the node x. After expiration of the predetermined period of time τ, the switch SW is opened and the light emitting diode LED is turned ON, whereupon reception of the reflection light spot is performed for another predetermined period of time τ. The PSD 1 receives the reflection light spot together with the background light. The photo-current I 1 generated from the PSD 10 represents a sum of the background light and the reflection light spot. Because the voltage V h corresponding to the background light has been held in the capacitor C, the current corresponding to the background light flows in ground through the transistor Q 2 . The voltage V X developed at the node x increases by a voltage corresponding to the reflection light spot. As a result, the current flowing in the transistor Q 5 of the current mirror circuit also increases depending on the voltage increase at the node x, and the voltage across the series-connection of the diodes D 1 and D 2 becomes the voltage corresponding to the light intensity of the light spot. As described above, the voltage V h corresponding purely to the background light is held in the capacitor C in advance. When the reflection light spot is received, the background light component contained in the reflection light spot is removed to obtain the voltage V 01 representative of the components of only the reflection light spot. Because the same noise cancellation circuit is connected to the output electrode 12, the background light component is canceled out from the photo-current I 2 outputted from the output electrode 12 to obtain the voltage V 02 representative of the components of only the reflection light spot. The voltages V 01 and V 02 are in proportional relation to the incident position of the reflection light spot (i.e., L 1 and L 2 ). Based on these voltages V 01 and V 02 , the distance computing circuit 30 implements a predetermined computation to obtain the distance. The voltage corresponding to the reflection light spot is represented by: V 01 = (kT/q)ln{(h fe1 ·ΔI L1 + I L1 )/I S } where q is an electron charge; k, Boltzmann constant; T, an absolute temperature; I L1 , a collector current of the transistor Q 2 when only the background light is received; ΔI L1 is a base current of the transistor Q 3 when the reflection light spot is incident; h fel is a current amplification factor of the transistor Q 3 ; and I S is a saturation current of the diodes D 1 and D 2 . Similar to the voltage V 01 , the voltage V 02 produced by the noise cancellation circuit connected to the output electrode 12 is represented by: V 02 = (kT/q)ln{(h fe2 ·ΔI L2 + I L2 )/I S } Accordingly, the difference between these two voltages V 0d (=V 01 - V 02 ) is given by: V 0d = (2kT/q)ln{(h fe2 ·ΔI L2 + I L2 )/I S }/ (h fe1 ·ΔI L1 + I L1 )} Normally there is a relationship of h fei ·ΔI Li > I Li , and it is assumed that h fe1 ∼ h fe2 . Thus, the following relationship is obtained: V 0d ∼ (2kT/q)ln(ΔI L2 /ΔI L1 ) Thus, the voltage difference V 0d is determined by a logarithmic value of a ratio of two photo-currents changes. By performing a reverse logarithmic computation of the voltage difference V 0d with the distance computing circuit 30, the distance can be obtained. While the prior art is constructed to detect the light spot with excellent accuracy based on the principle described above, the following problems hinder effective detection of the light spot. Problem on Accuracy of Capacitor Holding Voltage In order for the capacitor C shown in FIG. 2 to hold the voltage corresponding to the background light, offset components and other noise components, it is necessary that the capacitor C be held in a cut-off condition when the switch SW is open. In actuality, however, the switch SW is not completely in the cut-off condition even if the switch SW is open, so that the charges in the capacitor C are caused to discharge and thus the voltage V h across the capacitor C lowers. As such, the voltage held in the capacitor C does not accurately represent the background light and/or offset components. In order to solve the above-mentioned problem, Japanese Laid-Open Patent Publication No. 59-142412 proposes a noise cancellation circuit as shown in FIG. 3 wherein electric discharges held in the capacitor C are compensated for with the provision of a current mirror circuit configured by NPN transistors Q 6 and Q 7 and PNP transistors Q 8 and Q 9 . The proposed noise cancellation circuit is effective provided that the current amplification factors h fe of the transistors Q 2 and Q 7 are the same. However, it is extremely difficult for these transistors Q 2 and Q 7 to have the same current amplification factor, therefore, the proposed noise cancellation circuit was not sufficiently effective. Far more serious problem exists in the proposed noise cancellation circuit in that the change of the background light which may occur during light emission toward the object to be photographed cannot be canceled. Problem Resulting from Non-Uniformity of Circuit Elements High accuracy noise cancellation circuit could not be achieved due to the difficulty in equating the current amplification factors of the transistors included in the noise cancellation circuit and thus an ideal current mirror circuit could not be configured. Further, in the circuit of FIG. 2, because the operational amplifier A 2 produces an offset voltage due to variation in the circuit components, the base voltages of the transistors Q 2 and Q 3 cannot be maintained at the same level. As a result, the currents flowing in the transistors Q 4 and Q 5 are out of a current mirroring condition, thereby causing to lower the accuracy. Japanese Patent B2 Publication (Kokoku) No. 4-4087 discloses a technique for solving the problem caused by the variation of the circuit components. According to this technique, a plurality of PSDs and corresponding number of detection circuits are provided. Each time when emission of light spot and light reception are repeatedly carried out for several times, a detection circuit to which a particular PDS is connected is switched over to obtain various detection results with various combinations of the PDSs and the detection circuits, and to thus obtain an average detection result. This technique is, however, involved with another problem such that the circuit is large scaled and control timing becomes complicated. Problem on Temperature Variation As indicated in equation (4), because a constant (kT/q) is multiplied to a logarithmic value to give the voltage difference V 0d , the voltage difference V 0d is greatly affected by temperature T. To eliminate the influence of temperature, a temperature monitoring circuit needs to be provided in or out of the semiconductor chip, and the voltage difference V 0d needs to be corrected by the aid of a CPU while referring to temperature information supplied from the temperature monitoring circuit. Japanese Laid-Open Patent Publication No. 5-2275 proposes a circuit arrangement shown in FIG. 4 to solve the above problem. The circuit includes a constant light canceling circuit 52 which cancels the background light component with the circuit shown in FIG. 2 or 3. The circuit further includes two integration circuits 56 and 57. In accordance with instruction signals generated from a timing circuit 53 and applied to switches 54 and 55, the integration circuit 56 is connected to the output of the constant light canceling circuit 52 only during the first half of the light emission and another integration circuit 57 is connected to the output of the constant light canceling circuit 52 only during the second half of the light emission. Each of the integration circuits 56 and 57 holds the integrated result. The two integrated results are added in an adder 58 and a subtraction of one integrated result from the other is calculated in a subtracter 59. After multiplying 1/2 to the subtracted result in a 1/2 multiplier 60, the output from the adder 58 and the output from the 1/2 multiplier 60 are added in an adder 61. The added result obtained from the adder 61 is not affected by the change in the background light even if the background light changes during emission of light toward the object to be photographed. That is, the output from the adder 61 faithfully reflects the intensity of real light spot component. However, the circuit shown in FIG. 4 is involved with another problem to be described below. Problem on Variation in Integration Properties The circuit shown in FIG. 4 is configured under the assumption that the two integration circuits have identical properties. However, variations in integration capacity, offset of operational amplifiers or the like make it difficult to equalize the properties of integration circuits when they are formed into one chip. For this reason, excellent accuracy could not be attained with the circuit shown in FIG. 4. Problem on Circuit Scale The circuit shown in FIG. 4 is further disadvantageous in that the circuit scale becomes too large, because two integration circuits 56, 57, subtracter 56, ½ multiplier 60, and adder 61 are required. When those components are formed into one chip, problems arise on consumed power and layout size. Contemplation of forming PSD, LED and those components into a plurality of arrays cannot be accomplished because the circuit scale becomes too large. US-A-4298258 discloses a light-emmitting, distance measuring device which attempts to nullify periodic changes in background light intensity caused by mains AC operated fluorescent or incandescent lamps. This is accomplished by only emitting a distance measuring light beam during periods of zero or minimal background light fluctuations (for example at maxima of the sensed periodic background light signal). The present invention has been made in view of the foregoing circumstance, and it is an object of the present invention to provide a distance measuring device which is simple in construction and which improves measurement accuracy and temperature-dependent property. To achieve the above and other objects, there is provided a distance measuring device including: a light emitting element for emitting light when said light emitting element is turned ON in response to a light emission instruction; a light receiving element having a light receiving surface, a first output terminal, and a second output terminal, said light receiving surface receiving reflection light, that is emitted from said light emitting element and reflected from an object to be distance measured, and background light, that comes from a background of the object, and photo-electrically converting the reflection light to a reflection current and the background light to a background current, the reflection current being divided into a first reflection current and a second reflection current, the background current being divided into a first background current and a second background current, the first reflection current and the first background current being output from the first output terminal, the second reflection current and the second background current being output from the second output terminal; a first cancellation circuit operatively connected to the first output terminal of said light receiving element, for cancelling a first reference background current from a current output from the first output terminal of said light receiving element and outputting a first modified current in response to a first cancellation instruction; a first integration circuit having an input terminal supplied with the first modified current and an output terminal, said first integration circuit integrating the first modified current for a first predetermined period of time during which time said light emitting element is turned OFF and outputting a first pre-integrated value, said first integration circuit thereafter integrating the first modified current for the first predetermined period of time during which time said light emitting element is turned ON and outputting a first post-integrated value, in response to a first integration instruction; a first difference computing circuit operatively connected to the output terminal of said first integration circuit, for computing a difference between the first pre-integrated value and the first post-integrated value and outputting a first distance information signal in response to a first computing instruction; a second cancellation circuit operatively connected to the second output terminal of said light receiving element, for cancelling a second reference background current from a current output from the second output terminal of said light receiving element nd outputting a second modified current in response to a second cancellation instruction; a second integration circuit having an input terminal supplied with the second modified current and an output terminal, said second integration circuit integrating the second modified current for a second predetermined period of time during which time said light emitting element s turned OFF and outputting a second pre-integrated value, said second integration circuit hereafter integrating the second modified current for the second predetermined period of time during which time said light emitting element s turned ON and outputting a second post-integrated value, in response to a second integration instruction; a second difference computing circuit operatively connected to the output terminal of said second integration circuit, for computing a difference between the second pre-integrated value and the second post-integrated value and outputting a second distance information signal in response to a second computing instruction; a distance computing circuit operatively connected to both said first difference computing circuit and said second difference computing circuit, for computing a distance to the object based on the first distance information signal and the second distance information signal; and a timing generation circuit for generating the light emission instruction, the first integration instruction, the second integration instruction, the first computing instruction and the second computing instruction. The particular features and advantages of the invention as well as other objects will become more apparent from the following description taken in connection with the accompanying drawings, in which: FIG. 1 shows an arrangement of a conventional distance measuring device; FIG. 2 is a circuit diagram showing a noise cancellation circuit used in conjunction with the device shown in FIG. 1; FIG. 3 is a circuit diagram showing another noise cancellation circuit used in conjunction with the device shown in FIG. 1; FIG. 4 shows an arrangement of another conventional distance measuring device; FIG. 5 shows an arrangement of a distance measuring device according to a preferred embodiment of the present invention; FIG. 6 is a circuit diagram showing a noise cancellation circuit used in conjunction with the device shown in FIG. 5; FIG. 7 is a timing chart illustrating operation of the noise cancellation circuit shown in FIG. 6; FIGS. 8(a) and 8(b) are circuit diagrams showing modifications of a difference computing circuit incorporated in the circuit shown in FIG. 6; and FIG. 9 is a circuit diagram showing a modification of a circuit to be incorporated in the circuit shown in FIG. 6. A distance measuring device according to one preferred embodiment of the present invention will be described while referring to the accompanying drawings. FIG. 5 shows an arrangement of a distance measuring device according to the embodiment of the present invention. As shown in FIG. 5, the distance measuring device includes a light emitting element 100 for emitting light toward an object 900 and a semiconductor position sensitive light detector (PSD) 200 serving as light receiving element. The PSD 200 has a light receiving surface, a first output terminal 201, and a second output terminal 202. The light receiving surface of the PSD 200 receives reflection light and background light. The reflection light is the one emitted from the light emitting element 100 and reflected from the object 900. The background light is the one that comes from a background of the object. The PSD 200 photo-electrically converts the reflection light to a reflection current and the background light to a background current. When the PSD 200 receives both the reflection light and the background light, a sum of the reflection current and the background light is outputted from the PSD 200. The reflection current is divided into a first reflection current and a second reflection current, and the background current is divided into a first background current and a second background current. The first reflection current and the first background current are outputted from the first output terminal 201, and the second reflection current and the second reflection current are outputted from the second output terminal 202. A ratio of the currents outputted from the first output terminal 201 and the second output terminal 202 is determined depending on an intensity distribution of light received at the light receiving surface of the PSD 200. There is provided a first cancellation circuit 410 operatively connected to the first output terminal 201 of the PSD 200. The first cancellation circuit 410 includes a first average background light (ABL) cancellation,circuit 411 and a first constant current source 410, and is provided for canceling a first reference background current from a current outputted from the first output terminal 201 of the PSD 200 and outputting a first modified current. The first constant current source 410 adds a constant current to the current outputted from the first output terminal 201, and the first ABL cancellation circuit 310 cancels the sum of the constant current and an average background current from the current supplied from the first output terminal 201. The first constant current source 410 is provided for ensuring the average background current to flow in the first ABL cancellation circuit for cancellation. A first integration circuit 310 is connected to receive the first modified current and is controlled to integrate the first modified current. When the light emitting element 100 is OFF, the first integration circuit 310 integrates the first modified current for a first predetermined period of time and outputs a first pre-integrated value which is an integrated value of variations of the first background current. Thereafter, the light emitting element 100 is turned ON and the first integration circuit 310 integrates the first modified current for the same duration to output a first post-integrated value which is an integrated value of the sum of the reflected current and the variations of the first background current. A first difference computing circuit is operatively connected to the output terminal of the first integration circuit for computing a difference between the first pre-integrated value and the first post-integrated value and outputting a first distance information signal. To the second output terminal 202 of the PSD 200, a second cancellation circuit 420, a second integration circuit 320, and a second difference computing circuit 520 are connected in the same manner as described. The integration circuits 310 and 320 are similarly constructed, and so does the cancellation circuits 410 and 420, the constant current sources 412 and 422, and the difference computing circuits 510 and 520. Specifically, the current signals outputted from the terminals 201 and 202 are subjected to exactly the same processing and the resultant signals are applied to a distance computing circuit 600 which computes a distance to the object based on the first distance information signal and the second distance information signal. To execute the above-described processings, a timing generation circuit 700 is provided. As shown in FIG. 5, a pair of noise cancellation circuits are connected between the first output electrode 201 of the PSD 200 and the distance computing circuit 600 and between the second output electrode 202 and the distance computing circuit 600. Because two noise cancellation circuits are identically configured and operate exactly in the same manner, a counterpart thereof will be described while referring to FIG. 6. The noise cancellation circuits are provided to cancel noises contained in the photo-currents outputted from the output electrodes 201 and 202. Referring to FIG. 6, the integration circuit 310 connected to the output electrode 201 includes an amplifier A 11 for amplifying a photo-current I 1 outputted from the output electrode 201 of the PSD 200, a capacitor C 11 connected between the input and output terminals of the amplifier A 11 , a first switch SW 11 provided between the input and output terminals of the amplifier A 11 , and a second switch SW 12 provided between the capacitor C 11 and the output terminal of the amplifier A 11 . Under the condition in which the second SW 12 is closed in response to an on/off signal ST from the timing generation circuit 700, when the first switch SW 11 is opened in response to a reset signal RS1 from the timing generation circuit 700, the photo-current I 1 is charged in the capacitor C 11 whereas when the first switch SW 11 is closed in response to the reset signal RS1, the electric charges held in the capacitor C 11 are discharged. The capacitance of the capacitor C 1 is set to several picofarads (pF) to set an integration operating time of the integration circuit 310 to several microseconds. The current source 412 and the ABL cancellation circuit 411 are connected to the input terminal of the integration circuit 310, i.e., the output electrode 201 of the PSD 200. The current source 412 supplies a constant current, and the ABL cancellation circuit 411 cancels the current supplied from the current source 412 and a current corresponding to an average background light. The current source 412 includes a MOS transistor MQ12 having a source terminal connected to a source voltage V dd , a gate terminal supplied with a reference voltage V ref , and a drain terminal connected to the input terminal of the integration circuit 310. A constant current is supplied from the drain terminal of the transistor MQ 12 . The ABL cancellation circuit 411 includes a MOS transistor MQ 11 having a source terminal connected to the input terminal of the integration circuit 310, a drain terminal connected to ground, and a gate terminal connected to ground through a capacitor C 15 . The output of the integration circuit 310 is coupled through a switch SW 15 to the gate terminal of the MOS transistor MQ 11 , wherein the switching actions of the switch SW 15 are controlled in accordance with an RM1 signal generated from the timing generation circuit 700. The output of the integration circuit 310, i.e., the output terminal of the amplifier A 11 , is connected to the difference computing circuit 510 which includes a switch SW 13 , a capacitor C 12 , an amplifier A 12 , a capacitor C 13 and a switch SW 14 . The capacitor C 13 and the switch SW 14 are connected in parallel across the input and output terminals of the amplifier A 12 . The output terminal of the difference computing circuit 510 is derived from the output terminal of the amplifier A 12 . In view of balances between operational speed margin and noise margin in the overall circuit, the capacitances of capacitors C 12 and C 13 are both set to about 1 pF. The switch SW 13 performs switching actions in response to a change-over signal CSW supplied from the timing generation circuit 700. The difference computing circuit 510 performs clamping operation when the switch SW 14 is opened in response to a reset signal RS2 supplied from the timing generation circuit 700 whereas the circuit 510 halts the clamping operation when the switch SW 14 is closed in response to the reset signal RS2. Next, operation of the noise cancellation circuit thus constructed will be described while referring to the timing chart shown in FIG. 7. Light detecting sequence is divided into three stages including an average background light detecting period T, a background light variation detecting period T1, and a light spot plus background light variation detecting period T2. During the average background light detecting period T, the LED 100 is turned OFF and the switch SW 15 is closed. Therefore, only the background light is received in a condition where the light spot is not emitted from the LED 100. The timing generation circuit 700 closes the switch SW 11 and opens the switch SW 12 , whereby the integration circuit 310 is disabled. In this condition, a sum of a current supplied from the current source 412 and a photo-current from the output electrode 201 of the PSD 200 is supplied to the input terminal of the integration circuit 310. The output voltage from the integration circuit 310 is applied to the gate terminal of the MOS transistor MQ 11 . Accordingly, the sum of the currents supplied to the input terminal of the integration circuit 310 can entirely be absorbed in the MOS transistor MQ 11 of the ABL cancellation circuit 411. In this condition, the voltage V gs developed across the gate and source of the MOS transistor MQ 11 is expressed by: V gs = (2 × I T /β) 1/2 + V th where I T is a current value flowing in the MOS transistor MQ 11 , β is a predetermined constant determined owing to the size of the MOS transistor MQ 11 , and V th is a threshold value of the MOS transistor MQ 11 . After expiration of a time T, the switch SW 15 is opened, so that a sum of the current corresponding to the average background light and the current supplied from the current source 412 flow into the MOS transistor MQ 11 . The current source 412 is provided to force the current to flow in the transistor MQ 11 regardless of the fluctuation in the amount of the background light. Next, the switch SW 12 is closed to render the integration circuit 310 in an enabled condition, whereupon the background light variation detecting period T1 (time duration: τ) starts. During the period T1, the switch SW 11 is opened. A current corresponding to the background light variation is supplied to the integration circuit 310 and is charged in the capacitor C 11 . As a result, the output of the integration circuit 310 gradually increases. Integrated voltage V 11 outputted from the integration circuit 310 after expiration of the time τ and the current I d corresponding to the background light variation have the following relationship: V 11 = I d · τ/C 11 During the detection period T2 (duration: τ) for detecting a sum of reflected light spot and the background light variation, the LED 100 is turned ON whereat both the switches SW 11 and SW 14 are simultaneously opened. As a result of such switching actions, the integration circuit 310 charges the photo-current I 1 corresponding to the sum of the background light variation and the reflection light spot in the capacitor C 11 . When time τ has been expired, the following relation exist regarding an integrated voltage V 12 generated from the integration circuit 310, a current I sh corresponding to the reflection light spot, and a current I d corresponding to the background light variation. V 12 = (I sh + I d ) · τ/C 11 After the period of time T 2 has been expired, the switch SW 13 is momentarily closed so that the integrated voltage V 12 is applied to the difference computing circuit 510. The difference computing circuit 510 is in a reset condition during the period of time T1 and performs subtraction operation during the period of time T2. Therefore, electric charges represented by the following equation are held in the capacitors C 12 and C 13 . (V 12 - V 11 ) · C 12 = V 01 · C 13 Substituting equations (5) and (6) into equation (7), the output signal V 01 generated at the output terminal of the difference computing circuit 510 is given by: V 01 = I sh · τ · C 12 /C 11 · C 13 By setting the capacitances of the capacitors C 12 and C 13 to an equal value, the following equation can be obtained. V 01 = I sh · τ/C 1 The distance computing circuit 600 computes a photo-current I sh1 based on the voltage V 01 outputted from the noise cancellation circuit connected to the output electrode 201, and also computes a photo-current I sh2 based on the voltage V 02 outputted from the noise cancellation circuit connected to the output electrode 202. Each of the photo-currents I sh1 and I sh2 is in proportion to the incident position of the reflection light spot. Therefore, by the distance computation made based on the photo-currents I sh1 and I sh2 , a distance can be obtained. As described, according to this embodiment, the incident position of the reflection light spot can be obtained regardless of temperature and without need for performing reverse logarithmic operation as is the case in prior art. Therefore, the distance can be obtained through simple computing processes. Although the capacitors C 11 through C 13 are required, they do not need to be of a large capacitance as in the prior art (see FIG. 2). The capacitors C 1 through C 13 may have a capacitance of about 1 pF, so an integrated circuit can easily be formed. Because the distance computation according to the invention is not affected by the variation in the circuit components, a highly accurate distance measurement can be accomplished and the components can easily be formed into an integrated circuit. When the output voltage from the integration circuit is small in regards to the light spot, i.e., when the incident light is minute, preservation of the intended measurement accuracy becomes difficult. To eliminate such a difficulty, it is preferable that the output level from the difference computing circuit be determined in advance of performing addition and/or substraction using, for example, a comparator to obtain the results of addition or subtraction in the form of an amplified value. This means can select, for example, a feedback capacitance, thereby enhancing an accuracy of normalization. As described in detail, the distance measuring device of the present invention can eliminate the components resulting from the changes in the background light through a charge coupling by the integration circuit and the capacitors after the current corresponding to the average background light is canceled at the output terminal of the light receiving element, and obtains only the light component resulting from the prescribed subject. Therefore, a single integration circuit suffices, and further a highly accurate distance measurement can be performed without need for complicated addition or subtraction computing circuits. Because, in the prior art, it was difficult to maintain the base voltage at substantially constant during irradiation of the light spot and it was also difficult to provide equal characteristic transistors, it was extremely difficult to accurately derive the background light component. However, according to the present invention, the average background light is canceled, and the background light variation occurring immediately before light irradiation is performed is also canceled with the use of the integration circuit, therefore, a high accuracy can be preserved. When computation of position detection is to be performed at a high speed according to a prior art technique, two photo-currents are applied separately to the analog logarithmic converters and a difference between the resultant signals is computed. According to such a prior art technique, an influence of temperature is indispensable. According to the present invention, however, such a problem does not arise because temperature-dependent components are not present. In addition, unlike the conventional system in which characteristics of a bi-polar transistor circuit is used, the circuit according to the present invention can be implemented entirely with MOS transistors. Because a large capacitance is not necessary, which prevents formation of the circuit components into an array, small sizing and thus formation of a large scale array can be achieved. While only one exemplary embodiment of this invention has been described in detail, those skilled in the art will recognize that there are many possible modifications and variations which may be made in this exemplary embodiment while yet retaining many of the novel features and advantages of the invention. For example, in the embodiment described, the difference computing circuit is constructed with a clamp-and-hold circuit which applies the principle of an integration circuit. However, the difference computing circuit may be a clamp-and-hold circuit of the type shown in FIG. 8(a), or may be a circuit of the type as shown in FIG. 8(b) which provides an output difference between two holding circuits.

Claims: A distance measuring device including: a light emitting element (100) for emitting light when said light emitting element is turned ON in response to a light emission instruction; a light receiving element (200) having a light receiving surface, a first output terminal (201), and a second output terminal (202), said light receiving surface receiving reflection light, that is emitted from said light emitting element (100) and reflected from an object (900) to be distance measured, and background light, that comes from a background of the object (900), and photo-electrically converting the reflection light to a reflection current and the background light to a background current, the reflection current being divided into a first reflection current and a second reflection current, the background current being divided into a first background current and a second background current, the first reflection current and the first background current being output from the first output terminal (201), the second reflection current and the second background current being output from the second output terminal (202); a first cancellation circuit (410) operatively connected to the first output terminal (201) of said light receiving element (200), for cancelling a first reference background current from a current output from the first output terminal (201) of said light receiving element (200) and outputting a first modified current in response to a first cancellation instruction; a first integration circuit (310) having an input terminal supplied with the first modified current and an output terminal, said first integration circuit (310) integrating the first modified current for a first predetermined period of time during which time said light emitting element (100) is turned OFF and outputting a first pre-integrated value, said first integration circuit (310) thereafter integrating the first modified current for the first predetermined period of time during which time said light emitting element (100) is turned ON and outputting a first post-integrated value, in response to a first integration instruction; a first difference computing circuit (510) operatively connected to the output terminal of said first integration circuit (310), for computing a difference between the first pre-integrated value and the first post-integrated value and outputting a first distance information signal in response to a first computing instruction; a second cancellation circuit, (420) operatively connected to the second output terminal (202) of said light receiving element (200), for cancelling a second reference background current from a current output from the second output terminal (202) of said light receiving element (200) and outputting a second modified current in response to a second cancellation instruction; a second integration circuit (320) having an input terminal supplied with the second modified current and an output terminal, said second integration circuit (320) integrating the second modified current for a second predetermined period of time during which time said light emitting element (100) is turned OFF and outputting a second pre-integrated value, said second integration circuit (320) thereafter integrating the second modified current for the second predetermined period of time during which time said light emitting element (100) is turned ON and outputting a second post-integrated value, in response to a second integration instruction; a second difference computing circuit (520) operatively connected to the output terminal of said second integration circuit (320), for computing a difference between the second pre-integrated value and the second post-integrated value and outputting a second distance information signal in response to a second computing instruction; a distance computing circuit (600) operatively connected to both said first difference computing circuit (510) and said second difference computing circuit (520), for computing a distance to the object based on the first distance information signal and the second distance information signal; and a timing generation circuit (700) for generating the light emission instruction, the first integration instruction, the second integration instruction, the first computing instruction and the second computing instruction. A distance measuring device according to claim 1 wherein said light receiving element (200) comprises a semiconductor position sensitive light detector. A distance measuring device according to claim 1 or 2, wherein a ratio of currents output from the first output terminal (201) and the second output terminal (202) of said light receiving element (200) is determined depending on an intensity distribution of light received at said light receiving surface. A distance measuring device according to claim 3, wherein the first reference background current and the second background current are determined to represent an average light intensity distribution of the background light whose light intensity distribution may change as time passes. A distance measuring device according to claim 3, wherein the first reference background current is determined based on the first reflection current output from the first output terminal (201) of said light receiving element (200) for another predetermined period of time during which time said light emitting element (100) is turned OFF, and the second reference background current is determined based on the second reflection current outputted from the second output terminal (202) of said light receiving element (200) for the another predetermined period of time during which time said light emitting element (100) is turned OFF. A distance measuring device according to any one of the preceding claims, further comprising a first constant current source (412) for supplying a first constant current to the first output terminal (201) of said light receiving element (200), and a second constant current source (422) for supplying a second constant current to the second output terminal (202) of said light receiving element (200), and wherein said first cancellation circuit (410) further cancels the first constant current from the current outputted from the first output terminal (201) of said light receiving element (200), and said second cancellation circuit (420) further cancels the second constant current from the current output from the second output terminal (202) of said light receiving element (200). A distance measuring device according to any one the preceding claims, wherein said first difference computing means (510) comprises first holding means (C 12 ) for holding the first pre-integrated value, and said second difference computing means (520) comprises second holding means for holding the second pre-integrated value. A distance measuring device according to any one of the preceding claims, wherein said first predetermined period of time and the second predetermined period of time are set equal to each other. A distance measuring device according to any one of the preceding claims, wherein said first cancellation circuit (410) comprises: a first MOS transistor (MQ 11 ) having a source terminal connected to the first output terminal (201) of said light receiving element (200), a drain terminal connected to ground, and a gate terminal; a first capacitor (C 15 ) having one terminal connected to the gate terminal of said first MOS transistor (MQ 11 ) and another terminal connected to ground; a first switch (SW 15 ) having one terminal connected to the gate terminal of said first MOS transistor (MQ 11 ) and another terminal connected to the output terminal of said first integration circuit (310); and a first constant current source (412) for supplying a first constant current to the source terminal of said first MOS transistor (MQ 11 ), and wherein said second cancellation circuit (420) comprises: a second MOS transistor having a source terminal connected to the second output terminal of said light receiving element, a drain terminal connected to ground, and a gate terminal; a second capacitor having one terminal connected to the gate terminal of said second MOS transistor and another terminal connected to ground; a second switch having one terminal connected to the gate terminal of said second MOS transistor and another terminal connected to the output terminal of said second integration circuit; and a second constant current source for supplying a second constant current to the source terminal of said second MOS transistor. A distance measuring device according to any one of the preceding claims, wherein the first constant current and the second constant current are set equal to each other.

Inventors: MIZUNO SEIICHIRO, MIZUNO, SEIICHIRO
Applicants: HAMAMATSU PHOTONICS KK, HAMAMATSU PHOTONICS K.K.
Application year: 1995
Main classification: G01D5
IPC codes: G01B11, G01S17, G03B13, G02B7, G01D5, G01S7, G01C3