JPH08188298A - Drive circuit for optical type sensor - Google Patents

Drive circuit for optical type sensor

Info

Publication number
JPH08188298A
JPH08188298A JP1866295A JP1866295A JPH08188298A JP H08188298 A JPH08188298 A JP H08188298A JP 1866295 A JP1866295 A JP 1866295A JP 1866295 A JP1866295 A JP 1866295A JP H08188298 A JPH08188298 A JP H08188298A
Authority
JP
Japan
Prior art keywords
resistance
light
output
light emitting
optical sensor
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
JP1866295A
Other languages
Japanese (ja)
Inventor
Kazuhiro Hayamizu
和弘 速水
Yukio Takemoto
幸男 竹本
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.)
EKUSHINGU KK
Brother Industries Ltd
Xing Inc
Original Assignee
EKUSHINGU KK
Brother Industries Ltd
Xing 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 EKUSHINGU KK, Brother Industries Ltd, Xing Inc filed Critical EKUSHINGU KK
Priority to JP1866295A priority Critical patent/JPH08188298A/en
Publication of JPH08188298A publication Critical patent/JPH08188298A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide the drive circuit of an optical sensor which is constituted to automatically regulate an amount of light emitted from a light emission element and form a device in a compact manner and stably maintain detecting sensitivity of the sensor. CONSTITUTION: The drive circuit of an optical type sensor has a variable resistance part 8 and by changing the resistance value of the variable resistance part 8, a voltage applied on a light emission element 9 is changed to control a light emission amount. Based on the output voltage of a light receiving element 8 detected by an output detecting part, the resistance value of the variable resistance part 8 is changed by a computer. The variable resistance part 8 comprises a plurality of resistance parts R0-R7 having respective different resistance values; and a resistance switching part 7 connecting in a switching manner a part of a plurality of the resistance parts R0-R7 to the light emission element 9, and switching is effected by an output input interface part 7a.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プリンタに使用されて
いる光学式センサの駆動回路、特に、プリンタの印字用
紙の有無や印字ヘッドのホームポジション位置の検出に
使用される光学式センサの駆動回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drive circuit for an optical sensor used in a printer, and more particularly to a drive circuit for an optical sensor used to detect the presence or absence of print paper in a printer and the home position of a print head. Regarding the circuit.

【0002】[0002]

【従来の技術】従来、コンピュータやワープロ等に使用
されるプリンタにおいては、印字用紙の有無や印字ヘッ
ドのホームポジションを検出するために、発光ダイオー
ド等の発光素子とフォトトランジスタ等の受光素子から
なる光学式センサが使用されている。例えば印字用紙の
有無を検出する場合は、用紙表面で反射された発光素子
からの光を受光素子が受けることに基づく、ないしは発
光素子から受光素子へ向かう光が用紙により遮られるこ
とに基づく受光素子の出力レベルの変化により、用紙の
有無の検出を行うようにしている。この場合、一般に、
前者の方式によるものを反射型センサ、後者の方式によ
るものを透過型センサと呼んでいる。
2. Description of the Related Art Conventionally, a printer used in a computer, a word processor, etc., comprises a light emitting element such as a light emitting diode and a light receiving element such as a phototransistor in order to detect the presence or absence of print paper and the home position of the print head. Optical sensors are used. For example, when detecting the presence or absence of print paper, the light receiving element is based on that the light receiving element receives the light from the light emitting element reflected on the surface of the paper, or the light traveling from the light emitting element to the light receiving element is blocked by the paper. The presence or absence of the paper is detected by the change of the output level of. In this case, in general,
The former method is called a reflective sensor and the latter method is called a transmissive sensor.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述の
光学式センサの場合、受光素子及び発光素子の経年変化
や汚れの付着等により検出感度が変化して検出誤差が発
生する問題があった。また、センサの取り付け位置や検
出感度のばらつきにより誤差が発生するので、組立工程
において予め受光素子の検出感度を調整する必要があっ
た。そこで、上記問題点を解決するために特開昭64−
68686号公報には、反射基準部材を備え、その反射
基準部材に光を照射して、その受光量から発光量を調整
するという方法が開示されている。しかしながら上記方
法では、反射基準部材を設ける場所が必要なため装置の
小型化が難しく、また、透過型のセンサには適用できな
い難点がある。
However, in the case of the above-mentioned optical sensor, there is a problem in that the detection sensitivity changes due to the aging of the light receiving element and the light emitting element, the adhesion of dirt, etc., and a detection error occurs. In addition, since an error occurs due to a variation in the mounting position of the sensor and the detection sensitivity, it is necessary to adjust the detection sensitivity of the light receiving element in advance in the assembly process. Therefore, in order to solve the above-mentioned problems, JP-A-64-
Japanese Patent No. 68686 discloses a method of providing a reflection reference member, irradiating the reflection reference member with light, and adjusting the amount of light emission from the amount of light received. However, in the above method, it is difficult to reduce the size of the device because a place for providing the reflection reference member is necessary, and it is difficult to apply the method to a transmission type sensor.

【0004】本発明の目的は、調整操作を自動的に行う
ことができてしかもコンパクトであり、かつセンサの検
出感度を安定に維持することができる光学式センサの駆
動回路を提供することにある。
An object of the present invention is to provide a drive circuit for an optical sensor which can automatically perform an adjusting operation and is compact and which can stably maintain the detection sensitivity of the sensor. .

【0005】[0005]

【課題を解決するための手段】本発明は光学式センサの
駆動回路に係るものである。その対象とする光学式セン
サは、電力の供給を受けて光を発する発光素子と、光の
照射を受けてその出力電圧を変化させる受光素子とを備
え、検出されるべき物体により発光素子からの光の照射
が遮断されることにより、ないしは該物体により反射さ
れた発光素子からの光の照射を受けることより、受光素
子の出力電圧が変化し、その電圧の変化に基づいて物体
の存在を検出するものとされる。そして、その駆動回路
は、上述の課題を解決するために下記の要件を備えたこ
とを特徴とする。発光量制御部:可変抵抗部を備え、
その可変抵抗部の抵抗値を変化させることにより発光素
子に印加される電圧を変化させて、該発光素子の発光量
を制御する。出力検出部:受光素子の出力電圧を検出
する。制御指令手段:その出力検出部が検出する受光
素子の出力電圧に基づいて、発光量制御部の可変抵抗部
の抵抗値を変化させる。
The present invention relates to a drive circuit for an optical sensor. The target optical sensor is provided with a light emitting element that emits light when supplied with electric power, and a light receiving element that changes its output voltage upon receiving light, and the light emitting element that emits light from the light emitting element varies depending on the object to be detected. The output voltage of the light receiving element changes when the light irradiation is blocked or when the light is emitted from the light emitting element reflected by the object, and the presence of the object is detected based on the change in the voltage. To be done. The driving circuit is characterized by having the following requirements in order to solve the above problems. Light emission amount control section: equipped with a variable resistance section,
By changing the resistance value of the variable resistance portion, the voltage applied to the light emitting element is changed to control the light emission amount of the light emitting element. Output detector: Detects the output voltage of the light receiving element. Control instruction means: Change the resistance value of the variable resistance portion of the light emission amount control portion based on the output voltage of the light receiving element detected by the output detection portion.

【0006】発光量制御部の可変抵抗部は、それぞれ異
なる抵抗値を有する複数の抵抗部と、それら複数の抵抗
部の一部のものを発光素子に対し切り換え可能に接続す
る抵抗切替部とを備えたものとすることができる。この
場合駆動回路は発光素子を定電圧駆動するものとされ
る。
The variable resistance section of the light emission amount control section includes a plurality of resistance sections each having a different resistance value, and a resistance switching section for connecting a part of the plurality of resistance sections to the light emitting element in a switchable manner. It can be provided. In this case, the drive circuit drives the light emitting element at a constant voltage.

【0007】上記発光量制御部は、抵抗部を抵抗値の大
きいものから小さなものへ、又は小さなものから大きな
ものへ順次切り替えつつ発光素子に接続するものとして
構成することができる。
The light emission amount control section can be configured to connect the resistance section to the light emitting element while switching the resistance section from a large resistance value to a small resistance value or from a small resistance value to a large resistance value.

【0008】また、抵抗切替部を、制御指令手段からの
制御信号を受ける入力ポートと、複数の抵抗部がそれぞ
れ接続される出力ポートとを備えた入出力インターフェ
ース部を備えたものとし、その入力ポートから入力され
る制御指令手段からの制御信号に基づいて、出力ポート
に接続された抵抗部のうち、発光素子に接続されるべき
抵抗部に対しては、他の抵抗部とは異なるレベルの電圧
を印加するように構成することができる。
Further, the resistance switching section is provided with an input / output interface section having an input port for receiving a control signal from the control command means and an output port to which a plurality of resistance sections are respectively connected. Based on the control signal from the control command means input from the port, among the resistance units connected to the output port, the resistance unit to be connected to the light emitting element has a different level from the other resistance units. It can be configured to apply a voltage.

【0009】制御指令手段は、受光素子の出力電圧が、
予め定められた基準値に対し大きい側から又は小さい側
からその基準値に近づくように可変抵抗部の抵抗値を変
化させ、受光素子の出力電圧が前記基準値以上又は以下
となった時点で、抵抗値の変化を停止させるものとする
ことができる。
The control command means outputs the output voltage of the light receiving element
The resistance value of the variable resistance portion is changed so as to approach the reference value from the larger side or the smaller side with respect to a predetermined reference value, and when the output voltage of the light receiving element is equal to or higher than or equal to the reference value, The change in resistance value may be stopped.

【0010】上記発光素子は具体的には発光ダイオード
で構成することができる。また、受光素子はフォトトラ
ンジスタで構成することができる。そして、光学式セン
サは、プリンタ内に設けられて、印字用紙の有無ないし
印字ヘッドのホームポジションを検出するものとするこ
とができる。
Specifically, the light emitting element can be configured by a light emitting diode. Further, the light receiving element can be composed of a phototransistor. The optical sensor may be provided in the printer to detect the presence or absence of print paper or the home position of the print head.

【0011】[0011]

【発明の作用及び効果】本発明の駆動回路は、検出され
るべき物体により発光素子からの光の照射が遮断される
ことによる、ないしは該物体により反射された発光素子
からの光の照射を受けることよる受光素子の出力電圧に
基づいて物体の存在を検出する光学式センサに適用され
るもので、可変抵抗部を有する発光量制御部を備え、そ
の可変抵抗部の抵抗値を変化させることにより発光素子
に印加される電圧を変化させて、発光素子の発光量を制
御する。そして、出力検出部が検出する受光素子の出力
電圧に基づいて、制御指令手段が可変抵抗部の抵抗値を
変化させる。上記のような本発明の駆動回路は、発光素
子の発光量の調整操作を自動的に行うことができてしか
もコンパクトであり、光学式センサの検出感度を安定に
維持することができる。また、反射型のセンサに限ら
ず、光の遮断により物体を検出する透過型のセンサにも
適用できる。
The driving circuit of the present invention receives the light emitted from the light emitting element reflected by the object or the light emitted from the light emitting element being blocked by the object to be detected. It is applied to an optical sensor that detects the presence of an object based on the output voltage of a light receiving element, and is provided with a light emission amount control section having a variable resistance section, and by changing the resistance value of the variable resistance section. The amount of light emitted from the light emitting element is controlled by changing the voltage applied to the light emitting element. Then, the control command means changes the resistance value of the variable resistance portion based on the output voltage of the light receiving element detected by the output detection portion. The drive circuit of the present invention as described above can automatically perform the operation of adjusting the light emission amount of the light emitting element and is compact, and can stably maintain the detection sensitivity of the optical sensor. Further, the invention is not limited to the reflection type sensor, but can be applied to a transmission type sensor that detects an object by blocking light.

【0012】可変抵抗部が、それぞれ異なる抵抗値を有
する複数の抵抗部と、それら複数の抵抗部の一部のもの
を発光素子に対し切り換え可能に接続する抵抗切替部と
を備えた構成によれば、発光量制御部の小型化を図るこ
とができる。特に、抵抗切替部が制御指令手段からの信
号を受ける入力ポートと、上記抵抗部が接続される出力
ポートとを有する入出力インターフェース部を備える構
成によれば、抵抗部の切替を無接点化することが可能と
なり、ひいては駆動回路の小型化ならびに信頼性の向上
を図ることができる。
The variable resistance section may include a plurality of resistance sections each having a different resistance value, and a resistance switching section that connects a part of the plurality of resistance sections to the light emitting element in a switchable manner. If so, the light emission amount control unit can be downsized. Particularly, according to the configuration in which the resistance switching unit includes the input / output interface unit having the input port for receiving the signal from the control command means and the output port to which the resistance unit is connected, the switching of the resistance unit is made non-contact. Therefore, the drive circuit can be downsized and the reliability can be improved.

【0013】[0013]

【実施例】以下、本発明の一実施例を図面を用いて説明
する。図1は、本発明の光学式センサ駆動回路の構成例
を示すブロック図である。光学式センサ駆動回路(以
下、単に駆動回路ともいう)1は、CPU3、RAM
4、ROM5、I/Oポート6等を含む制御指令手段と
してのコンピュータ2、及びそのコンピュータ2に接続
される可変抵抗部8等により構成されている。この駆動
回路1に接続される光学式センサ13は、発光素子とし
ての発光ダイオード9と受光素子としてのフォトトラン
ジスタ10とを備えたフォトカプラとして構成され、発
光ダイオード9は可変抵抗部8を介してコンピュータ2
のI/Oポート6に接続されている。一方、フォトトラ
ンジスタ10は、出力検出部としての電圧検出部11及
びA/D変換器12を介してI/Oポート6に接続され
ている。この光学式センサ13は、反射型又は透過型の
センサとして例えば上記駆動回路1とともにプリンタ内
の所定の場所に取り付けられ、プリンタ用紙の有無や印
字ヘッドのホームポジションを検出することとなる。例
えば、センサ13が反射型の場合、検出されるべき物体
Pにより反射された発光ダイオード9からの光Lの照射
をフォトトランジスタ10が受けることにより物体Pが
検出される。また、センサ13が透過式の場合は、発光
ダイオード9からフォトトランジスタ10へ照射される
光が遮断されることにより物体が検出される。ここで、
コンピュータ2は、プリンタ制御用として設けられたも
のを流用してもよいし、それとは別に設けられたものを
使用してもよい。ここで、コンピュータ2及び可変抵抗
部8が発光ダイオード9の発光量制御部を構成してい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of an optical sensor drive circuit of the present invention. The optical sensor drive circuit (hereinafter, also simply referred to as a drive circuit) 1 includes a CPU 3 and a RAM.
4, a ROM 5, a I / O port 6 and the like, and a computer 2 as a control command means, and a variable resistor section 8 and the like connected to the computer 2. The optical sensor 13 connected to the drive circuit 1 is configured as a photocoupler including a light emitting diode 9 as a light emitting element and a phototransistor 10 as a light receiving element, and the light emitting diode 9 is connected via a variable resistance section 8. Computer 2
Connected to the I / O port 6 of. On the other hand, the phototransistor 10 is connected to the I / O port 6 via the voltage detection unit 11 as an output detection unit and the A / D converter 12. The optical sensor 13 is mounted as a reflective or transmissive sensor together with the drive circuit 1 at a predetermined location in the printer and detects the presence or absence of printer paper and the home position of the print head. For example, when the sensor 13 is a reflection type, the object P is detected by the phototransistor 10 receiving the irradiation of the light L from the light emitting diode 9 reflected by the object P to be detected. When the sensor 13 is of a transmissive type, an object is detected by blocking the light emitted from the light emitting diode 9 to the phototransistor 10. here,
The computer 2 may be the one provided for controlling the printer, or may be the one provided separately from it. Here, the computer 2 and the variable resistance part 8 constitute a light emission amount control part of the light emitting diode 9.

【0014】図2は、可変抵抗部8の詳細を示すブロッ
ク図である。可変抵抗部8は、複数の入力ポートD0〜
D7及びそれらに対応する出力ポートQ0〜Q7を備えた
出入力インターフェース部7a、及び各出力ポートQ0
〜Q7にバッファ15を介して接続された抵抗部R0〜R
7を備える。出入力インターフェース部7aは、対応す
るバスB0〜B7を介して入力ポートD0〜D7が、コンピ
ュータ2のI/Oポート6から制御信号を受けるととも
に、制御信号を受けた入力ポートに対応する出力ポート
の出力をL、制御信号を受けない入力ポートに対応する
出力ポートの出力をHとするように回路が構成されてい
る。一方、出力ポートQ0〜Q7に接続された抵抗部R0
〜R7は抵抗値がそれぞれ異なるものとされ、出入力イ
ンターフェース部7aとは反対側で互いに結線されて発
光ダイオード9に接続されている。
FIG. 2 is a block diagram showing details of the variable resistance section 8. The variable resistance unit 8 includes a plurality of input ports D0-
An input / output interface unit 7a having D7 and output ports Q0 to Q7 corresponding to them, and each output port Q0
To Q7 through the buffer 15 connected to the resistors R0 to R
Equipped with 7. In the input / output interface unit 7a, the input ports D0 to D7 receive control signals from the I / O ports 6 of the computer 2 via the corresponding buses B0 to B7, and the output ports corresponding to the input ports receiving the control signals. Is L, and the output of the output port corresponding to the input port not receiving the control signal is H. On the other hand, the resistor section R0 connected to the output ports Q0 to Q7
The resistors R7 to R7 have different resistances, and are connected to the light emitting diode 9 on the side opposite to the input / output interface unit 7a.

【0015】発光ダイオード9は所定の電圧Vccで定電
圧駆動され、その電流は発光ダイオード9側から抵抗部
R0〜R7側へ流れるようになっている。一方、出入力イ
ンターフェース部7aに接続されたバッファ15は、出
力ポートQ0〜Q7からHの出力を受けた場合には発光ダ
イオード9の駆動電圧Vccをほぼ相殺する電圧を出力
し、Lの出力を受けた場合には発光ダイオード9側から
抵抗部R0〜R7側へ電流が流れることを許容する。従っ
て、上記出入力インターフェース部7aはバッファ15
とともに、入力ポートD0〜D7のいずれかに制御信号を
与えられることにより、抵抗部R0〜R7のうちのいずれ
かを選択的に発光ダイオード9に接続する、抵抗切替部
7として機能することとなる。
The light emitting diode 9 is driven at a constant voltage of a predetermined voltage Vcc, and its current flows from the light emitting diode 9 side to the resistor portions R0 to R7 side. On the other hand, the buffer 15 connected to the input / output interface unit 7a outputs a voltage that substantially cancels the driving voltage Vcc of the light emitting diode 9 when receiving the output of H from the output ports Q0 to Q7, and outputs the output of L. When received, the current is allowed to flow from the light emitting diode 9 side to the resistor portions R0 to R7 side. Therefore, the input / output interface unit 7a has the buffer 15
At the same time, when a control signal is given to any of the input ports D0 to D7, it functions as a resistance switching unit 7 for selectively connecting any one of the resistance units R0 to R7 to the light emitting diode 9. .

【0016】ここで、抵抗部R0〜R7の各抵抗値は、例
えばR0、R1、・・・R7の順で順次小さくなるものと
されている。一方、出入力インターフェース部7aには
クロック回路14が接続され、そのクロックを受けるこ
とにより、コンピュータ2からの制御信号を受ける入力
ポートが例えばD0、D1・・・D7の順で順次切り替わ
るようになっており、出力がLとなる出力ポートもQ
0、Q1・・の順で切り替わる。これにより、抵抗部はR
0、R1、R2、・・・R7の順で順次切り替わりながら発
光ダイオード9に接続され、発光ダイオード9にかかる
分圧電圧すなわち発光ダイオード9の発光レベルは、切
り替わりつつ接続される各抵抗部R0〜R7の抵抗値に応
じて段階的に増加することとなる。ここで、抵抗部R0
〜R7がカバーする抵抗値の範囲は、抵抗部の切替によ
って発光ダイオード9に流れる電流が、実質的に発光を
開始する最小電流If(MIN)から通電可能な最大電流If
(MAX)の間に収まるように設定される。
Here, the resistance values of the resistance portions R0 to R7 are sequentially reduced in the order of, for example, R0, R1, ... R7. On the other hand, the clock circuit 14 is connected to the input / output interface unit 7a, and by receiving the clock, the input ports for receiving the control signals from the computer 2 are switched sequentially in the order of, for example, D0, D1 ... D7. And the output port whose output is L is also Q
Switches in the order of 0, Q1 ... As a result, the resistance part becomes R
0, R1, R2, ... R7 are sequentially switched in this order to be connected to the light emitting diode 9, and the divided voltage applied to the light emitting diode 9, that is, the light emission level of the light emitting diode 9 is switched while being connected to each of the resistor parts R0 to. It will increase stepwise according to the resistance value of R7. Here, the resistance part R0
The range of the resistance value covered by R7 to R7 is such that the current flowing through the light emitting diode 9 by switching the resistance part is the maximum current If that can be conducted from the minimum current If (MIN) at which light emission starts substantially.
It is set to fit within (MAX).

【0017】次に、図1に示すように、フォトトランジ
スタ10は、発光ダイオード9からの光ないしその反射
光を受光しうる位置に設けられており、また図2に示す
ように、電圧調整用の抵抗部R8が接続され、発光ダイ
オード9と同じVccの駆動電圧が印加されるとともに、
その出力電圧V0が電圧検出部11により検出され、A
/D変換された後コンピュータ2に送られるようになっ
ている。そして、コンピュータ2のROM5には、送ら
れてくる出力電圧V0の値に基づいて抵抗部R0〜R7の
切り替えを制御するための、制御プログラム5aが格納
されている。
Next, as shown in FIG. 1, the phototransistor 10 is provided at a position where it can receive the light from the light emitting diode 9 or its reflected light, and as shown in FIG. Is connected to the resistor portion R8, and the same driving voltage of Vcc as that of the light emitting diode 9 is applied,
The output voltage V0 is detected by the voltage detector 11,
After being / D converted, it is sent to the computer 2. Then, the ROM 5 of the computer 2 stores a control program 5a for controlling switching of the resistance units R0 to R7 based on the value of the output voltage V0 sent.

【0018】図4は、発光ダイオード9に対し抵抗部R
0〜R7をそれぞれ接続したときの発光ダイオード9を流
れる電流値、すなわち発光ダイオード9の発光レベル
と、フォトトランジスタ10の出力電圧V0との関係を
示すグラフである。グラフ横軸上のIf(0)、・・If(7)
は、接続される抵抗部をR0、・・R7としたときの電流
値であり、横軸の右方へ向かうほど電流値、すなわち発
光ダイオード9の発光レベルが高くなる。フォトトラン
ジスタ10の出力電圧V0は、発光ダイオード9からの
光の照射がある一定レベル(以下、しきい照射レベルと
もいう)以上になると急激に減少し、この出力の減少に
基づいて物体の検出がなされることとなる。
FIG. 4 shows a resistance portion R for the light emitting diode 9.
7 is a graph showing the relationship between the current value flowing through the light emitting diode 9 when 0 to R7 are connected, that is, the light emission level of the light emitting diode 9 and the output voltage V0 of the phototransistor 10. If (0), ... If (7) on the horizontal axis of the graph
Is a current value when the connected resistance portions are R0, ..., R7, and the current value, that is, the light emission level of the light emitting diode 9 becomes higher toward the right side of the horizontal axis. The output voltage V0 of the phototransistor 10 sharply decreases when the light emitted from the light emitting diode 9 reaches a certain level (hereinafter, also referred to as a threshold irradiation level), and an object is detected based on the decrease in the output. Will be done.

【0019】ここで、上記しきい照射レベルはフォトト
ランジスタ10の経年変化によって変化する場合があ
る。一方、発光ダイオード9あるいはフォトトランジス
タ10の表面が汚れやホコリ等で覆われていたりすると
発光ダイオード9からの光が遮られるので、発光ダイオ
ード9の発光出力を高めないと、しきい照射レベルが得
られなくなることもある。従って、発光ダイオード9に
かかる分圧電圧が一定の場合には、上述の理由によりフ
ォトトランジスタ10への光の照射レベルが不足し、セ
ンサが正常に作動しなくなる場合が生じ得る。しかしな
がら本実施例の駆動回路1においては、発光ダイオード
9に接続される抵抗部R0〜R7を適宜選定することによ
り上記分圧電圧の調整が可能となり、ひいてはフォトト
ランジスタ10に対して過不足のない光の照射レベルが
得られることとなる。以下、その作用について説明す
る。
Here, the threshold irradiation level may change with age of the phototransistor 10. On the other hand, if the surface of the light emitting diode 9 or the phototransistor 10 is covered with dirt, dust, or the like, the light from the light emitting diode 9 is blocked, so that the threshold irradiation level can be obtained unless the light emission output of the light emitting diode 9 is increased. Sometimes you can't. Therefore, when the divided voltage applied to the light emitting diode 9 is constant, the irradiation level of light to the phototransistor 10 may be insufficient due to the above reason, and the sensor may not operate normally. However, in the drive circuit 1 of the present embodiment, the divided voltage can be adjusted by appropriately selecting the resistor portions R0 to R7 connected to the light emitting diode 9, and thus the phototransistor 10 is not excessively deficient. The light irradiation level can be obtained. The operation will be described below.

【0020】駆動回路1のコンピュータ2(図1)は、
フォトトランジスタ10の出力V0をモニタしながら、
出入力インターフェース部7(図2)の入力ポートD0
〜D7に対し順次制御信号を与えて発光ダイオード9に
接続される抵抗部R0〜R7を抵抗値が大きいものから順
に切り替えることにより、発光ダイオード9からフォト
トランジスタ10に照射される光のレベルを段階的に増
加させるとともに、フォトタンジスタ10からの出力電
圧V0をRAM4等に予め記憶された基準値Vrと比較す
る。そして、出力電圧V0が基準値Vr以下となった場合
に、抵抗部R0〜R7の切り替えを停止し、その時点で発
光ダイオード9に接続されている抵抗部がその後も接続
され続けるように回路制御を行う。なお、抵抗部R0〜
R7を抵抗値の小さいものから順に切り替えるようにし
てもよく、この場合は出力電圧V0が基準値Vr以上とな
った場合に抵抗部R0〜R7の切り替えを停止し、最後の
切り替えの直前に発光ダイオード9に接続されていたも
のを、最終的に接続し続けるように回路制御を行う。
The computer 2 (FIG. 1) of the drive circuit 1 is
While monitoring the output V0 of the phototransistor 10,
Input / output interface unit 7 (FIG. 2) input port D0
To D7 are sequentially applied to sequentially switch the resistance portions R0 to R7 connected to the light emitting diode 9 in order from the one having a larger resistance value, thereby stepping the level of light emitted from the light emitting diode 9 to the phototransistor 10. The output voltage V0 from the photo transistor 10 is compared with a reference value Vr stored in advance in the RAM 4 or the like. Then, when the output voltage V0 becomes equal to or lower than the reference value Vr, the switching of the resistance units R0 to R7 is stopped, and the circuit control is performed so that the resistance unit connected to the light emitting diode 9 at that time continues to be connected thereafter. I do. In addition, the resistance part R0-
R7 may be switched in ascending order of resistance value. In this case, when the output voltage V0 becomes equal to or higher than the reference value Vr, switching of the resistance units R0 to R7 is stopped, and light is emitted immediately before the final switching. The circuit is controlled so that the diode 9, which was connected to the diode 9, is finally connected.

【0021】上述のような制御は、ROM5に格納され
た制御プログラム5aに基づいて実行される。以下、そ
の制御の流れを図3のフローチャートを用いて説明す
る。まずS1において、出入力インターフェース7aの入
力ポートD0に制御信号を送信し、対応する抵抗部R0を
発光ダイオード9に接続するとともに、S2においてフォ
トトランジスタ10の出力電圧V0が基準値Vr未満であ
るかどうかを確認する。もしV0<Vrとなっていれば処
理を終了し、抵抗部R0が発光ダイオード9に接続され
た状態を維持するようにする。一方、V0≧Vrの時はS3
に進んで入力ポートD1に制御信号を与え、S4において
フォトトランジスタ10の出力V0をチェックする。そ
して、S5においてV0<Vrであれば発光ダイオード9に
抵抗部R1が接続された状態を維持し、V0≧Vrであれ
ばS5に進む。以後、同様に、D2、D3の順で制御信号を
順次与え、その度にフォトトランジスタ10の出力V0
をチェックしてS2と同様の処理を行う(S6〜S16)。そ
して、D7に制御信号を与えてもフォトトランジスタ1
0の出力電圧V0がVr未満にならないときは、コンピュ
ータ2に接続されたディスプレイ、ランプ等のアラーム
表示部17にアラーム表示を行う(S17)。ここで、基
準値Vrは固定値として予めROM5等に格納しておく
ことができるほか、コンピュータ2に接続されたキー操
作部等の入力部16から入力するようにしてもよい。
The above-mentioned control is executed based on the control program 5a stored in the ROM 5. The control flow will be described below with reference to the flowchart of FIG. First, in S1, a control signal is transmitted to the input port D0 of the input / output interface 7a to connect the corresponding resistor R0 to the light emitting diode 9, and in S2, the output voltage V0 of the phototransistor 10 is less than the reference value Vr. Check if If V0 <Vr, the processing is terminated and the resistance portion R0 is kept connected to the light emitting diode 9. On the other hand, when V0 ≧ Vr, S3
Then, the control signal is applied to the input port D1 and the output V0 of the phototransistor 10 is checked at S4. If V0 <Vr in S5, the state in which the resistance portion R1 is connected to the light emitting diode 9 is maintained, and if V0 ≧ Vr, the process proceeds to S5. Thereafter, similarly, the control signal is sequentially given in the order of D2 and D3, and the output V0 of the phototransistor 10 is given each time.
Is checked and the same processing as S2 is performed (S6 to S16). Then, even if a control signal is given to D7, the phototransistor 1
When the output voltage V0 of 0 does not fall below Vr, an alarm is displayed on the alarm display unit 17 such as a display and a lamp connected to the computer 2 (S17). Here, the reference value Vr can be stored as a fixed value in the ROM 5 or the like in advance, or may be input from the input unit 16 such as a key operation unit connected to the computer 2.

【0022】以上説明したような制御は、例えばプリン
タの立ち上げ時等においてコンピュータ2により自動的
に実行させることができる。これにより、光学式センサ
13を常に良好な状態で作動させることができるばかり
でなく、その調整作業も実質的に不要となる。なお、光
学式センサ13を使用していない場合において、発光ダ
イオード9及びフォトトランジスタ10に電流が流れな
いように駆動回路1を構成しておけば、センサの寿命を
延ばすことができる。
The control as described above can be automatically executed by the computer 2 when the printer is started up, for example. As a result, not only can the optical sensor 13 be operated in a good condition at all times, but also its adjustment work is substantially unnecessary. In addition, when the optical sensor 13 is not used, if the drive circuit 1 is configured so that the current does not flow in the light emitting diode 9 and the phototransistor 10, the life of the sensor can be extended.

【0023】ここで、上記駆動回路1は図5に示すよう
に、抵抗部R0側から発光ダイオード10側へ電流が流
れるように構成することも可能である。この場合、発光
ダイオード9は図4とは逆方向に結線されるほか、図4
のバッファ15は、入力がLの場合に出力電圧がVccと
なり、Hの場合には出力が小さくなるインバータ15’
に置き換えられている。すなわち、出力ポートの出力が
Hの場合には抵抗部R0〜R7及び発光ダイオード9には
電流が流れず、出力ポートの出力がLの場合には抵抗部
R0〜R7及び発光ダイオード9に電流が流れ、上述の実
施例と同様の効果が得られる。
Here, the driving circuit 1 can be configured so that a current flows from the resistance portion R0 side to the light emitting diode 10 side as shown in FIG. In this case, the light emitting diode 9 is connected in the opposite direction to that shown in FIG.
The output of the buffer 15 of the inverter 15 is Vcc when the input is L, and the output is small when the input is H.
Has been replaced by. That is, when the output of the output port is H, no current flows through the resistor units R0 to R7 and the light emitting diode 9, and when the output of the output port is L, no current flows through the resistor units R0 to R7 and the light emitting diode 9. Flow, the same effect as the above-described embodiment can be obtained.

【0024】抵抗切替部7は、出入力インターフェース
部7aを含む構成の他、サイリスタを使用したスイッチ
ング機構を含むもの等を使用することもできる。
The resistance switching unit 7 may have a structure including the input / output interface unit 7a, or may have a structure including a switching mechanism using a thyristor.

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

【図1】本発明の光学式センサの駆動回路の構成例を示
すブロック図。
FIG. 1 is a block diagram showing a configuration example of a drive circuit of an optical sensor of the present invention.

【図2】その可変抵抗部の詳細を示す回路図。FIG. 2 is a circuit diagram showing details of a variable resistance portion thereof.

【図3】制御プログラムのフローチャートFIG. 3 is a flowchart of a control program

【図4】発光ダイオードに対し抵抗値の異なる抵抗部を
接続したときの、発光ダイオードを流れる電流値と、フ
ォトトランジスタの出力電圧との関係を示すグラフ。
FIG. 4 is a graph showing the relationship between the output voltage of the phototransistor and the value of the current flowing through the light emitting diode when the resistance portions having different resistance values are connected to the light emitting diode.

【図5】図1の駆動回路の変形例を示す回路図。5 is a circuit diagram showing a modified example of the drive circuit of FIG.

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

1 駆動回路 2 コンピュータ(制御指令手段) 7 抵抗切替部 7a 出入力インターフェース部 D0〜D7 入力ポート Q0〜Q7 出力ポート 8 可変抵抗部 R0〜R7 抵抗部 9 発光ダイオード(発光素子) 10 フォトトランジスタ(受光素子) 13 光学式センサ DESCRIPTION OF SYMBOLS 1 drive circuit 2 computer (control command means) 7 resistance switching section 7a output / input interface section D0 to D7 input port Q0 to Q7 output port 8 variable resistance section R0 to R7 resistance section 9 light emitting diode (light emitting element) 10 phototransistor (light receiving element) Element) 13 Optical sensor

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 電力の供給を受けて光を発する発光素子
と、 光の照射を受けてその出力を変化させる受光素子とを備
え、 検出されるべき物体により前記発光素子からの光の照射
が遮断されることにより、ないしは該物体により反射さ
れた前記発光素子からの光の照射を受けることにより、
前記受光素子の出力が変化し、その電圧の変化に基づい
て前記物体の存在を検出する光学式センサであって、 可変抵抗部を備え、その可変抵抗部の抵抗値を変化させ
ることにより前記発光素子に印加される電圧を変化させ
て、該発光素子の発光量を制御する発光量制御部と、 前記受光素子の出力を検出する出力検出部と、 その出力検出部が検出する前記受光素子の出力に基づい
て、前記発光量制御部の可変抵抗部の抵抗値を変化させ
る制御指令手段と、 を含むことを特徴とする光学式センサの駆動回路。
1. A light-emitting element that emits light when supplied with electric power, and a light-receiving element that changes its output upon receiving light, and the light emitted from the light-emitting element is irradiated by an object to be detected. By being blocked, or by receiving irradiation of light from the light emitting element reflected by the object,
An optical sensor that detects the presence of the object based on a change in the output of the light receiving element and a change in the voltage, comprising a variable resistance part, and changing the resistance value of the variable resistance part to cause the light emission. A light emission amount control unit that controls the light emission amount of the light emitting device by changing the voltage applied to the device, an output detection unit that detects the output of the light receiving device, and a light receiving device of the light detection device that the output detection unit detects. A drive circuit for an optical sensor, comprising: a control command unit that changes a resistance value of a variable resistance unit of the light emission amount control unit based on an output.
【請求項2】 前記発光量制御部の可変抵抗部は、それ
ぞれ異なる抵抗値を有する複数の抵抗部と、該複数の抵
抗部の一部のものを前記発光素子に対し切り換え可能に
接続する抵抗切替部とを備えたものとされ、かつ前記発
光素子は定電圧駆動される請求項1記載の光学式センサ
の駆動回路。
2. The variable resistance section of the light emission amount control section has a plurality of resistance sections each having a different resistance value, and a resistance for switchably connecting a part of the plurality of resistance sections to the light emitting element. 2. The optical sensor drive circuit according to claim 1, further comprising a switching unit, wherein the light emitting element is driven at a constant voltage.
【請求項3】 前記発光量制御部は、前記抵抗部を抵抗
値の大きいものから小さなものへ、又は小さなものから
大きなものへ順次切り替えつつ前記発光素子に接続する
ものとされる請求項2記載の光学式センサの駆動回路。
3. The light emission amount control unit connects to the light emitting element while sequentially switching the resistance unit from one having a large resistance value to one having a small resistance value or from one having a small resistance value to a large resistance value. Optical sensor drive circuit.
【請求項4】 前記抵抗切替部は、前記制御指令手段か
らの制御信号を受ける入力ポートと、前記複数の抵抗部
がそれぞれ接続される出力ポートとを備えた入出力イン
ターフェース部を備え、前記入力ポートから入力される
前記制御指令手段からの制御信号に基づいて、前記出力
ポートに接続された前記抵抗部のうち、前記発光素子に
接続されるべき抵抗部に対しては、他の抵抗部とは異な
るレベルの電圧を印加するものである請求項2又は3に
記載の光学式センサの駆動回路。
4. The resistance switching section includes an input / output interface section having an input port for receiving a control signal from the control command means and an output port to which the plurality of resistance sections are respectively connected, Based on the control signal from the control command means input from the port, among the resistance units connected to the output port, for the resistance unit to be connected to the light emitting element, another resistance unit and The drive circuit for the optical sensor according to claim 2 or 3, wherein different levels of voltage are applied.
【請求項5】 前記制御指令手段は、前記受光素子の出
力電圧が、予め定められた基準値に対し大きい側から又
は小さい側からその基準値に近づくように前記可変抵抗
部の抵抗値を変化させ、前記受光素子の出力電圧が前記
基準値以上又は以下となった時点で、前記抵抗値の変化
を停止させるものとされる請求項1ないし4のいずれか
に記載の光学式センサの駆動回路。
5. The control command means changes the resistance value of the variable resistance portion so that the output voltage of the light receiving element approaches the reference value from a larger side or a smaller side with respect to a predetermined reference value. The drive circuit for the optical sensor according to claim 1, wherein the change in the resistance value is stopped when the output voltage of the light receiving element becomes equal to or higher than or equal to the reference value. .
【請求項6】 前記発光素子は発光ダイオードであり、
前記受光素子はフォトトランジスタである請求項1ない
し5のいずれかに記載の光学式センサの駆動回路。
6. The light emitting device is a light emitting diode,
The drive circuit for an optical sensor according to claim 1, wherein the light receiving element is a phototransistor.
【請求項7】 前記光学式センサはプリンタ内に設けら
れて、印字用紙の有無ないし印字ヘッドのホームポジシ
ョンを検出するものとされる請求項1ないし6のいずれ
かに記載の光学式センサの駆動回路
7. The driving of the optical sensor according to claim 1, wherein the optical sensor is provided in a printer to detect the presence or absence of print paper and the home position of the print head. circuit
JP1866295A 1995-01-10 1995-01-10 Drive circuit for optical type sensor Pending JPH08188298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1866295A JPH08188298A (en) 1995-01-10 1995-01-10 Drive circuit for optical type sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1866295A JPH08188298A (en) 1995-01-10 1995-01-10 Drive circuit for optical type sensor

Publications (1)

Publication Number Publication Date
JPH08188298A true JPH08188298A (en) 1996-07-23

Family

ID=11977832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1866295A Pending JPH08188298A (en) 1995-01-10 1995-01-10 Drive circuit for optical type sensor

Country Status (1)

Country Link
JP (1) JPH08188298A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002193489A (en) * 2000-12-27 2002-07-10 Maruyama Machinery Co Ltd Paper feeding device
JP2002326410A (en) * 2001-05-07 2002-11-12 Sato Corp Output level regulator of sensor in printer
JP2003040484A (en) * 2001-07-27 2003-02-13 Canon Inc Medium detecting device and image forming device provided with medium detecting device
JP2003043160A (en) * 2001-07-27 2003-02-13 Canon Inc Medium detecting device
JP2011131917A (en) * 2009-12-24 2011-07-07 Teraoka Seiko Co Ltd Label issuing apparatus
JP5110076B2 (en) * 2007-03-05 2012-12-26 株式会社ニコン Catadioptric projection optical system, projection optical apparatus, and scanning exposure apparatus

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002193489A (en) * 2000-12-27 2002-07-10 Maruyama Machinery Co Ltd Paper feeding device
JP2002326410A (en) * 2001-05-07 2002-11-12 Sato Corp Output level regulator of sensor in printer
JP4723113B2 (en) * 2001-05-07 2011-07-13 株式会社サトー Sensor output level adjusting device in printer
JP2003040484A (en) * 2001-07-27 2003-02-13 Canon Inc Medium detecting device and image forming device provided with medium detecting device
JP2003043160A (en) * 2001-07-27 2003-02-13 Canon Inc Medium detecting device
JP4536964B2 (en) * 2001-07-27 2010-09-01 キヤノン株式会社 Medium detecting apparatus and image forming apparatus
JP4630498B2 (en) * 2001-07-27 2011-02-09 キヤノン株式会社 Medium detection apparatus and image forming apparatus including medium detection apparatus
JP5110076B2 (en) * 2007-03-05 2012-12-26 株式会社ニコン Catadioptric projection optical system, projection optical apparatus, and scanning exposure apparatus
TWI426295B (en) * 2007-03-05 2014-02-11 尼康股份有限公司 Reflection-deflection type projection optical system, projection optical apparatus, and scanning aligner
JP2011131917A (en) * 2009-12-24 2011-07-07 Teraoka Seiko Co Ltd Label issuing apparatus

Similar Documents

Publication Publication Date Title
JP2558296B2 (en) Optical sensor having self-diagnosis function and device using the same
JPH08188298A (en) Drive circuit for optical type sensor
US5652927A (en) Transmitting information between a computer and an auto focus camera
JPH01320175A (en) Paper presence detector in printer
JPH03279875A (en) Fault detecting device
US7512163B2 (en) Dual current control for laser diode driver circuit
JP4160873B2 (en) Multi-optical axis photoelectric switch
JPH0360517A (en) Automatic sensitivity adjusting method for photoelectric switch
JP2656649B2 (en) Medium detection device
JP3593027B2 (en) High voltage switch circuit failure detection device
JP3392223B2 (en) Film feed control device
JPH0730398A (en) Photosensor circuit for medium detection
JP3132871B2 (en) Beam sensor system
JPS62239033A (en) Operation discriminating device for photosensor
JP2644608B2 (en) Medium detection device
JP4204529B2 (en) Object detection device
JP2003065846A (en) Photoelectric sensor
JPH07119932B2 (en) Document detector
JP2747339B2 (en) Safety device for electric shutter
KR100503245B1 (en) Voice Service Enable Headlight Apparatus and Controlling Method for the Same
KR950008490Y1 (en) Plc control apparatus
JP3058114B2 (en) Disconnection detection device
JP2514474Y2 (en) Vending machine detector
KR930007493B1 (en) Detecting apparatus of an abnormal condition of fan motor in a copier
JPH01274486A (en) Monitor for semiconductor laser