CALIBRATABLE OPTICAL DISTANCE SENSING SYSTEM AND METHOD

Abstract: A calibratable optical distance measuring system (100) and method of calibrating the same utilizes a plurality of electronic calibration constants stored in memory (118) to compensate the measurement output of a position sensitive detector element (18) for variations in physical design and circuit performance parameters. The method of calibrating includes generating the plurality of electronic calibration constants by placing the optical distance measuring system (100) into a calibration fixture (200 or 208) where at least one target object is moved into known distances, and the calibration constants are determined based on the system's measurements of the known distances.

Description: CALIBRATABLE OPTICAL DISTANCE SENSING SYSTEM AND METHOD BACKGROUND OF THE INVENTION The present invention relates generally to optical distance sensing arrangements, and more particularly to calibration of optical distance sensing arrangements using position sensitive detectors (PSD) . Conventional optical distance measuring systems which utilize a PSD element to measure distance between the optical system and the surface of an object, such as used in autofocus cameras and other range measuring equipment, measure distance by triangulation. More specifically, as shown in Fig. 1, a block diagram of a conventional optical distance measuring system 10 includes an LED transmitter 12, a transmitter lens 14, a receiver lens 16, and a PSD element 18 with associated amplifier circuit 20. In operation, the LED emits a distancing light beam which is reflected in all directions by the surface of an object 22. The light which is reflected through the principal point of the receiver lens 16 forms an angle α relative to the incident beam. The reflected light is focused by the receiving lens 16 to form a beam spot on an active area of the PSD element 18. The various physical parameters shown in Fig. 1 are defined as follows: x - distance of the object from principal point of transmitter lens along beam of incident distancing light; L - length of the active area of the PSD element; I - current from the inside lead of the PSD element; O - current from the outside lead of the PSD element; y - distance from the inside edge of the PSD active area to the center of the spot of reflected/scattered light; s - perpendicular distance from the center of the incident distancing light beam to the principal point of the receiver lens; f - distance between the principal point of the receiver lens and the plane of the PSD as measured parallel to the incident distancing light beam; q - distance from a point where a line through the principal point of the receiver lens and parallel to the incident distancing light beam intersects the plane of the PSD element to the inside edge of the PSD active area; and z - distance from a point where a line through the principal point of the receiver lens and parallel to the incident distancing light beam intersects the plane of the PSD element to the center of the reflected light spot on the PSD element; where y = LO/(I+0); (1) z = q+y; and cot α = x/s = f/z, x = (f) (s)/z (2) As evidenced from equation (2) , the distance measurement x is directly affected by the interpositioning of the PSD element, the receiver lens and the transmitter. Thus, manufacturing and/or assembly variations in f, s, and z cause large variations and errors in the distance measurement. This is particularly true the farther away the object is relative to the distance measuring system. Generally, known optical distance measuring systems attempt to accommodate for manufacturing/assembly variations by incorporating a mechanical adjustment mechanism into the system. In this manner, detection of incorrect distance measurements due to slight variations in positioning can be corrected by adjusting the physical position of a desired system component. However, mechanical adjustments are unsatisfactory because of the substantial expense added to both the overall system and the manufacturing/assembly process therefor. In addition to measurement errors arising from physical misalignments, differences in gains between the PSD I and 0 amplifiers can create measurement errors due to improper 0 and I current readings when calculating y. Thus, known optical distance measurement systems have not provided a satisfactory arrangement which can effectively compensate for variations in circuit component parameters and physical parameters, thereby compromising distance measurement accuracy. SUMMARY OF THE INVENTION It is therefore, an object of the present invention to provide an improved calibration system for use in an optical distance sensing/measuring system which compensates for variations in system design parameters. It is another object of the present invention to provide an improved calibration system for use in an optical distance sensing/measuring system having a PSD element which electronically compensates for variations in physical and circuit performance parameters. It is a further object of the present invention to provide a cost effective method of calibrating an optical distance measuring system to improve measurement accuracy of the system. It is also an object of the present invention to provide a method of calibrating an optical distance measuring system by generating a plurality of calibration constants which can be stored in a system memory. It is also an object of the present invention to provide a method of generating a plurality of electronically storable calibration constants using a calibration fixture to provide measurements of at least three different known distances. In accordance with a first aspect of the present invention, a calibratable optical distance measuring system comprising an optical transmitter for directing a distancing light beam at an object separated a particular distance from the transmitter, and an optical receiver comprising a means for imaging onto a sensing means the distancing light beam after scattering by the object. The sensing means generates an output which is indicative of the particular distance between the object and the transmitter. A processor means is responsive to the sensing means output for generating a system output representative of the measured distance between the object and the transmitter. The processor means comprises a memory for storing a plurality of calibration constants, wherein the processor means combines the sensing means output with the plurality of calibration constants to generate the system output. The sensing means preferably comprises a position sensitive detector (PSD) which produces a first (I) and second (O) electrical current output responsive to a light beam being imaged onto an active sensor area. The amount of electrical current respectively output on the first and second outputs is dependent on the position of the images light beam in the active sensor area, wherein the processor uses the first and second outputs and positioned triangulation to generate the system output. The plurality of calibration constants comprise predetermined values specifically generated to compensate for variations in system physical and circuit component operational parameters. In further accordance with the present invention, the plurality of calibration constants comprise a first (c) , second (a) and third (b) constant, wherein the first constant is based on a receiver amplifier gain ratio, the second constant is based on the first constant and a first set of interpositional distances of the receiver and transmitter, and the third constant is based on a second set of interpositional distances of the receiver and transmitter. The calibration constants a, b, and c are further defined as follows: a = (qc)/(fs) , b = (q+L)/(fs) , and c = (an amplifier gain from the second electrical current output)/(an amplifier gain from the first electrical current output) ; wherein the distance to object (x) = (cI+0)/ (al+bO) . The calibration constants a, b, and c can be determined during manufacture of the system by utilizing a plurality of distance measurements for known distances, or using predetermined system design parameters. In accordance with a second aspect of the present invention, a method for calibrating an optical distance measuring system having a means for determining the distance between an object and the system by transmitting an optical distancing light beam toward the object and measuring the light which is reflected or scattered by the object and combining the measurements with a plurality of electronically stored calibration constants, the method comprises the steps of positioning the optical distance measuring system on a calibration fixture, moving at least one target object into the system's distancing light beam path at a plurality of known distances from the system, and activating the optical/distance measuring system to measure the plurality of known distance to the target object. The plurality of calibration constants are then generated based on the measurements of the plurality of known distances, and stored into a memory located in the optical distance measuring system. In a first arrangement, the calibration fixture comprises a rail mechanism for controlling the movement of the at least one target object, and the moving step further comprises the step of sequentially sliding the at least one target object along the rail mechanism to position the at least one target object at the plurality of known distances. In a second arrangement, the calibration fixture comprises a control means for respectively moving a different target object into the distancing light beam path at each of the plurality of known distances, and the moving step further comprises the step of sequentially activating the control means to move a particular one of the respective target objects into the distancing light beam path. The present invention will be more fully understood upon reading the following detailed description of the preferred embodiment in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagrammatic schematic of a conventional optical distance measuring system; Fig. 2 is a diagrammatic schematic of an optical distance measuring system in accordance with the present invention; Fig. 3 is a diagrammatic illustration of a calibration device and method in accordance with a first arrangement of the present invention; and Fig. 4 is a diagrammatic illustration of a calibration device and method in accordance with a second arrangement of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to Fig. 2, there is shown an optical distance measuring system 100 in accordance with the present invention having the same basic transmitter, receiver and PSD components as described above in context with Fig. 1, wherein like elements have been designated with identical reference numbers. The system 100 further includes a microprocessor/ controller 102, and a transmitter modulator circuit formed from an LED driver 104, clock generator 106, and a modulation input from controller 102 via a DAC convertor 108. In the preferred embodiment, the modulator circuit modulates the optical incident distancing beam at «10 Khz in a manner well known to one having ordinary skill in the art. The modulated IR incident distancing light beam is reflected and/or scattered by a surface of the object 22 and re-imaged by the receiver lens 16 onto the PSD element 18. The inside and outside currents produced by the PSD element 18 are respectively amplified in amp circuit 20 and synchronously demodulated by demodulator 110 and 112. As is well understood by one having ordinary skill, the synchronous demodulator include a means for recovering and synchronizing to the transmitter carrier, thereby rendering the system less susceptible to corruption from background noise. After demodulation, the I and O current outputs are converted to digital signals by a A/D convertor 114 and supplied as an input to controller 102 for calculation of the distance x. An input/output (I/O) port 116 provides connection to external control circuitry which utilizes the calculated distance in a decisional process, and/or facilitates receipt of externally generated control signals for controller 102. In accordance with the present invention, mechanical and electrical circuit component performance variations are compensated for by calculating a set of calibration constants at the time of system 100 manufacture/assembly. The calibration constants are stored in a memory 118, such as an EEPROM, and are used by the controller 102 to calculate the distance x in accordance with the following equation: x = (cl+0)/(al+b0) , (3) where a, b, and c are the calibration constants. Generation of equation (3) and the calibration constants a, b, and c is based on the following analysis. As noted above in equation (1), y = LO/(I+0), where I is the current from the inside lead of the PSD, 0 is the current from the outside lead, and L is the length of the active area of PSD. As also noted above, the relationship of y to I and O is affected by the relative gains of the respective current amplifiers. For example, the inside and outside currents should be equal when y is L/2, i.e., half way from inside to outside. However, this will not be true if the gains of the amplifiers are different. In accordance with the present invention, the possibility of a difference in the gains for the inside and outside currents can be taken into account by multiplying I by the calibration constant c, where c is the ratio of the outside gain to the inside gain. Therefore, y = LO/(cI+0) As further noted above in equation (2) , x = (fs)/Z, and z = q+y. Therefore, x = (fs)/[q+LO/(cI+0) ] = (fs) (cI+0)/[q(cI+0)+LO] = (d+0)/[(q/fs) (d+0)+(L/fs)0] = (cI+0)/[(qc/fs)I+((q+L)/fs)0]. (4) Thus, using equation (4) and defining the calibration constants as follows: a = (qc)/(fs) , b = (q+L)/(fs) , and c = (outside amp gain) /inside amp gain), x can be calculated according to equation (3) above, i.e., x = (cI+0)/(aI+bO) . Once the calibration constants are determined, the position x is calculated in terms of the measurements of I and O with three multiplications, two additions, and one division. In accordance with the present invention, there are two methods by which the calibration constants can be determined. First, the calibration constants can simply be calculated in terms of specified physical parameters, where nominal values for the physical parameters, q, c, L, f, and s can be set, for example, as follows: q = O mm.; c = l; L = 6 mm.; f = 13.34 mm.; s = 1.4 in (35.66 mm.) Since it is desired to express the distance x away in inches, the value of s in inches is used. From the definition of the calibration constants a * = (qc/fs), b = ( (q+L) /fs) , c = c, one generates nominal constants of: a = 0; b = 0.32127 c = 1. However, for greater accuracy, the present invention provides a calibration procedure which takes into account actual manufacturing variations in the physical parameters. This involves making measurements of I and O at known distances and calculating in controller 102 the calibration constants from the results of those measurements. To perform the calculation, the equation for x is inverted as follows: X = (cI+0)/[aI+bO] (xl)a+(x0)b-lc = 0. To determine the three unknown calibration constants, three different measurements of I and 0 are made at three known distances. The results of the three different measurements and the distances are designated as I l t O,, x,, I 2 , 0 2 , x 2 , I 3 , 0 3 , x 3 . Therefore, (x 2 I 2 )a+(x 2 0 2 )b-I 2 c = 0 2 . (X 3 l 3 )a+(x 3 θ 3 )b-I 3 c - 0 3 . These equations are solved using Cramer's rule and substitution. For three equations with three unknowns, x, y, and z, we solve for z, and then substitute: (1) Ax+By+Cz = D; (2) Ex+Fy+Gz = H; (3) Ix+Jy+Kz = L; Z = [AFL+BHI+DEJ-AHJ-BEL-DFI]/ [AFK+BGI+CEJ-AGJ-BEK-CFI] ; y = [ (CE-AG)z+(AH-DE) ]/[AF-BE] ; and [-By-Cz+D]/A. Z - c, A = Xil], B = X.O l t C = -I,, D = O,, c = [ - X ιIι0 2 x 3 0 3 -χ.0.χ 2 I 2 0 3 -0.χ 2 0 2 x 3 I 3 +x 1 IιX 2 O 2 O 3 +Xι0 1 0 2 x 3 L 3 +O 1 x 2 I 2 x 3 0 3 ] / t -XiIiX 2 0 2 I 3 -Xi0 1 L 2 x 3 L 3 -I,x 2 I 2 x 3 0 3 +XιIιI 2 X 3 0 3 +X j OιX 2 I 2 I 3 +I,x 2 0 2 X 3 I 3 ] ; ( 5 ) b = u-ι_x 2 τ 2 +_t l τ 1 τ 2 ) c+(-θιχ_ι_+χ l τ l o J ) } ' / [ (x,ι,x 2 o 2 -x,o, χ 2 ι 2 ) ]; (6) and a = [-_ X ιOιb+I,c+0,]/x I I I . (7) Further, where amplifiers having very low input impedances are not used, the calibration constants can be adjusted to accommodate for inaccurate measurement caused by "compression" of the PSD sensing area. More specifically, when the reflected IR light spot falls on the edge of the PSD, a distance of L should be measured. Instead, a deviation in the calculated position from the true position of the light spot will be encountered, where the deviation is zero in the center, and linear as the spot moves from the center to edge of the PSD. This deviation is attributable to a frequency dependent impedance at the input amplifiers. For example, if the nominal resistance across the PSD is 50 KΩ, and the additional impedance at each input amplifier at 10 Khz is 5 KΩ, the "effective" distance across the PSD is compressed by the ratio of the resistance across the PSD to the total resistance between the amplifiers: 50 kΩ/60 kΩ = 0.833. To compensate for this effect, the distance x is calculated in terms of an adjusted formula for y (position on the PSD) . The equation for y had previously been calculated as y = LO/(cI+0). Adjusting this equation to account for the added input impedance at the amplifiers results in: y = (L/R P )[(R P 0+R A (0-cI))/(0+cI)], where Rp is the resistance across the PSD and R A is the input impedance at each amplifier. Recalculating for x results in: X = f s /y, =fs/(q+y) =fs/[q+(L/R P ) [ (R P 0+R A (0-cI) ) /(O+cI)]]. = l/[q/fs+(L/fsR P ) [ (R P 0+R A (0-cI) )/(0+cI) ]] . = (0+cI)/[ (q/fs) (0+cI(+(L/fsR P 0+R A (0-cI)) ] . = (0+cI)/[ (cq/fs-cLR A /fsR P )I+((q/fs)+ L/fs)+(LR A /fsR P ))0]. (8) As before: x = (0+cI)/(a'I+b , 0) , where a'= ((cq/fs)-(cLR A /fsR P )) ; b'= ((a/fs)+(L/fs)+(LR A /fsR P )); c = c. The formal solution of the set of constants from measured values of O and I at three different known distances is the same as that described above: c = [ -x,I,0 2 x 3 0 3 -x 1 0 1 x 2 I 2 0 3 -0 1 x 2 0 2 x 3 I 3 +x,I 1 X 2 0 2 0 3 +x 1 0,0 2 x 3 I 3 +0,x 2 I 2 x 3 0 3 ] / +X,IιI 2 X 3 0 3 +X 1 0 1 X 2 I 2 I 3 +IιX 2 0 2 X 3 I 3 ] . [ (x,I 1 x 2 0 2 -x,0 1 x 2 I 2 ) ] . where x,, x 2 , x 3 are the known distances, and O,, lj, etc., are the corresponding measured signals at the outside and inside terminals of the PSD. Alternatively, nominal values for a', b' , and c can be calculated using nominal values of the physical parameters, for example, such as the following: q = 0 mm.; c = 1; L = 6 mm.; f = 13.34 mm.; s = 1.4 in (35.66 mm.); RP = 50 KΩ; and RA = 5 kΩ. Since it is desired to express the distance away in inches, the value of s is in inches. From the definition of the calibration constants: a'= ((cq/fs)-(cLRA/fsRP)) ; b'= ((q/fs)+(L/fs)+(LRA/fsRP)) ; c = c; then: a'= -0.0321; b , = 0.3534; c = 1. For explanation of the derivation of the adjustments required to take the compression effect into account, the inside edge of the PSD is chosen as the origin and the outside O as the positive direction. This position is designated as y. Abbreviations: y = distance of spot from inside edge of PSD. 0 = signal from outside terminal. 1 = signal from inside terminal. R~ resistance from light spot to inside edge of PSD. R„= resistance from light spot to outside edge of PSD. R A = impedance of (single) input amplifier. R p = resistance across the PSD. V = voltage at light spot (edges assumed to be ground) . As is clear from the above analysis, when the amplifier impedance R A is zero and other parameters have their respective nominal values, than from equation (1) : y « LO/(I+0) When R A is not zero, the correct expression is determined by the following analysis. The resistance from the light spot to the edge is linearly proportional to the distance to the edge, and current is inversely proportional to resistance. The resistivity (resistance per millimeter) is R p /L. The total resistance from the light spot to the input amplifiers and the associated currents are given by the expressions: Ri = V/I = R A +yR„/L. ■ R_ = v/O = R A +(R„/L)(L-y). Uniform resistivity and identical input impedance are assumed for both amplifiers, and values for all the elements in these expressions are known except for the voltage, V, (dependent on the intensity of the light) , and the distance, y, which are the values which need to be calculated. V can be cancelled by taking the ratio of Rj to R„: Ri/R, = (V/I)/(V/O) = O/I; (R A +yR p /L)/(R A +(Rp/D (L-y)) = 0/1. (9) Thus, solving equation (9) for y provides the correct and complete expression for y which accounts for "compression" of the PSD sensing area as: y = LCOR p +fO-DRJ/fR p tl+O))] (10) In further accordance with the present invention, alternative arrangements are shown in Figs. 3 and 4 for achieving known distances X X 2 , and X 3 during calculation of the calibration constants as described above. More specifically, after assembly of the optical distance measuring system 100 has been completed, the system 100 is placed in a fixture 202 of calibration machine 200 or 208. As shown in Fig. 3, a target 204 is sequentially moved down a rail mechanism 206 into three different positions of fixed distance from the fixture/measuring system. Alternatively shown in Fig. 4, three individual targets 210(a), (b) , and (c) are sequentially swung into the incident distancing light beam path. With either arrangement 200 or 208, precise values for X w X 2 , and X 3 can be achieved. Therefore, the present invention provides both an accurate and economical system for electronically calibrating an optical distance measuring system, and a method/process for generating the desired calibration constants. The present invention is particularly suited for use with any system where optical distance sensing/measuring is employed, such as, an autofocus camera system, or an optical occupant position sensing system used in conjunction with a vehicle crash discrimination system. It will be understood that the foregoing description of the preferred embodiment of the present invention is for illustrative purposes only, and that the various structural and operational features herein disclosed are susceptible to a number of modifications, none of which departs from the spirit and scope of the present invention as defined in the appended claims.

Claims: WE CLAIM : 1. A calibratable optical distance measuring system comprising: an optical transmitter for directing a distancing light beam at an object separated a particular distance from said transmitter; an optical receiver comprising a means for imaging onto a sensing means the distancing light beam after scattering by the object, said sensing means generating an output which is indicative of the particular distance between the object and said transmitter; and a processor means responsive to said sensing means output for generating system output representative of the measured distance between the object and the transmitter, said processor means comprising a memory for storing a plurality of calibration constants, wherein said processor means combines said sensing means output with said plurality of calibration constants to generate said system output. 2. The system of claim 1 wherein said sensing means comprises a position sensitive detector which produces a first and second electrical current output responsive to a light beam being imaged onto an active sensor area, the amount of electrical current respectively output on said first and second outputs being dependent on the position of the imaged light beam in the active sensor area, wherein said processor uses said first and second outputs and a triangulation theory to generate the system output, and said plurality of calibration constants comprise predetermined values specifically generated to compensate for misalignment between said optical transmitter and receiver. 3. The system of claim 2 comprising a set of physical design parameters defined as follows: x - distance of the object from said transmitter; L - length of the active sensor area of the position sensitive detector; I - current from the first electrical current output; O - current from the second electrical current output; s - perpendicular distance from the center of the distancing light beam to a principal point of a receiver lens; f - distance between the principal point of the receiver lens and the position sensitive detector as measured parallel to the distancing light beam; and q - distance from a first edge of the active sensor area to a point where a line through the principal point of the receiver lens and parallel to the distancing light beam intersects the plane of the position sensitive detector; and said plurality of calibration constants comprises three constants, a, b, and c defined as follows: a = (qc)/(fs) , b = (q+L)/(fs) , and c = (an amplifier gain from the second electrical current output)/(an amplifier gain from the first electrical current output) ; wherein x = (cI+0)/(aI+bO) . 4. The system of claim 3 wherein said processor means includes a means for determining said calibration constants, a, b, and c during manufacture of said system by utilizing distance measurements generated for an object at different, known distances x. 5. The system of claim 4 wherein said plurality of distance measurements comprises three different measurements X,, X 2 , and X 3 producing corresponding readings I, and 0, I 2 and 0 2 , and I 3 and 0 3 , and said calibration constants are determined by: C = [ -X I I 1 θ 2 X 3 θ 3 -X,0 1 X 2 l 2 θ 3 -0 1 X 2 θ 2 X 3 l 3 +X 1 I l X 2 0 2 0 3 +X,0 1 0 2 X 3 _L 3 +OιX 2 I 2 3 θ 3 ] / [-XιI,x 2 0 2 I 3 -XjOιL 2 X 3 L 3 -I 1 x 2 I 2 x 3 θ 3 +x,I 1 I 2 x 3 0 3 +x 1 0,x 2 I 2 l 3 +I 1 x 2 0 2 x 3 I 3 ] ; b = i (-I 1 x 2 I 2 +x l I l I 1 ) c+ (-O l x 2 I J +x l l l O_) / [ (XιIιX 2 θ 2 -x,θ,x 2 I 2 ) ] ; and a = [-XιO,b+I,c+O j ]/X j Iι. 6. The system of claim 3 wherein said calibration constants a, b, and c are generated using predetermined values for q, L, f, s, and amplifier gain. 7. The system of claim 1 wherein said plurality of calibration constants comprise predetermined values specifically generated to compensate for variations in system physical and circuit component parameters. 8. The system of claim 7 wherein said plurality of calibration constants comprises a first, second and third constant, wherein said first constant is based on a receiver amplifier gain ratio, said second constant is based on the first constant and a first set of interpositional distances of said receiver and transmitter, and said third constant is based on a second set of interpositional distances of said receiver and transmitter. 9. A method for calibrating an optical distance measuring system, said system having a means for determining the distance between an object and the system by transmitting an optical distancing light beam toward the object and measuring the light which is reflected or scattered by the object and combining the measurements with a plurality of electronically stored calibration constants, said method comprising the steps of: positioning said optical distance measuring system on a calibration fixture; moving at least one target object into said system's distancing light beam path at a plurality of known distances from said system; activating the optical distance measuring system to measure the plurality of known distances to the target object; generating the plurality of calibration constants based on the measurements of said plurality of known distances; and storing the generated plurality of calibration constants into a memory located in said optical distance measuring system. 10. The method of claim 9 wherein the calibration fixture comprises a rail mechanism for controlling the movement of said at least one target object, and said moving step further comprises the step of sequentially sliding said at least one target object along said rail mechanism to position said at least one target object at the plurality of known distances. 11. The method of claim 9 wherein the calibration fixture comprises a control means for respectively moving a different target object into the distancing light beam path at each of the plurality of known distances, and said moving step further comprises the step of sequentially activating said control means to move a particular one of the respective target objects into the distancing light beam path.

Inventors: CAMPBELL JAMES A, GILLIS EDWARD J, CAMPBELL, JAMES, A., GILLIS, EDWARD, J.
Applicants: AUTOMOTIVE SYSTEMS LAB, AUTOMOTIVE SYSTEMS LABORATORY, INC.
Application year: 1995
Main classification: G01B11
IPC codes: G01B11, G01C3