JP3142731B2 - Distance measuring device - Google Patents

Distance measuring device

Info

Publication number
JP3142731B2
JP3142731B2 JP1784595A JP1784595A JP3142731B2 JP 3142731 B2 JP3142731 B2 JP 3142731B2 JP 1784595 A JP1784595 A JP 1784595A JP 1784595 A JP1784595 A JP 1784595A JP 3142731 B2 JP3142731 B2 JP 3142731B2
Authority
JP
Japan
Prior art keywords
signal
integration
time
distance
integrating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1784595A
Other languages
Japanese (ja)
Other versions
JPH08210839A (en
Inventor
雄一 有賀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP1784595A priority Critical patent/JP3142731B2/en
Publication of JPH08210839A publication Critical patent/JPH08210839A/en
Application granted granted Critical
Publication of JP3142731B2 publication Critical patent/JP3142731B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、例えばカメラから光を
投光し測定対象からの反射光を測光することにより距離
情報を得るアクティブ方式の距離測定装置(以下アクテ
ィブAFと略す)に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an active distance measuring apparatus (hereinafter abbreviated as active AF) for obtaining distance information by, for example, projecting light from a camera and measuring light reflected from an object to be measured. is there.

【0002】[0002]

【従来の技術】従来、赤外発光素子(IRED)とPS
DもしくはSPCを組み合わせてカメラから投光したI
REDの被写体での反射光をPSD等の受光手段で受け
て距離を得る距離測定装置は良く知られている。
2. Description of the Related Art Conventionally, an infrared light emitting device (IRED) and a PS
I emitted from the camera in combination with D or SPC
2. Description of the Related Art A distance measuring apparatus that obtains a distance by receiving light reflected by an object of an RED by a light receiving unit such as a PSD is well known.

【0003】PSDを用いた距離測定装置において、P
SDの二つの出力FとNの差信号(F−N)を二重積分
方式により和信号(F+N)に対して正規化し、被写体
反射率又は被写体からの光の強さによらず精度の高い測
距を可能とする距離測定装置も良く知られている。この
時、F≒Nの場合(被写体が中距離に位置する場合)、
所定積分時間での積分はほとんど零(F−N≒0)とな
るため基準値を越えず無限と区別する必要が生じる。そ
こで、特開昭61−90006号に開示の距離測定装置
には、中距離か無限かを区別するために、和信号(F+
N)の積分を所定時間続けて、この積分値が基準値より
大きくなるかどうかで無限か中距離かを区別している。
In a distance measuring device using a PSD, P
The difference signal (F−N) between the two outputs F and N of SD is normalized with respect to the sum signal (F + N) by the double integration method, and the accuracy is high regardless of the subject reflectance or the intensity of light from the subject. Distance measuring devices that enable distance measurement are also well known. At this time, when F ≒ N (when the subject is located at a middle distance),
Since the integration at the predetermined integration time becomes almost zero (FN ≒ 0), it is necessary to distinguish it from infinity without exceeding the reference value. Therefore, a distance measuring device disclosed in Japanese Patent Application Laid-Open No. 61-90006 discloses a sum signal (F +
The integration of N) is continued for a predetermined period of time, and whether the distance is infinity or a medium distance is distinguished based on whether or not the integration value is larger than a reference value.

【0004】また、現在カメラの距離測定装置ではマイ
コンを用いたものがほとんどで、この場合マイコンに送
られる信号は、基準電圧と積分電圧とのコンパレータ信
号と積分電圧A/D変換した信号しかない。そこで差信
号(F−N)の積分が終わった時点のコンパレータ信号
をマイコンがラッチしておき、和信号(F+N)の積分
でコンパレータ信号が反転するまでの時間を計測しこの
時間により距離を求めている。
At present, most of the distance measuring devices of cameras use a microcomputer, and in this case, the only signals sent to the microcomputer are a comparator signal of a reference voltage and an integrated voltage and a signal obtained by A / D conversion of the integrated voltage. . Then, the microcomputer latches the comparator signal at the time when the integration of the difference signal (F−N) is completed, measures the time until the comparator signal is inverted by integration of the sum signal (F + N), and obtains the distance based on this time. ing.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、丁度F
=Nとなった場合、差信号(F−N)の積分も零にな
り、基準電圧と積分電圧を比較するコンパレータの信号
が数mVの範囲で不定となる。すると、AF制御回路が
ラッチしたコンパレータ信号と、マイコンがラッチした
コンパレータ信号が違ってしまう可能性がある。この時
差信号(F−N)の積分は小さく、和信号(F+N)は
大きくなるので有限距離だと判定するが、コンパレータ
の反転(ゼロクロス)をマイコンが検知できなくなる。
これは本来コンパレータ信号と逆に積分しなければなら
ないのに、マイコンがラッチしたコンパレータ信号とA
F制御回路がラッチしたコンパレータ信号が反対の場
合、マイコンからみると信号と同じ方向に積分されてい
るようになり、結果としてコンパレータの反転を検知出
来ないので、和信号(F+N)の積分時間は最大とな
り、コンパレータの向きにより最至近かあるいは無限だ
と誤測距をすることがある。本発明の目的は、中距離で
コンパレータが不定となったときでもAF制御回路に変
更を加えずマイコンで常に正確に距離を測定出来る距離
測定装置を提供することにある。
However, just F
When = N, the integration of the difference signal (F-N) also becomes zero, and the signal of the comparator that compares the reference voltage and the integrated voltage becomes indeterminate within a range of several mV. Then, the comparator signal latched by the AF control circuit may be different from the comparator signal latched by the microcomputer. Since the integration of the time difference signal (F−N) is small and the sum signal (F + N) is large, it is determined that the distance is a finite distance. However, the microcomputer cannot detect the inversion (zero cross) of the comparator.
This is because the comparator signal must be integrated in the opposite direction to the comparator signal.
If the comparator signal latched by the F control circuit is the opposite, the signal will be integrated in the same direction as the signal when viewed from the microcomputer. As a result, the inversion of the comparator cannot be detected, so the integration time of the sum signal (F + N) will be Depending on the direction of the comparator, the distance may be maximum and the distance may be erroneously measured if the distance is closest or infinite. SUMMARY OF THE INVENTION It is an object of the present invention to provide a distance measuring apparatus that can always accurately measure a distance with a microcomputer without changing an AF control circuit even when a comparator becomes unstable at a medium distance.

【0006】[0006]

【課題を解決するための手段および作用】本発明の目的
を実現する構成は、請求項1に記載のように、測定対象
からの反射光を受けることにより、測定対象の距離に依
存して変化する第1の信号および第2の信号を出力する
受光手段と、該受光手段の第1および第2の信号の差を
所定時間積分する差積分動作を行うと共に、該差積分動
作の終了後に該第1の信号と第2の信号の和を逆積分す
る逆積分動作を行う積分手段と、該積分手段の出力レベ
ルが初期値に戻るまでの逆積分時間を検出して距離情報
を得る距離情報検出手段とを有する距離測定装置におい
て、該逆積分の開始時点から一定の無限判定時間経過後
における該積分手段の出力レベルに応じて無限判定を行
う無限判定手段と、該無限判定手段で無限と判定され
ず、逆積分時間を誤検知した場合に逆積分時間を最小と
し、この最小時間を該距離情報検出手段における逆積分
時間とする誤検知判断手段とを有することを特徴とする
距離測定装置にある。
According to a first aspect of the present invention, there is provided a configuration for receiving light reflected from a measuring object to change the distance depending on the distance of the measuring object. A light receiving means for outputting a first signal and a second signal, and a difference integration operation for integrating a difference between the first and second signals of the light receiving means for a predetermined time, and after completion of the difference integration operation. Integrating means for performing an inverse integration operation for performing an inverse integration of the sum of the first signal and the second signal; and distance information for obtaining a distance information by detecting a reverse integration time until an output level of the integration means returns to an initial value. In a distance measuring device having a detecting means, an infinity determining means for performing an infinity determination according to an output level of the integrating means after a lapse of a certain infinity determining time from a start point of the back integration, Not determined, incorrect back integration time Inverse integration time to a minimum when knowledge is the minimum time to the distance measuring apparatus characterized by having a false positive determination means and inverse integration time in said distance information detecting means.

【0007】この構成では、第1の信号と第2の信号と
が略同じとなる中距離の場合に無限判定手段で有限と判
定されても、逆積分時間の誤検知が生じると、逆積分時
間を最小の時間に設定するので、逆積分時間が最大とな
る最至近あるいは最遠距離を判断することはなく、正確
に中距離を判断できる。
In this configuration, even if the first signal and the second signal are determined to be finite by the infinity determination means in the middle distance where they are substantially the same, if an erroneous detection of the inverse integration time occurs, the inverse integration is performed. Since the time is set to the minimum time, the closest distance or the farthest distance at which the inverse integration time becomes the maximum is not determined, and the middle distance can be accurately determined.

【0008】また、誤検知判断手段としては、信号の差
を所定時間積分した後の積分手段の出力レベルと、信号
の和を一定の無限判定時間の間積分した後の積分手段の
出力レベルと、逆積分時間とから、逆積分時間の誤検知
を判定することができるので、従来のAF制御回路に変
更を加えることなく、マイコン等で構成される距離情報
検出手段側での制御装置でのプログラミングでこのよう
な構成を実現することができる。
The erroneous detection determining means includes an output level of the integrating means after integrating the signal difference for a predetermined time, and an output level of the integrating means after integrating the sum of the signals for a fixed infinite determination time. Erroneous detection of the inverse integration time can be determined from the inverse integration time, so that the control device on the side of the distance information detecting means composed of a microcomputer or the like does not need to change the conventional AF control circuit. Such a configuration can be realized by programming.

【0009】[0009]

【実施例】図1ないし図8は本発明の一実施例を示す。1 to 8 show an embodiment of the present invention.

【0010】図1(a)はアクティブAFの概念を示す
ブロック図である。
FIG. 1A is a block diagram showing the concept of active AF.

【0011】1はPSD(Position Sens
ing Device)、2はIREDで、3はAF制
御回路、4はINT出力をA/DするためのA/D変換
回路、5は積分時間を計測するためのタイマ、6はマイ
コン、7は被写体である。カメラからIREDで投光さ
れたスポットが被写体7で反射してPSD1に返ってく
る。この時、PSD1上のどこにIRED2の反射光
(スポット)が結像されているかによって被写体までの
距離が分かる。ちなみに、被写体が近いときはPSD1
のNearよりにスポットが結像し、遠いときはFar
よりにスポットが結像するようになっている。PSD1
の2つの信号出力FとNを差信号(F−N)で所定時間
積分した後、和信号(F+N)逆積分して基準電圧に戻
るまでの逆積分時間をタイマ回路5で求め、この時間か
らマイコン6により被写体までの距離を求める。また、
無限等の判定のためにA/D変換回路4で積分電圧IN
TをA/D変換してマイコン6で判定を加える。
1 is a PSD (Position Sens).
2) an IRED, 3 an AF control circuit, 4 an A / D conversion circuit for A / D conversion of the INT output, 5 a timer for measuring the integration time, 6 a microcomputer, 7 a subject It is. The spot projected from the camera by the IRED is reflected by the subject 7 and returns to the PSD 1. At this time, the distance to the subject can be determined from where on the PSD 1 the reflected light (spot) of the IRED 2 is formed. By the way, when the subject is near, PSD1
Spot is imaged from Near, Far when far
More spots are imaged. PSD1
After integrating the two signal outputs F and N with the difference signal (F−N) for a predetermined time, the inverse integration time until the sum signal (F + N) is inversely integrated and returned to the reference voltage is obtained by the timer circuit 5. From the microcomputer 6 to obtain the distance to the subject. Also,
In order to determine infinity or the like, the A / D conversion circuit 4 uses the integral
T is A / D converted and the microcomputer 6 makes a judgment.

【0012】ここで、図1(b)はAF制御回路3の一
部で特に積分を行う回路を示している。
FIG. 1B shows a part of the AF control circuit 3 for performing particularly integration.

【0013】8は和信号(F+N)のアンプで、9は差
信号(F−N)のアンプである。差信号(F−N)を積
分をするときは、アナログSW11をオンして積分器1
2で積分を行う。和信号(F+N)を積分するときは、
アナログSW10をオンして積分器12で積分を行う。
この積分出力INTをA/D変換回路4でA/D変換を
行いマイコン6に入力する。また、コンパレータ13上
で積分が上昇積分か下降積分かを求め、コンパレータ信
号COMPもマイコン6に入力する。
Reference numeral 8 denotes an amplifier for the sum signal (F + N), and reference numeral 9 denotes an amplifier for the difference signal (F−N). When integrating the difference signal (FN), the analog SW 11 is turned on and the integrator 1 is turned on.
Integrate with 2. When integrating the sum signal (F + N),
The analog SW 10 is turned on, and the integrator 12 performs integration.
The integrated output INT is subjected to A / D conversion by the A / D conversion circuit 4 and input to the microcomputer 6. The comparator 13 determines whether the integration is an upward integration or a downward integration, and also inputs a comparator signal COMP to the microcomputer 6.

【0014】図3から図7は測距時の積分電圧INTと
基準電圧KVCと積分電圧INTとのコンパレータ信号
COMPの距離によるタイムチャートの違いを示したも
ので、図3は中距離(F=N)の場合、図4は遠距離
(F>N)の場合、図5は近距離(F<N)の場合、図
6は中距離(F≒N)の場合、図7は無限(F≒0,N
≒0)の場合を示している。
FIGS. 3 to 7 show differences in time charts depending on the distance of the comparator signal COMP between the integrated voltage INT, the reference voltage KVC, and the integrated voltage INT at the time of distance measurement. FIG. N), FIG. 4 shows a case of long distance (F> N), FIG. 5 shows a case of short distance (F <N), FIG. 6 shows a case of medium distance (F ≒ N), and FIG. ≒ 0, N
≒ 0).

【0015】期間で積分電圧INTを基準電圧KVC
と同じに電圧になるように調節する。この時コンパレー
タ13のコンパレータ信号COMPはLow・Hiのど
ちらにるかは不定である。また、PSD1の出力を被写
体距離や反射率によらず一定にするため、アンプのゲイ
ンを調節する。これをAGCといい、ゲインが下がった
場合をAGCがかかったという。
In the period, the integral voltage INT is changed to the reference voltage KVC.
Adjust the voltage to the same as above. At this time, it is undefined which of the comparator signal COMP of the comparator 13 is Low or Hi. In addition, the gain of the amplifier is adjusted to keep the output of PSD1 constant irrespective of the subject distance and the reflectance. This is called AGC, and when the gain decreases, AGC is applied.

【0016】期間で所定のTref時間、差信号(F
−N)の積分を行う。積分が開始されるとコンパレータ
信号COMPは安定する。
In the period, the difference signal (F
-N). When the integration is started, the comparator signal COMP is stabilized.

【0017】期間でコンパレータ信号COMPをマイ
コン6がラッチして、無限判定を行うか行わないかを決
める。無限判定とは、和信号(F+N)の積分でコンパ
レータ信号COMPが反転した後も所定時間積分を続け
て被写体が中距離にいるのか無限にいるのかを判定する
ものであり、期間で信号が小さいためにAGCがかか
らず、また期間での差信号(F−N)の積分値Vsm
allが所定の基準値Vsmmより小さい場合に、この
無限判定を行うというフラグをセットする。ここで、V
smallは積分電圧のINTをマイコンでA/D変換
して求めたものである。
During the period, the microcomputer 6 latches the comparator signal COMP to determine whether or not to perform infinite determination. The infinity determination is to determine whether the subject is at an intermediate distance or infinitely by continuing integration for a predetermined time even after the comparator signal COMP is inverted by integration of the sum signal (F + N). AGC is not applied, and the integral value Vsm of the difference signal (FN) in the period is not used.
When all is smaller than a predetermined reference value Vsmm, a flag for performing the infinite determination is set. Where V
"small" is obtained by subjecting the integrated voltage INT to A / D conversion by a microcomputer.

【0018】期間で和信号(F+N)の積分を行い、
コンパレータ信号COMPが反転するまでの時間Tin
tを計測する。
In the period, the sum signal (F + N) is integrated,
Time Tin until the comparator signal COMP is inverted
Measure t.

【0019】期間で無限判定を行う場合は、コンパレ
ータ信号COMPが反転した後もTref時間積分を続
ける。
When the infinite decision is made in the period, the integration of the Tref time is continued even after the comparator signal COMP is inverted.

【0020】期間で時間Tintとコンパレータ信号
COMPから距離を求める。
In the period, the distance is obtained from the time Tint and the comparator signal COMP.

【0021】図8は時間Tint・COMPと距離の関
係のモデル図である。コンパレータ信号COMP=Lo
wで、時間Tintが大きいときは被写体が遠く、被写
体が近くになるにつれ時間Tintが小さくなる。中距
離の時、時間Tintが一番小さくて、中距離から近く
なるとコンパレータ信号COMP=Hiになり、時間T
intは大きくなってくる。このように時間Tintと
コンパレータ信号COMPから図8の特性線図に従って
被写体距離を演算により一次的に求めることが可能であ
る。
FIG. 8 is a model diagram of the relationship between time Tint.COMP and distance. Comparator signal COMP = Lo
At w, when the time Tint is large, the subject is far, and the time Tint decreases as the subject gets closer. When the distance is medium, the time Tint is the shortest, and when the distance is short, the comparator signal COMP becomes Hi.
int increases. As described above, the subject distance can be temporarily obtained by calculation from the time Tint and the comparator signal COMP according to the characteristic diagram of FIG.

【0022】図4に示す被写体が遠距離(F>N)の時
は、期間で積分出力INTは基準電圧KVCより下側
に積分される。期間で積分を一時停止し、この時のC
OMP信号をマイコンがラッチする。基準電圧KVCよ
り下側に積分されたので、マイコン6がラッチするCO
MP信号はLowとなる。期間で和信号(F+N)の
積分を行い、COMP信号が反転(Hiになる)したら
積分を止め、この時のTintの時間とラッチしたCO
MP信号がLowでの特性線図に従って距離を求める。
図5に示す被写体が近距離(F<N)の時は、期間で
基準電圧KVCより上側に積分され、COMP信号はH
iとなり、期間でCOMP信号が反転するまでの時間
TintとCOMPの信号Hiでの特性線図に従って距
離を求める。
When the subject shown in FIG. 4 is at a long distance (F> N), the integrated output INT is integrated below the reference voltage KVC in a period. The integration is suspended during the period, and C
The microcomputer latches the OMP signal. Since the voltage is integrated below the reference voltage KVC, the microcomputer 6 latches the CO
The MP signal becomes Low. The integration of the sum signal (F + N) is performed during the period, and when the COMP signal is inverted (becomes Hi), the integration is stopped, and the Tint time at this time and the latched CO
The distance is obtained according to the characteristic diagram when the MP signal is low.
When the subject shown in FIG. 5 is at a short distance (F <N), the signal is integrated above the reference voltage KVC during the period, and the COMP signal becomes H
The distance is obtained according to a characteristic diagram of the time Tint until the COMP signal is inverted in the period and the COMP signal Hi.

【0023】ところで、図6に示す被写体が中距離(F
≒N)の時は、期間での差信号(F−N)の積分値は
小さくなる。また、図7に示す被写体が無限(F≒0,
N≒0)の時も、期間での差信号(F−N)の積分値
が小さくなるので、中距離で積分値が小さいのか、無限
で信号が出ず積分値が小さいのかが期間が終わった時
点では判別できない。
By the way, the object shown in FIG.
In the case of (≒ N), the integral value of the difference signal (F-N) in the period becomes small. Further, the subject shown in FIG. 7 is infinite (F ≒ 0,
Also when N ≒ 0), the integral value of the difference signal (F−N) in the period is small, so whether the integral value is small at a medium distance or infinite and no signal is output and the integral value is small ends the period. Cannot be determined at that point.

【0024】そこで、期間での差信号(F−N)の積
分値がVsmmを越えなかった場合、期間で和信号
(F+N)の積分を行い、COMP信号が反転するまで
の時間Tintを求めた後も積分を続け、期間と同じ
時間のTref間、積分を行ったときの積分値Vsma
llの大きさにより無限か中距離かを判別する。これを
「無限判定」とする。この時、図示はしていないが所定
の基準値VinfとVsmallとを比較して、Vsm
allが大きい場合(図6の場合)は中距離と判断し、
COMP信号が反転するまでの時間TintとCOMP
信号Hiに従った特性線図から距離を求める。また、所
定の基準値Vinfの方が大きい場合(図7の場合)
は、Tintの時間によらず距離を無限とする。無限の
場合PSD1の信号はほとんど出ず、ノイズの方が大き
くなる。そのため、図7の例ではCOMP信号が反転し
ているが状況によっては反転しないまま測距が終わる場
合もあり、Tintは信頼性が悪くなる(S/Nが悪く
なる)。そこで積分値が小さいときは強制的に距離を無
限にしている。
Therefore, when the integrated value of the difference signal (FN) does not exceed Vsmm in the period, the sum signal (F + N) is integrated in the period, and the time Tint until the COMP signal is inverted is obtained. The integration is continued thereafter, and the integrated value Vsma obtained when the integration is performed for Tref of the same time as the period
It is determined whether the distance is infinity or middle distance based on the size of ll. This is referred to as “infinite judgment”. At this time, although not shown, a predetermined reference value Vinf is compared with Vsmall to obtain Vsm.
If all is large (in the case of FIG. 6), it is determined that the distance is medium,
Time Tint and COMP until the COMP signal is inverted
The distance is obtained from the characteristic diagram according to the signal Hi. Further, when the predetermined reference value Vinf is larger (in the case of FIG. 7).
Makes the distance infinite regardless of the time of Tint. In the case of infinity, the signal of PSD1 hardly appears and the noise becomes larger. For this reason, in the example of FIG. 7, the COMP signal is inverted, but depending on the situation, the distance measurement may end without being inverted, and the Tint becomes less reliable (S / N becomes worse). Therefore, when the integral value is small, the distance is forcibly set to infinity.

【0025】そして、図3のように被写体が中距離で特
にF=Nとなった場合は、期間での差信号(F−N)
の積分が零となり、数mVの範囲でCOMP信号は不定
となる。期間でマイコン6はCOMP信号が不定でも
Hi・Lowどちらかにラッチする。この時AF制御回
路3もCOMP信号をラッチしていて、期間でこのラ
ッチした方向と逆積分を行うようになっている。そのた
め、COMPが不定のときはマイコン6がラッチしたC
OMP信号とAF制御回路3がラッチしたCOMP信号
が反対になり、マイコン6からみるとAF制御回路3が
期間で期間と同じ方向に積分しているようになる。
マイコン6はCOMP信号の反転を検知できないまま所
定のTref時間の積分を終え、Tintは最大のTr
efとなる。また、積分値Vsmallも不図示の基準
値Vinfより大きくなるので、期間でラッチしたC
OMP信号の方向により実際には中距離なのに最至近又
は最遠距離と判断されることになる。このような誤測距
を防ぐ上記の動作を図2に示すフローチャートで説明す
る。
When the object is at a middle distance and especially when F = N as shown in FIG. 3, the difference signal (FN) in the period is obtained.
Becomes zero, and the COMP signal becomes indefinite in the range of several mV. During this period, the microcomputer 6 latches at either Hi or Low even if the COMP signal is undefined. At this time, the AF control circuit 3 also latches the COMP signal, and performs inverse integration with the latched direction during the period. Therefore, when COMP is undefined, the microcomputer 6 latches C
The OMP signal and the COMP signal latched by the AF control circuit 3 are opposite, and the microcomputer 6 sees that the AF control circuit 3 integrates in the same direction as the period.
The microcomputer 6 finishes the integration of the predetermined Tref time without detecting the inversion of the COMP signal, and Tint is the maximum Tr.
ef. Also, since the integral value Vsmall becomes larger than a reference value Vinf (not shown), the C
Depending on the direction of the OMP signal, it is determined that the distance is the closest or farthest even though the distance is actually a middle distance. The above operation for preventing such erroneous distance measurement will be described with reference to a flowchart shown in FIG.

【0026】測距動作が開始されると(100)、10
1で被写体の距離や反射率に関係無く一定の信号がPS
D1から出るようにアンプのゲインを調節する。この
時、IRED2を点灯した時のPSD1の信号により適
性の信号量になるようにゲインを大きい方から順にゲイ
ンを下げてゆく。なお、ゲインが下がった場合を「AG
Cがかかった」という(期間)。
When the distance measuring operation is started (100), 10
1 = constant signal regardless of subject distance or reflectance
Adjust the amplifier gain to get out of D1. At this time, the gain is gradually reduced in descending order of gain so that an appropriate signal amount is obtained by the PSD1 signal when the IRED2 is turned on. Note that the case where the gain has decreased is referred to as “AG
It took C "(period).

【0027】102で差信号(F−N)の積分を開始
し、103でTref時間積分を行ったら、104で一
旦積分を停止し(期間)、105で積分INTが基準
電圧KVCより大きいか小さいかをCOMP信号として
ラッチする。
The integration of the difference signal (F-N) is started at 102, the integration of Tref time is performed at 103, the integration is temporarily stopped at 104 (period), and the integration INT is higher or lower than 105 at 105. Is latched as a COMP signal.

【0028】106と107でAGCがかかっていなく
て、期間の積分値Vsmallが所定の基準値Vsm
mより小さいときは、108で和信号(F+N)の積分
期間がゼロクロスしても積分を続ける「無限判定」を
行うというフラグをセットする(期間)。109でC
OMP信号が反転するまでの時間を計測するためのタイ
マをスタートさせ、110で和信号(F+N)の積分を
開始し、111で105でラッチしたCOMP信号が反
転したか否かを調べる。
At 106 and 107, the AGC is not applied and the integrated value Vsmall of the period is equal to the predetermined reference value Vsm.
If it is smaller than m, a flag is set (period) to perform "infinite determination" to continue integration even when the integration period of the sum signal (F + N) crosses zero at 108 (period). 109 at C
A timer for measuring the time until the OMP signal is inverted is started, integration of the sum signal (F + N) is started at 110, and it is checked at 111 whether or not the COMP signal latched at 105 is inverted.

【0029】111において、COMP信号が反転して
いないときは、続いて積分の時間がTrefを越えたか
を調べ、積分時間を最大でもTref時間とする。これ
は期間で差信号(F−N)をTref時間積分したも
のを期間では和信号(F+N)を積分するのだから、
当然和信号の方が大きくなり、COMP信号が反転する
までにTref時間以上かからないからである。また、
111でCOMP信号が反転したら、113でタイマを
停止しそのときの時間をTintとする。
In step 111, when the COMP signal is not inverted, it is checked whether the integration time exceeds Tref, and the integration time is set to Tref time at the maximum. This is because the signal obtained by integrating the difference signal (F−N) during the period Tref during the period is integrated with the sum signal (F + N) during the period.
This is because the sum signal naturally becomes larger and does not take longer than the Tref time until the COMP signal is inverted. Also,
When the COMP signal is inverted at 111, the timer is stopped at 113 and the time at that time is set as Tint.

【0030】114で108でのフラグがセットされて
いたら、積分を続け、115で和信号(F+N)の積分
時間がTrefとなるようにする。116で108での
フラグがセットされていない場合は、120で113で
のTintと105でのCOMP信号のラッチから図8
で示したように距離を求める。
If the flag at 108 is set at 114, the integration is continued, and at 115, the integration time of the sum signal (F + N) is set to Tref. If the flag at 108 is not set at 116, the Tint at 113 at 120 and the latching of the COMP signal at 105 from FIG.
Find the distance as indicated by.

【0031】116でフラグがセットされていた場合
は、117で期間からの和信号(F+N)の積分値
Vsmallと所定の積分値Vinfを比較して、Vs
mallが小さい場合は121で距離は無限であるとす
る。またVsmallが大きい場合、118でTint
が最大積分時間Trefより小さい場合は(Tintが
Trefより大きくなることはない)、120で距離を
求める。そして、118でTintがTrefと同じに
なった場合は、期間でCOMP信号が不定でCOMP
の反転をマイコンが検知できなかったということなの
で、119で強制的にTintを零としてから、120
で距離を求める。
If the flag is set at 116, the integrated value Vsmall of the sum signal (F + N) from the period is compared with a predetermined integrated value Vinf at 117, and Vs
When mall is small, it is assumed that the distance is infinite at 121. Also, when Vsmall is large, Tint at 118
Is smaller than the maximum integration time Tref (Tint does not become larger than Tref), the distance is obtained at 120. Then, when Tint becomes equal to Tref at 118, the COMP signal is indefinite in the period and COMP
Means that the microcomputer could not detect the reversal of Tint.
Find the distance with.

【0032】[0032]

【発明の効果】請求項1に記載の発明によれば、第1の
信号と第2の信号とが略同じとなる中距離の場合に無限
判定手段で有限と判定されても、逆積分時間の誤検知が
生じると、逆積分時間を最小の時間に設定するので、逆
積分時間が最大となる最至近あるいは最遠距離を判断す
ることはなく、正確に中距離を判断できる。
According to the first aspect of the present invention, even if the first signal and the second signal are determined to be finite by the infinity determination means in the case of a middle distance where they are substantially the same, the inverse integration time is reduced. When the false detection is made, the inverse integration time is set to the minimum time, so that the intermediate distance can be accurately determined without determining the closest or farthest distance where the inverse integration time is the maximum.

【0033】請求項2に記載の発明によれば、従来のA
F制御回路に変更を加えることなく、マイコン等で構成
される距離情報検出手段側でのプログラミングでこのよ
うな構成を実現することができる。
According to the invention described in claim 2, the conventional A
Such a configuration can be realized by programming on the side of the distance information detecting means constituted by a microcomputer or the like without changing the F control circuit.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の一実施例を示し、(a)はブロック
図、(b)はAF制御回路の一部を示す回路図。
1A and 1B show an embodiment of the present invention, in which FIG. 1A is a block diagram, and FIG. 1B is a circuit diagram showing a part of an AF control circuit.

【図2】 本発明の一実施例の動作を示すフローチャー
ト。
FIG. 2 is a flowchart showing the operation of one embodiment of the present invention.

【図3】 積分出力INTとCOMP信号のタイムチャ
ートで、中距離(F=N)の場合を示す。
FIG. 3 is a time chart of an integration output INT and a COMP signal, showing a case of a medium distance (F = N).

【図4】 積分出力INTとCOMP信号のタイムチャ
ートで、遠距離(F>N)の場合を示す。
FIG. 4 is a time chart of the integration output INT and the COMP signal, showing a case of a long distance (F> N).

【図5】 積分出力INTとCOMP信号のタイムチャ
ートで、近距離(F<N)の場合を示す。
FIG. 5 is a time chart of the integration output INT and the COMP signal, showing a case of a short distance (F <N).

【図6】 積分出力INTとCOMP信号のタイムチャ
ートで、中距離(F≒N)の場合を示す。
FIG. 6 is a time chart of the integration output INT and the COMP signal, showing a case of a medium distance (F ≒ N).

【図7】 積分出力INTとCOMP信号のタイムチャ
ートで、無限(F≒0,N≒0)の場合を示す。
FIG. 7 is a time chart of the integration output INT and the COMP signal, showing the case of infinity (F ≒ 0, N ≒ 0).

【図8】 Tint・COMPと距離の関係モデル図。FIG. 8 is a diagram showing a relational model between Tint · COMP and a distance.

【符号の説明】[Explanation of symbols]

1…PSDセンサ 2…IRED 3…AF制御回路 4…A/D変換回
路 5…タイマ回路 6…マイコン 7…被写体
DESCRIPTION OF SYMBOLS 1 ... PSD sensor 2 ... IRED 3 ... AF control circuit 4 ... A / D conversion circuit 5 ... Timer circuit 6 ... Microcomputer 7 ... Subject

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 測定対象からの反射光を受けることによ
り、測定対象の距離に依存して変化する第1の信号およ
び第2の信号を出力する受光手段と、該受光手段の第1
および第2の信号の差を所定時間積分する差積分動作を
行うと共に、該差積分動作の終了後に該第1の信号と第
2の信号の和を逆積分する逆積分動作を行う積分手段
と、該積分手段の出力レベルが初期値に戻るまでの逆積
分時間を検出して距離情報を得る距離情報検出手段とを
有する距離測定装置において、 該逆積分の開始時点から一定の無限判定時間経過後にお
ける該積分手段の出力レベルに応じて無限判定を行う無
限判定手段と、該無限判定手段で無限と判定されず、逆
積分時間を誤検知した場合に逆積分時間を最小とし、こ
の最小時間を該距離情報検出手段における逆積分時間と
する誤検知判断手段とを有することを特徴とする距離測
定装置。
1. A light receiving means for outputting a first signal and a second signal which change depending on the distance of a measurement object by receiving reflected light from the measurement object, and a first light receiving means of the light receiving means.
Integrating means for performing a difference integration operation for integrating a difference between the second signal and the second signal for a predetermined time, and performing an inverse integration operation for performing an inverse integration of a sum of the first signal and the second signal after the end of the difference integration operation. A distance information detecting means for detecting a reverse integration time until the output level of the integrating means returns to the initial value to obtain distance information, wherein a certain infinite determination time has elapsed since the start of the back integration. Infinity determination means for performing infinity determination in accordance with the output level of the integration means later; and when the infinity determination means does not determine infinity and the reverse integration time is erroneously detected, the inverse integration time is minimized. And an erroneous detection determining means for setting an inverse integration time in the distance information detecting means.
【請求項2】 請求項1において、誤検知判断手段は、
信号の差を所定時間積分した後の積分手段の出力レベル
と、信号の和を一定の無限判定時間の間積分した後の積
分手段の出力レベルと、逆積分時間とから、逆積分時間
の誤検知を判定することを特徴とする距離測定装置。
2. The erroneous detection determining means according to claim 1,
From the output level of the integration means after integrating the signal difference for a predetermined time, the output level of the integration means after integrating the sum of the signals for a certain infinite determination time, and the inverse integration time, the error of the inverse integration time is determined. A distance measuring device for determining detection.
JP1784595A 1995-02-06 1995-02-06 Distance measuring device Expired - Fee Related JP3142731B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1784595A JP3142731B2 (en) 1995-02-06 1995-02-06 Distance measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1784595A JP3142731B2 (en) 1995-02-06 1995-02-06 Distance measuring device

Publications (2)

Publication Number Publication Date
JPH08210839A JPH08210839A (en) 1996-08-20
JP3142731B2 true JP3142731B2 (en) 2001-03-07

Family

ID=11955016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1784595A Expired - Fee Related JP3142731B2 (en) 1995-02-06 1995-02-06 Distance measuring device

Country Status (1)

Country Link
JP (1) JP3142731B2 (en)

Also Published As

Publication number Publication date
JPH08210839A (en) 1996-08-20

Similar Documents

Publication Publication Date Title
JP2684574B2 (en) Distance measuring device
JPH0714970Y2 (en) Automatic focus adjustment device
US5210585A (en) Range finder having a plurality of signal reception means
JP3142731B2 (en) Distance measuring device
JP2002221655A (en) Range finder
US5655160A (en) Distance measuring apparatus
JPS631918A (en) Distance detector
JP2889102B2 (en) Distance measuring device
US5361118A (en) Distance measuring apparatus
JP2638607B2 (en) Distance measuring device
JPS61144615A (en) Automatic focus detector
JP3137559B2 (en) Distance measuring device
JP2836025B2 (en) Focus adjustment signal processor
JP2743038B2 (en) Underwater distance measuring device using laser light
JPS6177711A (en) Automatic focusing device
JP3001013B2 (en) Distance measuring device
JPH08340242A (en) Detector switch
JP2516092Y2 (en) Photoelectric switch
JP2970250B2 (en) Distance measuring device
JPH09196665A (en) Distance measuring apparatus
JPS59155704A (en) Position detection equipment of hole center
JP3272429B2 (en) Distance measuring device
JPS6345504A (en) Range finder
JP3409108B2 (en) Full color photoelectric sensor
JPH03199912A (en) Displacement measuring apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees