JP3152582B2 - Card detection circuit - Google Patents

Card detection circuit

Info

Publication number
JP3152582B2
JP3152582B2 JP14339795A JP14339795A JP3152582B2 JP 3152582 B2 JP3152582 B2 JP 3152582B2 JP 14339795 A JP14339795 A JP 14339795A JP 14339795 A JP14339795 A JP 14339795A JP 3152582 B2 JP3152582 B2 JP 3152582B2
Authority
JP
Japan
Prior art keywords
sensor element
current
card
input signal
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP14339795A
Other languages
Japanese (ja)
Other versions
JPH08334312A (en
Inventor
廣美 深沢
満雄 横沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo 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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP14339795A priority Critical patent/JP3152582B2/en
Publication of JPH08334312A publication Critical patent/JPH08334312A/en
Application granted granted Critical
Publication of JP3152582B2 publication Critical patent/JP3152582B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明はカードの有無もしくは位
置を検出するカード検出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card detection circuit for detecting the presence or absence or position of a card.

【0002】[0002]

【従来の技術】カード検出回路は、カードを扱う各種装
置で用いられており、図6に示すように発光ダイオード
からなる発光素子PD1、フォトトランジスタからなる
受光素子PT1及び抵抗R1、R2により構成されてい
る。発光ダイオードPD1及びフォトトランジスタPT
1はセンサー素子を構成し、発光ダイオードPD1は5
Vの直流電源Vccと接地点との間に抵抗R1を介して接
続されてカードCの走行路を介してフォトトランジスタ
PT1へ光を照射する。フォトトランジスタPT1は、
5Vの直流電源Vccと接地点との間に抵抗R2を介して
接続されてセンサー電流Isが流れ、発光ダイオードP
D1からカードCの走行路を介して到来する光を受光す
る。
BACKGROUND ART card detection circuit is used in various devices dealing with the card, the light-emitting element PD1 of a light emitting diode as shown in FIG. 6, the light receiving element PT1 and the resistor R 1, R 2 consists of phototransistors It is configured. Light emitting diode PD1 and phototransistor PT
1 is a sensor element, and the light emitting diode PD1 is 5
V is connected between the DC power supply Vcc of V and the ground via a resistor R 1 and irradiates light to the phototransistor PT 1 via the traveling path of the card C. The phototransistor PT1 is
5V DC power supply Vcc and connected sensor current Is flows through the resistor R 2 between the ground point of the light emitting diode P
The light coming from D1 via the traveling path of the card C is received.

【0003】フォトトランジスタPT1のエミッタと抵
抗R2との接続点から出力端子OUT1が導出され、カ
ードCが走行路を走行して発光ダイオードPD1からフ
ォトトランジスタPT1への光を遮断したり遮断しなか
ったりすることにより出力端子OUT1の信号電圧が低
くなったり高くなったりする。図示しない回路は出力端
子OUT1の信号電圧をしきい値と比較してカードCの
有無又は位置を検出する。抵抗R2は手動でセンサー電
流Isの測定値により抵抗値が調整され、つまり、セン
サー電流Isが測定器で測定されてその測定値により適
当な抵抗値を有するものと交換され、又は抵抗R2とし
て可変抵抗が用いられてその抵抗値がセンサー電流Is
の測定値により調整される。
[0003] Images output terminal OUT1 from the connection point of the emitter and the resistor R 2 of the transistor PT1 is derived and not block or blocks light from the light emitting diode PD1 card C is traveling along the traveling road to the phototransistor PT1 As a result, the signal voltage at the output terminal OUT1 becomes lower or higher. A circuit (not shown) detects the presence or absence or position of the card C by comparing the signal voltage of the output terminal OUT1 with a threshold. The resistance of the resistor R 2 is manually adjusted by the measured value of the sensor current Is, that is, the sensor current Is is measured by a measuring instrument, and the measured value is replaced with one having an appropriate resistance, or the resistance R 2 is changed. Is used as the variable resistor, and its resistance value is the sensor current Is.
It is adjusted by the measured value of.

【0004】[0004]

【発明が解決しようとする課題】上記カード検出回路で
は、発光ダイオードPD1及びフォトトランジスタPT
1のバラツキ(感度及び発光量のバラツキ)が大きく、
これはセンサー電流Isで見ると40倍程度の幅があ
り、フォトトランジスタPT1の負荷としての抵抗R2
の調整が必要である。この抵抗R2の調整は、センサー
電流Isを測定器により測定してその測定値により適当
な抵抗値を有するものと交換し、又は抵抗R2として可
変抵抗を用いてその抵抗値をセンサー電流Isの測定値
により調整するので、手動による面倒なものであった。
In the above card detection circuit, the light emitting diode PD1 and the phototransistor PT
The variation of 1 (variation of sensitivity and light emission amount) is large,
This is about 40 times as wide as the sensor current Is, and the resistance R 2 as a load of the phototransistor PT1 is
Needs to be adjusted. Adjustment of the resistor R 2, the sensor current Is measured by the measuring instrument and replace it with one having an appropriate resistance value by the measured value, or the resistance R 2 as a variable resistor using the resistance value sensor current Is Since the adjustment is performed based on the measured values, manual manual operation is troublesome.

【0005】ここに、カードCは例えば約3%の光透過
率があり、カードが光を遮断したときと、遮断しないと
きの光量比(センサー電流Isの比も同じになる)は、
30倍程度しかとれないため、前記センサー電流Isの
バラツキ40倍を抵抗の調整なしではカバーできない。
Here, the card C has a light transmittance of, for example, about 3%, and the light amount ratio (the ratio of the sensor current Is becomes the same) when the card blocks light and when it does not block light is:
Since it is only about 30 times, the variation of 40 times of the sensor current Is cannot be covered without adjusting the resistance.

【0006】また、発光ダイオードPD1及びフォトト
ランジスタPT1からなるセンサー素子がカード走行路
のゴミ、性能劣化等でセンサー電流Isが使用中に低下
してくるが、これはカードの有無又は位置の検出が不能
になる(センサー電流Isが上記しきい値に相当する値
以下のままになる)まで知ることができない。本発明
は、センサー素子の負荷調整を自動的に行うことがで
き、信頼性の向上及び長寿命化を図ることができるカー
ド検出回路を提供することを目的とする。
Further, the sensor element Is composed of the light emitting diode PD1 and the phototransistor PT1 causes the sensor current Is to decrease during use due to dust on the card running path, performance deterioration, and the like. It cannot be known until it becomes impossible (the sensor current Is remains below the value corresponding to the threshold value). SUMMARY OF THE INVENTION It is an object of the present invention to provide a card detection circuit that can automatically adjust the load of a sensor element and can improve reliability and extend the life.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明は、カードの有無もしくは位置
を検出する発光素子及び受光素子を有するセンサー素子
と、このセンサー素子の前記受光素子に負荷として直列
接続され入力信号に応じて前記センサー素子の電流を
変化させる定電流回路と、この定電流回路の入力信号を
変化させて前記センサー素子の出力信号から前記センサ
ー素子の最適な電流を求め、前記定電流回路の入力信号
を前記最適な電流に応じた入力信号に設定し、前記セン
サー素子の出力信号をしきい値と比較してカードの有無
もしくは位置を検出する制御手段とを備えたものであ
る。
In order to achieve the above object, the present invention is directed to a sensor element having a light emitting element and a light receiving element for detecting the presence or absence or position of a card, and the light receiving element of the sensor element. In series as load
A constant current circuit for changing the current of the sensor element according to the connected input signal, the optimal current of the sensor element from the output signal of the sensor element by changing the input signal of the constant current circuit determined on the Control means for setting an input signal of the constant current circuit to an input signal corresponding to the optimum current, and comparing the output signal of the sensor element with a threshold to detect the presence or absence or position of the card. is there.

【0008】請求項2記載の発明は、請求項1記載のカ
ード検出回路において、前記制御手段は、前記定電流回
路の入力信号を変化させて前記センサー素子の出力信号
から前記センサー素子の最適な電流を求め、前記定電流
回路の入力信号を前記最適な電流に応じた入力信号に設
定するというセンサー素子電流再設定動作を所定のタイ
ミングで繰り返して行うことにより前記センサー素子の
電流を前記センサー素子の劣化に伴って再設定するもの
である。
According to a second aspect of the present invention, in the card detection circuit according to the first aspect, the control means changes an input signal of the constant current circuit to determine an optimum signal of the sensor element from an output signal of the sensor element. The current of the sensor element is obtained by repeatedly performing a sensor element current resetting operation of obtaining a current and setting an input signal of the constant current circuit to an input signal corresponding to the optimum current at a predetermined timing. Is reset according to the deterioration of.

【0009】請求項3記載の発明は、請求項1記載のカ
ード検出回路において、前記制御手段は、前記センサー
素子の出力信号から求めた前記センサー素子の最適な電
流により前記センサー素子の劣化に伴って前記しきい値
を補正するものである。
According to a third aspect of the present invention, in the card detection circuit according to the first aspect, the control means is adapted to reduce deterioration of the sensor element by an optimum current of the sensor element obtained from an output signal of the sensor element. To correct the threshold value.

【0010】[0010]

【作用】請求項1記載の発明では、発光素子及び受光素
子を有するセンサー素子がカードの有無もしくは位置を
検出し、このセンサー素子の前記受光素子に負荷として
直列に接続された定電流回路が入力信号に応じてセンサ
ー素子の電流を変化させる。制御手段は、定電流回路の
入力信号を変化させてセンサー素子の出力信号からセン
サー素子の最適な電流を求め、定電流回路の入力信号を
その最適な電流に応じた入力信号に設定し、センサー素
子の出力信号をしきい値と比較してカードの有無もしく
は位置を検出する。
According to the first aspect of the invention, the sensor element having the light emitting element and the light receiving element detects the presence or absence or the position of the card, and loads the light receiving element of the sensor element as a load.
A constant current circuit connected in series changes the current of the sensor element according to the input signal. The control means changes an input signal of the constant current circuit to obtain an optimum current of the sensor element from an output signal of the sensor element, sets an input signal of the constant current circuit to an input signal corresponding to the optimum current, and The presence / absence or position of the card is detected by comparing the output signal of the element with a threshold value.

【0011】請求項2記載の発明では、請求項1記載の
カード検出回路において、制御手段は、定電流回路の入
力信号を変化させてセンサー素子の出力信号からセンサ
ー素子の最適な電流を求め、定電流回路の入力信号をそ
の最適な電流に応じた入力信号に設定するというセンサ
ー素子電流再設定動作を所定のタイミングで繰り返して
行うことによりセンサー素子の電流をセンサー素子の劣
化に伴って再設定する。
According to a second aspect of the present invention, in the card detection circuit according to the first aspect, the control means obtains an optimum current of the sensor element from an output signal of the sensor element by changing an input signal of the constant current circuit. By repeating the sensor element current reset operation of setting the input signal of the constant current circuit to an input signal corresponding to the optimum current at a predetermined timing, the sensor element current is reset as the sensor element deteriorates I do.

【0012】請求項3記載の発明では、請求項1記載の
カード検出回路において、制御手段は、センサー素子の
出力信号から求めたセンサー素子の最適な電流によりセ
ンサー素子の劣化に伴って前記しきい値を補正する。
According to a third aspect of the present invention, in the card detection circuit according to the first aspect, the control means includes an optimum current of the sensor element obtained from an output signal of the sensor element, and the threshold value is associated with the deterioration of the sensor element. Correct the value.

【0013】[0013]

【実施例】図1は本発明の一実施例を示す。この実施例
は、請求項1、2記載の発明の一実施例であり、カード
検出部11、マイクロプロセッサからなる制御手段1
2、D/A変換器13及び分圧回路14により構成され
る。カード検出部11は、カードを扱う各種装置におい
てカード走行路の所定の位置におけるカードの有無又は
位置を検出するものであって、発光ダイオードからなる
発光素子PD2、フォトトランジスタからなる受光素子
PT2、定電流回路CI及び電流設定用抵抗R3により
構成されている。
FIG. 1 shows an embodiment of the present invention. This embodiment is an embodiment of the first and second aspects of the present invention, and includes a card detection unit 11 and a control unit 1 comprising a microprocessor.
2. It is composed of a D / A converter 13 and a voltage dividing circuit 14. The card detection unit 11 detects the presence or absence or position of a card at a predetermined position on a card travel path in various devices that handle cards. The card detection unit 11 includes a light emitting element PD2 composed of a light emitting diode, a light receiving element PT2 composed of a phototransistor, and a constant. It is constituted by a current circuit CI and current setting resistor R 3.

【0014】発光ダイオードPD2及びフォトトランジ
スタPT2はセンサー素子を構成し、発光ダイオードP
D2は5Vの直流電源Vccと接地点との間に抵抗R3
介して接続されてカードCの走行路を介してフォトトラ
ンジスタPT2へ光を照射する。フォトトランジスタP
T2は、コレクタが5Vの直流電源Vccに接続され、エ
ミッタがフォトトランジスタPT2の負荷としての定電
流回路CIを介して接地点に接続される。このフォトト
ランジスタPT2は、発光ダイオードPD2からカード
Cの走行路を介して到来する光を受光する。
The light emitting diode PD2 and the phototransistor PT2 constitute a sensor element, and the light emitting diode P2
D2 irradiates light to the phototransistor PT2 through the travel path of which is connected via a resistor R 3 to the card C between the DC power source Vcc and the ground point of 5V. Phototransistor P
T2 has a collector connected to the DC power supply Vcc of 5 V and an emitter connected to the ground via a constant current circuit CI as a load of the phototransistor PT2. The phototransistor PT2 receives light that arrives from the light emitting diode PD2 via the traveling path of the card C.

【0015】フォトトランジスタPT2のエミッタと定
電流回路CIとの接続点から出力端子OUT2が導出さ
れ、定電流回路CIによりフォトトランジスタPT2に
一定のセンサー電流Isが流される。フォトトランジス
タPT2はカードCが走行路を走行して発光ダイオード
PD2からの入力光がカードCで遮断されたり遮断され
なかったりすることによりインピーダンスが変化し、出
力端子OUT2の信号電圧Vsは発光ダイオードPD2
とフォトトランジスタPT2との間におけるカードCの
有無に応じて低くなったり高くなったりする。
An output terminal OUT2 is derived from a connection point between the emitter of the phototransistor PT2 and the constant current circuit CI, and a constant sensor current Is flows through the phototransistor PT2 by the constant current circuit CI. The impedance of the phototransistor PT2 changes when the card C travels on the road and the input light from the light emitting diode PD2 is cut off or not cut off by the card C, and the signal voltage Vs of the output terminal OUT2 changes to the light emitting diode PD2.
It becomes lower or higher depending on the presence or absence of the card C between the phototransistor PT2 and the phototransistor PT2.

【0016】マイクロプロセッサ12からの制御信号は
D/A変換回路13によりアナログ化されて分圧回路1
4で分圧された後に定電流回路CIに入力され、定電流
回路CIは分圧回路14からの入力電圧Viに応じてセ
ンサー電流Isを変化させる。図2に示すように定電流
回路電流Ciが0から大きくなる方向に変化すると、出
力端子OUT2の信号電圧Vsが直流電源Vccの電圧か
ら接地点の電圧側へ変化する。マイクロプロセッサ12
は、出力端子OUT2の信号電圧VsをA/D変換部で
デジタル信号に変換して監視し、このデジタル信号をし
きい値Vthと比較してカードCの有無又は位置を検出す
る。
A control signal from the microprocessor 12 is converted into an analog signal by a D / A conversion circuit 13 so that
After the voltage is divided by 4, the voltage is input to the constant current circuit CI, and the constant current circuit CI changes the sensor current Is according to the input voltage Vi from the voltage divider 14. As shown in FIG. 2, when the constant current circuit current Ci changes from 0 to a larger value, the signal voltage Vs at the output terminal OUT2 changes from the voltage of the DC power supply Vcc to the voltage side of the ground point. Microprocessor 12
The A / D converter converts the signal voltage Vs of the output terminal OUT2 into a digital signal and monitors the signal, and compares the digital signal with a threshold value Vth to detect the presence or absence or position of the card C.

【0017】分圧回路14は、抵抗R4、R5により構成
され、D/A変換回路13からの制御信号電圧をR4
(R4+R5)に分圧して定電流回路CIに出力する。
The voltage dividing circuit 14 includes resistors R 4 and R 5 , and outputs a control signal voltage from the D / A conversion circuit 13 to R 4 / R 5 .
The voltage is divided into (R 4 + R 5 ) and output to the constant current circuit CI.

【0018】定電流回路CIは、図3に示すように演算
増幅器IC1、トランジスタTr及び抵抗R6、R7によ
り構成される。センサー電流IsはトランジスタTr及
び電流検出用抵抗R6を通して流れ、分圧回路14から
の入力信号電圧Viが演算増幅器IC1を通してトラン
ジスタTrのベースに加えられるとともに、電流検出用
抵抗R6の電圧が演算増幅器IC1に負帰還されてセン
サー電流Isが分圧回路14からの入力信号電圧に応じ
た値Vi/R6に制御される。
The constant current circuit CI includes an operational amplifier IC1, a transistor Tr, and resistors R 6 and R 7 as shown in FIG. Sensor current Is flows through the transistor Tr and the current detection resistor R 6, together with the input signal voltage Vi from the voltage dividing circuit 14 is applied to the base of the transistor Tr through the operational amplifier IC1, a voltage of the current detection resistor R 6 is operational is negatively fed back to the amplifier IC1 is the sensor current is is controlled to a value Vi / R 6 corresponding to the input signal voltage from the voltage dividing circuit 14.

【0019】図4はこの実施例の動作フローを示す。マ
イクロプロセッサ12は、電源が投入されると、D/A
変換器13への制御信号を設定範囲の最小値から最大値
まで段階的に可変して定電流回路CIの入力電圧Viを
最小値から最大値まで段階的に変化させることによりセ
ンサー電流Isを最小値から最大値、例えば0から3m
A〜5mAまで段階的に変化させ、定電流回路CIの出
力信号電圧Vsを監視してVsがしきい値Vthを越えた
時のセンサー電流IsをフォトトランジスタPT2のセ
ンサー電流値Isとして測定する。
FIG. 4 shows an operation flow of this embodiment. When the power is turned on, the microprocessor 12
The control signal to the converter 13 is varied stepwise from the minimum value to the maximum value of the setting range to gradually change the input voltage Vi of the constant current circuit CI from the minimum value to the maximum value, thereby minimizing the sensor current Is. Value to maximum value, eg 0 to 3m
The output signal voltage Vs of the constant current circuit CI is monitored in a stepwise manner from A to 5 mA, and the sensor current Is when the Vs exceeds the threshold value Vth is measured as the sensor current value Is of the phototransistor PT2.

【0020】ここに、マイクロプロセッサ12は、D/
A変換器13への制御信号から定電流回路CIの入力電
圧Viを知ることができ、かつ、Is=Vi/R6であ
るから、Vsがしきい値Vthを越えた時におけるD/A
変換器13への制御信号から定電流回路CIの入力電圧
Viを知ってIs=Vi/R6なる演算でフォトトラン
ジスタPT2のセンサー電流Isを求める。
Here, the microprocessor 12 has a D /
Can be the control signal to A converter 13 knows the input voltage Vi of the constant current circuit CI, and, because it is Is = Vi / R 6, observed when the Vs exceeds the threshold value Vth D / A
From the control signal to the transducer 13 to know the input voltage Vi of the constant current circuit CI obtaining a sensor current Is of the phototransistor PT2 at Is = Vi / R 6 becomes operational.

【0021】次に、マイクロプロセッサ12は、今測定
したセンサー電流Isを不揮発性メモリ、例えばE2
ROMに予め格納されている初期のセンサー電流Isと
比較してその差からセンサー素子の劣化度を検出し、規
定値以上の劣化に対してはメンテナンスをうながすアラ
ーム等を発生するが、通常はこのセンサー素子の劣化度
に伴って定電流回路の設定電流値をセンサー素子の劣化
度に応じた最適値、例えばカード有無検出を目的とする
ならカード無の光量(フォトトランジスタPT2のセン
サー電流Is)を100%とすると、カード有では最悪
でも光量は5%(カード無の1/20)程度まで低下す
るため、前記測定したフォトトランジスタPT2のセン
サー電流Isに対して定電流回路の設定電流値を1/1
0としておくことで、カード無ではセンサー回路の出力
電圧Vsは十分Vcc側となり、カード有では十分GN
D側となる。
Next, the microprocessor 12 stores the measured sensor current Is in a non-volatile memory such as E 2 P
The degree of deterioration of the sensor element is detected from the difference between the initial sensor current Is stored in the ROM in advance, and an alarm or the like that prompts maintenance is generated for deterioration exceeding a specified value. According to the deterioration degree of the sensor element, the set current value of the constant current circuit is set to an optimum value corresponding to the deterioration degree of the sensor element. For example, if the purpose is to detect the presence or absence of a card, the light amount without the card (the sensor current Is of the phototransistor PT2). If it is set to 100%, the worst amount of light decreases to about 5% (1/20 of that without the card) when the card is present, so the set current value of the constant current circuit is set to 1 for the measured sensor current Is of the phototransistor PT2. / 1
By setting it to 0, the output voltage Vs of the sensor circuit is sufficiently on the Vcc side when there is no card, and is sufficiently GN when there is a card.
D side.

【0022】しかる後に、マイクロプロセッサ12は、
定電流回路CIの出力信号電圧Vsを監視してVsをし
きい値Vthと比較することにより発光ダイオードPD2
とフォトトランジスタPT2との間におけるカードCの
有無又は位置を検出し、このカードCの有無又は位置を
検出する動作を電源がオフされるまで繰り返して行う。
Thereafter, the microprocessor 12
By monitoring the output signal voltage Vs of the constant current circuit CI and comparing Vs with the threshold value Vth, the light emitting diode PD2
The operation for detecting the presence or absence or position of the card C between the phototransistor and the phototransistor PT2 and detecting the presence or absence or position of the card C is repeated until the power is turned off.

【0023】このように、この実施例は、請求項1記載
の発明の実施例であって、カードCの有無もしくは位置
を検出する発光ダイオードからなる発光素子PD2及び
フォトトランジスタPT2からなる受光素子を有するセ
ンサー素子と、このセンサー素子に負荷として接続され
入力信号Viに応じてセンサー素子の電流Isを変化さ
せる定電流回路CIと、この定電流回路CIの入力信号
Viを変化させてセンサー素子の出力信号Vsからセン
サー素子の最適な電流を求め、定電流回路CIの入力信
号をその最適な電流に応じた入力信号に設定し、センサ
ー素子の出力信号をしきい値と比較してカードCの有無
もしくは位置を検出する制御手段としてのマイクロプロ
セッサ12とを備えたので、センサー素子の負荷調整を
自動的に行うことができ、信頼性を大幅に向上させるこ
とができる。
As described above, this embodiment is an embodiment of the first aspect of the present invention, in which the light-emitting element PD2 composed of a light-emitting diode for detecting the presence or absence or position of the card C and the light-receiving element composed of the phototransistor PT2 are used. A constant current circuit CI connected as a load to the sensor element to change the current Is of the sensor element in accordance with the input signal Vi; and changing the input signal Vi of the constant current circuit CI to output the sensor element The optimum current of the sensor element is obtained from the signal Vs, the input signal of the constant current circuit CI is set to an input signal corresponding to the optimum current, and the output signal of the sensor element is compared with a threshold to determine whether the card C is present. Alternatively, the microprocessor 12 as the control means for detecting the position is provided, so that the load of the sensor element can be automatically adjusted. Can, it is possible to greatly improve the reliability.

【0024】また、この実施例は、請求項2記載の発明
の実施例であって、請求項1記載のカード検出回路にお
いて、制御手段12は、定電流回路CIの入力信号を変
化させてセンサー素子の出力信号からセンサー素子の最
適な電流を求め、定電流回路CIの入力信号をその最適
な電流に応じた入力信号に設定するというセンサー素子
電流再設定動作を電源投入時毎に繰り返して行うことに
よりセンサー素子の電流をセンサー素子の劣化に伴って
再設定するので、長寿命化を図ることができると共に不
揮発性メモリの予め格納されている初期のセンサ電流と
比較することでセンサーの劣化度を知りメンテナンス時
期等を知ることができる。なお、マイクロプロセッサ1
2は、定電流回路CIの入力信号を変化させてセンサー
素子の出力信号からセンサー素子の最適な電流を求め、
定電流回路CIの入力信号をその最適な電流に応じた入
力信号に設定するというセンサー素子電流再設定動作を
電源投入時毎に繰り返して行ったが、このセンサー素子
電流再設定動作を電源投入時以外の所定のタイミングで
繰り返して行うことによりセンサー素子の電流をセンサ
ー素子の劣化に伴って再設定するようにしてもよい。
This embodiment is an embodiment of the invention according to the second aspect. In the card detection circuit according to the first aspect, the control means 12 changes the input signal of the constant current circuit CI to provide a sensor. The sensor element current reset operation of finding the optimum current of the sensor element from the output signal of the element and setting the input signal of the constant current circuit CI to an input signal corresponding to the optimum current is repeated every time the power is turned on. As a result, the current of the sensor element is reset according to the deterioration of the sensor element, so that the service life can be extended and the deterioration degree of the sensor can be compared with the initial sensor current stored in the nonvolatile memory in advance. To know the maintenance time. The microprocessor 1
2 is to change the input signal of the constant current circuit CI to obtain the optimum current of the sensor element from the output signal of the sensor element,
The sensor element current reset operation of setting the input signal of the constant current circuit CI to an input signal corresponding to the optimum current was repeated every time the power was turned on. The current of the sensor element may be reset according to the deterioration of the sensor element by repeatedly performing the predetermined timing other than the above.

【0025】また、請求項3記載の発明の一実施例で
は、上記実施例において、マイクロプロセッサ12は、
センサー素子の劣化度に伴ってセンサー素子の電流Is
を再設定する代りに、センサー素子の劣化度に伴って上
記しきい値Vthを補正するようにしたものである。な
お、マイクロプロセッサ12は、電源投入時毎にセンサ
ー素子の劣化度に伴って上記しきい値Vthを補正する代
りに、電源投入時以外の所定のタイミングで繰り返して
センサー素子の劣化度に伴って上記しきい値Vthを補正
するようにしてもよい。この請求項3記載の発明の実施
例では、請求項1記載のカード検出回路において、制御
手段12は、センサー素子の出力信号から求めたセンサ
ー素子の最適な電流によりセンサー素子の劣化に伴って
前記しきい値を補正するので、長寿命化を図ることがで
きる。
In one embodiment of the present invention, in the above embodiment, the microprocessor 12 is
The current Is of the sensor element according to the degree of deterioration of the sensor element
Instead of resetting, the threshold value Vth is corrected in accordance with the degree of deterioration of the sensor element. Note that, instead of correcting the threshold value Vth according to the degree of deterioration of the sensor element every time the power is turned on, the microprocessor 12 repeats the processing at a predetermined timing other than when the power is turned on. The threshold value Vth may be corrected. In the embodiment of the invention according to the third aspect of the present invention, in the card detection circuit according to the first aspect, the control unit 12 is configured to perform the above-described operation according to the deterioration of the sensor element by the optimum current of the sensor element obtained from the output signal of the sensor element. Since the threshold value is corrected, the life can be extended.

【0026】図5は本発明の他の実施例を示す。この実
施例は、上記実施例において、定電流回路CIを直流電
源Vcc側に入れ、かつ、電流設定用抵抗R3として2つ
の抵抗R31、R32を設けてこれをスイッチSWにより切
り替えて用いるようにしたものであり、センサー電流I
sの測定範囲を拡げることができる。なお、上記実施例
において、D/A変換器13はマイクロプロセッサ12
からのPWM(パルス幅変調)信号、周波数信号等の制
御信号を分圧回路14の入力信号に適した電圧信号に変
換するPWM回路、周波数/電圧変換回路等を用いるよ
うにしてもよい。また、マイクロプロセッサ12は上述
のように検出したセンサー素子の劣化を表示部に表示さ
せるようにしてもよい。
FIG. 5 shows another embodiment of the present invention. This embodiment is different from the above embodiment in that the constant current circuit CI is provided on the DC power supply Vcc side, and two resistors R 31 and R 32 are provided as the current setting resistor R 3 and are switched and used by the switch SW. The sensor current I
The measurement range of s can be expanded. In the above embodiment, the D / A converter 13 is connected to the microprocessor 12
A PWM circuit for converting a control signal such as a PWM (pulse width modulation) signal, a frequency signal or the like into a voltage signal suitable for an input signal of the voltage dividing circuit 14, a frequency / voltage conversion circuit, or the like may be used. Further, the microprocessor 12 may display the deterioration of the sensor element detected as described above on the display unit.

【0027】[0027]

【発明の効果】以上のように請求項1記載の発明によれ
ば、カードの有無もしくは位置を検出する発光素子及び
受光素子を有するセンサー素子と、このセンサー素子に
負荷として接続され入力信号に応じて前記センサー素子
の電流を変化させる定電流回路と、この定電流回路の入
力信号を変化させて前記センサー素子の出力信号から前
記センサー素子の最適な電流を求め、前記定電流回路の
入力信号を前記最適な電流に応じた入力信号に設定し、
前記センサー素子の出力信号をしきい値と比較してカー
ドの有無もしくは位置を検出する制御手段とを備えたの
で、センサー素子の負荷調整を自動的に行うことがで
き、信頼性を大幅に向上させることができる。
As described above, according to the first aspect of the present invention, a sensor element having a light emitting element and a light receiving element for detecting the presence or absence or position of a card, and connected to the sensor element as a load and responding to an input signal. A constant current circuit that changes the current of the sensor element, and obtains an optimum current of the sensor element from an output signal of the sensor element by changing an input signal of the constant current circuit. Set the input signal according to the optimal current,
Since control means for detecting the presence or absence or position of the card by comparing the output signal of the sensor element with a threshold value is provided, the load adjustment of the sensor element can be automatically performed, and the reliability is greatly improved. Can be done.

【0028】請求項2記載の発明によれば、請求項1記
載のカード検出回路において、前記制御手段は、前記定
電流回路の入力信号を変化させて前記センサー素子の出
力信号から前記センサー素子の最適な電流を求め、前記
定電流回路の入力信号を前記最適な電流に応じた入力信
号に設定するというセンサー素子電流再設定動作を所定
のタイミングで繰り返して行うことにより前記センサー
素子の電流を前記センサー素子の劣化に伴って再設定す
るので、長寿命化を図ることができる。
According to a second aspect of the present invention, in the card detecting circuit according to the first aspect, the control means changes an input signal of the constant current circuit to output a signal of the sensor element from the output signal of the sensor element. The current of the sensor element is obtained by repeatedly performing a sensor element current resetting operation of obtaining an optimum current and setting an input signal of the constant current circuit to an input signal corresponding to the optimum current at a predetermined timing. Since the resetting is performed in accordance with the deterioration of the sensor element, the service life can be extended.

【0029】請求項3記載の発明によれば、請求項1記
載のカード検出回路において、前記制御手段は、前記セ
ンサー素子の出力信号から求めた前記センサー素子の最
適な電流により前記センサー素子の劣化に伴って前記し
きい値を補正するので、長寿命化を図ることができる。
According to a third aspect of the present invention, in the card detection circuit according to the first aspect, the control means deteriorates the sensor element by an optimum current of the sensor element obtained from an output signal of the sensor element. Accordingly, the threshold value is corrected, so that the service life can be extended.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】同実施例の定電流回路入力電流とカード検出部
の出力信号電圧との関係を示す特性図である。
FIG. 2 is a characteristic diagram illustrating a relationship between an input current of a constant current circuit and an output signal voltage of a card detection unit according to the embodiment.

【図3】同実施例の一部を示す回路図である。FIG. 3 is a circuit diagram showing a part of the embodiment.

【図4】同実施例の動作フローを示すフローチャートで
ある。
FIG. 4 is a flowchart showing an operation flow of the embodiment.

【図5】本発明の他の実施例の一部を示す回路図であ
る。
FIG. 5 is a circuit diagram showing a part of another embodiment of the present invention.

【図6】従来のカード検出回路を示す回路図である。FIG. 6 is a circuit diagram showing a conventional card detection circuit.

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

PD2 発光ダイオード PT2 フォトトランジスタ CI 定電流回路 11 カード検出部 12 マイクロプロセッサ 13 D/A変換器 14 分圧回路 PD2 Light emitting diode PT2 Phototransistor CI Constant current circuit 11 Card detector 12 Microprocessor 13 D / A converter 14 Voltage divider circuit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】カードの有無もしくは位置を検出する発光
素子及び受光素子を有するセンサー素子と、このセンサ
ー素子の前記受光素子に負荷として直列に接続され入力
信号に応じて前記センサー素子の電流を変化させる定電
流回路と、この定電流回路の入力信号を変化させて前記
センサー素子の出力信号から前記センサー素子の最適な
電流を求め、前記定電流回路の入力信号を前記最適な電
流に応じた入力信号に設定し、前記センサー素子の出力
信号をしきい値と比較してカードの有無もしくは位置を
検出する制御手段とを備えたことを特徴とするカード検
出回路。
1. A sensor element having a light-emitting element and a light-receiving element for detecting the presence / absence or position of a card, and a current connected to the light-receiving element of the sensor element which is connected in series as a load to change the current of the sensor element according to an input signal. A constant current circuit for changing the input signal of the constant current circuit to obtain an optimum current of the sensor element from an output signal of the sensor element, and inputting the input signal of the constant current circuit according to the optimum current. A card detection circuit for setting a signal and comparing the output signal of the sensor element with a threshold to detect the presence or absence or position of the card.
【請求項2】請求項1記載のカード検出回路において、
前記制御手段は、前記定電流回路の入力信号を変化させ
て前記センサー素子の出力信号から前記センサー素子の
最適な電流を求め、前記定電流回路の入力信号を前記最
適な電流に応じた入力信号に設定するというセンサー素
子電流再設定動作を所定のタイミングで繰り返して行う
ことにより前記センサー素子の電流を前記センサー素子
の劣化に伴って再設定することを特徴とするカード検出
回路。
2. The card detection circuit according to claim 1, wherein
The control means changes an input signal of the constant current circuit to obtain an optimum current of the sensor element from an output signal of the sensor element, and converts an input signal of the constant current circuit to an input signal corresponding to the optimum current. A card detection circuit, wherein the current of the sensor element is reset with the deterioration of the sensor element by repeatedly performing a sensor element current reset operation of setting the sensor element at a predetermined timing.
【請求項3】請求項1記載のカード検出回路において、
前記制御手段は、前記センサー素子の出力信号から求め
た前記センサー素子の最適な電流により前記センサー素
子の劣化に伴って前記しきい値を補正することを特徴と
するカード検出回路。
3. The card detection circuit according to claim 1, wherein
A card detection circuit, wherein the control means corrects the threshold value in accordance with deterioration of the sensor element by an optimum current of the sensor element obtained from an output signal of the sensor element.
JP14339795A 1995-06-09 1995-06-09 Card detection circuit Expired - Fee Related JP3152582B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14339795A JP3152582B2 (en) 1995-06-09 1995-06-09 Card detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14339795A JP3152582B2 (en) 1995-06-09 1995-06-09 Card detection circuit

Publications (2)

Publication Number Publication Date
JPH08334312A JPH08334312A (en) 1996-12-17
JP3152582B2 true JP3152582B2 (en) 2001-04-03

Family

ID=15337821

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14339795A Expired - Fee Related JP3152582B2 (en) 1995-06-09 1995-06-09 Card detection circuit

Country Status (1)

Country Link
JP (1) JP3152582B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108961539A (en) * 2018-07-12 2018-12-07 四川虹美智能科技有限公司 A kind of commodity retention condition checkout gear, method and system

Also Published As

Publication number Publication date
JPH08334312A (en) 1996-12-17

Similar Documents

Publication Publication Date Title
US7761013B2 (en) Optical receiver having bias circuit for avalanche photodiode with wide dynamic range
US6353291B1 (en) Electroluminescent lamp controller
KR101811402B1 (en) An address type fire detection device using a voltage controlled current source controlled by a digital to analog converter and a fire detection system including the same
US5955726A (en) System for automatically sensing light in a predetermined range and correcting a meter luminance
JP4347359B2 (en) Optical input device
EP1867039A1 (en) An electrical circuit, a detection system and an operating method thereof
US20060039572A1 (en) Apparatus and method to limit current of an audio amplifier
JP3152582B2 (en) Card detection circuit
AU750314B2 (en) Light obstruction type smoke sensor
JPH07221369A (en) Circuit for detecting deterioration of circuit element
JP2745027B2 (en) Label detection device
JP6791250B2 (en) Drive circuit of insulated gate type semiconductor element
JPH08278110A (en) Optical sensor
KR101916452B1 (en) An address type fire detection device using a voltage controlled current source controlled by a digital to analog converter
JPH10185615A (en) Sensor correcting device corresponding to change with lapse of time
JP2004198143A (en) Current detection device
JP2000131369A (en) Load wire breaking detector
JP2980848B2 (en) Abnormality detection device for dust sensor for vacuum cleaner and control method therefor
JPH11136114A (en) Photoelectric switch
KR960000522Y1 (en) Automatic control sensor drive device
JP2535985Y2 (en) Output voltage monitor circuit of constant current device
JPH0332836B2 (en)
JPH0648896Y2 (en) Semiconductor laser drive circuit
JP3336920B2 (en) Power supply monitoring device
KR100443844B1 (en) Apparatus of driving in solenoid valve

Legal Events

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