JPH05149786A - Optical sensor device - Google Patents

Optical sensor device

Info

Publication number
JPH05149786A
JPH05149786A JP3336203A JP33620391A JPH05149786A JP H05149786 A JPH05149786 A JP H05149786A JP 3336203 A JP3336203 A JP 3336203A JP 33620391 A JP33620391 A JP 33620391A JP H05149786 A JPH05149786 A JP H05149786A
Authority
JP
Japan
Prior art keywords
receiving element
light receiving
light emitting
optical sensor
level
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
JP3336203A
Other languages
Japanese (ja)
Inventor
Takahiko Aragaki
隆彦 新垣
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 JP3336203A priority Critical patent/JPH05149786A/en
Publication of JPH05149786A publication Critical patent/JPH05149786A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

PURPOSE:To obtain an optical sensor device which can always detect and output signals of a prescribed level even when the characteristics of a light emitting and receiving elements fluctuate. CONSTITUTION:This optical sensor device incorporates a light emitting and receiving elements 51 and 52 for reading bar codes, etc., on a sheet and the element 51 is provided with a drive control means 10 which controls the emitting light quantity of the element 51. The means 10 has a constant output-level control function which sets and controls the output level of the light receiving element 52 to a certain level.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、光学センサ装置に関
し、特に光学センサのバラツキ、経時変化、環境による
変化を補償する機能を備えた光学センサ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical sensor device, and more particularly to an optical sensor device having a function of compensating for variations in the optical sensor, changes over time, and changes due to the environment.

【0002】[0002]

【従来の技術】従来の光学センサ装置は、図4に示すよ
うにフォトトランジスタの出力信号を一定のスレショル
ドレベルと比較するコンパレータで受けていた。
2. Description of the Related Art In a conventional optical sensor device, as shown in FIG. 4, a comparator for comparing an output signal of a phototransistor with a constant threshold level is used.

【0003】[0003]

【発明が解決しようとする課題】この従来の光学センサ
信号検出回路は、発光素子としての発光ダイオード51
および受光素子としてのフォトトランジスタ52の特性
のバラツキを補償するため、可変抵抗器57の調整によ
りフォトトランジスタ52の出力を規格に合わせるとい
う手法が採られていた。また、発光ダイオード51,フ
ォトトランジスタ52の経時変化によりフォトトランジ
スタ52の出力電圧が低下するため、定期的に可変抵抗
器7を再調整する必要がある。また、環境条件によって
は、発光ダイオード51とフォトトランジスタ52の間
にホコリがたまり、フォトトランジスタ52の出力電圧
が低下するため、定期的に清掃作業が必要となる等の問
題があった。
This conventional optical sensor signal detection circuit has a light emitting diode 51 as a light emitting element.
Also, in order to compensate for variations in the characteristics of the phototransistor 52 as a light receiving element, a method of adjusting the output of the phototransistor 52 to the standard by adjusting the variable resistor 57 has been adopted. Further, since the output voltage of the phototransistor 52 decreases due to the aging of the light emitting diode 51 and the phototransistor 52, it is necessary to periodically readjust the variable resistor 7. In addition, depending on the environmental conditions, dust collects between the light emitting diode 51 and the phototransistor 52, and the output voltage of the phototransistor 52 decreases, so that there is a problem in that periodic cleaning work is required.

【0004】[0004]

【発明の目的】本発明の目的は、かかる従来例の有する
不都合を改善し、とくに、発光素子や受光素子の特性上
のバラツキがあっても常に所定レベルの信号を検知し出
力することを可能とした光学センサ装置を提供すること
を、その目的とする。
It is an object of the present invention to improve the disadvantages of the conventional example, and in particular, it is possible to always detect and output a signal of a predetermined level even if there are variations in the characteristics of the light emitting element or the light receiving element. It is an object of the present invention to provide an optical sensor device.

【0005】[0005]

【課題を解決するための手段】本発明では、用紙上のバ
ーコード等を読み取るための発光素子と受光素子とを備
え、前述した発光素子に、当該発光素子の光量を適当に
可変制御する発光素子用駆動制御手段を装備すると共
に、この発光素子用駆動制御手段が、前記受光素子の出
力レベルを一定に設定制御する出力レベル一定制御機能
を備えている、等の構成を採っている。これによって前
述した目的を達成しようとするものである。
According to the present invention, a light emitting element for reading a bar code or the like on a sheet and a light receiving element are provided, and the above-mentioned light emitting element is capable of appropriately variably controlling the light amount of the light emitting element. The light emitting element drive control means is equipped with an element drive control means, and the light emitting element drive control means is provided with an output level constant control function for setting and controlling the output level of the light receiving element to be constant. This aims to achieve the above-mentioned object.

【0006】[0006]

【実施例】以下、本発明の一実施例を図1に基づいて説
明する。ここで、前述した従来例と同一の構成部材につ
いては同一の符号を用いるものとする。この図1に示す
実施例は、用紙上のバーコード等を読み取るための発光
ダイオード51とフォトトランジスタ52とを備えてい
る。発光ダイオード51には、当該発光ダイオード51
の光量を適当に可変制御する発光素子用駆動制御手段1
0が装備されている。この発光素子用駆動制御手段10
は、フォトトランジスタ52の出力レベルを一定に設定
制御する出力レベル一定制御機能を備えている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIG. Here, the same reference numerals are used for the same constituent members as those in the conventional example described above. The embodiment shown in FIG. 1 includes a light emitting diode 51 and a phototransistor 52 for reading a barcode or the like on a sheet. The light emitting diode 51 includes the light emitting diode 51.
Drive control means 1 for light emitting element for appropriately variably controlling the light amount of light
0 is equipped. This light emitting element drive control means 10
Has a constant output level control function for setting and controlling the output level of the phototransistor 52 at a constant level.

【0007】これを更に詳述すると、この図1に示す実
施例においては、発光ダイオード51とフォトトランジ
スタ52の組み合わせで反射形光学センサを構成する
が、例えば発光ダイオード51から発した光が用紙に印
字されたバーコードの白バーあるいは黒バーに当たり、
その反射光をフォトトランジスタ52で受光して用紙上
に印字してあるバーコードを読み取る場合、用紙の白色
部分の反射光のレベルをA/Dコンバータ3によりデジ
タル信号化してマイクロプロセッサ5が読み取る。マイ
クロプロセッサ5はフォトトランジスタ52の出力レベ
ルが標準値よりも低い場合は、発光ダイオード51に、
より多くの電流を流すために、D/Aコンバータ4に、
より大きな値のデジタル信号を与え、D/Aコンバータ
4の出力信号のレベルを大きくし、それによって発光ダ
イオード51に、より大きな電流を流し、発光光量を増
大さる。その結果、フォトトランジスタ52の出力レベ
ルを増大させ、フォトトランジスタ52の出力レベルを
標準値にもってくる。フォトトランジスタ52の出力レ
ベルが標準値よりも大きい場合は、前述した信号ルート
で発光ダイオード51の電流値を小さくして、フォトト
ランジスタ52の出力レベルを標準値にもってくる。
This will be described in more detail. In the embodiment shown in FIG. 1, the reflection type optical sensor is constituted by the combination of the light emitting diode 51 and the phototransistor 52. For example, the light emitted from the light emitting diode 51 is emitted to the paper. Hit the white bar or the black bar of the printed barcode,
When the reflected light is received by the phototransistor 52 and the bar code printed on the paper is read, the level of the reflected light of the white portion of the paper is converted into a digital signal by the A / D converter 3 and read by the microprocessor 5. When the output level of the phototransistor 52 is lower than the standard value, the microprocessor 5 causes the light emitting diode 51 to
In order to pass more current, the D / A converter 4
A digital signal of a larger value is given to increase the level of the output signal of the D / A converter 4, thereby causing a larger current to flow through the light emitting diode 51 and increasing the amount of emitted light. As a result, the output level of the phototransistor 52 is increased to bring the output level of the phototransistor 52 to the standard value. When the output level of the phototransistor 52 is higher than the standard value, the current value of the light emitting diode 51 is reduced by the above-described signal route to bring the output level of the phototransistor 52 to the standard value.

【0008】次に、第2実施例を図2に基づいて説明す
る。この図2に示す実施例は、用紙上のバーコード等を
読み取るための発光ダイオード51とフォトトランジス
タとを備え、当該フォトトランジスタの光量を適当に可
変制御する受光素子用駆動制御手段20を装備すると共
に、この受光素子用駆動制御手段20は、フォトトラン
ジスタの出力レベルを一定に設定制御する出力レベル一
定制御機能を備えている。
Next, a second embodiment will be described with reference to FIG. The embodiment shown in FIG. 2 includes a light emitting diode 51 for reading a bar code on a sheet and a phototransistor, and is equipped with a light receiving element drive control means 20 for appropriately variably controlling the light quantity of the phototransistor. At the same time, the light-receiving element drive control means 20 has an output level constant control function for setting and controlling the output level of the phototransistor to be constant.

【0009】これを更に詳述すると、この図2に示す実
施例においては、用紙の白部分の反射光をフォトトラン
ジスタ52で受光し、その出力レベルをA/Dコンバー
タ3によりデジタル信号化してマイクロプロセッサ5が
読み取る。マイクロプロセッサ5はフォトトランジスタ
52の出力レベルが標準値よりも低い場合は、D/Aコ
ンバータ4に、より大きな値のデジタル信号を与え、D
/Aコンバータ4の出力信号のレベルを大きくし、その
電圧をフォトトランジスタ52のコレクタに加えること
により、フォトトランジスタ52の出力レベルを増大さ
せ、フォトトランジスタ52の出力レベルを標準値にも
ってくる。フォトトランジスタ52の出力レベルが標準
値よりも大きい場合は、前述した信号ルートでフォトト
ランジスタ52のコレクタ電圧を小さくしてフォトトラ
ンジスタ52の出力レベルを標準値にもってくる。
More specifically, in the embodiment shown in FIG. 2, the reflected light of the white portion of the paper is received by the phototransistor 52, and its output level is converted into a digital signal by the A / D converter 3 to generate a micro signal. Read by the processor 5. When the output level of the phototransistor 52 is lower than the standard value, the microprocessor 5 gives the D / A converter 4 a digital signal of a larger value, and D
By increasing the level of the output signal of the A / A converter 4 and applying the voltage to the collector of the phototransistor 52, the output level of the phototransistor 52 is increased and the output level of the phototransistor 52 is brought to the standard value. When the output level of the phototransistor 52 is higher than the standard value, the collector voltage of the phototransistor 52 is reduced by the signal route described above to bring the output level of the phototransistor 52 to the standard value.

【0010】次に、第3実施例を図3に基づいて説明す
る。この図3に示す実施例は、用紙上のバーコード等を
読み取るための発光ダイオード51とフォトトランジス
タ52とを備えている。そして、フォトトランジスタ5
2には、当該フォトトランジスタの出力を入力し所定の
基準値と比較して所定レベルの受信信号を出力するコン
パレータ56を装備され、同時にこのコンパレータ56
の基準値をフォトトランジスタ52で受信される信号レ
ベルの大小に応じて可変制御し当該フォトトランジスタ
52の出力を所定レベル以上に設定制御する基準値可変
制御手段30が装備されている。
Next, a third embodiment will be described with reference to FIG. The embodiment shown in FIG. 3 includes a light emitting diode 51 and a phototransistor 52 for reading a barcode or the like on a sheet. And the phototransistor 5
2 is equipped with a comparator 56 that inputs the output of the phototransistor and compares it with a predetermined reference value to output a reception signal of a predetermined level.
The reference value variable control means 30 is provided for variably controlling the reference value according to the magnitude of the signal level received by the phototransistor 52 and controlling the output of the phototransistor 52 to be equal to or higher than a predetermined level.

【0011】これを更に詳述すると、この図3に示す実
施例においては、用紙の白部分の反射光をフォトトラン
ジスタ52で受光し、その出力レベルをA/Dコンバー
タ3によりデジタル信号化してマイクロプロセッサ5が
読み取る。マイクロプロセッサ5はフォトトランジスタ
52の出力レベルが標準値よりも低い場合は、D/Aコ
ンバータ4により小さな値のデジタル信号を与え、D/
Aコンバータ4の出力信号のレベルを小さくし、その電
圧をコンパレータ6の基準電圧に与えてコンパレータ6
のスレショルドレベルを下げて、フォトトランジスタ5
2の出力レベルに見合ったスレショルドレベルに変更す
ることにより出力信号を得る。フォトトランジスタ52
の出力レベルが標準値よりも大きい場合は、前述した信
号ルートでコンパレータ6の基準電圧を上げて、フォト
トランジスタ52の出力レベルに見合ったスライスレベ
ルに変更する。
More specifically, in the embodiment shown in FIG. 3, the phototransistor 52 receives the reflected light of the white portion of the paper, and the output level thereof is converted into a digital signal by the A / D converter 3 to generate a micro signal. Read by the processor 5. When the output level of the phototransistor 52 is lower than the standard value, the microprocessor 5 gives a digital signal of a smaller value to the D / A converter 4, and D / A converter 4
The level of the output signal of the A converter 4 is reduced, and the voltage is applied to the reference voltage of the comparator 6 so that the comparator 6
Lower the threshold level of the phototransistor 5
An output signal is obtained by changing the threshold level to match the output level of 2. Phototransistor 52
If the output level is higher than the standard value, the reference voltage of the comparator 6 is increased by the above-mentioned signal route to change the slice level to match the output level of the phototransistor 52.

【0012】[0012]

【発明の効果】以上説明したように本発明によると、発
光素子及び受光素子の特性のバラツキがあってもまた経
時変化が生じても常に同一レベルの出力を維持すること
が可能となり、発光素子に変化があっても再調整を必要
とせず、又ある程度のホコリが光学センサにたまって
も、清掃作業をする必要がないという従来にない優れた
光学センサ装置を提供することができる。
As described above, according to the present invention, it is possible to always maintain the same level of output regardless of variations in the characteristics of the light emitting element and the light receiving element, and even when there is a change over time. It is possible to provide an excellent optical sensor device which does not need to be readjusted even when there is a change in the optical sensor, and does not require cleaning work even if dust is accumulated on the optical sensor to some extent.

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

【図1】本発明の第1実施例を示す回路図である。FIG. 1 is a circuit diagram showing a first embodiment of the present invention.

【図2】本発明の第2実施例を示す回路図である。FIG. 2 is a circuit diagram showing a second embodiment of the present invention.

【図3】本発明の第3実施例を示す回路図である。FIG. 3 is a circuit diagram showing a third embodiment of the present invention.

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

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

6 コンパレータ 10 発光素子用駆動制御手段 20 受光素子用駆動制御手段 30 基準値可変制御手段 51 発光素子としての発光ダイオード 52 受光素子としてのフォトトランジスタ 6 comparator 10 light emitting element drive control means 20 light receiving element drive control means 30 reference value variable control means 51 light emitting diode as light emitting element 52 phototransistor as light receiving element

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 用紙上のバーコード等を読み取るための
発光素子と受光素子とを備えた光学センサ装置におい
て、前記発光素子に、当該発光素子の光量を適当に可変
制御する発光素子用駆動制御手段を装備すると共に、こ
の発光素子用駆動制御手段が、前記受光素子の出力レベ
ルを一定に設定制御する出力レベル一定制御機能を備え
ていることを特徴とした光学センサ装置。
1. An optical sensor device comprising a light emitting element and a light receiving element for reading a bar code or the like on a sheet, and a light emitting element drive control for appropriately variably controlling the light amount of the light emitting element. An optical sensor device characterized by being equipped with a means, and the light emitting element drive control means having an output level constant control function for controlling the output level of the light receiving element to be constant.
【請求項2】 用紙上のバーコード等を読み取るための
発光素子と受光素子とを備えた光学センサ装置におい
て、前記受光素子に、当該受光素子の光量を適当に可変
制御する受光素子用駆動制御手段を装備すると共に、こ
の受光素子用駆動制御手段が、前記受光素子の出力レベ
ルを一定に設定制御する出力レベル一定制御機能を備え
ていることを特徴とした光学センサ装置。
2. An optical sensor device comprising a light emitting element and a light receiving element for reading a bar code or the like on a sheet, the light receiving element drive control for appropriately variably controlling the light amount of the light receiving element. An optical sensor device, characterized in that the drive control means for the light receiving element is equipped with a means for controlling the output level of the light receiving element to a constant level.
【請求項3】 用紙上のバーコード等を読み取るための
発光素子と受光素子とを備えた光学センサ装置におい
て、前記受光素子に、当該受光素子の出力を入力し所定
の基準値と比較して所定レベルの受信信号を出力するコ
ンパレータを装備すると共に、このコンパレータの基準
値を前記受光素子で受信される信号レベルの大小に応じ
て可変制御し当該受光素子の出力を所定レベル以上に設
定制御する基準値可変制御手段を装備したことを特徴と
する光学センサ装置。
3. An optical sensor device comprising a light emitting element and a light receiving element for reading a bar code or the like on a sheet, and the output of the light receiving element is input to the light receiving element and compared with a predetermined reference value. A comparator that outputs a reception signal of a predetermined level is provided, and the reference value of this comparator is variably controlled according to the level of the signal received by the light receiving element to set and control the output of the light receiving element above a predetermined level. An optical sensor device equipped with a reference value variable control means.
JP3336203A 1991-11-26 1991-11-26 Optical sensor device Withdrawn JPH05149786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3336203A JPH05149786A (en) 1991-11-26 1991-11-26 Optical sensor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3336203A JPH05149786A (en) 1991-11-26 1991-11-26 Optical sensor device

Publications (1)

Publication Number Publication Date
JPH05149786A true JPH05149786A (en) 1993-06-15

Family

ID=18296704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3336203A Withdrawn JPH05149786A (en) 1991-11-26 1991-11-26 Optical sensor device

Country Status (1)

Country Link
JP (1) JPH05149786A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5532104A (en) * 1993-08-19 1996-07-02 Olympus Optical Co., Ltd. Invisible information recording medium
JP2006226968A (en) * 2005-02-21 2006-08-31 Ricoh Co Ltd Medium kind determination device
JP2007036773A (en) * 2005-07-28 2007-02-08 Nec Computertechno Ltd Apparatus and method for detecting detection object by optical sensor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5532104A (en) * 1993-08-19 1996-07-02 Olympus Optical Co., Ltd. Invisible information recording medium
US5629512A (en) * 1993-08-19 1997-05-13 Olympus Optical Co., Ltd. Invisible information recording medium and apparatus for reading information from the same
JP2006226968A (en) * 2005-02-21 2006-08-31 Ricoh Co Ltd Medium kind determination device
JP2007036773A (en) * 2005-07-28 2007-02-08 Nec Computertechno Ltd Apparatus and method for detecting detection object by optical sensor

Similar Documents

Publication Publication Date Title
US6073848A (en) Digital automatic gain control for multi-stage amplification circuits
US4160279A (en) Optoelectronic reading apparatus
US5168148A (en) Automatic gain control circuit
GB2280953A (en) Ambient light level sensor for bar code reader
US9524410B2 (en) Method and system for optimizing system settings of a laser scanner control system
JPS62235975A (en) Light quantity control device
US6095417A (en) Apparatus and method for reading bar codes on a moving web
JPH06164037A (en) Optical-output changeover device of laser emission apparatus
JPH05149786A (en) Optical sensor device
JP2551344B2 (en) Photo sensor circuit for medium detection
KR970011143B1 (en) Laserdiode control system for quantity of light and method of the same
JP2002026369A (en) Photo-sensor circuit
KR940003119B1 (en) Circuit and method for adjusting automatic exposure
KR870007588A (en) Emergency reset circuit of semiconductor laser driver
JP3632103B2 (en) Photoelectric switch
KR960012817B1 (en) Automatic controller for dust sensor of a vacuum cleaner
US20020075526A1 (en) Image reading apparatus for optically reading an image
JP2757863B1 (en) Barcode reader
JPS6126994Y2 (en)
JPS62235974A (en) Light quantity control device
JPH1063768A (en) Bar code image detector
JP2728844B2 (en) Detection switch
JPH0712592A (en) Displacement origin detector
JPH0381686A (en) Reflection type human body detecting circuit
JPH0129644Y2 (en)

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: 19990204