JP3409108B2 - Full color photoelectric sensor - Google Patents
Full color photoelectric sensorInfo
- Publication number
- JP3409108B2 JP3409108B2 JP28766896A JP28766896A JP3409108B2 JP 3409108 B2 JP3409108 B2 JP 3409108B2 JP 28766896 A JP28766896 A JP 28766896A JP 28766896 A JP28766896 A JP 28766896A JP 3409108 B2 JP3409108 B2 JP 3409108B2
- Authority
- JP
- Japan
- Prior art keywords
- evaluation value
- light
- color
- hysteresis width
- photoelectric sensor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000011156 evaluation Methods 0.000 claims description 53
- 238000001514 detection method Methods 0.000 claims description 39
- 238000007689 inspection Methods 0.000 claims description 13
- 230000003287 optical effect Effects 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 2
- 244000145845 chattering Species 0.000 description 14
- 238000000034 method Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 238000005259 measurement Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 239000011521 glass Substances 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 239000012780 transparent material Substances 0.000 description 1
Landscapes
- Spectrometry And Color Measurement (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、検出物体の光学特
性の違いから物体の色を判定するフルカラー光電センサ
において、特にチャタリングを防止する機能を備えたも
のに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a full-color photoelectric sensor that determines the color of an object based on the difference in the optical characteristics of the detected object, and more particularly to a full-color photoelectric sensor having a function of preventing chattering.
【0002】[0002]
【従来の技術】従来から検出物体の色を判定するセンサ
としてフルカラー光電センサが知られている。図1に従
来のフルカラー光電センサの一例を示す。このフルカラ
ー光電センサ101は、投光部102より赤(R)、緑
(G)、青(B)の3原色の光を時分割に投光し、それ
ぞれのタイミングにおける検出物体からの反射光を受光
部103において受光し、その受光部103が出力する
受光信号をマイコン部104において処理することによ
り、検出物体の色判定を行うものである。外部入力部1
05は、スイッチや外部入力信号等の外部からの入力を
受け付け、マイコン部104へ出力するものである。ま
た、外部出力部106はマイコン部104の制御によ
り、計測結果等をPC等の外部装置へ出力するものであ
る。2. Description of the Related Art A full-color photoelectric sensor has been known as a sensor for determining the color of a detected object. FIG. 1 shows an example of a conventional full-color photoelectric sensor. The full-color photoelectric sensor 101 projects light of three primary colors of red (R), green (G), and blue (B) from a light projecting unit 102 in a time-division manner, and reflects light from a detection object at each timing. The light receiving unit 103 receives light, and the light receiving signal output from the light receiving unit 103 is processed by the microcomputer unit 104 to determine the color of the detected object. External input section 1
Reference numeral 05 denotes an input from the outside such as a switch or an external input signal, and outputs it to the microcomputer unit 104. The external output unit 106 outputs the measurement result and the like to an external device such as a PC under the control of the microcomputer unit 104.
【0003】次に、従来のフルカラー光電センサ101
のマイコン部104が行う色判別動作の処理を、図2の
フローチャートと、図3のしきい値の設定レベルの概略
図を参照して説明する。本処理においては、まず、抽出
したい基準となる色の検出物体について登録処理を行う
(ティーチングという)(S1)。この登録は、基準と
なる色の検出物体に対して異なる波長の光を時分割に投
光し、それぞれの光に対する受光量R,G,Bに基づい
て、次のような評価値(各波長の光に対する受光量が全
受光量に占める割合)を演算し、その値を記憶すること
により行う。この記憶された値を登録値とする。
R成分評価値:R/(R+G+B)
G成分評価値:G/(R+G+B)
B成分評価値:B/(R+G+B)Next, a conventional full-color photoelectric sensor 101
The processing of the color discrimination operation performed by the microcomputer section 104 will be described with reference to the flowchart of FIG. 2 and the schematic diagram of the threshold setting level of FIG. In this process, first, a registration process is performed for a detected object of a reference color to be extracted (referred to as teaching) (S1). In this registration, light of different wavelengths is time-divisionally projected onto a reference color detection object, and the following evaluation values (each wavelength) are based on the received light amounts R, G, and B for each light. The ratio of the amount of received light to the total amount of received light) is calculated, and the calculated value is stored. The stored value is used as the registered value. R component evaluation value: R / (R + G + B) G component evaluation value: G / (R + G + B) B component evaluation value: B / (R + G + B)
【0004】次いで、この登録値をもとに、同色とみな
す評価値の範囲(許容差)を設定する(S2)。検査時
においては、S1と同様に、対象となる検出物体に対し
てR,G,B各光の投受光を行い(S3)、評価値を演
算し、R,G,Bの全ての評価値がS2で設定した範囲
内にあれば同色と判定し、範囲外にあれば異色と判定
し、その結果を出力する(S4)。次に、検出物体を変
更する場合は改めてティーチング処理が必要であるので
(S5でYES)、S1に進みティーチングを行う。一
方、検出物体を変更せずに検査を続けるなら(S5でN
O)、S3に戻る。Next, based on this registered value, a range (permissible difference) of evaluation values regarded as the same color is set (S2). At the time of inspection, similarly to S1, the R, G, and B lights are projected and received on the target detection object (S3), the evaluation values are calculated, and all the R, G, and B evaluation values are calculated. If it is within the range set in S2, it is determined to be the same color, and if it is outside the range, it is determined to be a different color, and the result is output (S4). Next, when changing the detected object, the teaching process is required again (YES in S5), and thus the process proceeds to S1 to perform teaching. On the other hand, if the inspection is continued without changing the detected object (N in S5
O), and returns to S3.
【0005】このフルカラー光電センサ101では、同
色とみなす評価値の範囲(同色範囲)を設定する際に、
受光信号中のノイズ成分の影響を考慮して、チャタリン
グ(誤動作)防止のためのヒステリシス幅が設定されて
いる。センサ101が検出物体有りと判定している状態
(ON状態)から、検出物体無しの判定を行う場合に
は、TH1(OFF),TH2(OFF)のしきい値に
より検出を行う。一方、検出物体無しと判定している状
態(OFF状態)から、検出物体有りの判定を行う場合
には、TH1(ON),TH2(ON)のしきい値によ
り検出を行う。このヒステリシス幅は、受光回路アンプ
のゲイン設定等のハードウエアにより決まるノイズ幅に
より決定され、アンプ等のハードウエア設定が変わらな
い限り一定値である。In the full-color photoelectric sensor 101, when setting the range of evaluation values (same color range) that are regarded as the same color,
A hysteresis width for preventing chattering (malfunction) is set in consideration of the influence of noise components in the received light signal. When it is determined that there is no detected object from the state where the sensor 101 has determined that there is a detected object (ON state), detection is performed using the threshold values TH1 (OFF) and TH2 (OFF). On the other hand, when it is determined that there is a detected object from the state in which it is determined that there is no detected object (OFF state), detection is performed using the threshold values of TH1 (ON) and TH2 (ON). This hysteresis width is determined by a noise width determined by hardware such as gain setting of the light receiving circuit amplifier, and is a constant value unless the hardware setting of the amplifier or the like changes.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、このよ
うな従来のフルカラー光電センサ装置101では、検査
時には一定のヒステリシス幅を用いて評価を行うため、
検査時の受光量が小さく評価値に対するノイズの影響が
大きくなるとチャタリングを起こし易い。例えば、R,
G,Bの受光量は、信号成分R´,G´,B´とノイズ
成分r,g,b(ハードウエアにより最大値は一定)と
からなるので、R成分評価値は、
(R´+r)/(R´+G´+B´+r+g+b)
で表わすことができる。ここで、信号成分R´,G´,
B´がノイズ成分r,g,bと比して十分に大きい場合
には、評価値におけるノイズの影響は小さいが、信号成
分が小さい場合には、ノイズの影響が大きくなり、チャ
タリングを引き起こし易い。従って、例えば、黒系統の
反射率の低い色の検出物体を検出する場合には、受光量
が小さくなり、評価値におけるノイズの影響が大きくな
るので、チャタリングを起こし易いという問題がある。
また、検出距離が変動し、受光量が低下した場合におい
ても、同様に、評価値におけるノイズの影響が大きくな
るので、チャタリングを起こし易いという問題がある。However, in such a conventional full-color photoelectric sensor device 101, since evaluation is performed using a constant hysteresis width during inspection,
If the amount of light received during inspection is small and the influence of noise on the evaluation value is large, chattering is likely to occur. For example, R,
The amount of received light of G and B consists of signal components R ', G', B'and noise components r, g, b (the maximum value is constant depending on the hardware), so the R component evaluation value is (R '+ r ) / (R '+ G' + B '+ r + g + b). Here, the signal components R ′, G ′,
When B ′ is sufficiently larger than the noise components r, g, and b, the influence of noise on the evaluation value is small, but when the signal component is small, the influence of noise is large and chattering is likely to occur. . Therefore, for example, in the case of detecting a black-colored detection object having a low reflectance, the amount of received light becomes small, and the influence of noise on the evaluation value becomes large, so there is a problem that chattering easily occurs.
Further, even when the detection distance fluctuates and the amount of received light decreases, similarly, the influence of noise on the evaluation value increases, and thus there is a problem that chattering easily occurs.
【0007】本発明は、上述した問題点を解決するため
になされたものであり、互いに波長の異なる少なくとも
2つ以上の光源を用いて検出物体の色の判別を行うセン
サ装置において、検査時に投光受光処理を行う毎に、評
価値に対するヒステリシス幅を算出し、その値を用いて
色判定を行うことにより、反射率が低い検出物体を検出
する場合や、検出距離が変動する場合においても、チャ
タリングを防ぐことができるフルカラー光電センサを提
供することを目的とする。The present invention has been made in order to solve the above-mentioned problems, and in a sensor device for discriminating the color of a detected object by using at least two light sources having different wavelengths from each other, the sensor device projects at the time of inspection. Each time the light receiving process is performed, the hysteresis width with respect to the evaluation value is calculated, and by performing color determination using the value, even when detecting a detection object with low reflectance, or when the detection distance varies, An object of the present invention is to provide a full-color photoelectric sensor capable of preventing chattering.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するため
に、本発明は、検出物体の色を判別するフルカラー光電
センサにおいて、互いに波長の異なる光を投光する少な
くとも2つ以上の光源を備え、各光を時分割に投光する
投光手段と、この投光手段から投光した光の検出物体に
よる反射光又は透過光を受光し、検出物体の反射又は透
過の光学特性に応じて受光信号を出力する受光手段と、
受光信号より評価値を演算する評価値演算手段と、基準
となる色の検出物体について評価値演算手段により得ら
れる評価値を記憶しておく評価値記憶手段と、検査時に
おいて受光信号を得る毎に、評価値演算手段からの評価
値に対するヒステリシス幅を算出するヒステリシス幅算
出手段と、このヒステリシス幅と、評価値記憶手段に記
憶されている評価値に基づいて、しきい値を設定するし
きい値設定手段と、検査時における評価値演算手段から
の評価値と、しきい値とを比較する比較手段と、比較手
段からの比較結果に基づいて色判定を行う判定手段とを
備えたものである。In order to achieve the above object, the present invention provides a full-color photoelectric sensor for discriminating the color of a detection object, comprising at least two light sources for projecting lights having different wavelengths. , A light projecting means for projecting each light in a time-division manner and a light reflected or transmitted by a detection object of the light projected from the light projecting means, and received in accordance with the optical characteristics of reflection or transmission of the detection object. A light receiving means for outputting a signal,
Evaluation value calculation means for calculating an evaluation value from the received light signal, evaluation value storage means for storing the evaluation value obtained by the evaluation value calculation means for the reference color detection object, and each time the received light signal is obtained at the time of inspection In addition, the threshold value is set based on the hysteresis width calculation means for calculating the hysteresis width for the evaluation value from the evaluation value calculation means, and the hysteresis width and the evaluation value stored in the evaluation value storage means. A value setting means, a comparison means for comparing the evaluation value from the evaluation value calculation means at the time of inspection with a threshold value, and a determination means for performing color determination based on the comparison result from the comparison means. is there.
【0009】この構成においては、投受光毎に検出物体
に対するヒステリシス幅をヒステリシス幅算出手段によ
り算出し、その値を用いて判定処理を行うので、反射率
が低く、受光手段における受光量が小さい検出物体を検
出する際においても、その検出物体に適したヒステリシ
ス幅で検査が行われるので、チャタリングを防ぐことが
できる。また、検出距離の変動により受光量が低下した
場合においても、同様に、チャタリングを防ぐことがで
きる。In this structure, the hysteresis width for the detected object is calculated by the hysteresis width calculation means for each light projection and reception, and the determination processing is performed using the calculated value, so that the reflectance is low and the amount of light received by the light reception means is small. Even when an object is detected, the inspection is performed with a hysteresis width suitable for the detected object, so that chattering can be prevented. Further, even when the amount of received light is reduced due to variation in the detection distance, chattering can be prevented in the same manner.
【0010】また、本発明は、上記構成において、ヒス
テリシス幅が一定幅以上であると、エラー情報をセンサ
外部に出力するエラー情報出力手段をさらに備えたもの
であってもよい。この構成においては、対象となる検出
物体に対してのヒステリシス幅をチェックし、一定幅以
上であるとセンサ外部に検出不可能であることを示すエ
ラー情報を出力するので、設定された検出距離で検出可
能かどうかを容易に判断することができる。Further, the present invention may further include an error information output means for outputting error information to the outside of the sensor when the hysteresis width is equal to or larger than a certain width in the above structure. In this configuration, the hysteresis width for the target detection object is checked, and if it is more than a certain width, error information indicating that it cannot be detected is output to the outside of the sensor, so the set detection distance It can be easily judged whether or not it can be detected.
【0011】[0011]
【発明の実施の形態】以下、本発明を具体化した実施の
形態を図面を参照して説明する。図4は本発明の実施形
態による光センサの構成を示すブロック図である。この
光センサ1は、赤、緑、青の3原色の光を時分割に投光
し、それぞれのタイミングにおける検出物体2からの反
射光強度より、検出物体2の色の検出を行う装置であ
る。同図において、3つのLED3a,3b,3c(光
源)は異なる波長の光(赤:λ=680nm、緑:λ=
565nm、青:λ=450nm)を投光回路4(投光
手段)の指示に従って出射するものであり、その光は検
出物体2に向けて照射される。検出物体2において反射
された光は受光素子5に受光され、受光回路6(受光手
段)において受光信号に変換される。この受光信号は
R,G,B弁別回路7により、それぞれの波長の光に対
する信号に弁別される。このR,G,B弁別回路7と上
述した投光回路4はパルス信号発生回路8より供給され
る発振パルス信号に基づいて駆動されており、R,G,
B弁別回路7より出力されたR,G,Bの信号はサンプ
ルホールド回路9においてサンプルホールドされる。BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 4 is a block diagram showing the configuration of the optical sensor according to the embodiment of the present invention. The optical sensor 1 is a device that projects light of the three primary colors of red, green, and blue in a time-division manner, and detects the color of the detection object 2 from the intensity of reflected light from the detection object 2 at each timing. . In the figure, three LEDs 3a, 3b, 3c (light sources) have different wavelengths of light (red: λ = 680 nm, green: λ =).
565 nm, blue: λ = 450 nm) is emitted according to an instruction from the light projecting circuit 4 (light projecting means), and the light is irradiated toward the detection object 2. The light reflected by the detection object 2 is received by the light receiving element 5 and converted into a light receiving signal by the light receiving circuit 6 (light receiving means). This received light signal is discriminated by the R, G, B discrimination circuit 7 into signals for light of respective wavelengths. The R, G, B discriminating circuit 7 and the light projecting circuit 4 described above are driven based on the oscillation pulse signal supplied from the pulse signal generating circuit 8, and the R, G, B
The R, G, and B signals output from the B discrimination circuit 7 are sampled and held by the sample and hold circuit 9.
【0012】サンプルホールド回路9においてサンプル
ホールドされたR,G,Bの信号は、評価値演算回路1
0(評価値演算手段)に送られ評価値が演算され、モー
ド切り換えスイッチ11が抽出したい色の検出物体2に
ついて登録処理を行うティーチングモードとなっている
時には、評価値記憶回路12(評価値記憶手段)に送ら
れ記憶される。一方、モード切り換えスイッチ11が検
査モードにある時には、受光信号を得る毎に、サンプル
ホールド回路9からの信号と、受光信号中のノイズ成分
を記憶するノイズ記憶回路13において記憶されている
ノイズ成分の最大値からヒステリシス幅設定回路14
(ヒステリシス幅算出手段)においてヒステリシス幅が
算出される。このヒステリシス幅と評価値記憶回路12
に記憶されている評価値より、しきい値設定回路15
(しきい値設定手段)においてしきい値が設定され、同
色範囲が設定される。このしきい値と受光信号を得る毎
に評価値演算回路10より得られる評価値は、比較回路
16(比較手段)において比較され、同色範囲にあるか
否かが判定回路(判定手段)17において判定され、そ
の結果は出力回路18より出力される。また、ヒステリ
シス幅設定回路14においてヒステリシス幅が設定され
ると、その値はヒステリシス幅チェック回路19(エラ
ー情報出力回路)に送られ、その幅が所定値以上である
と、エラー信号が出力される。The R, G, and B signals sample-held by the sample-hold circuit 9 are evaluated value calculation circuit 1
0 (evaluation value calculation means), the evaluation value is calculated, and when the mode change switch 11 is in the teaching mode for performing the registration processing for the detection object 2 of the color to be extracted, the evaluation value storage circuit 12 (evaluation value storage) Means) and stored. On the other hand, when the mode changeover switch 11 is in the inspection mode, the signal from the sample hold circuit 9 and the noise component stored in the noise storage circuit 13 for storing the noise component in the received light signal are obtained every time the received light signal is obtained. From the maximum value to the hysteresis width setting circuit 14
The (hysteresis width calculating means) calculates the hysteresis width. This hysteresis width and evaluation value storage circuit 12
From the evaluation value stored in the threshold value setting circuit 15
A threshold value is set in the (threshold value setting means) and the same color range is set. Each time the threshold value and the received light signal are obtained, the evaluation value obtained from the evaluation value calculation circuit 10 is compared in the comparison circuit 16 (comparison means), and in the judgment circuit (judgment means) 17 it is judged whether or not they are in the same color range. It is determined and the result is output from the output circuit 18. Further, when the hysteresis width is set in the hysteresis width setting circuit 14, the value is sent to the hysteresis width check circuit 19 (error information output circuit), and when the width is equal to or larger than a predetermined value, an error signal is output. .
【0013】この光電センサ1のヒステリシス幅設定回
路14によるR,G,Bの各成分評価値に対するヒステ
リシス幅の算出は以下の演算式により行われ、このヒス
テリシス幅により判定を行う(図3におけるヒステリシ
ス幅が、計測対象により異なる)。
Hr=rr/(R+G+B−rr−gg−bb)
Hg=gg/(R+G+B−rr−gg−bb)
Hb=bb/(R+G+B−rr−gg−bb)
ここで、Hr,Hg,Hb:各成分評価値に対するヒス
テリシス幅
R,G,B:信号成分
rr,gg,bb:各受光量に対するノイズ成分の最大
値である。The hysteresis width for the R, G, B component evaluation values by the hysteresis width setting circuit 14 of the photoelectric sensor 1 is calculated by the following arithmetic expression, and the judgment is made based on this hysteresis width (hysteresis in FIG. 3). The width depends on the measurement target). Hr = rr / (R + G + B-rr-gg-bb) Hg = gg / (R + G + B-rr-gg-bb) Hb = bb / (R + G + B-rr-gg-bb) Here, Hr, Hg, Hb: each component. Hysteresis widths for evaluation values R, G, B: signal components rr, gg, bb: maximum values of noise components for each received light amount.
【0014】図5は、本実施の形態に係るフルカラー光
電センサの色判別動作の処理を示すフローチャートであ
る。本処理においては、まず、モード切り換えスイッチ
11がティーチングモードとされ、ティーチングにより
抽出したい検出物体2の登録が行われる(S1)。この
登録は、検出物体2に対して3つのLED3a,3b,
3cより異なる波長の光を時分割に投光し、それぞれの
光に対する受光量R,G,Bに基づいて、評価値を演算
し、その値(登録値)を記憶することにより行う。次い
で、この登録値をもとに、同色とみなす評価値の範囲
(許容差)を設定する(S2)。モード切り換えスイッ
チ11が切り換えられ、検査モードになると、投受光処
理が行われ(S3)、ヒステリシス幅設定回路14によ
りヒステリシス幅の設定が行われる(S3−1)。この
算出されたヒステリシス幅はヒステリシス幅チェック回
路19においてチェックされ(S3−2)、ヒステリシ
ス幅が所定値以下であると、検出可能と判定し、色判定
が行われる(S4)。次に、検出物体2を変更するなら
改めてティーチング処理が必要であるので(S5でYE
S)、S1に進みティーチングを行う。一方、検出物体
2を変更せずに検査を続けるなら(S5でNO)、S3
に戻る。FIG. 5 is a flow chart showing the processing of the color discrimination operation of the full-color photoelectric sensor according to this embodiment. In this process, first, the mode changeover switch 11 is set to the teaching mode, and the detection object 2 to be extracted by teaching is registered (S1). This registration is performed by the three LEDs 3a, 3b,
Light having a different wavelength from 3c is time-divisionally projected, an evaluation value is calculated based on the received light amounts R, G, and B for each light, and the value (registered value) is stored. Next, based on this registered value, a range (permissible difference) of evaluation values regarded as the same color is set (S2). When the mode changeover switch 11 is switched to enter the inspection mode, the light emitting / receiving process is performed (S3), and the hysteresis width setting circuit 14 sets the hysteresis width (S3-1). The calculated hysteresis width is checked by the hysteresis width check circuit 19 (S3-2). If the hysteresis width is less than or equal to a predetermined value, it is determined that detection is possible and color determination is performed (S4). Next, if the detected object 2 is changed, the teaching process is required again (YES in S5).
S) and S1 to perform teaching. On the other hand, if the inspection is continued without changing the detected object 2 (NO in S5), S3
Return to.
【0015】従来の光電センサ101においては、ヒス
テリシス幅は一定値であったため、受光量が小さくなる
とチャタリングを起すことがあったが、本実施の形態に
係るフルカラー光電センサ1は、投受光処理を行う毎に
ヒステリシス幅の算出を行い、このヒステリシス幅に基
づいて得られたしきい値により判定を行うので、反射率
が低く、受光量が小さい検出物体2を検出する際におい
ても、その検出物体2に適したヒステリシス幅で色判定
を行うことができるので、チャタリングを防ぐことがで
きる。また、検出距離の変動により受光量が低下する場
合においても、同様に、投受光処理を行う毎にヒステリ
シス幅の算出を行うので、チャタリングを防ぐことがで
きる。In the conventional photoelectric sensor 101, since the hysteresis width has a constant value, chattering may occur when the amount of received light becomes small. However, the full-color photoelectric sensor 1 according to the present embodiment performs light emitting and receiving processing. The hysteresis width is calculated each time the measurement is performed, and the determination is performed based on the threshold value obtained based on the hysteresis width. Therefore, even when the detection object 2 having a low reflectance and a small amount of received light is detected, the detection object is detected. Since color determination can be performed with a hysteresis width suitable for 2, chattering can be prevented. Even when the amount of received light decreases due to the variation in the detection distance, the hysteresis width is calculated each time the light emitting / receiving process is performed, so that chattering can be prevented.
【0016】なお、本発明は上記実施の形態に限られず
種々の変形が可能である。上述した検出方法では、検出
物体2からの反射光により検出をおこなっていたが、検
出物体2が、透明ガラス、透明なPETボトルや透明ビ
ンなど、透明な素材で形成されている場合には、これら
の透過光により検出を行うものであってもよい。The present invention is not limited to the above embodiment, but various modifications can be made. In the detection method described above, the detection is performed by the reflected light from the detection object 2. However, when the detection object 2 is formed of a transparent material such as transparent glass, a transparent PET bottle or a transparent bottle, The detection may be performed by these transmitted lights.
【0017】[0017]
【発明の効果】以上のように本発明のフルカラー光電セ
ンサによれば、ヒステリシス幅算出手段により、投受光
処理を行う毎にヒステリシス幅の算出を行い、この値を
用いて判定処理を行うことによって、反射率が低く受光
量が小さい検出物体を検出する場合においても、その検
出物体に適したヒステリシス幅で検出が行うことができ
るので、チャタリングを防ぐことができる。また、距離
変動により受光量が低下する場合においても、ヒステリ
シス幅が変動するので、チャタリングを防ぐことができ
る。また、本発明のフルカラー光電センサによれば、上
記構成において投受光処理を行う毎に得られたヒステリ
シス幅をチャックし、一定幅以上であるとエラー情報を
出力することによって、設定された検出距離で検出可能
かどうかを容易に判断することができる。As described above, according to the full-color photoelectric sensor of the present invention, the hysteresis width calculation means calculates the hysteresis width each time the light emitting / receiving processing is performed, and the judgment processing is performed using this value. Even when a detection object having a low reflectance and a small amount of received light is detected, the detection can be performed with a hysteresis width suitable for the detection object, and thus chattering can be prevented. Further, even when the amount of received light is reduced due to the distance variation, the hysteresis width varies, so that chattering can be prevented. Further, according to the full-color photoelectric sensor of the present invention, the hysteresis width obtained each time the light emitting / receiving process is performed in the above configuration is chucked, and error information is output if the hysteresis width is equal to or more than a certain width, thereby setting the set detection distance. It is possible to easily judge whether or not it can be detected by.
【図1】従来のフルカラー光電センサの処理系を示すブ
ロック図である。FIG. 1 is a block diagram showing a processing system of a conventional full-color photoelectric sensor.
【図2】従来のフルカラー光電センサの色判別動作の処
理を示すフローチャートである。FIG. 2 is a flowchart showing a process of a color discrimination operation of a conventional full-color photoelectric sensor.
【図3】評価値に対するしきい値の設定レベルの概略図
である。FIG. 3 is a schematic diagram of setting levels of threshold values with respect to evaluation values.
【図4】本発明の実施の形態によるフルカラー光電セン
サの構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a full-color photoelectric sensor according to an embodiment of the present invention.
【図5】同フルカラー光電センサの色判別動作の処理を
示すフローチャートである。FIG. 5 is a flowchart showing a process of a color discrimination operation of the full-color photoelectric sensor.
1 フルカラー光電センサ
2 検出物体
3a,3b,3c LED(光源)
4 投光回路(投光手段)
5 受光素子(受光手段)
6 受光回路(受光手段)
10 評価値演算回路(評価値演算手段)
12 評価値記憶回路(評価値記憶手段)
14 ヒステリシス幅設定回路(ヒステリシス幅設定手
段)
15 しきい値設定回路(しきい値設定手段)
16 比較回路(比較手段)
17 判定回路(判定手段)
19 ヒステリシス幅チェック回路(エラー情報出力手
段)DESCRIPTION OF SYMBOLS 1 Full-color photoelectric sensor 2 Detecting objects 3a, 3b, 3c LED (light source) 4 Light emitting circuit (light emitting means) 5 Light receiving element (light receiving means) 6 Light receiving circuit (light receiving means) 10 Evaluation value calculation circuit (evaluation value calculation means) 12 evaluation value storage circuit (evaluation value storage means) 14 hysteresis width setting circuit (hysteresis width setting means) 15 threshold value setting circuit (threshold value setting means) 16 comparison circuit (comparison means) 17 determination circuit (determination means) 19 Hysteresis width check circuit (error information output means)
フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G01J 3/00 - 3/52 G01V 8/00 - 8/26 G01N 21/00 - 21/61 JICSTファイル(JOIS) WPI(DIALOG)Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G01J 3/00-3/52 G01V 8/00-8/26 G01N 21/00-21/61 JISST file (JOIS) WPI (DIALOG)
Claims (2)
センサにおいて、 互いに波長の異なる光を投光する少なくとも2つ以上の
光源を備え、各光を時分割に投光する投光手段と、 前記投光手段から投光した光の検出物体による反射光又
は透過光を受光し、検出物体の反射又は透過の光学特性
に応じて受光信号を出力する受光手段と、 前記受光信号より評価値を演算する評価値演算手段と、 基準となる色の検出物体について前記評価値演算手段に
より得られる評価値を記憶しておく評価値記憶手段と、 検査時において前記受光信号を得る毎に、前記評価値演
算手段からの評価値に対するヒステリシス幅を算出する
ヒステリシス幅算出手段と、 前記ヒステリシス幅と、前記評価値記憶手段に記憶され
ている評価値に基づいて、しきい値を設定するしきい値
設定手段と、 検査時における前記評価値演算手段からの評価値と、前
記しきい値とを比較する比較手段と、 前記比較手段からの比較結果に基づいて色判定を行う判
定手段とを備えたことを特徴とするフルカラー光電セン
サ。1. A full-color photoelectric sensor for discriminating a color of a detection object, comprising at least two light sources for projecting lights having different wavelengths, and projecting means for projecting each light in a time division manner, A light receiving unit that receives reflected light or transmitted light of the detection object of the light projected from the light projecting unit, and outputs a light reception signal according to the optical characteristics of the reflection or transmission of the detection object, and an evaluation value is calculated from the light reception signal. And an evaluation value storage unit for storing an evaluation value obtained by the evaluation value calculation unit for a reference color detection object, and an evaluation value calculation unit each time the light reception signal is obtained during inspection. Hysteresis width calculation means for calculating a hysteresis width for the evaluation value from the calculation means, the hysteresis width, and the threshold value is set based on the evaluation value stored in the evaluation value storage means. Threshold value setting means, comparing means for comparing the evaluation value from the evaluation value calculating means at the time of inspection with the threshold value, and judging means for performing color judgment based on the comparison result from the comparing means. And a full-color photoelectric sensor.
と、エラー情報をセンサ外部に出力するエラー情報出力
手段をさらに備えたことを特徴とする請求項1に記載の
フルカラー光電センサ。2. The full-color photoelectric sensor according to claim 1, further comprising error information output means for outputting error information to the outside of the sensor when the hysteresis width is a predetermined width or more.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28766896A JP3409108B2 (en) | 1996-10-09 | 1996-10-09 | Full color photoelectric sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28766896A JP3409108B2 (en) | 1996-10-09 | 1996-10-09 | Full color photoelectric sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH10115554A JPH10115554A (en) | 1998-05-06 |
JP3409108B2 true JP3409108B2 (en) | 2003-05-26 |
Family
ID=17720184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP28766896A Expired - Fee Related JP3409108B2 (en) | 1996-10-09 | 1996-10-09 | Full color photoelectric sensor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3409108B2 (en) |
-
1996
- 1996-10-09 JP JP28766896A patent/JP3409108B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH10115554A (en) | 1998-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6011478A (en) | Smoke sensor and monitor control system | |
US6529269B1 (en) | Paper sheet identification method and device | |
JPH062348Y2 (en) | Reflective photoelectric switch | |
JP2000121440A (en) | Color identifying apparatus | |
US4990790A (en) | Method for discriminating authenticity of a bill using polarization and an apparatus therefor | |
JPH08139583A (en) | Touch key | |
JP3409108B2 (en) | Full color photoelectric sensor | |
JP2966541B2 (en) | Photoelectric smoke detector | |
JPH08334678A (en) | Range finder | |
JP3451533B2 (en) | Color identification sensor | |
JPH08201288A (en) | Detector for state of road surface | |
JPS629212A (en) | Range finding device using semiconductor light position detecting element | |
JPH10122965A (en) | Optical sensor device | |
JPH08340242A (en) | Detector switch | |
JP2004215315A (en) | Photoelectric sensor and its sensitivity setting method | |
JP2000029516A (en) | Guide sensor | |
JPS6218029B2 (en) | ||
JP3137559B2 (en) | Distance measuring device | |
JP2001504228A (en) | Detection system with improved noise tolerance | |
JPH0814889A (en) | Photoelectric switch | |
JP3944020B2 (en) | Photoelectric sensor | |
JPH0714809Y2 (en) | Optical displacement meter | |
JP2743038B2 (en) | Underwater distance measuring device using laser light | |
JP3169839B2 (en) | Automatic sensor sensitivity adjustment device | |
JPH116767A (en) | Photosensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20030204 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090320 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |