JP6361139B2 - Medium detection device, medium detection method, and change machine - Google Patents

Medium detection device, medium detection method, and change machine Download PDF

Info

Publication number
JP6361139B2
JP6361139B2 JP2014001408A JP2014001408A JP6361139B2 JP 6361139 B2 JP6361139 B2 JP 6361139B2 JP 2014001408 A JP2014001408 A JP 2014001408A JP 2014001408 A JP2014001408 A JP 2014001408A JP 6361139 B2 JP6361139 B2 JP 6361139B2
Authority
JP
Japan
Prior art keywords
light
light emission
emission time
time
emitting element
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.)
Active
Application number
JP2014001408A
Other languages
Japanese (ja)
Other versions
JP2015130084A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2014001408A priority Critical patent/JP6361139B2/en
Publication of JP2015130084A publication Critical patent/JP2015130084A/en
Application granted granted Critical
Publication of JP6361139B2 publication Critical patent/JP6361139B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、発光素子と受光素子とによって媒体を検知する媒体検知装置、媒体検知方法、及び該媒体検知装置を備えた釣銭機に関する。   The present invention relates to a medium detection device that detects a medium using a light emitting element and a light receiving element, a medium detection method, and a change machine including the medium detection device.

スーパーマーケット等の店舗では、POS(Point Of Sales)レジスタに貨幣の入出金を行う釣銭機を接続したレジシステムが広く使用されている。釣銭機は、投入された硬貨や紙幣を預り金として内部の収納庫に収納する入金動作と、収納した硬貨や紙幣を出金指示に基づき釣銭等として出金動作とを自動で行うものである(例えば、特許文献1参照)。   In a store such as a supermarket, a cash register system in which a change machine for depositing / withdrawing money is connected to a POS (Point Of Sales) register is widely used. The change machine automatically performs a deposit operation for storing the inserted coins and banknotes as deposits in an internal storage, and a withdrawal operation for the stored coins and banknotes as change based on a withdrawal instruction. (For example, refer to Patent Document 1).

このような釣銭機には、投入部での硬貨や紙幣の投入を検知すると共に、投入部での硬貨や紙幣の残留を検知するため、通常、光センサを用いた媒体検知装置が備えられている。ところが、光センサに使用されるLEDやフォトトランジスタ等の発光素子や受光素子は製品毎の感度のばらつきが大きいため、媒体の検知感度が安定しないといった問題がある。   Such a change machine is usually provided with a medium detection device using an optical sensor in order to detect the insertion of coins and banknotes in the insertion unit and to detect the remaining coins and banknotes in the insertion unit. Yes. However, light-emitting elements and light-receiving elements such as LEDs and phototransistors used in optical sensors have a large variation in sensitivity among products, and there is a problem that the detection sensitivity of the medium is not stable.

この問題への対応としては、発光回路又は受光回路に可変抵抗(機械的又は電子的ボリューム)を挿入して感度を調整する方法があるが(例えば、特許文献2参照)、機器の製造コストを増大させることになる。また、発光素子や受光素子の選定によってばらつきの少ない素子を選択する方法もあるが、素子の入手性や選別による価格上昇といった点で問題がある。   As a countermeasure to this problem, there is a method of adjusting the sensitivity by inserting a variable resistor (mechanical or electronic volume) in the light emitting circuit or the light receiving circuit (for example, see Patent Document 2). Will increase. In addition, there is a method of selecting an element with little variation by selecting a light emitting element and a light receiving element, but there are problems in terms of the availability of the element and the price increase due to selection.

特開2009−223396号公報JP 2009-223396 A 特開2000−339513号公報JP 2000-339513 A

このように発光素子及び受光素子を用いた媒体検知装置では、機器を安価に構成しつつも素子のばらつきを吸収し、媒体の検知感度を安定させることができることが望まれている。   As described above, in the medium detection device using the light emitting element and the light receiving element, it is desired that the variation in the elements can be absorbed and the detection sensitivity of the medium can be stabilized while the apparatus is configured at low cost.

本発明は、上記従来の課題を考慮してなされたものであり、機器を安価に構成しつつも媒体の検知感度を安定させることができる媒体検知装置、媒体検知方法、及び該媒体検知装置を備えた釣銭機を提供することを目的とする。   The present invention has been made in consideration of the above-described conventional problems. A medium detection device, a medium detection method, and a medium detection device capable of stabilizing the detection sensitivity of a medium while configuring an apparatus at low cost. It aims at providing the change machine provided.

本発明に係る媒体検知装置は、発光素子と、該発光素子が発した光を受光する受光素子とを備えた媒体検知装置であって、前記発光素子の発光時間及び消灯時間を制御する発光制御部と、前記発光時間及び消灯時間を記憶する記憶部と、時定数を有し、前記受光素子での受光量を時間要素に変換して受光信号を発生する受光部と、前記受光信号を2値化する比較部と、前記2値化した受光信号に基づき前記記憶部に記憶された発光時間を変更し、変更後の発光時間を該記憶部に設定する発光時間設定部とを備えることを特徴とする。   The medium detection apparatus according to the present invention is a medium detection apparatus including a light emitting element and a light receiving element that receives light emitted from the light emitting element, and controls light emission and light extinction for the light emitting element. A light receiving portion that has a time constant, converts the amount of light received by the light receiving element into a time element, and generates a light receiving signal; A comparison unit for converting into a value; and a light emission time setting unit for changing the light emission time stored in the storage unit based on the binarized light reception signal and setting the light emission time after the change in the storage unit. Features.

また、本発明に係る媒体検知方法は、発光素子と、該発光素子が発した光を受光する受光素子とを用いた媒体検知方法であって、時定数に基づき出力される前記受光素子での受光量を時間要素に変換して受光信号を発生する受光ステップと、前記受光信号を2値化する比較ステップと、前記2値化した受光信号に基づき前記発光素子の発光時間を変更する発光時間設定ステップとを有することを特徴とする。   Further, the medium detection method according to the present invention is a medium detection method using a light emitting element and a light receiving element that receives light emitted from the light emitting element, in the light receiving element that is output based on a time constant. A light receiving step for generating a light reception signal by converting the amount of received light into a time element, a comparison step for binarizing the light reception signal, and a light emission time for changing the light emission time of the light emitting element based on the binarized light reception signal And a setting step.

さらに、本発明に係る釣銭機は、預り金の入金及び釣銭の出金を行う釣銭機であって、発光素子と、該発光素子が発した光を受光する受光素子とを有し、当該釣銭機で取扱う貨幣を検知する媒体検知装置を備え、前記媒体検知装置は、前記発光素子の発光時間及び消灯時間を制御する発光制御部と、前記発光時間及び消灯時間を記憶する記憶部と、時定数を有し、前記受光素子での受光量を時間要素に変換して受光信号を発生する受光部と、前記受光信号を2値化する比較部と、前記2値化した受光信号に基づき前記記憶部に記憶された発光時間を変更し、変更後の発光時間を該記憶部に設定する発光時間設定部とを備えることを特徴とする。   Furthermore, the change machine according to the present invention is a change machine that deposits and deposits deposits, has a light emitting element and a light receiving element that receives light emitted from the light emitting element, and the change. A medium detection device for detecting money handled by a machine, the medium detection device comprising: a light emission control unit for controlling a light emission time and a light extinction time of the light emitting element; a storage unit for storing the light emission time and the light extinction time; A light receiving unit that generates a light receiving signal by converting the amount of light received by the light receiving element into a time element, a comparison unit that binarizes the light receiving signal, and the binarized light receiving signal based on the binarized light receiving signal. And a light emission time setting unit for changing the light emission time stored in the storage unit and setting the light emission time after the change in the storage unit.

このような構成及び方法によれば、発光素子での発光時間を変更し設定する発光時間設定部を有することにより、発光時間を調整しながら受光素子での受光検出時の発光時間を求め、そのときの発光時間で発光素子を発光させることができる。これにより、機器側で発光電流を可変としたり、受光感度をアンプにて可変したりする対策を講じることなく、ソフトウエア的に発光時間を変更するだけで製品毎のばらつきを吸収し、媒体の検知感度を安定させることができ、機器を安価に構成することができる。   According to such a configuration and method, by having the light emission time setting unit that changes and sets the light emission time at the light emitting element, the light emission time at the time of light reception detection at the light receiving element is obtained while adjusting the light emission time. The light emitting element can emit light with the light emission time. This makes it possible to absorb variations among products by simply changing the light emission time by software without taking measures to change the light emission current on the device side or to change the light reception sensitivity with an amplifier. The detection sensitivity can be stabilized, and the device can be configured at low cost.

上記媒体検知装置では、前記記憶部に記憶された発光時間を予め設定された複数の設定値に基づき変更することで、前記発光素子及び前記受光素子での検知感度を変更する感度設定部を備えるとよい。また、上記媒体検知方法では、前記発光時間設定ステップで設定された発光時間を予め設定された複数の設定値に基づき変更することで、前記発光素子及び前記受光素子での検知感度を変更する感度設定ステップを有するとよい。そうすると、求めた受光検出時の発光時間を、さらに、予め設定された設定値によって変更することにより、検知感度を変更することができ、装置の設置環境等に柔軟に且つ容易に対応することができる。   The medium detection device includes a sensitivity setting unit that changes detection sensitivity of the light emitting element and the light receiving element by changing the light emission time stored in the storage unit based on a plurality of preset setting values. Good. In the medium detection method, the sensitivity for changing the detection sensitivity of the light emitting element and the light receiving element is changed by changing the light emission time set in the light emission time setting step based on a plurality of preset values. It is good to have a setting step. Then, the detection sensitivity can be changed by changing the obtained light emission time at the time of detection of received light according to a preset setting value, and it is possible to flexibly and easily cope with the installation environment of the apparatus. it can.

この場合、上記媒体検知装置では、前記複数の設定値は、前記発光時間を前記受光素子による検出感度を優先させる設定とする感度優先設定値と、前記発光時間を前記発光素子及び前記受光素子の汚れに対する耐性を優先させる設定とする耐汚れ優先設定値とを含んでもよい。また、上記媒体検知方法では、前記複数の設定値は、前記発光時間を前記受光素子による検出感度を優先させる設定とする感度優先設定値と、前記発光時間を前記発光素子及び前記受光素子の汚れに対する耐性を優先させる設定とする耐汚れ優先設定値とを含んでもよい。例えば、媒体検知装置が搭載された釣銭機の使用場所によっては、媒体検知装置が設けられた投入部付近が汚れやすい環境のため多少汚れた場合であっても誤検知とはしたくない場合や、外来光の影響により投入検知がし難い場所、さらには硬貨や紙幣を少数枚(例えば、1円1枚等)投入した場合においても確実に投入検知を行いたい場合等、各種事情がある。そこで、前記感度優先設定値及び前記耐汚れ優先設定値とに基づき発光時間を設定することにより、その使用場所や設置環境、設置された店舗の実情等を踏まえ、用途に応じて検知感度を柔軟に切り換えることが可能となる。   In this case, in the medium detection device, the plurality of setting values include a sensitivity priority setting value in which the light emission time is set to give priority to the detection sensitivity of the light receiving element, and the light emission time is set to the light emitting element and the light receiving element. It may also include a stain resistance priority setting value that sets the priority to stain resistance. In the medium detection method, the plurality of set values include a sensitivity priority setting value in which the light emission time is set to give priority to detection sensitivity by the light receiving element, and the light emission time is set to be a contamination of the light emitting element and the light receiving element. The anti-smudge priority setting value that sets the priority to the resistance to the noise may be included. For example, depending on the place of use of a change machine equipped with a medium detection device, the vicinity of the input section where the medium detection device is installed is likely to be dirty, so even if it is somewhat dirty, it may not be a false detection. There are various circumstances, such as a place where it is difficult to detect the insertion due to the influence of extraneous light, and a case where it is desired to reliably detect the insertion even when a small number of coins or banknotes (for example, 1 yen per sheet) is inserted. Therefore, by setting the light emission time based on the sensitivity priority setting value and the anti-smudge priority setting value, the detection sensitivity can be flexibly changed according to the usage, based on the usage location, installation environment, actual situation of the installed store, etc. It is possible to switch to

本発明によれば、発光素子の発光時間を変更するだけで、製品毎のばらつきを吸収し、媒体の検知感度を安定させることができるため、機器を安価に構成することができる。   According to the present invention, it is possible to absorb the variation of each product and stabilize the detection sensitivity of the medium only by changing the light emission time of the light emitting element, so that the device can be configured at low cost.

図1は、本発明の一実施形態に係る媒体検知装置を備えた釣銭機の平面図である。FIG. 1 is a plan view of a change machine including a medium detection device according to an embodiment of the present invention. 図2は、図1に示す釣銭機の正面図である。FIG. 2 is a front view of the change machine shown in FIG. 図3は、硬貨処理部の投入口の構成を模式的に示す平面図である。FIG. 3 is a plan view schematically showing the configuration of the slot of the coin processing unit. 図4は、図3に示す投入口の内部構造を示す側面図である。FIG. 4 is a side view showing the internal structure of the inlet shown in FIG. 図5は、本発明の一実施形態に係る媒体検知装置の制御系統を示すブロック図である。FIG. 5 is a block diagram showing a control system of the medium detection device according to the embodiment of the present invention. 図6は、図5に示す媒体検知装置の検出部を構成する発光・受光回路の構成例を示す概略回路図である。FIG. 6 is a schematic circuit diagram illustrating a configuration example of a light emitting / receiving circuit that constitutes a detection unit of the medium detection device illustrated in FIG. 5. 図7は、媒体検知装置による発光素子の発光時間の設定方法の一例を示すフローチャートである。FIG. 7 is a flowchart illustrating an example of a method for setting the light emission time of the light emitting element by the medium detection device. 図8は、発光素子による発光タイミングの一例を示すタイムチャートである。FIG. 8 is a time chart showing an example of light emission timing by the light emitting element. 図9は、図8に示す発光タイミングに対する受光素子の受光状態を示すタイムチャートである。FIG. 9 is a time chart showing the light receiving state of the light receiving element with respect to the light emission timing shown in FIG.

以下、本発明に係る媒体検知装置について、この装置を備えた釣銭機との関係で好適な実施の形態を挙げ、添付の図面を参照しながら詳細に説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, a medium detection device according to the present invention will be described in detail with reference to the accompanying drawings by giving preferred embodiments in relation to a change machine equipped with the device.

図1は、本発明の一実施形態に係る媒体検知装置10を備えた釣銭機12の平面図であり、図2は、図1に示す釣銭機12の正面図である。   FIG. 1 is a plan view of a change machine 12 including a medium detection device 10 according to an embodiment of the present invention, and FIG. 2 is a front view of the change machine 12 shown in FIG.

図1及び図2に示すように、釣銭機12は、硬貨の入金及び出金を担当する硬貨処理部14と、紙幣の入金及び出金を担当する紙幣処理部16とを備え、上位機となるPOS端末18と接続され、スーパーマーケット等の店舗において預り金の入金や釣銭の出金を自動で行うレジシステムを構成している。POS端末18は、例えば、硬貨処理部14に設けられた上位インターフェース12aを介して接続される。   As shown in FIG.1 and FIG.2, the change machine 12 is provided with the coin processing part 14 in charge of the deposit and withdrawal of a coin, and the banknote process part 16 in charge of the deposit and withdrawal of a banknote, The cash register system is connected to the POS terminal 18 and automatically deposits deposits and changes in a store such as a supermarket. The POS terminal 18 is connected via, for example, a host interface 12a provided in the coin processing unit 14.

硬貨処理部14は、投入口20に投入された預り金となる硬貨を内部に収納する一方、出金指令に基づき釣銭となる硬貨を出金口22から外部に払出す装置である。硬貨処理部14の上面には当該釣銭機12への入金額や出金額等を表示し、さらに各種設定入力を行うための操作表示部24が設けられている。紙幣処理部16は、投入口26に投入された預り金となる紙幣を内部に収納する一方、出金指令に基づき釣銭となる紙幣を出金口28から外部に払出す装置である。紙幣処理部16の下部には、内部に収納した紙幣を回収する際に使用する回収庫30が設けられている。   The coin processing unit 14 is a device that stores coins to be deposited into the insertion slot 20 inside, and pays out coins to be changed from the withdrawal slot 22 to the outside based on a withdrawal command. On the upper surface of the coin processing unit 14, an operation display unit 24 for displaying the amount of money to and from the change machine 12, the amount of money to be paid, etc., and for inputting various settings is provided. The banknote processing unit 16 is a device that stores therein banknotes to be deposited into the insertion slot 26 and pays out banknotes to be changed from the withdrawal slot 28 based on a withdrawal command. At the lower part of the banknote processing unit 16, a collection box 30 used for collecting banknotes stored therein is provided.

図1に示すように、本実施形態に係る釣銭機12では、硬貨処理部14の投入口20に投入される硬貨の検知用として、該投入口20に媒体検知装置10を設けている。紙幣処理部16の投入口26にも同様な媒体検知装置(図示せず)を設けているが、以下では、硬貨処理部14の投入口20に設けた構成を例示して本実施形態に係る媒体検知装置10を説明する。   As shown in FIG. 1, in the change machine 12 according to the present embodiment, a medium detection device 10 is provided at the insertion slot 20 for detecting coins inserted into the insertion slot 20 of the coin processing unit 14. A similar medium detection device (not shown) is also provided at the insertion port 26 of the banknote processing unit 16, but in the following, the configuration provided at the insertion port 20 of the coin processing unit 14 is illustrated as an example. The medium detection device 10 will be described.

図3は、硬貨処理部14の投入口20の構成を模式的に示す平面図であり、図4は、図3に示す投入口20の内部構造を示す側面図である。   FIG. 3 is a plan view schematically showing the configuration of the insertion slot 20 of the coin processing unit 14, and FIG. 4 is a side view showing the internal structure of the insertion slot 20 shown in FIG.

図3及び図4に示すように、投入口20は、上方から硬貨32を投入可能な漏斗形状を有する。投入口20の側面には、媒体検知装置10の検出部(光センサ)34を構成する発光素子34a及び受光素子34bが複数組(本実施形態では3組)設けられている。同じ組となる発光素子34aと受光素子34bは、投入された硬貨32が落下する空間を挟んで互いに対向配置されており、発光素子34aから発せられた光を対向する受光素子34bで受光し、この光が硬貨32で遮光されることで該硬貨32の投入を検知する。   As shown in FIGS. 3 and 4, the insertion port 20 has a funnel shape in which a coin 32 can be inserted from above. A plurality of sets (three sets in the present embodiment) of light-emitting elements 34 a and light-receiving elements 34 b constituting the detection unit (light sensor) 34 of the medium detection device 10 are provided on the side surface of the insertion port 20. The light emitting element 34a and the light receiving element 34b, which are the same set, are arranged opposite to each other across a space where the inserted coin 32 falls, and the light emitted from the light emitting element 34a is received by the opposing light receiving element 34b, When this light is shielded by the coin 32, the insertion of the coin 32 is detected.

投入口20には、底部を構成する無端状の搬送ベルト36と、搬送ベルト36による硬貨32の搬送方向下流側でその搬送面と対向し、該搬送ベルト36と反対方向に回転するリバースローラ38とが設けられている。搬送ベルト36によって搬送されつつリバースローラ38によって1枚ずつ繰出された硬貨32は、その下流側に設けられた無端状の搬送ベルト40と搬送板42との間をさらに搬送され、釣銭機12の内部に入金される。   The insertion port 20 has an endless transport belt 36 constituting the bottom, and a reverse roller 38 that faces the transport surface downstream of the transport direction of the coin 32 by the transport belt 36 and rotates in a direction opposite to the transport belt 36. And are provided. The coins 32 fed one by one by the reverse roller 38 while being transported by the transport belt 36 are further transported between an endless transport belt 40 and a transport plate 42 provided on the downstream side of the coin 32, and Deposited inside.

図5は、本発明の一実施形態に係る媒体検知装置10の制御系統を示すブロック図であり、図6は、図5に示す媒体検知装置10の検出部34を構成する発光・受光回路の構成例を示す概略回路図である。   FIG. 5 is a block diagram showing a control system of the medium detection device 10 according to an embodiment of the present invention, and FIG. 6 shows a light emission / light reception circuit constituting the detection unit 34 of the medium detection device 10 shown in FIG. It is a schematic circuit diagram which shows a structural example.

図5に示すように、媒体検知装置10の制御系統は、記憶部44と、発光制御部46と、発光素子34aと、受光素子34bを有する受光部48と、電圧比較器50と、発光時間設定部52とを備える。   As shown in FIG. 5, the control system of the medium detection apparatus 10 includes a storage unit 44, a light emission control unit 46, a light emitting element 34a, a light receiving unit 48 having a light receiving element 34b, a voltage comparator 50, and a light emission time. A setting unit 52.

記憶部44は、読書き可能なメモリであり、発光制御部46によって駆動制御される発光素子34aの発光時間及び消灯時間を記憶している。記憶部44に記憶された発光時間は、発光時間設定部52で新たに算出・設定された発光時間に書き換えられることがある。   The storage unit 44 is a readable / writable memory, and stores the light emission time and light extinction time of the light emitting element 34 a that is driven and controlled by the light emission control unit 46. The light emission time stored in the storage unit 44 may be rewritten to the light emission time newly calculated and set by the light emission time setting unit 52.

発光制御部46は、記憶部44に記憶された設定に基づき、発光素子34aの発光時間及び消灯時間を制御する制御部である。   The light emission control unit 46 is a control unit that controls the light emission time and the light extinction time of the light emitting element 34 a based on the settings stored in the storage unit 44.

発光素子34aは、例えば、LED(発光ダイオード)である。図6に示すように、発光素子34a側の回路は、抵抗R1,R2,R3と、トランジスタQとを有する。   The light emitting element 34a is, for example, an LED (light emitting diode). As shown in FIG. 6, the circuit on the light emitting element 34a side includes resistors R1, R2, and R3 and a transistor Q.

受光部48は、受光素子34bを有し、受光素子34bでの受光量を時間要素に変換して受光信号を発生する。受光素子34bは、例えば、フォトトランジスタである。図6に示すように、受光素子34b側の回路は、抵抗R4,R5,R6,R7と、電圧比較器50とを備える。   The light receiving unit 48 includes a light receiving element 34b, and converts the amount of light received by the light receiving element 34b into a time element to generate a light receiving signal. The light receiving element 34b is, for example, a phototransistor. As shown in FIG. 6, the circuit on the light receiving element 34b side includes resistors R4, R5, R6, and R7, and a voltage comparator 50.

電圧比較器50は、2つの入力電圧を比較して2値化して出力するコンパレータである。電圧比較器50では、プラス側の入力端子に受光素子34bからの出力電圧が入力され、マイナス側の入力端子に受光素子34bの電源電圧として、例えば、プルアップ電圧(5V)の中央値(例えば、2.5V)が入力される。   The voltage comparator 50 is a comparator that compares two input voltages, binarizes them, and outputs them. In the voltage comparator 50, the output voltage from the light receiving element 34b is input to the plus side input terminal, and the power supply voltage of the light receiving element 34b is input to the minus side input terminal, for example, the median value (for example, pull-up voltage (5V)) 2.5V) is input.

発光時間設定部52は、記憶部44に記憶された発光時間を変更し、変更後の発光時間を該記憶部44に設定するものであり、詳細は後述するが、発光素子34a及び受光素子34bの製品毎のばらつきを抑制するために受光素子34bでの遮光検知結果に基づき発光時間を適宜調整するものである。さらに、発光時間設定部52は、記憶部44に記憶された発光時間を予め操作表示部24等によって設定された複数の設定値(本実施形態では、感度優先設定値、耐汚れ優先設定値)に基づき変更する感度設定部54を備える。感度設定部54により、発光素子34a及び受光素子34bでの検知感度を当該釣銭機12の設置店舗の環境や実情に適した設定とすることができる。   The light emission time setting unit 52 changes the light emission time stored in the storage unit 44, and sets the light emission time after the change in the storage unit 44. Although details will be described later, the light emitting element 34a and the light receiving element 34b. The light emission time is appropriately adjusted based on the result of the light shielding detection by the light receiving element 34b in order to suppress variations among products. Further, the light emission time setting unit 52 has a plurality of setting values (in this embodiment, sensitivity priority setting value, anti-smudge priority setting value) in which the light emission time stored in the storage unit 44 is set in advance by the operation display unit 24 or the like. A sensitivity setting unit 54 that changes based on The sensitivity setting unit 54 can set the detection sensitivity of the light emitting element 34a and the light receiving element 34b to a setting suitable for the environment and actual situation of the store where the change machine 12 is installed.

ところで、このような媒体検知装置10において、硬貨32のような不透過物体の有無検出は、発光素子34aを光らせたままの状態を例とすると、ディジタル的な有り/無しの扱いとして、硬貨32の未検出時(透光時)には受光素子34b側が飽和電圧(図6のB部では、略0V)となり、硬貨32の検出時(遮光時)には受光素子34b側が電源電圧(図6のB部では、例えばプルアップ電圧の5V)となる。   By the way, in such a medium detection apparatus 10, the presence / absence detection of an impermeable object such as the coin 32 is treated as a digital presence / absence of the coin 32 by taking the light emitting element 34a as an example. When light is not detected (when light is transmitted), the light receiving element 34b side is at a saturation voltage (approximately 0 V in the portion B in FIG. 6), and when the coin 32 is detected (when light is blocked), the light receiving element 34b side is at the power supply voltage (FIG. 6). In the part B, for example, the pull-up voltage is 5 V).

ところが、実際には、フォトトランジスタのような受光素子34bは、コレクタ−ベース間に静電容量Cobを有し、負荷抵抗RLとにより等価的に積分回路となり、時定数CRから、応答時間(ターンオン時間)t=a(係数)×Cob×hFE×RL、の遅れ時間を生じることになる。従って、発光素子34aを光らせても(ON)、即時には上記したような飽和電圧とはならず、時定数CRにより徐々に飽和電圧(0V)に到達する。他方、飽和電圧に到達する前に発光素子34aを消すと(OFF)、時定数CRにより徐々にプルアップ電圧(5V)に到達する三角波形を示す。   However, in actuality, the light receiving element 34b such as a phototransistor has a capacitance Cob between the collector and the base, and is equivalently integrated by the load resistor RL. From the time constant CR, the response time (turn-on) Time) t = a (coefficient) × Cob × hFE × RL. Therefore, even if the light emitting element 34a is lit (ON), the saturation voltage is not instantaneously reached but gradually reaches the saturation voltage (0 V) due to the time constant CR. On the other hand, when the light emitting element 34a is turned off before reaching the saturation voltage (OFF), a triangular waveform that gradually reaches the pull-up voltage (5V) by the time constant CR is shown.

なお、上式におけるhFEは受光のエネルギを電流に変換する感度であり、受光素子34bの製品毎のばらつきや汚れによる受光量の減少によって電流値が変わり、発光素子34aのON/OFFに対する追従性が悪化(遅延)する。このため、所定時間で発光素子34aをON/OFFした場合、汚れの無い状態では、飽和部分を持った台形波形であっても、汚れが進むと飽和する時間が減少して行き、さらに汚れて光電量が減ると三角波形となる。逆に汚れの無い、十分な光電量が得られる状態であっても、発光素子34a側のON/OFFの間隔を短くすることで、時定数CRにより三角波形を得ることができる。つまり、発光素子34aのON/OFFの時間を通常の時間より短くすることで、素子のばらつきや汚れによる光電流の現象を捉えることが可能となる。   Note that hFE in the above equation is a sensitivity for converting received light energy into current, and the current value changes due to variations in the light receiving element 34b for each product or a decrease in the amount of light received due to dirt, and the followability to ON / OFF of the light emitting element 34a. Worsens (delays). For this reason, when the light emitting element 34a is turned on / off for a predetermined time, even if it is a trapezoidal waveform having a saturated portion in a state without contamination, as the contamination progresses, the time for saturation decreases and further contamination occurs. When the amount of light decreases, a triangular waveform is obtained. On the contrary, even in a state where a sufficient amount of photoelectricity is obtained without contamination, a triangular waveform can be obtained with the time constant CR by shortening the ON / OFF interval on the light emitting element 34a side. That is, by making the ON / OFF time of the light emitting element 34a shorter than the normal time, it is possible to capture the phenomenon of photocurrent due to element variation and contamination.

そこで、上記した事象を回路の演算部で認識するために、図6の回路図では、電圧比較器50の一方の入力電圧としてプルアップ電圧の中央値(2.5V)を与え、もう一方の入力電圧として、受光素子34bからの電圧を与えている。これにより、飽和している受光電圧時にはC部に0Vが得られ、発光側がOFF又は硬貨を検出している場合にはC部に5V(プルアップ電圧)が得られることになる。   Therefore, in order to recognize the above-described event in the arithmetic unit of the circuit, in the circuit diagram of FIG. 6, the median value (2.5 V) of the pull-up voltage is given as one input voltage of the voltage comparator 50, and the other A voltage from the light receiving element 34b is given as an input voltage. As a result, 0V is obtained at the C portion when the received light voltage is saturated, and 5V (pull-up voltage) is obtained at the C portion when the light emitting side is OFF or a coin is detected.

従って、発光素子34aを短い発光時間から徐々に長い点灯時間に走査すれば、C部にて5Vから0Vに変化する時間を求めることができる。そして、5Vから0VにC部の変化があった時間近傍に発光時間を設定した場合、硬貨32有りを見つける感度が高くなるが、逆に多少の汚れがあっても硬貨32が有りと検知する誤検知の状態になり易くなると言うことができる。   Therefore, if the light emitting element 34a is scanned from a short light emission time to a gradually long lighting time, the time required to change from 5 V to 0 V can be obtained at the C portion. When the light emission time is set in the vicinity of the time when the C portion has changed from 5V to 0V, the sensitivity of finding the presence of the coin 32 increases, but conversely, the presence of the coin 32 is detected even if there is some dirt. It can be said that it becomes easy to be in a false detection state.

次に、以上のように構成された媒体検知装置10の一動作例を説明する。   Next, an operation example of the medium detection device 10 configured as described above will be described.

図7は、媒体検知装置10による発光素子34aの発光時間の設定方法の一例を示すフローチャートである。   FIG. 7 is a flowchart illustrating an example of a method for setting the light emission time of the light emitting element 34 a by the medium detection device 10.

図7に示す発光素子34aの発光時間の設定動作は、例えば、釣銭機12における通常の検知動作とは別の専用の設定モードで任意のタイミングで実行されてもよく、釣銭機12における通常の検知動作(入金動作)の終了後に適宜自動的に実行されてもよく、釣銭機12の設置時の初期設定の一つとして実行されてもよい。   The light emission time setting operation of the light emitting element 34a shown in FIG. 7 may be executed at an arbitrary timing in a dedicated setting mode different from the normal detection operation in the change machine 12, for example. It may be automatically executed as appropriate after the end of the detection operation (payment operation), or may be executed as one of initial settings when the change machine 12 is installed.

先ず、図7のステップS1では、記憶部44に記憶されている発光時間メモリを初期化し、初期設定の発光時間メモリ値を設定する。続いて、ステップS2において、発光制御部46の制御下に、ステップS1で設定された発光時間メモリ値で発光素子34aを発光させる。   First, in step S1 of FIG. 7, the light emission time memory stored in the storage unit 44 is initialized, and an initial light emission time memory value is set. Subsequently, in step S2, the light emitting element 34a is caused to emit light with the light emission time memory value set in step S1 under the control of the light emission control unit 46.

ステップS3では、発光制御部46が発光素子34aによる発光時間が発光時間メモリ値まで到達したか否かの判定を継続し(ステップS3のNo)、発光時間メモリ値まで到達したと判定された場合には(ステップS3のYes)、そのときの発光素子34bでの遮光状態から透光状態までの遮光/発光状態(切り換わり時間T1)を記憶部44に記録し、発光素子34aを消灯する(ステップS4)。   In step S3, the light emission control unit 46 continues to determine whether or not the light emission time by the light emitting element 34a has reached the light emission time memory value (No in step S3), and when it is determined that the light emission time memory value has been reached. (Yes in step S3), the light blocking / light emitting state (switching time T1) from the light blocking state to the light transmitting state in the light emitting element 34b at that time is recorded in the storage unit 44, and the light emitting element 34a is turned off ( Step S4).

次に、ステップS6において、ステップS5の消灯の直前に受光素子34bで受光有りの状態が検知されているか否か、つまり受光部48が発光素子34bが発光したにも関わらず遮光状態のままであるか、それとも受光状態が検知されたか否かを判定する(受光ステップ及び比較ステップ)。そして、ステップS6の判定結果により、遮光が検知されている場合には(ステップS6のYes)、ステップS7〜S9を実行し、受光が検知された場合には(ステップS6のNo)、ステップS10〜S12を実行する。   Next, in step S6, whether or not the light receiving element 34b detects a light receiving state immediately before the light is turned off in step S5, that is, the light receiving unit 48 remains in the light shielding state even though the light emitting element 34b emits light. It is determined whether or not a light reception state is detected (light reception step and comparison step). If the light shielding is detected based on the determination result in step S6 (Yes in step S6), steps S7 to S9 are executed. If the light reception is detected (No in step S6), step S10 is performed. ˜S12 is executed.

ここで、ステップS1〜S6での発光素子34aの発光(点灯)に基づく受光素子34bでの遮光や透光の検知と、遮光状態と透光状態との切り換わり時間T1とについて、図8及び図9のタイムチャートを参照して具体的に説明する。   Here, with respect to detection of light shielding or light transmission in the light receiving element 34b based on light emission (lighting) of the light emitting element 34a in steps S1 to S6, and a switching time T1 between the light shielding state and the light transmitting state, FIG. A specific description will be given with reference to the time chart of FIG.

図8は、発光素子34aによる発光タイミングの一例を示すタイムチャートであり、図9は、図8に示す発光タイミングに対する受光素子34bの受光状態を示すタイムチャートである。図8中に示すA部は、図6中のA部での電圧の状態を示しており、図8中のチャート(1)は時刻t1のみの短時間発光が行われ、チャート(3)は時刻t1〜t3までの長時間発光が行われ、チャート(2)は発光時間設定部52による発光時間の調整時に時刻t1〜t2までの時間発光を行った場合の状態を示している。また、図9中に示すB部及びC部は、それぞれ発光素子34aの発光中の図6中のB部及びC部での電圧の状態を示しており、図9中のチャート(4)は図8中のチャート(1)に対応し、図9中のチャート(5)は図8中のチャート(2)に対応し、図9中のチャート(6)は図8中のチャート(3)に対応している。   FIG. 8 is a time chart showing an example of light emission timing by the light emitting element 34a, and FIG. 9 is a time chart showing a light receiving state of the light receiving element 34b with respect to the light emission timing shown in FIG. Part A in FIG. 8 shows the voltage state at part A in FIG. 6. Chart (1) in FIG. 8 emits light for a short time only at time t1, and chart (3) shows Light emission is performed for a long time from time t1 to time t3, and chart (2) shows a state in which light emission is performed for time from time t1 to time t2 when the light emission time setting unit 52 adjusts the light emission time. Moreover, the B part and C part shown in FIG. 9 have each shown the state of the voltage in the B part and C part in FIG. 6 during light emission of the light emitting element 34a, The chart (4) in FIG. 8 corresponds to chart (1), chart (5) in FIG. 9 corresponds to chart (2) in FIG. 8, and chart (6) in FIG. 9 corresponds to chart (3) in FIG. It corresponds to.

発光素子34aの寿命の要素には、電流値×時間がある。そこで、発光素子34aを長期に渡って使用するために、図8に示すように間欠発光させることが一般的である。そこで、本実施形態では、所定の定周期内で発光素子34aを所定時間発光させ、消灯の直前に受光しているかを判定することで、ステップS6の遮光検知を行うものとした。   The element of the lifetime of the light emitting element 34a is current value × time. Therefore, in order to use the light emitting element 34a for a long period of time, it is common to intermittently emit light as shown in FIG. Therefore, in the present embodiment, the light-shielding detection in step S6 is performed by determining whether the light-emitting element 34a emits light for a predetermined time within a predetermined fixed period and determining whether light is received immediately before turning off.

より具体的には、本実施形態では、検出部34に硬貨32が無い状態において、1ms(ミリ秒)の定周期内(図8中の時刻t1〜t20間のインターバル)で、0.1msの間発光させ(図8中の時刻t1〜t2間)、消灯の直前に受光素子34bで受光がなされたか否かを判定する。すなわち、受光部48は、この0.1msの発光時間内で0.01ms刻みで受光検知し、図7のステップS4では受光素子34bでの受光量を時間要素に変換して発生させた受光信号を電圧比較器50で2値化することにより、遮光状態(受光無し)の状態から非遮光状態(受光有り)の状態に変移したときの発光時間を切り換わり時間T1として求め、これを記憶部44に記録する。   More specifically, in the present embodiment, in a state where no coin 32 is present in the detection unit 34, within a fixed period of 1 ms (milliseconds) (interval between times t1 to t20 in FIG. 8), 0.1 ms The light is emitted (between times t1 and t2 in FIG. 8), and it is determined whether or not the light receiving element 34b has received light immediately before the light is turned off. That is, the light receiving unit 48 detects light reception in increments of 0.01 ms within the light emission time of 0.1 ms, and in step S4 in FIG. 7, the light reception signal generated by converting the amount of light received by the light receiving element 34b into a time element. Is binarized by the voltage comparator 50 to obtain the light emission time when switching from the light-shielded state (no light reception) to the non-light-shielded state (light reception) as the switching time T1, which is stored in the storage unit. 44.

例えば、図9中のチャート(4)では、図6中のB部での電圧がプルアップ電圧(5V)の中央値(2.5V)を示す中央線Mに到達していないため、電圧比較器50により、C部の電圧が飽和電圧(0V)となり、受光有りの状態に変移しない。一方、図9中のチャート(5)では、図6中のB部での電圧が中央線Mを超えるため、B部での電圧が中央線Mを超えている間はC部の電圧がプルアップ電圧(5V)となり、受光有りの状態に変移する。同様に、図9中のチャート(6)では、図6中のB部での電圧が中央線Mを超えるため、B部での電圧が中央線Mを超えている間はC部の電圧がプルアップ電圧(5V)となり、受光有りの状態に変移する。そして、これらチャート(5),(6)のように、受光無しの状態から受光有りの状態に変移したところの発光時間を切り換わり時間T1として求める。   For example, in the chart (4) in FIG. 9, since the voltage at the B portion in FIG. 6 has not reached the center line M indicating the median value (2.5V) of the pull-up voltage (5V), the voltage comparison The voltage of the C section becomes the saturation voltage (0V) by the device 50, and does not change to the state of receiving light. On the other hand, in the chart (5) in FIG. 9, since the voltage at the B portion in FIG. 6 exceeds the center line M, the voltage at the C portion is pulled while the voltage at the B portion exceeds the center line M. It becomes an up voltage (5V) and shifts to a state with light reception. Similarly, in the chart (6) in FIG. 9, since the voltage at the B portion in FIG. 6 exceeds the center line M, the voltage at the C portion is high while the voltage at the B portion exceeds the center line M. It becomes a pull-up voltage (5V) and changes to a state with light reception. Then, as shown in these charts (5) and (6), the light emission time at the time of transition from the state without light reception to the state with light reception is determined as the switching time T1.

図7に戻り、先ず、ステップS6の遮光検知判定において、遮光が検知されている場合は(ステップS6のYes)、今回のステップS2〜S5で実施された発光時間メモリ値での発光時間では受光有りの状態への変移がなされず、切り換わり時間T1を得ることができなかったということになる(例えば、図9中のチャート(4)参照)。そこで、発光時間設定部52は、ステップS7において、(今回の)発光時間メモリ値に所定の調査時間(例えば、図8中のチャート(1)をチャート(2)とする時刻t2分の時間0.1ms)を加算し、新たな発光メモリ値として記憶部44に記録し、発光素子34aでの発光時間を延長するように調整する(発光時間設定ステップ)。   Returning to FIG. 7, first, in the light blocking detection determination in step S6, if light blocking is detected (Yes in step S6), light reception is performed in the light emission time with the light emission time memory values performed in steps S2 to S5 of this time. This means that the transition to the present state is not performed and the switching time T1 cannot be obtained (see, for example, the chart (4) in FIG. 9). Therefore, in step S7, the light emission time setting unit 52 sets the (current) light emission time memory value to a predetermined investigation time (for example, time 0 for time t2 with the chart (1) in FIG. 8 as the chart (2)). .1 ms) is added, recorded as a new light emission memory value in the storage unit 44, and adjusted to extend the light emission time of the light emitting element 34a (light emission time setting step).

ステップS8では、ステップS7で新たに設定した発光時間メモリ値が、予め規定されている設定可能時間範囲内であるか否かを判定する。この設定可能時間範囲とは、発光素子34aの発光時間の上限値を規定するものであり、発光時間が過度に延長され、発光素子34aの寿命に悪影響を及ぼすことを抑制するために設定されている。このステップS8において、発光時間メモリ値が設定可能時間範囲外であると判断された場合には(ステップS8のNo)、設定不可エラーをセットし(ステップS9)、処理を終了する。   In step S8, it is determined whether or not the light emission time memory value newly set in step S7 is within a preset settable time range. The settable time range defines an upper limit value of the light emission time of the light emitting element 34a, and is set to prevent the light emission time from being excessively extended and adversely affecting the life of the light emitting element 34a. Yes. If it is determined in step S8 that the light emission time memory value is outside the settable time range (No in step S8), a setting impossible error is set (step S9), and the process ends.

一方、ステップS8において、発光時間メモリ値が設定可能時間範囲内であると判断された場合には(ステップS8のYes)、ステップS2に戻り、ステップS7で新たに設定された発光時間メモリ値で再び発光素子34aを発光させる。このステップS2〜S8までの動作が繰り返されることにより、実行の都度、ステップS7で加算される調査時間分だけ発光時間が延長される。   On the other hand, if it is determined in step S8 that the light emission time memory value is within the settable time range (Yes in step S8), the process returns to step S2, and the light emission time memory value newly set in step S7 is used. The light emitting element 34a emits light again. By repeating the operations from step S2 to step S8, the light emission time is extended by the investigation time added in step S7 each time it is executed.

その結果、ステップS6の遮光検知判定において、遮光が検知されていない場合、つまり受光が検知された場合には(ステップS6のNo)、今回のステップS2〜S5で実施された発光時間メモリ値での発光時間で受光有りの状態への変移がなされ、切り換わり時間T1が得られたということになる(例えば、図9中のチャート(5)参照)。そこで、ステップS10が実行され、当該媒体検知装置10における感度設定部54に対し、予め遮光優先の設定がなされているか(ステップS10のYes)、又は予め耐汚れ優先の設定がなされているか(ステップ10のNo)が判断される。   As a result, when the light shielding is not detected in the light shielding detection determination in step S6, that is, when the light reception is detected (No in step S6), the light emission time memory value implemented in the current steps S2 to S5 is used. That is, the transition to the light receiving state is made during the light emission time, and the switching time T1 is obtained (see, for example, the chart (5) in FIG. 9). Therefore, step S10 is executed, and whether the light shielding priority is set in advance for the sensitivity setting unit 54 in the medium detection device 10 (Yes in step S10) or whether the anti-dirt priority is set in advance (step S10). 10 No) is determined.

具体的には、上記のような切り換わり時間T1に関し、受光素子34bでの受光量が多ければ、短い時間で受光有りの状態となるが、素子の汚れが進むと、発光素子34aを長い時間発光させないと受光有りの状態に切り換えることができなくなる。換言すれば、短時間で受光有りとなる検出部34では、固定の発光時間(例えば、0.1ms)の発光では十分飽和(0V)しているので硬貨32の検出が難しく、反対に長時間で受光有りに変移する検出部34では、所定時間の発光をした場合、硬貨32の検出が容易、つまり検出感度が高い状態となる。   Specifically, with respect to the switching time T1 as described above, if the amount of light received by the light receiving element 34b is large, the light receiving state is reached in a short time. If the light is not emitted, it is impossible to switch to the light receiving state. In other words, the detection unit 34 that receives light in a short time is sufficiently saturated (0 V) with light emission for a fixed light emission time (for example, 0.1 ms), so it is difficult to detect the coin 32, and conversely for a long time. In the detection unit 34 that shifts to receiving light, the coin 32 is easily detected when light is emitted for a predetermined time, that is, the detection sensitivity is high.

そこで、本実施形態では、媒体検知装置10毎に、それが搭載される釣銭機12等の設置環境や設置店舗等の事情に応じて、検出変移時の発光時間を上記ステップS4のようにして求め、さらに、検出感度を優先させる設定(感度優先設定)とするか、又は、汚れに対する耐性を優先させる設定(耐汚れ優先設定)とするかを、予め操作表示部24等によって設定しておく。   Therefore, in the present embodiment, for each medium detection device 10, the light emission time at the time of detection transition is set as in step S4 according to the installation environment such as the change machine 12 on which the medium detection device 10 is installed and the circumstances of the installation store. Further, whether to set detection sensitivity to priority (sensitivity priority setting) or to prioritize dirt resistance (stain resistance priority setting) is set in advance by the operation display unit 24 or the like. .

そして、ステップS10の遮光優先判定において、感度優先設定が設定されている場合には(ステップS10のYes)、ステップS11を実行し、感度設定部54は現在の発光時間メモリ値に所定の遮光優先時間を加算した新たな発光時間メモリ値(感度優先設定値)を算出し(感度設定ステップ)、処理を終了する。この感度優先設定値は、例えば、ステップS4で記録した切り換わり時間T1の1.5倍となるように設定されている。一方、耐汚れ優先設定が設定されている場合には(ステップS10のNo)、ステップS12を実行し、感度設定部54は現在の発光時間メモリ値に所定の安定化時間(耐汚れ優先時間)を加算した新たな発光時間メモリ値(耐汚れ優先設定値)を算出し(感度設定ステップ)、処理を終了する。この感度優先設定値は、例えば、ステップS4で記録した切り換わり時間T1の2.0倍となるように設定されている。以降、当該媒体検知装置10では、上記のように設定された新たな発光時間メモリ値(感度優先設定値又は耐汚れ優先設定値)によって発光素子34aを発光させる。なお、ステップS11によって感度優先設定とした後、汚れによって誤検知を発生するようになった場合には、自動的に発光時間を延ばす構成としてもよい。   If sensitivity priority setting is set in the shading priority determination in step S10 (Yes in step S10), step S11 is executed, and the sensitivity setting unit 54 sets a predetermined light shielding priority to the current light emission time memory value. A new light emission time memory value (sensitivity priority setting value) obtained by adding the time is calculated (sensitivity setting step), and the process ends. This sensitivity priority setting value is set to be 1.5 times the switching time T1 recorded in step S4, for example. On the other hand, if the stain resistance priority setting is set (No in step S10), step S12 is executed, and the sensitivity setting unit 54 sets a predetermined stabilization time (dirt resistance priority time) to the current light emission time memory value. A new light emission time memory value (anti-smudge priority setting value) is added (sensitivity setting step), and the process ends. This sensitivity priority setting value is set to be 2.0 times the switching time T1 recorded in step S4, for example. Thereafter, the medium detection device 10 causes the light emitting element 34a to emit light with the new light emission time memory value (sensitivity priority setting value or antifouling priority setting value) set as described above. It should be noted that, after setting the sensitivity priority in step S11, if a false detection occurs due to contamination, the light emission time may be automatically extended.

以上のように、本実施形態に係る媒体検知装置10は、発光素子34aの発光時間及び消灯時間を制御する発光制御部46と、発光時間及び消灯時間を記憶する記憶部44と、時定数CRを有し、受光素子34bでの受光量を時間要素に変換して受光信号を発生する受光部48と、該受光信号を2値化する電圧比較器(比較部)50と、2値化した受光信号に基づき記憶部44に記憶された発光時間を変更し、変更後の発光時間を該記憶部44に設定する発光時間設定部52とを備える。   As described above, the medium detection device 10 according to the present embodiment includes the light emission control unit 46 that controls the light emission time and the light emission time of the light emitting element 34a, the storage unit 44 that stores the light emission time and the light emission time, and the time constant CR. A light receiving unit 48 for generating a light receiving signal by converting the amount of light received by the light receiving element 34b into a time element, and a voltage comparator (comparing unit) 50 for binarizing the light receiving signal. A light emission time setting unit 52 configured to change the light emission time stored in the storage unit 44 based on the light reception signal and set the light emission time after the change in the storage unit 44;

このように、発光素子34aでの発光時間を変更し設定する発光時間設定部52を有することにより、発光時間を調整しながら受光素子34bでの受光検出時の発光時間を求め、そのときの発光時間で発光素子34aを発光させることができる。これにより、媒体検知装置10の機器側で発光電流を可変としたり、受光感度をアンプにて可変したりする対策を講じずに、上記のように発光時間を変更するだけで、製品毎のばらつきを吸収し、媒体の検知感度を安定させることができ、機器を安価に構成することができる。例えば、本実施形態では、図7中のステップS2〜S8の処理により発光素子34a及び受光素子34bの製品毎のばらつきを考慮した発光時間を設定できる。   Thus, by having the light emission time setting unit 52 that changes and sets the light emission time at the light emitting element 34a, the light emission time at the time of light reception detection at the light receiving element 34b is obtained while adjusting the light emission time, and the light emission at that time The light emitting element 34a can emit light over time. As a result, it is possible to change the light emission current on the device side of the medium detection device 10 or to change the light emission sensitivity by changing the light emission time as described above without taking measures to change the light receiving sensitivity with an amplifier. Can be absorbed, the detection sensitivity of the medium can be stabilized, and the apparatus can be configured at low cost. For example, in the present embodiment, it is possible to set the light emission time in consideration of the variation of each product of the light emitting element 34a and the light receiving element 34b by the processing of steps S2 to S8 in FIG.

また、媒体検知装置10では、記憶部44に記憶された発光時間を予め設定された複数の設定値(感度優先設定値又は耐汚れ優先設定値)に基づき変更することで、発光素子34a及び受光素子34bでの検知感度を変更する感度設定部54を備える。これにより、上記のように求めた受光検出時の発光時間を、さらに、予め設定された設定値によって変更することで、検知感度を変更することができ、当該媒体検知装置10の設置環境等に柔軟に且つ容易に対応することができる。例えば、本実施形態では、図7中のステップS10〜S12の処理により媒体検知装置10の設置環境等を考慮した発光時間を設定できる。   In the medium detection device 10, the light emission time stored in the storage unit 44 is changed based on a plurality of preset setting values (sensitivity priority setting value or anti-smudge priority setting value), so that the light emitting element 34 a and the light receiving element 34 are received. A sensitivity setting unit 54 that changes the detection sensitivity of the element 34b is provided. Thereby, the detection sensitivity can be changed by further changing the light emission time at the time of detecting the received light obtained as described above according to a preset value, so that the installation environment of the medium detection device 10 can be changed. It can respond flexibly and easily. For example, in the present embodiment, the light emission time can be set in consideration of the installation environment of the medium detection device 10 by the processing of steps S10 to S12 in FIG.

なお、本発明は、上記した実施形態に限定されるものではなく、本発明の主旨を逸脱しない範囲で自由に変更できることは勿論である。   It should be noted that the present invention is not limited to the above-described embodiment, and it is needless to say that the present invention can be freely changed without departing from the gist of the present invention.

例えば、上記実施形態に係る釣銭機12では、媒体検知装置10を硬貨処理部14の投入口20に設けた構成を例示したが、上記の通り媒体検知装置10は紙幣処理部16の投入口26に設けてもよく、硬貨処理部14や紙幣処理部16の出金口22,28に設けてもよい。さらには、媒体検知装置10は、釣銭機12の内部に設置された硬貨や紙幣の搬送路の途中や収納庫の入口又は出口等、当該釣銭機12で取扱う貨幣の検知用として適宜用いることができる。   For example, in the change machine 12 according to the above embodiment, the configuration in which the medium detection device 10 is provided in the insertion port 20 of the coin processing unit 14 is exemplified. It may be provided in the withdrawal port 22, 28 of the coin processing unit 14 or the banknote processing unit 16. Furthermore, the medium detection device 10 is appropriately used for detecting coins handled by the change machine 12, such as in the middle of a conveyance path of coins and bills installed in the change machine 12, or at the entrance or exit of a storage. it can.

また、上記のような媒体検知装置10は、釣銭機12以外、例えば、当該釣銭機12を設置した図示しない店舗の入出金機等での貨幣検知用として、さらには貨幣以外の物品の検知用として用いても勿論よい。   Further, the medium detection device 10 as described above is used for detecting money other than the change machine 12, for example, in a depositing / withdrawing machine in a store (not shown) where the change machine 12 is installed, and for detecting items other than money. Of course it may be used.

10 媒体検知装置
12 釣銭機
14 硬貨処理部
16 紙幣処理部
20,26 投入口
24 操作表示部
32 硬貨
34 検出部
34a 発光素子
34b 受光素子
44 記憶部
46 発光制御部
48 受光部
50 電圧比較器
52 発光時間設定部
54 感度設定部
DESCRIPTION OF SYMBOLS 10 Medium detection apparatus 12 Change machine 14 Coin processing part 16 Banknote processing part 20,26 Slot 24 Operation display part 32 Coin 34 Detection part 34a Light emitting element 34b Light receiving element 44 Memory | storage part 46 Light emission control part 48 Light receiving part 50 Voltage comparator 52 Light emission time setting section 54 Sensitivity setting section

Claims (7)

発光素子と、該発光素子が発した光を受光する受光素子とを備えた媒体検知装置であって、
前記発光素子の発光時間及び消灯時間を制御する発光制御部と、
前記発光時間及び消灯時間を記憶する記憶部と、
時定数を有し、前記受光素子での受光量を時間要素に変換して受光信号を発生する受光部と、
前記受光信号を2値化する比較部と、
前記2値化した受光信号に基づき前記記憶部に記憶された発光時間を変更し、変更後の発光時間を該記憶部に設定する発光時間設定部と、
前記記憶部に記憶された発光時間を予め設定された複数の設定値に基づき変更することで、前記発光素子及び前記受光素子での検知感度を変更する感度設定部と、
を備えることを特徴とする媒体検知装置。
A medium detection device including a light emitting element and a light receiving element that receives light emitted from the light emitting element,
A light emission control unit for controlling a light emission time and a light extinction time of the light emitting element;
A storage unit for storing the light emission time and the turn-off time;
A light receiving unit that has a time constant and generates a light reception signal by converting the amount of light received by the light receiving element into a time element;
A comparator for binarizing the received light signal;
A light emission time setting unit that changes the light emission time stored in the storage unit based on the binarized light reception signal, and sets the light emission time after the change in the storage unit;
A sensitivity setting unit that changes the detection sensitivity of the light emitting element and the light receiving element by changing the light emission time stored in the storage unit based on a plurality of preset setting values;
A medium detection apparatus comprising:
請求項記載の媒体検知装置において、
前記複数の設定値は、前記発光時間を前記受光素子による検出感度を優先させる設定とする感度優先設定値と、前記発光時間を前記発光素子及び前記受光素子の汚れに対する耐性を優先させる設定とする耐汚れ優先設定値とを含むことを特徴とする媒体検知装置。
The medium detection device according to claim 1 ,
The plurality of setting values are a sensitivity priority setting value in which the light emission time is set to give priority to detection sensitivity by the light receiving element, and the light emission time is set to give priority to resistance to contamination of the light emitting element and the light receiving element. A medium detection apparatus including a stain resistance priority setting value.
発光素子と、該発光素子が発した光を受光する受光素子とを用いた媒体検知方法であって、
時定数に基づき出力される前記受光素子での受光量を時間要素に変換して受光信号を発生する受光ステップと、
前記受光信号を2値化する比較ステップと、
前記2値化した受光信号に基づき前記発光素子の発光時間を変更する発光時間設定ステップと、
前記発光時間設定ステップで設定された発光時間を予め設定された複数の設定値に基づき変更することで、前記発光素子及び前記受光素子での検知感度を変更する感度設定ステップと、
を有することを特徴とする媒体検知方法。
A medium detection method using a light emitting element and a light receiving element that receives light emitted from the light emitting element,
A light receiving step for converting a received light amount at the light receiving element output based on a time constant into a time element to generate a light receiving signal;
A comparison step for binarizing the received light signal;
A light emission time setting step of changing a light emission time of the light emitting element based on the binarized light reception signal;
A sensitivity setting step of changing detection sensitivity in the light emitting element and the light receiving element by changing the light emission time set in the light emission time setting step based on a plurality of preset values;
A medium detection method characterized by comprising:
請求項記載の媒体検知方法において、
前記複数の設定値は、前記発光時間を前記受光素子による検出感度を優先させる設定とする感度優先設定値と、前記発光時間を前記発光素子及び前記受光素子の汚れに対する耐性を優先させる設定とする耐汚れ優先設定値とを含むことを特徴とする媒体検知方法。
The medium detection method according to claim 3 ,
The plurality of setting values are a sensitivity priority setting value in which the light emission time is set to give priority to detection sensitivity by the light receiving element, and the light emission time is set to give priority to resistance to contamination of the light emitting element and the light receiving element. A medium detection method comprising: a stain resistance priority setting value.
預り金の入金及び釣銭の出金を行う釣銭機であって、
発光素子と、該発光素子が発した光を受光する受光素子とを有し、当該釣銭機で取扱う貨幣を検知する媒体検知装置を備え、
前記媒体検知装置は、前記発光素子の発光時間及び消灯時間を制御する発光制御部と、
前記発光時間及び消灯時間を記憶する記憶部と、
時定数を有し、前記受光素子での受光量を時間要素に変換して受光信号を発生する受光部と、
前記受光信号を2値化する比較部と、
前記2値化した受光信号に基づき前記記憶部に記憶された発光時間を変更し、変更後の発光時間を該記憶部に設定する発光時間設定部と、
前記記憶部に記憶された発光時間を予め設定された複数の設定値に基づき変更することで、前記発光素子及び前記受光素子での検知感度を変更する感度設定部と、
を備えることを特徴とする釣銭機。
A change machine for depositing and depositing deposits,
A medium detecting device having a light emitting element and a light receiving element for receiving light emitted from the light emitting element, and detecting a currency handled by the change machine;
The medium detection device includes a light emission control unit that controls a light emission time and a light extinction time of the light emitting element;
A storage unit for storing the light emission time and the turn-off time;
A light receiving unit that has a time constant and generates a light reception signal by converting the amount of light received by the light receiving element into a time element;
A comparator for binarizing the received light signal;
A light emission time setting unit that changes the light emission time stored in the storage unit based on the binarized light reception signal, and sets the light emission time after the change in the storage unit;
A sensitivity setting unit that changes the detection sensitivity of the light emitting element and the light receiving element by changing the light emission time stored in the storage unit based on a plurality of preset setting values;
A change machine characterized by comprising:
請求項5記載の釣銭機において、In the change machine according to claim 5,
前記複数の設定値は、前記発光時間を前記受光素子による検出感度を優先させる設定とする感度優先設定値と、前記発光時間を前記発光素子及び前記受光素子の汚れに対する耐性を優先させる設定とする耐汚れ優先設定値とを含むことを特徴とする釣銭機。The plurality of setting values are a sensitivity priority setting value in which the light emission time is set to give priority to detection sensitivity by the light receiving element, and the light emission time is set to give priority to resistance to contamination of the light emitting element and the light receiving element. A change machine including a dirt-resistant priority setting value.
請求項5又は6記載の釣銭機において、In the change machine according to claim 5 or 6,
前記媒体検知装置は、少なくとも当該釣銭機における貨幣の投入口に設けられ、該投入口に投入される貨幣を検知することを特徴とする釣銭機。The medium detecting device is provided at least in a money slot in the change machine, and detects the money thrown into the slot.
JP2014001408A 2014-01-08 2014-01-08 Medium detection device, medium detection method, and change machine Active JP6361139B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014001408A JP6361139B2 (en) 2014-01-08 2014-01-08 Medium detection device, medium detection method, and change machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014001408A JP6361139B2 (en) 2014-01-08 2014-01-08 Medium detection device, medium detection method, and change machine

Publications (2)

Publication Number Publication Date
JP2015130084A JP2015130084A (en) 2015-07-16
JP6361139B2 true JP6361139B2 (en) 2018-07-25

Family

ID=53760754

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014001408A Active JP6361139B2 (en) 2014-01-08 2014-01-08 Medium detection device, medium detection method, and change machine

Country Status (1)

Country Link
JP (1) JP6361139B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0493790A (en) * 1990-08-09 1992-03-26 Tamura Electric Works Ltd Driving device of sensor
JP3962342B2 (en) * 2003-02-17 2007-08-22 ホーチキ株式会社 Photoelectric smoke detector
JP5862469B2 (en) * 2012-06-11 2016-02-16 沖電気工業株式会社 Cash processing equipment

Also Published As

Publication number Publication date
JP2015130084A (en) 2015-07-16

Similar Documents

Publication Publication Date Title
JP6296805B2 (en) Detection device
US4769532A (en) Apparatus for adjusting optical sensors with threshold memory
US6082732A (en) System for detecting superposed sheets
JP2013224909A5 (en) Sheet transport device
CN105913545A (en) Fluorescence and phosphorescence detection device, fluorescence and phosphorescence detection method, and paper-sheet processing device
JP2020536313A5 (en)
US20120199438A1 (en) Coin processing apparatus and method
JP6361139B2 (en) Medium detection device, medium detection method, and change machine
EP2085743B1 (en) Thickness sensor for measuring the thickness of sheet-like objects
JPH0333679A (en) Optical detector
KR101573656B1 (en) Currency processing device and method for detecting counterfeit thereof
JP2007094807A (en) Bill identification device
JP2015026241A (en) Teller device, merchandise sales data registration processing device, and merchandise sales data registration processing program
EP2790159A1 (en) Fluorescence and afterglow detection device and sheet processing apparatus
KR100997236B1 (en) Method and apparatus for sensor examination, and automatic machine with the same
JP2018144989A (en) Paper sheet processing unit
KR101252405B1 (en) Financial device
JP5536525B2 (en) Recording medium reception device
JP6266452B2 (en) Media handling device
JP7055296B2 (en) Optical sensor and counter
TW202219905A (en) Intelligent storage device and intelligent storage method
JP6790605B2 (en) Banknote identification device
KR101062315B1 (en) Apparatus for checking counterfeit bill and method thereof
JPH0814859B2 (en) Paper discrimination device
JP5804560B2 (en) Banknote recognition processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171107

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171222

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180529

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180611

R150 Certificate of patent or registration of utility model

Ref document number: 6361139

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250