JPS62170923A - Focusing control method - Google Patents

Focusing control method

Info

Publication number
JPS62170923A
JPS62170923A JP1283786A JP1283786A JPS62170923A JP S62170923 A JPS62170923 A JP S62170923A JP 1283786 A JP1283786 A JP 1283786A JP 1283786 A JP1283786 A JP 1283786A JP S62170923 A JPS62170923 A JP S62170923A
Authority
JP
Japan
Prior art keywords
light
motor
circuit
output
mode
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.)
Pending
Application number
JP1283786A
Other languages
Japanese (ja)
Inventor
Takashi Amikura
網蔵 孝
Akihiro Fujiwara
昭広 藤原
Masamichi Toyama
当山 正道
Koichi Ueda
浩市 上田
Susumu Kozuki
上月 進
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 JP1283786A priority Critical patent/JPS62170923A/en
Publication of JPS62170923A publication Critical patent/JPS62170923A/en
Priority to US07/289,458 priority patent/US4876564A/en
Pending legal-status Critical Current

Links

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Focusing (AREA)

Abstract

PURPOSE:To easily control the driving of a motor by forming pulse width by counting up the number of signals synchronizing with spot light driving signals and controlling the pulse width of a driving source during the operation of a spot light projecting means. CONSTITUTION:A pulse signal SYNC synchronized with a pulse emitted from a light emitting diode 22 is applied to a synchronism detecting circuit 29 and a potential difference between a light non-emitting time and a light emitting time is outputted to the succeeding integrating circuit 30. When a mode is transferred to 'CLEAR' by a 'MODE' pulse, both the circuits 29, 30 do not generate any output and are initialized and infrared-ray driving also is not executed. The size relation between integrated outputs Va and Vb is latched until the mode is transferred to 'HOLD' mode again and a motor 50 is driven by pulse width control based upon a duty ratio through, a motor driving circuit 48, so that a photographing lens can be approached to the focusing direction. Thus, motor driving can be easily controlled.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ビデオカメラ、スチルカメラ等の撮影装置に
用いられ、特に赤外光等によるスボ−/ )光を被写体
に投光し、その反射光を一対の受光素子により受光して
焦点検出信号を得る所謂アクティブ方式の合焦制御方法
に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is used in photographic devices such as video cameras and still cameras, and in particular, projects a sub-light (e.g., infrared light) onto a subject. The present invention relates to a so-called active focusing control method in which reflected light is received by a pair of light receiving elements to obtain a focus detection signal.

【従来の技術] このようなアクティブ方式の自動焦点調節方式において
、一対の受光素子からの出力の差に基づき焦点調節を行
う従来例を、先ず第4図〜第6図により説明する。
[Prior Art] A conventional example in which focus is adjusted based on the difference in output from a pair of light receiving elements in such an active automatic focusing system will first be described with reference to FIGS. 4 to 6.

第4図において、パルス発振器lによりパルス駆動され
る発光素子2からスポット光が被写体Sに投光され、被
写体Sにより反射された反射光が集光レンズ3を介して
一対の受光素子4a、4bに入射する。この場合に、受
光素子4a、4bは図示しない撮影レンズの移動と共に
、矢印のように可動するようになっている。受光素子4
a。
In FIG. 4, spot light is projected onto a subject S from a light emitting element 2 pulse-driven by a pulse oscillator l, and the reflected light reflected by the subject S passes through a condensing lens 3 to a pair of light receiving elements 4a and 4b. incident on . In this case, the light receiving elements 4a and 4b are movable as shown by the arrows along with the movement of a photographic lens (not shown). Light receiving element 4
a.

4bからの各出力は、それぞれ増幅器5a、5bを介し
、パルス発振器lと同期する同期検波回路6a、6bに
より不要な外光成分が除去され1次段の積分器7a、7
bに入力される。
The respective outputs from 4b are passed through amplifiers 5a and 5b, and unnecessary external light components are removed by synchronous detection circuits 6a and 6b that are synchronized with the pulse oscillator l, and the outputs are sent to primary stage integrators 7a and 7.
b.

この積分器7a、7bの出力Sa、 Sbは、第5図(
a)に示すように時間tの経過と共に次第に上昇する。
The outputs Sa and Sb of the integrators 7a and 7b are shown in FIG.
As shown in a), it gradually increases as time t passes.

この場合に、図示のように例えばSa<Sbで受光素子
4bに入射されるスポット光の光強度が、受光素子4a
に入射されるスポット光のそれよりも極めて大きな状態
であれば非合焦である。
In this case, as shown in the figure, for example, the light intensity of the spot light incident on the light receiving element 4b satisfies Sa<Sb, and the light intensity of the spot light entering the light receiving element 4a
If it is much larger than that of the spot light incident on it, it is out of focus.

また合焦状態であれば、出力Sa、 Sbとの差は殆ど
な(Sa:Sbとなる。積分器7a、7bからの出力S
a、 Sbは、更に両方を加算する加算器8、再出力S
a、 Sbの差の絶対値を求める減算器9に入力され、
これらの加算器8、減算器9の出力はそれぞれ所定の閾
値v1、V2 (Vl>V2)を持つコンパレータ10
.11に入力され、これらのコンパレータ10.11の
出力はそれぞれ演算処理回路12に接続されている。
In addition, in the focused state, there is almost no difference between the outputs Sa and Sb (Sa:Sb).The outputs S from the integrators 7a and 7b
a and Sb are an adder 8 that further adds both, and a re-output S
It is input to a subtracter 9 that calculates the absolute value of the difference between a and Sb,
The outputs of the adder 8 and subtracter 9 are connected to a comparator 10 having predetermined threshold values v1 and V2 (Vl>V2), respectively.
.. The outputs of these comparators 10 and 11 are respectively connected to an arithmetic processing circuit 12.

第5図(b)は加算器8の出力を示し、この出力Sa+
Sbは時間tと共に次第に増加してゆき、閾値v1に達
する時間t1でコンパレータ10はHレベルを出力する
。(C)は減算器9の出力であり、出力l Sa −S
b lが時間tと共に次第に増加し、閾値v2に達する
時間t2でコンパレータ11はHレベルを出力する。こ
れらのHレベル出力は、演算処理回路12において何れ
の時間が早く入力又はどれだけ早く入力されるかの判定
に用いられる。
FIG. 5(b) shows the output of the adder 8, and this output Sa+
Sb gradually increases with time t, and at time t1 when it reaches the threshold v1, the comparator 10 outputs an H level. (C) is the output of the subtractor 9, and the output l Sa −S
bl gradually increases with time t, and at time t2 when it reaches the threshold value v2, the comparator 11 outputs an H level. These H level outputs are used in the arithmetic processing circuit 12 to determine which time is inputted earlier or how much earlier it is inputted.

例えば、l 5a−Sb l =V2となる時間t2(
7)方が時間、tlよりも早く入力される場合には、5
a=Sbの関係が崩れているとき、即ち非合焦状態であ
る。また、l 5a−sbl =v2となる前に、Sa
+ Sb= Vlとなる時間tlの方が早い場合には、
Saキsbに近い状態であり合焦状態に近いと判断でき
る。
For example, the time t2 (
7) is input earlier than time, tl, then 5
When the relationship a=Sb is broken, that is, it is in an out-of-focus state. Also, before l 5a-sbl = v2, Sa
If the time tl at which +Sb=Vl is earlier,
It can be determined that the state is close to Saki sb and close to the in-focus state.

以上の説明は、次のように換言することもできる。即ち
、第6図に示すように先ずSa+Sbが閾値v1に達し
た時間t1を、検出し、この時間tlにおける1sa−
Sblのレベルを判定する。そして、1Sa−5bl>
V2テアtLば非合焦であり、l Sa −Sb l 
< V2のときは合焦と判定するのである。
The above explanation can also be restated as follows. That is, as shown in FIG. 6, the time t1 at which Sa+Sb reaches the threshold value v1 is first detected, and 1sa- at this time tl is detected.
Determine the level of Sbl. And 1Sa-5bl>
If V2 tear tL is out of focus, l Sa −Sb l
When <V2, it is determined that the lens is in focus.

このような方式により合焦状態の判定が行われ、合焦状
態であればその合焦状態をそのまま維持するように、撮
影レンズを移動制御するモータには何ら制御信号が与え
られない、また、非合焦状態であれば、その非合焦の方
向及び量によりモータは制御されることとなる。
The in-focus state is determined by such a method, and if the in-focus state is maintained, no control signal is given to the motor that controls the movement of the photographic lens so that the in-focus state is maintained as it is. If the object is out of focus, the motor will be controlled depending on the direction and amount of out-of-focus.

速度制御の方法に関してタコジェネレータ等を用いた簡
易な方法としては、モータに印加する電圧を変化させる
方法と、電圧は一定のままデユーティ比を変えることに
よる方法がある。つまり、前者はモータの例えば4つの
速度HSPEED、 LISPEED 、 L2SPE
ED 、 L3SPEEDを実現するために、停止の場
合はOポルト、l9PEEDはVHSボルト、LISP
EE[l ハVL1ポ)Lt )、L2SPEE[l 
ttVL2ポJL/ )、L3SPEEDはVL3ポル
トと対応する電圧を決定しておき、前述したように速度
が決定されたときの結果に基づいて、モータに印加する
電圧を切り変える方法である。また、後者は電圧の代り
に、デユーティ比をl5PEEDはA%、L l5PE
EDはB%、L2SPEEDは0%、L3SPEEDは
D%、停止は0%と決定しておき、速度の決定値を基に
モータにかけるデユーティ比を変える方式である。
As for the speed control method, there are two simple methods using a tacho generator or the like: a method in which the voltage applied to the motor is varied, and a method in which the duty ratio is varied while keeping the voltage constant. That is, the former has four speeds of the motor, for example HSPEED, LISPEED, L2SPE.
To realize ED, L3SPEED, O port for stop, 19PEED for VHS bolt, LISP
EE[l HAVL1po)Lt ), L2SPEE[l
ttVL2PoJL/), L3SPEED is a method in which the voltage corresponding to VL3Port is determined in advance, and the voltage applied to the motor is switched based on the result when the speed is determined as described above. Also, the latter uses the duty ratio instead of the voltage, l5PEED is A%, L l5PE
In this method, ED is determined as B%, L2SPEED as 0%, L3SPEED as D%, and stop as 0%, and the duty ratio applied to the motor is changed based on the determined value of speed.

それぞれの方法には一長一短があるが、前者の方法は簡
単ではあるが、電圧を切り変えるための回路が必要とす
る。
Each method has its advantages and disadvantages, but the former method is simple but requires a circuit to switch the voltage.

[発明の目的] 本発明の目的は、アクティブ方式の合焦装置におけるモ
ータの駆動制御をデユーティ比によるパルス幅制御によ
って容易に実施できるようにしだ合焦制御方法を提供す
ることにある。
[Object of the Invention] An object of the present invention is to provide a focusing control method that allows easy control of motor drive in an active focusing device by pulse width control using a duty ratio.

[発明の概要] 上述の目的を達成するための本発明の要旨は、所定の周
期で変調されたスポット光を被写体に向けて投光する投
光手段と、被写体からのスポット光の反射光を受光する
受光手段とを有し、該受光手段の出力に基づき焦点検出
演算を行う手段と、該焦点検出演算手段からの出力によ
り撮影レンズを移動して合焦状態を制御するための駆動
源を有する装置において、該駆動源の制御はパルス幅制
御とし、該パルス幅はスボ・ノド光の駆動信号と同期し
た信号を計数手段により所定数計数することにより形成
し、前記スポット光を投射する投光手段が動作中に前記
駆動源のパルス幅制御を行うことを特徴とする合焦制御
方法である。
[Summary of the Invention] The gist of the present invention for achieving the above-mentioned object is to provide a light projecting means for projecting a spot light modulated at a predetermined period toward a subject, and a light projecting means for projecting a spot light modulated at a predetermined period toward a subject, and a light projecting means for projecting light reflected from the spot light from the subject. A light receiving means for receiving light, a means for performing focus detection calculation based on the output of the light receiving means, and a drive source for moving the photographing lens and controlling the focusing state based on the output from the focus detection calculation means. In the apparatus, the drive source is controlled by pulse width control, the pulse width is formed by counting a predetermined number of signals synchronized with the drive signal of the subo-nod light, and the projection for projecting the spot light is performed. The focus control method is characterized in that the pulse width of the driving source is controlled while the optical means is in operation.

[発明の実施例] 本発明を第1図〜第3図に図示の実施例に基づいて詳細
に説明する。
[Embodiments of the Invention] The present invention will be described in detail based on embodiments illustrated in FIGS. 1 to 3.

第1図において、21は光電検出器であり、2分割の受
光素子21a、21bで構成され、赤外発光ダイオード
22の発光波長に対し必要な感度を持っている。受光素
子21a、21bで得られる光電流は、それぞれ第1、
第2の信号処理回路23.24に加えられる。信号処理
回路23.24は全く同一の回路なので、第1図では第
1の信号処理回路23のみ示し、第2の信号処理回路2
4は点線で表している。受光素子21aの出力はセンサ
アンプ25に入力され、受光素子21aからの光電流を
電圧に変換する。このセンサアンプ25の位置はノイズ
の影響を受は易いので、できるだけ光電検出器21の近
傍に配置することが望ましい、また、光電検出器21へ
の光入力は、目的とする赤外信号成分の他に不要な外光
成分も多く含まれているので、この成分によってセンサ
アンプ25の出力が飽和しないようにバイパスの周波数
特性を持たせたり、外光成分による光電流を除去する回
路等の工夫が必要に応じてなされている。このセンサア
ンプ25の電圧出力はコンデンサ26で直流成分がカッ
トされ、プリアンプ27に加えられる。このプリアンプ
27はゲインが例えば1倍、8倍、64倍の3段階程度
に切換えられ、入力信号に対し十分なダイナミックレン
ジが確保されている。プリアンプ27の出力は再度コン
デンサ28によって直流成分がカットされ、同期検波回
路29に加えられる。この同期検波回路29には1発光
グイオ、−ド22からの発光パルスと同期したパルス信
号5YNCが加えられており、非発光時と発光時との電
位差が次段の積分回路30に出力される。積分回路30
では検波出力電圧を積分しコンデンサ31に蓄積する。
In FIG. 1, 21 is a photoelectric detector, which is composed of two divided light receiving elements 21a and 21b, and has the necessary sensitivity to the emission wavelength of the infrared light emitting diode 22. The photocurrents obtained by the light receiving elements 21a and 21b are the first and second photocurrents, respectively.
It is added to the second signal processing circuit 23,24. Since the signal processing circuits 23 and 24 are exactly the same circuit, only the first signal processing circuit 23 is shown in FIG.
4 is represented by a dotted line. The output of the light receiving element 21a is input to the sensor amplifier 25, which converts the photocurrent from the light receiving element 21a into voltage. The position of this sensor amplifier 25 is easily affected by noise, so it is desirable to place it as close to the photoelectric detector 21 as possible.In addition, the light input to the photoelectric detector 21 should be such that the desired infrared signal component is Many other unnecessary external light components are also included, so in order to prevent the output of the sensor amplifier 25 from being saturated by these components, bypass frequency characteristics are provided, and circuits that remove photocurrent due to external light components are devised. is being done as necessary. The DC component of the voltage output from the sensor amplifier 25 is removed by a capacitor 26 and then applied to a preamplifier 27 . The preamplifier 27 has a gain that is switched to three levels, for example, 1, 8, and 64, ensuring a sufficient dynamic range for the input signal. The DC component of the output of the preamplifier 27 is cut off again by the capacitor 28 and is applied to the synchronous detection circuit 29. This synchronous detection circuit 29 is supplied with a pulse signal 5YNC synchronized with the light emission pulse from the 1 light emission guide 22, and the potential difference between the non-emission state and the light emission state is output to the next stage integration circuit 30. . Integrating circuit 30
Then, the detected output voltage is integrated and stored in the capacitor 31.

積分回路30にはオフセーtl’自動調整回路32から
の出力が接続され、積分回路30に用いられでいる差動
アンプの入力オフセーノト電圧をコンデンサ33に記憶
し、ゼロ入力に対してゼロ積分出力となるように機能し
ている。なお、第2の信号処理回路24についても、上
述の説明は全く同じなので省略する。
The output from the offset tl' automatic adjustment circuit 32 is connected to the integrating circuit 30, and the input offset voltage of the differential amplifier used in the integrating circuit 30 is stored in a capacitor 33, and zero integral output is set for zero input. It is functioning as such. Note that the above description of the second signal processing circuit 24 is also omitted since it is completely the same.

第1.第2の信号処理回路23.24の2つの積分回路
30の出力Va、 Vbは加算器4oに与えられ、出力
Va、Vb(7)平均値(Va+Vb)/2 カ得うレ
ル。
1st. The outputs Va, Vb of the two integration circuits 30 of the second signal processing circuit 23, 24 are given to the adder 4o, and the outputs Va, Vb (7) average value (Va+Vb)/2 are obtained.

平均値(Va+Vb)/2 +f :I ンパレータ4
1,42(7)マイナス入力端及び充電回路43に加え
られる。一方、コンパレータ41.42のプラス入力端
には定電圧VL及びVHが加えられており、これらの電
圧VL、VHが積分完了の判定を行う閾値電圧となる。
Average value (Va+Vb)/2 +f:I comparator 4
1,42 (7) is added to the negative input terminal and the charging circuit 43. On the other hand, constant voltages VL and VH are applied to the positive input terminals of the comparators 41 and 42, and these voltages VL and VH serve as threshold voltages for determining the completion of integration.

コンパレータ44には、積分出力Va、 Vbがそれぞ
れマイナス入力端、プラス入力端に加えられ、出力Va
、 Vbの大小関係が比較される。平均値(Va+Vb
)/2が入力する充電回路43には論理回路45からの
ステップ信号STも加えられ、入力電圧(Va+Vb)
/2に階段的に電圧を加算し、この電圧はコンパレータ
46のマイナス入力端に与えられる。一方、コンパレー
タ46はプラス入力端を2個有し、それぞれに積分出力
Va、Vbが加えられている。このコンパレータ46に
より、出力Va又はvbと、(Va+Vb)/2−階段
電圧の比較ができ、階段の段数とコンパレータ46の反
転のタイミングにより所定の時点における積分出力Va
、 Vbの電位差が測定できる。
The comparator 44 has integral outputs Va and Vb applied to its minus input terminal and plus input terminal, respectively, and the output Va
, Vb are compared in magnitude. Average value (Va+Vb
)/2 is input to the charging circuit 43, the step signal ST from the logic circuit 45 is also applied, and the input voltage (Va+Vb)
A voltage is added stepwise to /2, and this voltage is applied to the negative input terminal of the comparator 46. On the other hand, the comparator 46 has two positive input terminals, and integral outputs Va and Vb are applied to each of them. This comparator 46 makes it possible to compare the output Va or vb with the (Va+Vb)/2-step voltage, and depending on the number of steps and the timing of inversion of the comparator 46, the integrated output Va or
, Vb potential difference can be measured.

論理回路45には4つのコンパレータ41.42.44
.46からの信号が入力され、論理回路45から充電回
路43、積分回路30、同期検波回路29、赤外光駆動
回路47、モータ駆動回路48への信号を出力している
。また、論理回路45は5本のデジタル信号の入出力線
によって、マイクロコンピュータ49と結ばれている。
The logic circuit 45 includes four comparators 41, 42, 44.
.. The logic circuit 45 outputs signals to the charging circuit 43, the integrating circuit 30, the synchronous detection circuit 29, the infrared light drive circuit 47, and the motor drive circuit 48. Furthermore, the logic circuit 45 is connected to the microcomputer 49 through five digital signal input/output lines.

赤外光駆動回路47は発光ダイオード22を駆動し。The infrared light drive circuit 47 drives the light emitting diode 22.

モータ駆動回路48は撮影レンズを動かすモータ50を
駆動する。
A motor drive circuit 48 drives a motor 50 that moves the photographic lens.

この合焦制御方法を例えばビデオカメラに用いた場合に
は、被写体距離が時々刻々変化するために、合焦検出を
常時行いながら、撮影レンズを合焦状態に調整し続ける
必要がある。そのために、合焦検出はIDLE、INT
EG 、 HOLD、 CLEARの4つのモードの遷
移を順次に繰り返しながら行っている。
When this focus control method is used, for example, in a video camera, since the distance to the subject changes from moment to moment, it is necessary to constantly perform focus detection and continuously adjust the photographic lens to the in-focus state. For this purpose, focus detection is performed using IDLE and INT.
Transitions between the four modes EG, HOLD, and CLEAR are performed while repeating them in sequence.

マイクロコンピュータ49からクロックパルス信号CL
K 、モード信号MODE、ゲイン信号GAINが論理
回路45に送られ、論理回路45においてこれらの信号
の組合わせによって、信号IRED、 CLRやゲイン
切換信号を造っている。信号CLKは赤外光駆動信号I
RED、同期信号5YNC1充電回路43へのステップ
信号STの発生に用いられる。また、信号MODEは1
回の測距期間中で前述したように4つのモードIDLE
→INTEG −HoLD−CLEARの遷移を行う、
また、論理回路45内のフリップフロップFLL 、 
FHHの出力が信号線LL、 )IHを介してマイクロ
コンピュータ49に入力されている。
Clock pulse signal CL from the microcomputer 49
K, a mode signal MODE, and a gain signal GAIN are sent to a logic circuit 45, which generates signals IRED, CLR, and a gain switching signal by combining these signals. Signal CLK is infrared light drive signal I
RED, synchronization signal 5YNC1 is used to generate a step signal ST to the charging circuit 43. Also, the signal MODE is 1
During the ranging period, there are four modes IDLE as mentioned above.
→ Perform the INTEG -HoLD-CLEAR transition,
Moreover, the flip-flop FLL in the logic circuit 45,
The output of FHH is input to the microcomputer 49 via signal lines LL and )IH.

第2図は第1図に示した構成図の各制御信号を示してい
る。先ず、信号CLK 、 MODEがHレベルとなる
と、信号処理回路2324はリセ、、トされIDLEモ
ードとなるにのIDLEモード′では、@1期検波回路
29、積分回路30とも無出力となる。赤外光駆動回路
47は信号CLKのパルスに回期し之信号IREDに従
って作動する。このモード゛を必要時間続けている中で
、信号GAINはプリアンプ27のゲイン切換えを行い
、信号処理回路23.24がリセットされたときに最高
ゲインを設定し、信号GAINのパルスが加わるごとに
プリアンプ27のゲインダウンをしてゆく、また、積分
回路30のオフ、セット自動調整回路32による自動オ
フセット調整と赤外光の出力の安定化がなされる。
FIG. 2 shows each control signal of the configuration diagram shown in FIG. 1. First, when the signals CLK and MODE go to H level, the signal processing circuit 2324 is reset and turned to the IDLE mode.In the IDLE mode', both the first-period detection circuit 29 and the integration circuit 30 have no output. The infrared light drive circuit 47 is rotated by the pulse of the signal CLK and operates according to the signal IRED. While this mode continues for the required time, the signal GAIN switches the gain of the preamplifier 27, sets the maximum gain when the signal processing circuits 23 and 24 are reset, and each time a pulse of the signal GAIN is applied, the preamplifier 27 changes the gain. 27, the integration circuit 30 is turned off, and the set automatic adjustment circuit 32 performs automatic offset adjustment and stabilization of the infrared light output.

次に、信号MODEのパルスが出力されるとモードはI
NTECに遷移する。このモードでは、積分回路30が
積分を開始し、赤外光駆動信号I REDに同期した信
号5YNCによって同期検波回路29が受光素子21a
からの受光信号の同期検波を行う。積分回路30では信
号5YNCに同期した同期検波回路29からの入力があ
った場合に積分し、その信号強度に比例した降下速度で
積分出力Va及びvbが降下する。
Next, when the pulse of the signal MODE is output, the mode changes to I.
Transition to NTEC. In this mode, the integration circuit 30 starts integration, and the synchronous detection circuit 29 detects the light receiving element 21a by the signal 5YNC synchronized with the infrared light drive signal I RED.
Performs synchronous detection of the received light signal from. The integrating circuit 30 integrates when there is an input from the synchronous detection circuit 29 synchronized with the signal 5YNC, and the integral outputs Va and vb fall at a falling rate proportional to the signal strength.

加算器40からの出力であ゛る第1、第2の信号処理回
路23.24の積分出力の平均値(Va+Vb)/2は
、2つの閾値VL、 VHとコンパレータ41.42に
おいてそれぞれ比較されており、(Va+vb)/2が
この閾値VL、 V)Iに達すると次のような変化が生
ずる。即ち、論理回路45内のフリップフロップFLL
及びF)IHはリセットによりHレベルにセットされて
いるが、(Va+Vb)/2が閾値VL及びV)lとク
ロスするときにコンパレータ41及び42の出力により
それぞれLレベルに変化する。
The average value (Va+Vb)/2 of the integrated outputs of the first and second signal processing circuits 23.24, which is the output from the adder 40, is compared with two thresholds VL and VH in comparators 41.42, respectively. When (Va+vb)/2 reaches this threshold value VL, V)I, the following changes occur. That is, the flip-flop FLL in the logic circuit 45
and F)IH are set to H level by reset, but change to L level by the outputs of comparators 41 and 42 when (Va+Vb)/2 crosses thresholds VL and V)l, respectively.

フリップフロップF)IHの出力は常に出力線HHに、
フリップフロップFLLはINTEGモードのときのみ
出力線LLに出力されている。これらのフリップフロッ
プFHH、FLLからのデジタル信号を確認することに
より、マイクロコンピュータ49は積分量を2つの閾値
VL、 VHでチェックすることができる。閾値V)l
は積分動作つまりINTEGモードの終了を決定するも
の〒あり、フリップフロップFLLがLレベルに変化す
ると、強制的に赤外光駆動と同期検波の動作を停止する
。なお、フリップフロップFHHは(Va+Vb)/2
が閾値vHニ達しなくても。
The output of flip-flop F) IH is always connected to the output line HH,
Flip-flop FLL is output to output line LL only in the INTEG mode. By checking the digital signals from these flip-flops FHH and FLL, the microcomputer 49 can check the integral amount with two threshold values VL and VH. Threshold value V)l
determines the end of the integral operation, that is, the INTEG mode, and when the flip-flop FLL changes to L level, the infrared light drive and synchronous detection operations are forcibly stopped. Note that the flip-flop FHH is (Va+Vb)/2
even if it does not reach the threshold vH.

)+0LDモードに遷移するときに自動的にLレベルに
変化する。
) +0 Automatically changes to L level when transitioning to LD mode.

続いて、MODEのパルスによりモードはHOLDに屯
移する。このモードでは積分回路30は積分可能な状態
を続けるが、同期検波回路29、赤外光駆動回路47は
非動作となる。この期間においては、信号処理回路23
.24の積分、出力Va、 Vbは各電圧値を保持し、
その一方の出力と平均値(Va+Vb)/2の差が検出
され、信号CLKは周波数が変化しこのモードではステ
ップ信号STの生成に寄与する。充電回路43の出力は
前のモードのINTEGモードでは、加算器40の出力
がそのまま出力され、積分出力Va、 Vbノ平均値(
Valb)/2 ニ等しいが、HOLDモードでは信号
CLKに従って出力される一定電力量を持つ一定周期の
ステップ信号STにより充電され一定速度で降下し、信
号Vcに示すようになる。そして、やがて積分出力Va
、 Vbの何れかの電圧の低い方のレベルとクロスし、
このときフリップフロップFHHは再びHレベルに戻る
。この変化は出力線H)Iに出力されるので、フリップ
フロップFHHがLレベルにあった時間々隔を計測する
ことにより積分出力Va、 Vb同志の電位差を知るこ
とができる。この積分出力Va、 Vbの電位差から焦
点状態を判定することができ、この電位差が小さいほど
合焦に近いことになる。また、この場合の充電回路43
における充電は符号の選択によっては放電と考えること
もできる。
Subsequently, the mode is changed to HOLD by the MODE pulse. In this mode, the integration circuit 30 continues to be able to perform integration, but the synchronous detection circuit 29 and the infrared light drive circuit 47 become inactive. During this period, the signal processing circuit 23
.. 24 integral, output Va, Vb holds each voltage value,
The difference between one of the outputs and the average value (Va+Vb)/2 is detected, and the signal CLK changes in frequency and contributes to the generation of the step signal ST in this mode. In the previous INTEG mode, the output of the charging circuit 43 is the output of the adder 40 as it is, and the average value of the integral outputs Va and Vb (
Valb)/2, but in the HOLD mode, it is charged by a step signal ST having a constant period and having a constant amount of power output in accordance with the signal CLK, and falls at a constant speed, as shown by the signal Vc. Then, eventually the integral output Va
, crosses the lower voltage level of either Vb,
At this time, flip-flop FHH returns to H level again. Since this change is output to the output line H)I, the potential difference between the integral outputs Va and Vb can be determined by measuring the time interval during which the flip-flop FHH was at the L level. The focus state can be determined from the potential difference between the integral outputs Va and Vb, and the smaller the potential difference, the closer to focus. Moreover, the charging circuit 43 in this case
Charging at can also be considered discharging depending on the choice of sign.

更に、MODEのパルスによりモードはCLEARに遷
移する。このモードではIDLEモードと同様に同期検
波回路29、積分回路30は共に無出力となって初期化
され、赤外光駆動もなされない。積分出力Vaとvbと
の大小関係は、再びHOLDモードに遷移するまでラッ
チされ、モータ駆動回路48を介してデユーティ比によ
るパルス幅制御によってモータ50が駆動され、撮影レ
ンズを合焦方向に近付けることになる。なお、この合焦
方向はコンパレータ44の出力の正負により得ることが
できる。
Furthermore, the mode changes to CLEAR by the MODE pulse. In this mode, as in the IDLE mode, both the synchronous detection circuit 29 and the integration circuit 30 are initialized with no output, and no infrared light drive is performed. The magnitude relationship between the integral outputs Va and vb is latched until the mode transits to the HOLD mode again, and the motor 50 is driven by pulse width control based on the duty ratio via the motor drive circuit 48 to move the photographing lens closer to the focusing direction. become. Note that this focusing direction can be obtained by the positive or negative sign of the output of the comparator 44.

次に、モータ駆動におけるパルス幅設定方法を第3図の
プログラム及び第1表を用いて説明する。先ず、第1表
に示すように)ISPEED、 Ll〜L3SPEED
に応じてプログラムメモリM(SPDM)に判別用の数
値H5,Ll、L2、L3.5TOPを記憶する0例え
ば、H9= 0. Ll= l、 L2= 2、L3=
3.5TOP=4のような値を記憶することにより、現
在のモータ50の速度が幾らであるかを判断することが
できる。
Next, a pulse width setting method for motor drive will be explained using the program shown in FIG. 3 and Table 1. First, as shown in Table 1) ISPEED, Ll~L3SPEED
0. For example, H9=0. Ll= l, L2= 2, L3=
By storing a value such as 3.5TOP=4, it is possible to determine what the current speed of the motor 50 is.

第1表 M (SPDM)   オン オフ H9PEED  HS(−0)    F F   0
LISPEED  Ll(−1)    33 13L
2SPEED  L2(禦2)2323L3SPEED
  L3(−3)    15 31STOP   5
TOP−(−4)   OF Fまた本実施例において
は、デユーティ比制御の基本サイクルは第3図に示す測
距用プログラムの1サイクル分、つまり発光ダイオード
22のオン・オフの1サイクルとメモリM(DUTM)
を使用して減算で計数する。従って、メモリM(口UT
M)に適当な値を入れておけば、プログラムの所定サイ
クルごとにキャリフラグCFを出力することができ、フ
ラグCFを利用して一モータ50の電圧をオンΦオフし
、任意のデユーティ比に制御できる0例えば、第1表に
示すようにL1オン=33.L1オフ=13と設定する
と、34サイクル間でモータ50がオン、14サイクル
間でモータ50がオフ、つまりデユーティ比70.8%
に制御が行われる。更に、本実施例ではlサイクルは約
120Ji、S程度であるので、120X48=576
01LS、つまり約173.6Hzの周波数で速度制御
が行われる。同様にして、L2SPEED 、 L3S
PEEDはデユーティ比50%、33.3%に設定され
る。デユーティ比はLl−L3でオフの比を変えること
により自在に設定でき、周波数は和を変えることにより
自在に変えられることは云うまでもない。
Table 1 M (SPDM) On Off H9PEED HS (-0) F F 0
LISPEED Ll(-1) 33 13L
2SPEED L2 (禦2) 2323L3SPEED
L3(-3) 15 31STOP 5
TOP-(-4) OF F In this embodiment, the basic cycle of duty ratio control is one cycle of the ranging program shown in FIG. (DUTM)
Use to count by subtraction. Therefore, memory M(mouth UT
If an appropriate value is entered in M), the carry flag CF can be output at every predetermined cycle of the program, and the flag CF can be used to turn on and off the voltage of one motor 50 and set the duty ratio to an arbitrary value. For example, as shown in Table 1, L1 on = 33. When setting L1 off = 13, the motor 50 is on for 34 cycles and off for 14 cycles, that is, the duty ratio is 70.8%.
control is performed. Furthermore, in this example, 1 cycle is about 120Ji, S, so 120X48=576
Speed control is performed at a frequency of 01LS, that is, approximately 173.6Hz. Similarly, L2SPEED, L3S
PEED is set at a duty ratio of 50% and 33.3%. It goes without saying that the duty ratio can be freely set by changing the off ratio of Ll-L3, and the frequency can be freely changed by changing the sum.

以上述べたデユーティ比制御の様子を第3図のプログラ
ムにより説明する。先ず、ステップ443で発光ダイオ
ード22を点灯し、ステップ444でメモリM(DUT
M)から1を減する。ステップ445−rメモ+JM(
DUTM) カラOF= 1カ出力すしたときは、デユ
ーティ比制御のためにモータ50をオン→オフ或いはオ
フ→オンに切り換える必要があるときである。
The state of the duty ratio control described above will be explained using the program shown in FIG. First, in step 443, the light emitting diode 22 is turned on, and in step 444, the memory M (DUT
Subtract 1 from M). Step 445-r memo + JM (
DUTM) When the output power is 1, it is necessary to switch the motor 50 from on to off or from off to on for duty ratio control.

ステップ446でモータ50のオン→オフ或いはオフ→
オンの判定を行うためにACCにメモリM(DRVM)
の内容を移す。現在がモータ50のオフのときはメモリ
M(DRVM) = 0となっており、モータ50が駆
動中であるときはl或いは2が記憶されている。ステッ
プ446でACC=0、つまりモータ50がオフのとき
はモータ50をオンに切り換える必要がある。方向信号
は前回の結果に基づいてメモリM(DIRM)に記憶さ
れており、ステップ448でこの値をメモリM(DRV
M)に移す。
In step 446, the motor 50 is turned on→off or off→
Memory M (DRVM) is added to the ACC to determine whether the
Transfer the contents of When the motor 50 is currently off, the memory M (DRVM) is 0, and when the motor 50 is being driven, 1 or 2 is stored. If ACC=0 in step 446, that is, the motor 50 is off, it is necessary to switch the motor 50 on. The direction signal is stored in memory M (DIRM) based on the previous result, and in step 448 this value is stored in memory M (DRV
Move to M).

ステップ449でメモリM(SPDM)の内容をACC
に移すことにより、現在の速度がLISPEEDか否か
の判定を行う。ACC= 1のときはLISPEEDと
判定され、ステップ470でメモリM(DUTM)にL
lオンが記憶される。ステップ451で同様にACC=
2のときはL2SPEEDと判定され、ステップ469
でメモリM(DUTM)にL2オンが記憶される。AC
C#l、ACCC2O4きはL3SPEEDと判定され
、ステップ452でメモリM(DUTM)にL3オンが
記憶される。
In step 449, the contents of memory M (SPDM) are ACCed.
, it is determined whether the current speed is LISPEED or not. When ACC=1, it is determined as LISPEED, and in step 470, L is stored in memory M (DUTM).
l on is memorized. Similarly in step 451, ACC=
2, it is determined to be L2SPEED, and step 469
Then, L2 ON is stored in memory M (DUTM). A.C.
C#l, ACCC2O4 is determined to be L3SPEED, and in step 452, L3 ON is stored in memory M (DUTM).

ステップ453で発光ダイオード22を消灯し、ステッ
プ454でメモリM(DRVM)の内容を出力すること
により、モータ5oの制御が行われる。ステップ455
では積分出力Va、 Vbの平均値(Va+Vb)/2
の値の情報を電気回路から得るためにフリップフロップ
FHHの状態をACCに取り込み、平均値(Va+Vb
)/2が閾値VHに達しているか否か、つまりフリップ
フロップFH)Iの出力H1(がLレベルであるかどう
かを判定し、Lレベルであれば積分完了であり、プログ
ラムからメインプログラムに戻る。
The motor 5o is controlled by turning off the light emitting diode 22 in step 453 and outputting the contents of the memory M (DRVM) in step 454. Step 455
Then, the average value of integral outputs Va and Vb (Va+Vb)/2
In order to obtain information about the value of from the electric circuit, the state of the flip-flop FHH is taken into ACC, and the average value (Va+Vb
)/2 has reached the threshold VH, that is, the output H1(of the flip-flop FH)I is at the L level. If it is at the L level, the integration is complete, and the program returns to the main program. .

ステップ457で発光ダイオード22の点滅回数つまり
信号CLKの出力が256回に達していれば、同様にプ
ログラムを完了する。ステップ457において、測距が
未完であれば初めのステップ443に戻り、繰り返して
発光ダイオード22の点灯を行い測距を続行する。
If the number of blinking times of the light emitting diode 22, that is, the output of the signal CLK has reached 256 times in step 457, the program is similarly completed. In step 457, if the distance measurement is not completed, the process returns to the first step 443, and the light emitting diode 22 is repeatedly turned on to continue the distance measurement.

ステップ446でモータ50がオンと判定されたときは
、ステップ462に進みモータ50をオン→オフにする
必要があり、ステップ469〜468はステップ449
〜470と同様である。
When it is determined in step 446 that the motor 50 is on, it is necessary to proceed to step 462 and turn the motor 50 from on to off, and steps 469 to 468 are replaced by step 449.
~470.

ステップ460に進むのは、ステップ445でモータ5
0のオン・オフの切り換えを行う必要がないと判断され
た場合である。ただし、切り換える必要のない場合も、
デユーティ比制御の必要のない停止又は)ISPEED
の場合と、デユーティ比制御は行われているが未だ計数
が切換点まで達していない場合の2通りを区別する必要
がある。ステップ460で停止或いはHSPEEDのと
きはACC= 0であるため、ステップ461でメモリ
M (DUTM)は常に−1してもCF=1とならない
ように、メモリM(DUTM) ニ16進数のFFを記
憶する。ACC=Oの場合にはメモリM(DUTM)の
内容はステップ444で−1された値が記憶され、メモ
リM(DUTM)によりCF=1となったときに、ステ
ップ446以下のフローでモータ50の切り換えが行わ
れる。
The process proceeds to step 460 when the motor 5 is
This is a case where it is determined that there is no need to switch on/off the 0. However, even if there is no need to switch,
Stop or ISPEED without the need for duty ratio control
It is necessary to distinguish between two cases: a case where duty ratio control is being performed but the count has not yet reached the switching point. When stopped or HSPEED in step 460, ACC = 0, so in step 461, memory M (DUTM) is set to FF in hexadecimal so that even if memory M (DUTM) is always -1, CF = 1 is not set. Remember. When ACC=O, the contents of memory M (DUTM) are stored with the value decremented by 1 in step 444, and when CF=1 in memory M (DUTM), motor 50 is stored in the flow starting from step 446. switching is performed.

このようにモータ50の駆動は発光ダイオード22の発
光と同期して行われ、第1表に示したようなデユーティ
比制御によるオン状態及びオフ状態を造り出すことによ
って、所要の速度制御が実行されることになる。
In this way, the motor 50 is driven in synchronization with the light emission of the light emitting diode 22, and the required speed control is executed by creating the on state and off state by duty ratio control as shown in Table 1. It turns out.

なお、上述の実施例は発光ダイオード22が点滅をして
いるときに関するものであるが、第3図のプログラムを
利用して発光ダイオード22が点滅を行わない期間にお
いても、速度制御を実施することができる。
Although the above-mentioned embodiment relates to the time when the light emitting diode 22 is blinking, the speed control can also be carried out during the period when the light emitting diode 22 is not blinking by using the program shown in FIG. I can do it.

[発明の効果] 以上説明したように本発明に係る合焦制御方法によれば
、モータの駆動制御をデユーティ比によるものとして、
装置構成を簡素化できる。
[Effects of the Invention] As explained above, according to the focusing control method according to the present invention, the drive control of the motor is based on the duty ratio.
Device configuration can be simplified.

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

図面第1図〜第3図は本発明に係る合焦制御方法の一実
施例を示し、第1図はそのブロック回路構成図、第2図
は信号波形図であり、第3図は測距用プログラムのフロ
ーチャート図であり、第4図は従来の信号処理回路のブ
ロック回路構成図、第5図、第6図はその作動説明図で
ある。 符号21は光電検出器、21a、21bは受光素子、2
2は赤外発光ダイオード、23.24は信号処理回路、
25はセンサアンプ、27はプリアンプ、29は同期検
波回路、30は積分回路。 32はオフセット自動調整回路、4oは加算器。 41.42.44.46はコンパレータ、43は充電回
路、45は論理回路、47は赤外光駆動回路、48はモ
ータ駆動回路、49はマイクロコンピュータ、50はモ
ータである。
1 to 3 show an embodiment of the focusing control method according to the present invention, FIG. 1 is a block circuit diagram thereof, FIG. 2 is a signal waveform diagram, and FIG. 3 is a distance measuring method. FIG. 4 is a block circuit diagram of a conventional signal processing circuit, and FIGS. 5 and 6 are explanatory diagrams of its operation. Reference numeral 21 is a photoelectric detector, 21a and 21b are light receiving elements, 2
2 is an infrared light emitting diode, 23.24 is a signal processing circuit,
25 is a sensor amplifier, 27 is a preamplifier, 29 is a synchronous detection circuit, and 30 is an integration circuit. 32 is an automatic offset adjustment circuit, and 4o is an adder. 41, 42, 44, 46 are comparators, 43 is a charging circuit, 45 is a logic circuit, 47 is an infrared light drive circuit, 48 is a motor drive circuit, 49 is a microcomputer, and 50 is a motor.

Claims (1)

【特許請求の範囲】 1、所定の周期で変調されたスポット光を被写体に向け
て投光する投光手段と、被写体からのスポット光の反射
光を受光する受光手段とを有し、該受光手段の出力に基
づき焦点検出演算を行う手段と、該焦点検出演算手段か
らの出力により撮影レンズを移動して合焦状態を制御す
るための駆動源を有する装置において、該駆動源の制御
はパルス幅制御とし、該パルス幅はスポット光の駆動信
号と同期した信号を計数手段により所定数計数すること
により形成し、前記スポット光を投射する投光手段が動
作中に前記駆動源のパルス幅制御を行うことを特徴とす
る合焦制御方法。 2、前記計数手段により計数する所定数は、前記撮影レ
ンズの所定の速度ごとに異なる値を設定する特許請求の
範囲第1項に記載の合焦制御方法。
[Claims] 1. A light projecting means for projecting a spot light modulated at a predetermined period toward a subject, and a light receiving means for receiving reflected light of the spot light from the subject, the light receiving device In an apparatus having means for performing focus detection calculation based on the output of the focus detection calculation means, and a drive source for moving the photographing lens and controlling the focusing state based on the output from the focus detection calculation means, the control of the drive source is performed using a pulse. width control, the pulse width is formed by counting a predetermined number of signals synchronized with the drive signal of the spot light using a counting means, and the pulse width of the drive source is controlled while the light projecting means for projecting the spot light is in operation. A focusing control method characterized by performing the following. 2. The focusing control method according to claim 1, wherein the predetermined number counted by the counting means is set to a different value for each predetermined speed of the photographing lens.
JP1283786A 1986-01-23 1986-01-23 Focusing control method Pending JPS62170923A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1283786A JPS62170923A (en) 1986-01-23 1986-01-23 Focusing control method
US07/289,458 US4876564A (en) 1986-01-23 1988-12-22 Drive device for photographic lens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1283786A JPS62170923A (en) 1986-01-23 1986-01-23 Focusing control method

Publications (1)

Publication Number Publication Date
JPS62170923A true JPS62170923A (en) 1987-07-28

Family

ID=11816492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1283786A Pending JPS62170923A (en) 1986-01-23 1986-01-23 Focusing control method

Country Status (1)

Country Link
JP (1) JPS62170923A (en)

Similar Documents

Publication Publication Date Title
US4623237A (en) Automatic focusing device
US4621292A (en) Automatic focusing device for a video camera
US4935613A (en) Light projecting type distance measuring apparatus
US4693597A (en) Distance measuring device with signal processing circuit for position sensitive detector
US4723073A (en) Light emission quantity control device for focus detection
US4682872A (en) Signal processing apparatus for a semiconductor position sensing device
JPS62170923A (en) Focusing control method
JPS62151814A (en) Automatic focus detecting device
JPH0536732B2 (en)
JP2878502B2 (en) Automatic focusing device
US4673806A (en) Automatic focus adjusting device
JPS6396613A (en) Automatic focusing device
JPS62183415A (en) Automatic focus detecting method
JPS62151816A (en) Automatic focus detecting device
JP3001289B2 (en) Auto focus camera
JPS60259907A (en) Distance detector with deviation detecting function
JPS62151815A (en) Automatic focus detecting device
JP2960271B2 (en) Distance measuring device
JP2713880B2 (en) Distance measuring device
JPS62151817A (en) Automatic focus detecting device
JPS6317414A (en) Automatic focus adjusting device
JP3749639B2 (en) Ranging device
JPS6157873A (en) Range measuring instrument
JPH0381610A (en) Distance measuring instrument
JPH01116510A (en) Light projecting system automatic focusing device