JPH08334312A - Circuit for detecting card - Google Patents

Circuit for detecting card

Info

Publication number
JPH08334312A
JPH08334312A JP14339795A JP14339795A JPH08334312A JP H08334312 A JPH08334312 A JP H08334312A JP 14339795 A JP14339795 A JP 14339795A JP 14339795 A JP14339795 A JP 14339795A JP H08334312 A JPH08334312 A JP H08334312A
Authority
JP
Japan
Prior art keywords
sensor element
current
circuit
card
input signal
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.)
Granted
Application number
JP14339795A
Other languages
Japanese (ja)
Other versions
JP3152582B2 (en
Inventor
Hiromi Fukazawa
廣美 深沢
Mitsuo Yokozawa
満雄 横沢
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

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

PURPOSE: To automatically adjust a load of a sensor element by changing an input signal of a constant current circuit, obtaining an optimum current for the sensor element, setting the input signal in accordance with the optimum current, and comparing an output signal of the sensor element with a threshold. CONSTITUTION: A microprocessor 12 varies a control signal to a D/A converter 13 stepwise from a minimum value to a maximum value in a set range, thereby changing an input voltage Vi of a constant current circuit CI from a minimum value to a maximum value and changing a sensor current Is from a minimum value to a maximum value. While monitoring an output signal voltage Vs of the circuit CI, the microprocessor 12 measures the current Is as a sensor current value of a phototransistor PT2 when the voltage Vs exceeds a threshold Vth. Moreover, the microprocessor 12 compares the measured sensor current with an initial sensor current, detects a deterioration degree of a sensor element, and sets a set current value of the circuit CI to be optimum in accordance with the deterioration degree. The presence/absence of a card C and a position of the card are detected by comparing the voltage Vs with the threshold Vth.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はカードの有無もしくは位
置を検出するカード検出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card detecting circuit for detecting the presence or the 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の走行路を介して到来する光を受光す
る。
2. Description of the Related Art A card detection circuit is used in various devices that handle cards, and as shown in FIG. 6, a light emitting element PD1 made of a light emitting diode, a light receiving element PT1 made of a phototransistor, and resistors R 1 and R 2 are used. It is configured. Light emitting diode PD1 and phototransistor PT
1 constitutes a sensor element, and the light emitting diode PD1 is 5
The phototransistor PT1 is connected to the phototransistor PT1 through the traveling path of the card C, which is connected between the DC power source Vcc of V and the ground point through the resistor R 1 . The phototransistor PT1 is
The sensor current Is flows through the resistor R 2 connected between the 5V DC power source Vcc and the ground point, and the light emitting diode P
The light coming from D1 through the traveling path of the card C is received.

【0003】フォトトランジスタPT1のエミッタと抵
抗R2との接続点から出力端子OUT1が導出され、カ
ードCが走行路を走行して発光ダイオードPD1からフ
ォトトランジスタPT1への光を遮断したり遮断しなか
ったりすることにより出力端子OUT1の信号電圧が低
くなったり高くなったりする。図示しない回路は出力端
子OUT1の信号電圧をしきい値と比較してカードCの
有無又は位置を検出する。抵抗R2は手動でセンサー電
流Isの測定値により抵抗値が調整され、つまり、セン
サー電流Isが測定器で測定されてその測定値により適
当な抵抗値を有するものと交換され、又は抵抗R2とし
て可変抵抗が用いられてその抵抗値がセンサー電流Is
の測定値により調整される。
The output terminal OUT1 is led out from the connection point between the emitter of the phototransistor PT1 and the resistor R 2, and the card C runs on the running path to block or not block the light from the light emitting diode PD1 to the phototransistor PT1. As a result, the signal voltage at the output terminal OUT1 becomes lower or higher. A circuit (not shown) compares the signal voltage of the output terminal OUT1 with a threshold value to detect the presence or absence or the position of the card C. The resistance value of the resistor R 2 is manually adjusted according to the measured value of the sensor current Is, that is, the sensor current Is is measured by a measuring device and replaced with one having an appropriate resistance value, or the resistance value of the resistor R 2 is changed. A variable resistor is used as 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 are used.
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 the load of the phototransistor PT1.
Need to be adjusted. The adjustment of the resistance R 2 is performed by measuring the sensor current Is with a measuring device and replacing it with a resistance having an appropriate resistance value according to the measured value, or by using a variable resistance as the resistance R 2 and changing the resistance value to the sensor current Is. Since it is adjusted according to the measured value of, it was troublesome to manually perform.

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

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

【0007】[0007]

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

【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 the input signal of the constant current circuit to determine the optimum output of the sensor element from the output signal of the sensor element. The current of the sensor element is obtained by repeatedly performing the sensor element current resetting operation of obtaining the current and setting the input signal of the constant current circuit to the input signal corresponding to the optimum current at a predetermined timing. It is to be reset with 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 causes deterioration of the sensor element due to 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 the constant current circuit connected to the sensor element as a load responds to the input signal. Change the current of. The control means changes the input signal of the constant current circuit to obtain the optimum current of the sensor element from the output signal of the sensor element, sets the input signal of the constant current circuit to the input signal according 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 changes the input signal of the constant current circuit to obtain the optimum current of the sensor element from the output signal of the sensor element, The sensor element current resetting operation of setting the input signal of the constant current circuit to the input signal according to the optimum current is repeated at predetermined timing to reset the sensor element current as the sensor element deteriorates. To 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 uses the optimum current of the sensor element obtained from the output signal of the sensor element to cause the threshold value as the sensor element deteriorates. 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 invention described in claims 1 and 2, and is a control means 1 including a card detection unit 11 and a microprocessor.
2, a D / A converter 13 and a voltage dividing circuit 14. The card detection unit 11 is for detecting the presence or absence or the position of a card at a predetermined position of a card running path in various devices that handle cards, and includes a light emitting element PD2 formed of a light emitting diode, a light receiving element PT2 formed of a phototransistor, and a fixed element. It is composed of a current circuit CI and a 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 form 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
The collector of T2 is connected to the DC power supply Vcc of 5 V, and the emitter is connected to the ground point via the constant current circuit CI as the load of the phototransistor PT2. The phototransistor PT2 receives light coming from the light emitting diode PD2 through the traveling path of the card C.

【0015】フォトトランジスタPT2のエミッタと定
電流回路CIとの接続点から出力端子OUT2が導出さ
れ、定電流回路CIによりフォトトランジスタPT2に
一定のセンサー電流Isが流される。フォトトランジス
タPT2はカードCが走行路を走行して発光ダイオード
PD2からの入力光がカードCで遮断されたり遮断され
なかったりすることによりインピーダンスが変化し、出
力端子OUT2の信号電圧Vsは発光ダイオードPD2
とフォトトランジスタPT2との間におけるカードCの
有無に応じて低くなったり高くなったりする。
The output terminal OUT2 is derived from the connection point between the emitter of the phototransistor PT2 and the constant current circuit CI, and the constant current circuit CI causes a constant sensor current Is to flow through the phototransistor PT2. The impedance of the phototransistor PT2 changes when the card C travels along the traveling path and the input light from the light emitting diode PD2 is blocked or not blocked by the card C, and the signal voltage Vs of the output terminal OUT2 changes the light emitting diode PD2.
It becomes lower or higher depending on the presence / 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の有無又は位置を検出す
る。
The control signal from the microprocessor 12 is converted into an analog signal by the D / A conversion circuit 13 to generate the voltage dividing circuit 1.
After being 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 dividing circuit 14. As shown in FIG. 2, when the constant current circuit current Ci changes from 0 to increase, the signal voltage Vs of the output terminal OUT2 changes from the voltage of the DC power supply Vcc to the voltage side of the ground point. Microprocessor 12
Detects the presence or the position of the card C by comparing the signal voltage Vs of the output terminal OUT2 with an A / D converter into a digital signal and monitoring it, and comparing this digital signal with a threshold value Vth.

【0017】分圧回路14は、抵抗R4、R5により構成
され、D/A変換回路13からの制御信号電圧をR4
(R4+R5)に分圧して定電流回路CIに出力する。
The voltage dividing circuit 14 is composed of resistors R 4 and R 5 , and outputs the control signal voltage from the D / A conversion circuit 13 to R 4 /
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 is composed of an operational amplifier IC1, a transistor Tr, and resistors R 6 and R 7 as shown in FIG. The sensor current Is flows through the transistor Tr and the current detecting resistor R 6 , 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, and the voltage of the current detecting resistor R 6 is calculated. The sensor current Is is negatively fed back to the amplifier IC1 and the sensor current Is is controlled to a value Vi / R 6 according 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 the operation flow of this embodiment. When the microprocessor 12 is powered on, the D / A
The sensor current Is is minimized by changing the control signal to the converter 13 stepwise from the minimum value to the maximum value of the setting range to change the input voltage Vi of the constant current circuit CI stepwise from the minimum value to the maximum value. Value to maximum value, eg 0 to 3m
The output signal voltage Vs of the constant current circuit CI is monitored by gradually changing from A to 5 mA, and the sensor current Is when 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 is D /
Since the input voltage Vi of the constant current circuit CI can be known from the control signal to the A converter 13 and Is = Vi / R 6 , D / A when Vs exceeds the threshold value Vth.
By knowing the input voltage Vi of the constant current circuit CI from the control signal to the converter 13, the sensor current Is of the phototransistor PT2 is obtained by the calculation Is = Vi / R 6 .

【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 deterioration degree of the sensor element is detected from the difference by comparing with the initial sensor current Is stored in advance in the ROM, and an alarm or the like prompting maintenance is issued for deterioration of a specified value or more. With the deterioration level of the sensor element, the set current value of the constant current circuit is set to an optimum value according to the deterioration level of the sensor element, for example, for the purpose of detecting the presence or absence of the card, the light amount without the card (sensor current Is of the phototransistor PT2) is set. If it is 100%, the amount of light with a card drops to about 5% (1/20 with no card) at worst, so the set current value of the constant current circuit is 1 with respect to 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 without the card, and the GN is sufficient with the card.
It will be the 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 presence or absence or the position of the card C between the phototransistor PT2 and the phototransistor PT2 is detected, and the operation of detecting the presence or absence or the 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 invention described in claim 1, and includes a light emitting element PD2 formed of a light emitting diode for detecting the presence or the position of the card C and a light receiving element formed of a phototransistor PT2. The sensor element which has, the constant current circuit CI which is connected as a load to this sensor element and changes the current Is of the sensor element according to the input signal Vi, and the output of the sensor element by changing the input signal Vi of this constant current circuit CI 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 the input signal corresponding to the optimum current, and the output signal of the sensor element is compared with the threshold value to determine whether or not the card C exists. Alternatively, since the microprocessor 12 is provided as the control means for detecting the position, the load of the sensor element is 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 described in claim 2, and in the card detection circuit described in claim 1, the control means 12 changes the input signal of the constant current circuit CI to detect the sensor. The sensor element current resetting 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 the input signal corresponding to the optimum current is repeated every time the power is turned on. By doing so, the current of the sensor element is reset according to the deterioration of the sensor element, so that it is possible to extend the life of the sensor element and compare it with the initial sensor current that is stored in advance in the non-volatile memory. You can know the maintenance time etc. The microprocessor 1
2 changes 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 resetting operation of setting the input signal of the constant current circuit CI to the 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 at a predetermined timing other than the above.

【0025】また、請求項3記載の発明の一実施例で
は、上記実施例において、マイクロプロセッサ12は、
センサー素子の劣化度に伴ってセンサー素子の電流Is
を再設定する代りに、センサー素子の劣化度に伴って上
記しきい値Vthを補正するようにしたものである。な
お、マイクロプロセッサ12は、電源投入時毎にセンサ
ー素子の劣化度に伴って上記しきい値Vthを補正する代
りに、電源投入時以外の所定のタイミングで繰り返して
センサー素子の劣化度に伴って上記しきい値Vthを補正
するようにしてもよい。この請求項3記載の発明の実施
例では、請求項1記載のカード検出回路において、制御
手段12は、センサー素子の出力信号から求めたセンサ
ー素子の最適な電流によりセンサー素子の劣化に伴って
前記しきい値を補正するので、長寿命化を図ることがで
きる。
According to an embodiment of the invention described in claim 3, in the above embodiment, the microprocessor 12 is
The current Is of the sensor element varies depending on the degree of deterioration of the sensor element.
Instead of resetting, the threshold value Vth is corrected according to the degree of deterioration of the sensor element. Instead of correcting the threshold value Vth according to the deterioration degree of the sensor element each time the power is turned on, the microprocessor 12 repeats at a predetermined timing other than the time when the power is turned on, according to the deterioration degree of the sensor element. The threshold value Vth may be corrected. According to the embodiment of the invention described in claim 3, in the card detection circuit according to claim 1, the control means 12 uses the optimum current of the sensor element obtained from the output signal of the sensor element to cause the deterioration 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. In this embodiment, the constant current circuit CI is placed on the DC power source Vcc side in the above embodiment, and two resistors R 31 and R 32 are provided as the current setting resistor R 3 and these are switched by the switch SW for use. Sensor current I
The measurement range of s can be expanded. In the above embodiment, the D / A converter 13 is the microprocessor 12
A PWM circuit, a frequency / voltage conversion circuit or the like for converting a control signal such as a PWM (Pulse Width Modulation) signal or a frequency signal into a voltage signal suitable for the input signal of the voltage dividing circuit 14 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 invention, a sensor element having a light emitting element and a light receiving element for detecting the presence or the position of a card and a sensor element connected as a load to the sensor element according to an input signal. A constant current circuit for changing the current of the sensor element, and the input signal of the constant current circuit is changed to obtain the optimum current of the sensor element from the output signal of the sensor element, and the input signal of the constant current circuit is Set the input signal according to the optimum current,
Since the output signal of the sensor element is compared with the threshold value and the control means for detecting the presence or absence of the card or the position is provided, the load of the sensor element can be automatically adjusted and the reliability is greatly improved. Can be made.

【0028】請求項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 the input signal of the constant current circuit to change the output signal of the sensor element from the output signal of the sensor element. The sensor element current resetting operation of obtaining an optimum current and setting the input signal of the constant current circuit to the input signal corresponding to the optimum current is repeatedly performed at a predetermined timing to set the current of the sensor element to the above-mentioned value. Since the sensor element is reset when the sensor element deteriorates, the life of the sensor element 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 due to an optimum current of the sensor element obtained from an output signal of the sensor element. Since the threshold value is corrected in accordance with the above, the life can be extended.

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

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

【図2】同実施例の定電流回路入力電流とカード検出部
の出力信号電圧との関係を示す特性図である。
FIG. 2 is a characteristic diagram showing a relationship between an input current of a constant current circuit and an output signal voltage of a card detection unit in 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 detection unit 12 Microprocessor 13 D / A converter 14 Voltage dividing circuit

Claims (3)

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

Cited By (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

Cited By (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
JP3152582B2 (en) 2001-04-03

Similar Documents

Publication Publication Date Title
US7731417B2 (en) Temperature detection circuit
US6353291B1 (en) Electroluminescent lamp controller
RU2011104185A (en) SYSTEM FOR FLOW SENSORS
US10466070B2 (en) Disconnection detector
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
US6307354B1 (en) Apparatus and method for limiting leakage to ground current while optimizing output of a power supply adaptable for use with a motion sensor switch
WO2006106281A1 (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
US6954043B2 (en) Power window driving apparatus
US20080303461A1 (en) Method and Apparatus for Detecting Blocking of a Direct Current Motor
JP6791250B2 (en) Drive circuit of insulated gate type semiconductor element
JP2008092218A (en) Photoelectric sensor
JPH07221369A (en) Circuit for detecting deterioration of circuit element
JP2745027B2 (en) Label detection device
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
JPH0552777U (en) Solenoid load short circuit detection circuit
JPH06331584A (en) Environmental sensor
JP2573033B2 (en) Water level detector
JPS5824495Y2 (en) Limits
KR960000522Y1 (en) Automatic control sensor drive device
WO2021127613A1 (en) Opamp overload power limit circuit, system, and a method thereof

Legal Events

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