JPH0642908A - Adjuster of amount of light of led in photosensor - Google Patents

Adjuster of amount of light of led in photosensor

Info

Publication number
JPH0642908A
JPH0642908A JP19575092A JP19575092A JPH0642908A JP H0642908 A JPH0642908 A JP H0642908A JP 19575092 A JP19575092 A JP 19575092A JP 19575092 A JP19575092 A JP 19575092A JP H0642908 A JPH0642908 A JP H0642908A
Authority
JP
Japan
Prior art keywords
output
led
phototransistor
counter
voltage
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.)
Withdrawn
Application number
JP19575092A
Other languages
Japanese (ja)
Inventor
博勝 ▲高▼畑
Hirokatsu Takahata
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP19575092A priority Critical patent/JPH0642908A/en
Publication of JPH0642908A publication Critical patent/JPH0642908A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

PURPOSE:To correct the variation of an optical sensor for detecting a shielding object by the automatic adjustment of the amount of light of an LED. CONSTITUTION:Comparators 12-14 are provided to compare the output voltage of a phototransistor 11 with a set voltage. This adjuster is also provided with a counter 15 which is controlled with respect to the UP/DOWN by the outputs of the comparators 12, 13. Moreover, an A/D converter 16 is provided to A/D convert the output of the counter 15. The gate of a FET 18 for controlling the current of an LED 17 is connected to the output of the A/D converter 16. When clocks are input to the counter 15, the value of the counter is suitably changed, so that the current of the LED 17 is adjusted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は光センサにおけるLED
光量調整器に関する。
FIELD OF THE INVENTION The present invention relates to an LED in an optical sensor.
Regarding the light quantity adjuster.

【0002】[0002]

【従来の技術】LEDとフォトトランジスタと用いた光
センサでは、LEDの光量のばらつき、フォトトランジ
スタの光電流のばらつきが大きく、個々の組み合わせご
とに出力電圧が大きく異なる。また、検出する遮蔽物が
光を一部透過する場合、出力電圧を必要以上に高く設定
すると、遮蔽物がある状態でも、透過光により遮蔽物が
ないと検出してしまう可能性がある。そのため個々の組
み合わせに応じて出力電圧を適度に調整する必要があ
る。
2. Description of the Related Art In an optical sensor using an LED and a phototransistor, there are large variations in the light amount of the LED and in the photocurrent of the phototransistor, and the output voltage greatly differs for each combination. Further, when the shield to be detected partially transmits light, if the output voltage is set higher than necessary, there is a possibility that even if the shield is present, it will be detected that there is no shield due to the transmitted light. Therefore, it is necessary to appropriately adjust the output voltage according to each combination.

【0003】従来は図2に示すように可変抵抗器22に
よりLED21の電流を手動で調整しフォトトランジス
タ23の出力電圧を一定とする方法が用いられていた。
また、図3に示すようにフォトトランジスタ31の出力
電圧により、FET35のゲート電圧を制御しLED3
4の電流を制御する方法が用いられた。
Conventionally, as shown in FIG. 2, a method has been used in which the current of the LED 21 is manually adjusted by the variable resistor 22 to make the output voltage of the phototransistor 23 constant.
Further, as shown in FIG. 3, the gate voltage of the FET 35 is controlled by the output voltage of the phototransistor 31, and the LED 3 is controlled.
A method of controlling the current of 4 was used.

【0004】[0004]

【発明が解決しようとする課題】従来の技術は、図2の
回路では、個々に手動で調整するため多数の検出器を持
つ場合、調整に時間を要する。また、図3の回路では抵
抗32とコンデンサ33により遮蔽物による急激な出力
電圧低下に対しては、LED34の電流は変動しない
が、遮蔽物が停滞した場合電流が徐々に増加し遮蔽物の
透過光により誤動作を生じるという欠点があった。
In the prior art, in the circuit of FIG. 2, adjustment is time consuming when a large number of detectors are provided because adjustment is performed manually. Further, in the circuit of FIG. 3, the current of the LED 34 does not fluctuate in response to a sudden output voltage drop due to the shield due to the resistor 32 and the capacitor 33, but when the shield is stagnant, the current gradually increases and the shield permeates. There is a drawback that light causes a malfunction.

【0005】[0005]

【課題を解決するための手段】本発明の光センサにおけ
るLED光量調整器は、フォトトランジスタの出力電圧
の基準値となる第1と第2の基準電圧とフォトトランジ
スタの出力を比較する第1と第2のコンパレータと、コ
ンパレータの出力によりカウントアップ,カウントダウ
ンが制御されるアップダウンカウンタと、カウンタ出力
をA/D変換するA/D変換器と、A/D変換器出力電
圧により制御される電流制御器とを含んで構成される。
The LED light quantity adjuster in the photosensor of the present invention comprises a first and a second reference voltages, which are reference values of the output voltage of the phototransistor, and a first comparison device for comparing the output of the phototransistor. A second comparator, an up / down counter whose count-up and count-down are controlled by the output of the comparator, an A / D converter for A / D converting the counter output, and a current controlled by the A / D converter output voltage. And a controller.

【0006】[0006]

【実施例】次に本発明について図面を参照し説明する。
図1は本発明の一実施例を示す回路図である。図1に示
されるように光源となるLED17とその電流を制御す
るFET18,受光素子のフォトトランジスタ11,フ
ォトトランジスタの入力電圧のレベルを検出する比較器
12〜14、比較器12,比較器13の出力によりカウ
ントアップ/カウントダウンの制御を受ける4BITカ
ウンタ15,4BITカウンタ15の出力をA/D変換
する4BITのA/D変換器16により構成さえっる。
遮蔽物の有無は比較器14の出力により得られる。
The present invention will be described below with reference to the drawings.
FIG. 1 is a circuit diagram showing an embodiment of the present invention. As shown in FIG. 1, the LED 17 serving as a light source, the FET 18 for controlling the current thereof, the phototransistor 11 of the light receiving element, the comparators 12 to 14 for detecting the level of the input voltage of the phototransistor, the comparator 12, and the comparator 13 are included. It is constituted by a 4-bit A / D converter 16 for A / D converting the output of the 4-bit counter 15 and the 4-bit counter 15 which are controlled to count up / down by the output.
The presence or absence of the shield is obtained from the output of the comparator 14.

【0007】比較器12の負入力端子には、遮蔽物が無
い場合のフォトトランジスタの出力電圧の上限設定電圧
を印加する。比較器13の正入力端子には、遮蔽物が無
い場合のフォトトランジスタの出力電圧の下限設定電圧
を印加する。比較器14の負入力端子には、遮蔽物の有
無を検出する際のスレショルド電圧を印加する。
The upper limit setting voltage of the output voltage of the phototransistor when there is no shield is applied to the negative input terminal of the comparator 12. The lower limit setting voltage of the output voltage of the phototransistor when there is no shield is applied to the positive input terminal of the comparator 13. A threshold voltage for detecting the presence or absence of a shield is applied to the negative input terminal of the comparator 14.

【0008】各基準電圧を抵抗分割により作っている。
尚、上限設定電圧は温度変化等により光量変動があった
場合でも遮蔽物の透過光、暗電流によりフォトトランジ
スタの出力スレショルド電圧を越えないように設定し、
下限設定電圧も同様に変動があった場合でも、遮蔽物が
無い状態でフォトトランジスタの出力がスレショルド電
圧以下とならないように設定する。上限設定電圧と下限
設定電圧の差が小さい場合、アップダウンカウンタ、A
/D変換器のBIT数を増やし、LEDの電流制御を精
密に行う。
Each reference voltage is made by resistance division.
In addition, the upper limit set voltage is set so that the output threshold voltage of the phototransistor is not exceeded by the transmitted light and dark current of the shield even when the light amount changes due to temperature change, etc.
Similarly, the lower limit set voltage is set so that the output of the phototransistor does not become lower than the threshold voltage even when there is no shield even when there is a change. If the difference between the upper limit setting voltage and the lower limit setting voltage is small, the up / down counter, A
The BIT number of the / D converter is increased to precisely control the LED current.

【0009】光量の自動調整は、遮蔽物が存在しないと
きに、クロックを入力することにより行われる。尚、入
力クロックのパルス幅はLED17,フォトトランジス
タ11,A/D変換器16での各遅延の合計値よりも大
きい必要がある。以下にクロックを入力した場合の動作
を説明する。フォトトランジスタの出力電圧が上限設定
値より高い場合、比較器12の出力が‘H’、比較器1
4の出力が‘L’を出力する。この出力により4BIT
アップ・ダウンカウンタ15は、カウントダウンに制御
される。この状態でクロックが入力されるとカウンタ値
が減少し、A/D変換器16の出力電圧が減少する。こ
れにより、FET18のゲート電圧がさがりLED17
の電流が減少し、フォトトランジスタの出力が減少す
る。
The automatic adjustment of the light amount is performed by inputting a clock when there is no shield. The pulse width of the input clock needs to be larger than the total value of the delays of the LED 17, the phototransistor 11, and the A / D converter 16. The operation when a clock is input will be described below. When the output voltage of the phototransistor is higher than the upper limit set value, the output of the comparator 12 is “H”, the comparator 1
The output of 4 outputs'L '. This output gives 4 BIT
The up / down counter 15 is controlled to count down. When the clock is input in this state, the counter value decreases and the output voltage of the A / D converter 16 decreases. As a result, the gate voltage of the FET 18 drops and the LED 17
Current is reduced and the output of the phototransistor is reduced.

【0010】フォトトランジスタの出力電圧が上限設定
値より低くかつ下限制定値より高い場合、比較器12,
比較器13の出力がともに‘L’を出力する。この出力
により4BITアップ・ダウンカウンタ15はホールド
に制御される。この状態はクロックが入力されても、変
化はない。
When the output voltage of the phototransistor is lower than the upper limit set value and higher than the lower limit set value, the comparator 12,
Both outputs of the comparator 13 output'L '. This output controls the 4BIT up / down counter 15 to hold. This state does not change even if a clock is input.

【0011】フォトトランジスタの出力電圧が下限設定
値より低い場合、比較器12の出力が‘L’、比較器1
4の出力が‘H’を出力する。この出力により4BIT
アップ・ダウンカウンタ15カウントアップに制御され
る。この状態でクロックが入力されるとカウンタ値が増
加し、A/D変換器16の出力電圧が増加する。これに
より、FET18のゲート電圧があがりLED17の電
流が増加し、フォトトランジスタの出力が増加する。
When the output voltage of the phototransistor is lower than the lower limit set value, the output of the comparator 12 is'L ', the comparator 1
The output of 4 outputs'H '. This output gives 4 BIT
The up / down counter 15 is controlled to count up. When the clock is input in this state, the counter value increases and the output voltage of the A / D converter 16 increases. As a result, the gate voltage of the FET 18 rises, the current of the LED 17 increases, and the output of the phototransistor increases.

【0012】以上の制御によりクロックが入力されてい
る場合、フォトトランジスタの出力電圧は、上限設定値
と下限設定値の間の電圧となるように変動する。自動調
整が終了するまでは4BITカウンタの最大値である1
6クロックあればよい。また、自動調整が終了した事の
確認方法としては、比較器12,比較器13の出力がと
もに‘L’となっているかにより確認できる。また、ク
ロックが入力されない場合はLED17の電流は変化し
ないため、遮蔽物の停滞などがあっても、光量変動がな
く安定した遮蔽物検出が可能となる。
When the clock is input by the above control, the output voltage of the phototransistor fluctuates so as to be a voltage between the upper limit setting value and the lower limit setting value. The maximum value of the 4BIT counter is 1 until the automatic adjustment is completed.
You only need 6 clocks. Further, as a method of confirming that the automatic adjustment is completed, it can be confirmed by checking that the outputs of the comparator 12 and the comparator 13 are both “L”. Further, when the clock is not input, the current of the LED 17 does not change, so that even if there is stagnation of the shield, it is possible to detect the shield stably without fluctuation of the light amount.

【0013】[0013]

【発明の効果】以上説明したように、本発明はフォトト
ランジスタの出力電圧の基準値となる基準電圧1,基準
電圧2と、各基準電圧とフォトトランジスタの出力を比
較するコンパレータ,コンパレータの出力によりカンウ
ントアップ,カウントダウンが制御されるアップダウン
カウンタ、カウンタ出力をA/D変換するA/D変換
器、A/D変換既出力電圧により制御される電流制御器
を持つことにより、クロックを入力することにより、光
量の自動調整が行われ、かつ、クロック入力が無い場合
は光量が固定されるため、遮蔽物の停滞などがあって
も、光量変動がなく安定した遮蔽物検出が可能となると
いう効果を有する。
As described above, according to the present invention, the reference voltage 1 and the reference voltage 2 which are the reference values of the output voltage of the phototransistor, the comparator for comparing each reference voltage with the output of the phototransistor, and the output of the comparator are used. Input a clock by having an up / down counter that controls counting up and counting down, an A / D converter that A / D converts the counter output, and a current controller that is controlled by the A / D converted already output voltage. As a result, the amount of light is automatically adjusted, and the amount of light is fixed when there is no clock input, so even if there is stagnation in the shielding, it is possible to detect the shielding stably without fluctuation in the amount of light. Have an effect.

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

【図1】本発明の一実施例の回路図である。FIG. 1 is a circuit diagram of an embodiment of the present invention.

【図2】従来の第1の例を示す回路図である。FIG. 2 is a circuit diagram showing a first conventional example.

【図3】従来の第2の例を示す回路図である。FIG. 3 is a circuit diagram showing a second conventional example.

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

11 LED 12〜14 比較器 15 4BITアップ・ダウンカウンタ 16 A/D変換器 17 LED 18 FET 21 LED 22 可変抵抗 23 フォトトランジスタ 31 フォトトランジスタ 32 抵抗 33 コンデンサ 34 LED 35 FET 11 LED 12-14 Comparator 15 4BIT Up / Down Counter 16 A / D Converter 17 LED 18 FET 21 LED 22 Variable Resistor 23 Phototransistor 31 Phototransistor 32 Resistor 33 Capacitor 34 LED 35 FET

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 遮蔽物が無い場合のフォトトランジスタ
の出力電圧の上限値と下限値を定める第1と第2の基準
電圧とフォトトランジスタの出力電圧を比較する第1と
第2のコンパレータと、コンパレータの出力によりカウ
ントアップ,カウントダウンが制御されるアップダウン
カウントと、カウンタ出力をA/D変換するA/D変換
器と、A/D変換器出力電圧により制御される電流制御
器とを備えることを特徴とする自動光量調整回路。
1. A first and second comparator for comparing the output voltage of the phototransistor with first and second reference voltages for determining the upper limit value and the lower limit value of the output voltage of the phototransistor when there is no shield. An up / down count whose count up and count down are controlled by the output of the comparator, an A / D converter for A / D converting the counter output, and a current controller controlled by the output voltage of the A / D converter are provided. An automatic light amount adjustment circuit characterized by.
JP19575092A 1992-07-23 1992-07-23 Adjuster of amount of light of led in photosensor Withdrawn JPH0642908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19575092A JPH0642908A (en) 1992-07-23 1992-07-23 Adjuster of amount of light of led in photosensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19575092A JPH0642908A (en) 1992-07-23 1992-07-23 Adjuster of amount of light of led in photosensor

Publications (1)

Publication Number Publication Date
JPH0642908A true JPH0642908A (en) 1994-02-18

Family

ID=16346348

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19575092A Withdrawn JPH0642908A (en) 1992-07-23 1992-07-23 Adjuster of amount of light of led in photosensor

Country Status (1)

Country Link
JP (1) JPH0642908A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016177074A (en) * 2015-03-19 2016-10-06 京セラドキュメントソリューションズ株式会社 Sensitivity adjustment method of optical sensor and image formation device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016177074A (en) * 2015-03-19 2016-10-06 京セラドキュメントソリューションズ株式会社 Sensitivity adjustment method of optical sensor and image formation device
US9618897B2 (en) 2015-03-19 2017-04-11 Kyocera Document Solutions Inc. Image forming apparatus capable of adjusting sensitivity of optical sensor and method for adjusting sensitivity of optical sensor

Similar Documents

Publication Publication Date Title
US4916307A (en) Light intensity detecting circuit with dark current compensation
US20110174801A1 (en) Systems and methods for sourcing a heater
JP2629077B2 (en) Automatic calibration system for lamp voltage generator
JPS63163119A (en) Apparatus for measuring intensity of photosensor
US4366433A (en) Output voltage-drop detecting apparatus technical field
US4352013A (en) Track sensor controller
JPH0642908A (en) Adjuster of amount of light of led in photosensor
US4367437A (en) Reference voltage generator
GB1603035A (en) Methods and apparatus for establishing a predermined time of day
JPS621225B2 (en)
CA1301859C (en) Automatic gain control circuit
US5521666A (en) Perforation detector of a camera
JPS5824968A (en) Photosensitive detection circuit
JPS6010316A (en) Optical output adjusting device
KR960012817B1 (en) Automatic controller for dust sensor of a vacuum cleaner
JP2663108B2 (en) Flash emission control device
JPS6115476B2 (en)
JPS63260318A (en) Photoelectric switch
JPS61177859A (en) Circuit for adjusting automatically output level of ccd
JPS63288515A (en) Photodetector
JPS6131509B2 (en)
JP2656649B2 (en) Medium detection device
JPH01240002A (en) Inverse bias circuit for avalanche photodiode
JP2958787B2 (en) Sensor output voltage binarization circuit
JPS59111588A (en) Maintenance of photosensor accuracy

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991005