JP2986662B2 - Object detection device - Google Patents

Object detection device

Info

Publication number
JP2986662B2
JP2986662B2 JP25348193A JP25348193A JP2986662B2 JP 2986662 B2 JP2986662 B2 JP 2986662B2 JP 25348193 A JP25348193 A JP 25348193A JP 25348193 A JP25348193 A JP 25348193A JP 2986662 B2 JP2986662 B2 JP 2986662B2
Authority
JP
Japan
Prior art keywords
light
emitting element
light emission
code
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.)
Expired - Fee Related
Application number
JP25348193A
Other languages
Japanese (ja)
Other versions
JPH06207987A (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.)
Tokai Rika Co Ltd
Original Assignee
Tokai Rika 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 Tokai Rika Co Ltd filed Critical Tokai Rika Co Ltd
Priority to JP25348193A priority Critical patent/JP2986662B2/en
Publication of JPH06207987A publication Critical patent/JPH06207987A/en
Application granted granted Critical
Publication of JP2986662B2 publication Critical patent/JP2986662B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は物体検出装置に係り、詳
しくは、人体等の物体に対して光を投射し、その投射光
が物体にあたって反射した反射光を検出することによっ
て物体の有無を検出する装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an object detecting apparatus, and more particularly, to projecting light onto an object such as a human body and detecting the presence or absence of the object by detecting the reflected light reflected by the projected light. It relates to a device for detecting.

【0002】[0002]

【従来の技術】従来、赤外光の反射を利用して物体を検
出する物体検出装置が、民生および産業の様々な分野で
広く用いられている。
2. Description of the Related Art Conventionally, an object detecting apparatus for detecting an object by using reflection of infrared light has been widely used in various fields of consumer and industry.

【0003】そのような物体検出装置においては、ま
ず、発光ダイオード等からなる発光素子から赤外光を投
射する。その赤外光が投射される空間に人体等の何らか
の物体が存在する場合、発光素子からの投射光はその物
体にあたって反射する。その反射光をフォトダイオード
等からなる受光素子によって検出することにより物体の
有無を検出する。すなわち、受光素子が反射光を検出し
た場合は物体が存在していると判定し、反射光を検出し
ない場合は物体が存在していないと判定するわけであ
る。
In such an object detecting device, first, infrared light is projected from a light emitting element such as a light emitting diode. If there is any object such as a human body in the space where the infrared light is projected, the light projected from the light emitting element is reflected on the object. The presence or absence of an object is detected by detecting the reflected light with a light receiving element such as a photodiode. That is, when the light receiving element detects the reflected light, it is determined that an object is present, and when the reflected light is not detected, it is determined that the object is not present.

【0004】このような物体検出装置の電源としては、
商用電源または電池が用いられる。電池を電源とする場
合は、リチウム電池等の電池寿命の長い電池を用いると
共に、発光素子の発光を一定の周期で間欠的に行うこと
により電池の消耗を抑えるのが一般的である。これによ
り、電池寿命を可能な限り長くして電池交換の手間を少
なくしているわけである。
As a power source of such an object detection device,
Commercial power or batteries are used. When a battery is used as a power supply, it is common to use a battery having a long battery life such as a lithium battery and to suppress the consumption of the battery by intermittently emitting light from a light emitting element at a constant cycle. As a result, the battery life is made as long as possible and the trouble of replacing the battery is reduced.

【0005】[0005]

【発明が解決しようとする課題】ところで、上記の物体
検出装置においては、何らかの外因によって発生する赤
外光が外乱として作用し(以下、外乱光という)、正確
な物体検出ができなくなることがある。
Incidentally, in the above object detecting device, infrared light generated by some external factor acts as a disturbance (hereinafter referred to as disturbance light), and accurate object detection may not be performed. .

【0006】なぜなら、受光素子は所定の波長の赤外光
を受光した場合に検出信号を出力するようになっている
だけであって、その受光した赤外光が、発光素子からの
投射光が物体にあたって反射した反射光であるのか、外
乱光であるのかを判別する機能をもっていないためであ
る。
The reason is that the light receiving element only outputs a detection signal when infrared light of a predetermined wavelength is received, and the received infrared light is reflected by the projected light from the light emitting element. This is because it does not have a function of determining whether the light is reflected light or disturbance light reflected on the object.

【0007】そのため、外乱光の波長が発光素子の投射
光の波長と合致している場合、特に周期的なパルス状の
ノイズの場合には、実際に物体が存在しているのか、外
乱光が発生しているのかを判別することができず、正確
な物体検出ができないわけである。
Therefore, when the wavelength of the disturbance light matches the wavelength of the projection light of the light emitting element, especially in the case of periodic pulse noise, whether an object actually exists or whether the disturbance light is present. In other words, it cannot be determined whether or not an error has occurred, and accurate object detection cannot be performed.

【0008】本発明は上記問題点を解決するためになさ
れたものであって、その目的は、周期的パルス状ノイズ
等の外乱光が発生しても正確に物体を検出することがで
きる物体検出装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide an object detection method capable of accurately detecting an object even when disturbance light such as periodic pulse noise is generated. It is to provide a device.

【0009】[0009]

【課題を解決するための手段】本発明は上記問題点を解
決するため、発光素子から光を投射し、その投射光が物
体にあたって反射した反射光を受光素子によって検出す
ることにより物体を検知するようにした物体検出装置に
おいて、発光素子を一定のパターンで発光させるための
第1のコード信号を出力すると共に、発光素子を先の一
定のパターンとは異なるパターンで発光させるための第
2のコード信号を出力するコード生成手段と、まず最初
に、第1のコード信号に基づいて発光素子を一定のパタ
ーンで発光させ、次に、一定時間経過後、第2のコード
信号に基づいて発光素子を先の一定のパターンとは異な
るパターンで発光させ、その第1および第2のコード信
号による発光素子の発光に対して、その両方の反射光を
受光素子が受光した場合にのみ物体が存在していると判
定し、その両方又はいずれか一方の反射光を受光素子が
受光しなかった場合は物体が存在していないと判定する
制御判定手段を設けたことをその要旨とする。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention detects an object by projecting light from a light-emitting element and detecting, by a light-receiving element, light reflected by the projected light hitting the object. In the object detecting device, a first code signal for causing the light emitting element to emit light in a predetermined pattern is output, and a second code for causing the light emitting element to emit light in a pattern different from the predetermined pattern is used. Code generating means for outputting a signal; first, the light emitting element is caused to emit light in a fixed pattern based on the first code signal, and then, after a certain period of time, the light emitting element is controlled based on the second code signal. The light-emitting element is caused to emit light in a pattern different from the predetermined pattern, and the light-receiving element receives both reflected light in response to the light emission of the light-emitting element by the first and second code signals. Only when it is determined that the object is present, and when the light receiving element does not receive the reflected light of both or one of them, the control determining means for determining that the object is not present is provided. Make a summary.

【0010】[0010]

【作用】制御判定装置は、まず最初に、第1のコード信
号に基づいて発光素子を一定のパターンで発光させる。
次に、一定時間経過後、制御判定装置は、第2のコード
信号に基づいて発光素子を第1のコード信号によるパタ
ーンとは異なるパターンで発光させる。そして、制御判
定装置は、その第1および第2のコード信号による発光
素子の発光に対して、その両方の反射光を受光素子が受
光した場合にのみ物体が存在していると判定する。
The control determining device first causes the light emitting element to emit light in a fixed pattern based on the first code signal.
Next, after a lapse of a predetermined time, the control determination device causes the light emitting element to emit light in a pattern different from the pattern based on the first code signal based on the second code signal. Then, the control determination device determines that the object is present only when the light receiving element receives both reflected lights with respect to the light emission of the light emitting element by the first and second code signals.

【0011】ところで、外乱光が第1または第2のコー
ド信号のいずれかと合致することはごく稀である。さら
に、外乱光が第1および第2のコード信号の両方と合致
することはまずないといってよい。そのため、外乱光を
発光素子からの投射光の反射光と誤って物体が存在して
いると判定することはない。従って、外乱光の影響を受
けることなく、正確に物体を検知することができる。
By the way, it is extremely rare that disturbance light matches either the first or second code signal. Furthermore, it can be said that disturbance light rarely matches both the first and second code signals. Therefore, there is no possibility that the disturbance light is erroneously determined as the reflected light of the projection light from the light emitting element and that the object is present. Therefore, an object can be accurately detected without being affected by disturbance light.

【0012】[0012]

【実施例】以下、本発明の物体検出装置を男子用水洗小
便器(以下、朝顔という)の自動洗浄装置に具体化した
一実施例を、図面に従って説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment in which the object detecting apparatus of the present invention is embodied in an automatic washing apparatus for a flush toilet for men (hereinafter referred to as morning glory) will be described with reference to the drawings.

【0013】図2および図3に、本実施例の朝顔1の取
り付け状態を示す。朝顔1は洗面所の壁面2の表側に取
り付けられ、朝顔1に接続された水供給管3には電磁開
閉弁4が連結されている。その電磁開閉弁4が開かれる
と水供給管3から朝顔1へ洗浄水が供給される。反対
に、電磁開閉弁4が閉じられると水供給管3から朝顔1
への洗浄水の供給は遮断される。
FIGS. 2 and 3 show the mounting state of the morning glory 1 of this embodiment. The morning glory 1 is attached to the front side of the wall surface 2 of the washroom, and an electromagnetic on-off valve 4 is connected to a water supply pipe 3 connected to the morning glory 1. When the electromagnetic on-off valve 4 is opened, washing water is supplied from the water supply pipe 3 to the morning glory 1. Conversely, when the electromagnetic on-off valve 4 is closed, the morning glory 1
The supply of the washing water to the is shut off.

【0014】制御箱5は朝顔1よりも若干上方の壁面2
の裏側に取着され、その制御箱5の表面板5aは壁面2
に露出している。表面板5aには発光素子6aと受光素
子6bとからなる人検知センサ6が設けられ、制御箱5
内にはコントローラ7およびリチウム電池8が設けられ
ている。
The control box 5 has a wall 2 slightly above the morning glory 1.
Of the control box 5 is attached to the wall 2
It is exposed to. A human detection sensor 6 including a light emitting element 6a and a light receiving element 6b is provided on the front plate 5a.
A controller 7 and a lithium battery 8 are provided therein.

【0015】尚、発光素子6aは発光ダイオードからな
り、予め設定された波長の赤外光を投射する。また、受
光素子6bはフォトダイオードまたはフォトトランジス
タからなり、発光素子6aの投射光と同じ波長の赤外光
を受光したときにのみ検出信号を出力する。
The light-emitting element 6a is composed of a light-emitting diode, and projects infrared light having a predetermined wavelength. The light receiving element 6b is composed of a photodiode or a phototransistor, and outputs a detection signal only when infrared light having the same wavelength as the light projected from the light emitting element 6a is received.

【0016】図1に、本実施例の自動洗浄装置の電気ブ
ロック回路を示す。リチウム電池8は、コントローラ7
内の定電圧回路20および弁駆動回路21に電源を供給
している。
FIG. 1 shows an electric block circuit of the automatic cleaning apparatus according to this embodiment. The lithium battery 8 is connected to the controller 7
The power supply is supplied to the constant voltage circuit 20 and the valve drive circuit 21 therein.

【0017】定電圧回路20は3端子レギュレータによ
って構成され、コントローラ7内のマイクロコンピュー
タ(以下、マイコンと略す)22、発光駆動回路23、
受光回路24のそれぞれに安定な直流電圧を供給してい
る。
The constant voltage circuit 20 is composed of a three-terminal regulator, and includes a microcomputer (hereinafter abbreviated as a microcomputer) 22 in the controller 7, a light emission drive circuit 23,
A stable DC voltage is supplied to each of the light receiving circuits 24.

【0018】マイコン22は、中央処理装置(CP
U)、制御プログラムを記憶した読み出し専用メモリ
(ROM)、後記する人検知動作の結果を一時記憶する
読み出しおよび書き込み可能なメモリ(RAM)、入出
力インターフェイス、等から構成される。
The microcomputer 22 has a central processing unit (CP)
U), a read-only memory (ROM) storing a control program, a readable and writable memory (RAM) for temporarily storing a result of a human detection operation described later, an input / output interface, and the like.

【0019】そして、マイコン22はタイマ動作を行
う。また、マイコン22は、所定周波数でデューティ5
0%のパルス波である発光指令信号Fを発光駆動回路2
3に出力する。
The microcomputer 22 performs a timer operation. Further, the microcomputer 22 has a duty 5 at a predetermined frequency.
The light emission drive circuit 2 outputs a light emission command signal F, which is a 0% pulse wave.
Output to 3.

【0020】発光駆動回路23は、マイコン22からの
発光指令信号Fに基づいて発光素子6aを発光させる。
すなわち、発光駆動回路23は、発光指令信号Fを1パ
ルス入力する度に発光素子6aを1回発光させる。
The light emission drive circuit 23 causes the light emitting element 6a to emit light based on a light emission command signal F from the microcomputer 22.
That is, the light emission drive circuit 23 causes the light emitting element 6a to emit light once each time one pulse of the light emission command signal F is input.

【0021】従って、マイコン22から一定時間の間、
発光指令信号Fが出力され続けると、発光駆動回路23
は発光素子6aを一定回数発光させる。受光回路24
は、受光素子6bの検出信号を増幅し、積分した後に波
形整形して受光信号Rを生成し、マイコン22に出力す
る。
Therefore, for a certain period of time from the microcomputer 22,
If the light emission command signal F continues to be output, the light emission drive circuit 23
Causes the light emitting element 6a to emit light a certain number of times. Light receiving circuit 24
Amplifies the detection signal of the light receiving element 6b, integrates the signal, shapes the waveform, generates a light receiving signal R, and outputs the signal to the microcomputer 22.

【0022】すなわち、朝顔1の前に人が立っている場
合、発光素子6aからの投射光はその人にあたって反射
する。すると、受光素子6bはその反射光を検出して検
出信号を出力し、受光回路24はその検出信号を増幅し
て出力する。一方、朝顔1の前に人が立っていない場
合、発光素子6aからの投射光は反射しない。すると、
受光素子6bは反射光を検出できないため検出信号を出
力せず、受光回路24は受光信号Rを出力しない。
That is, when a person is standing in front of the morning glory 1, the projection light from the light emitting element 6a reflects on the person. Then, the light receiving element 6b detects the reflected light and outputs a detection signal, and the light receiving circuit 24 amplifies and outputs the detection signal. On the other hand, when no person stands in front of the morning glory 1, the projection light from the light emitting element 6a does not reflect. Then
Since the light receiving element 6b cannot detect the reflected light, it does not output the detection signal, and the light receiving circuit 24 does not output the light receiving signal R.

【0023】尚、発光素子6aは発光指令信号Fのパル
スに従って発光するため、その発光は連続したものでは
なく、発光指令信号Fの周波数を点灯周波数とした点滅
になる。そのため、受光素子6bの検出信号も連続した
ものではなく、発光指令信号Fの周波数に対応したもの
になる。そこで、受光素子6bの検出信号を、受光回路
24内で積分した後に波形整形することにより、連続し
た受光信号Rを得るわけである。
Since the light emitting element 6a emits light in accordance with the pulse of the light emission command signal F, the light emission is not continuous but blinks with the frequency of the light emission instruction signal F as a lighting frequency. Therefore, the detection signal of the light receiving element 6b is not continuous, but corresponds to the frequency of the light emission command signal F. Therefore, by integrating the detection signal of the light receiving element 6b in the light receiving circuit 24 and then shaping the waveform, a continuous light receiving signal R is obtained.

【0024】また、受光素子6bは、発光素子6aの投
射光の反射光を受光した場合でも、発光素子6aの投射
光と同じ波長の外乱光を受光した場合でも、同じように
検出信号を出力する。そのため、受光回路24は、発光
素子6aの投射光の反射光を受光した場合でも、発光素
子6aの投射光と同じ波長の外乱光を受光した場合で
も、同じように受光信号Rを出力する。
The light receiving element 6b outputs a detection signal in the same manner whether it receives reflected light of the light projected from the light emitting element 6a or disturbance light having the same wavelength as the light projected by the light emitting element 6a. I do. Therefore, the light receiving circuit 24 outputs the light receiving signal R in the same manner whether the reflected light of the light projected from the light emitting element 6a is received or the disturbance light having the same wavelength as the light projected by the light emitting element 6a.

【0025】ここで、マイコン22からの発光指令信号
Fは、図4に示すように、予め設定された2つの発光コ
ードA,Bに従って出力される。すなわち、発光指令信
号FがCμsec の間だけ出力された後、Cμsec の間だ
け出力が停止される状態をコード「1」とする。また、
発光指令信号Fの出力がDμsec (=2Cμsec )の間
だけ停止される状態をコード「0」とする。
Here, the light emission command signal F from the microcomputer 22 is output according to two preset light emission codes A and B as shown in FIG. That is, a state in which the emission command signal F is output for C μsec and then stopped for C μsec is referred to as a code “1”. Also,
A state in which the output of the light emission command signal F is stopped for D μsec (= 2 C μsec) is referred to as a code “0”.

【0026】そして、各コード「0」「1」をそれぞ
れ、「1011001」の順序で組み合わせたものを発
光コードAと定め、「1101010」の順序で組み合
わせたものを発光コードBと定める。
A combination of the codes "0" and "1" in the order of "1011001" is defined as a light emission code A, and a combination of the codes in the order of "1101010" is defined as a light emission code B.

【0027】そのため、発光コードAにおいては発光指
令信号Fが、Cμsec 出力→Dμsec 出力停止→Cμse
c 出力→Cμsec 出力停止→Cμsec 出力→Eμsec
(=5Cμsec )出力停止→Cμsec 出力→Cμsec 出
力停止、の順序で出力される。
Therefore, in the light emission code A, the light emission command signal F is changed from Cμsec output → Dμsec output stop → Cμse
c output → Cμsec output stop → Cμsec output → Eμsec
(= 5 Cμsec) The output is performed in the order of output stop → Cμsec output → Cμsec output stop.

【0028】一方、発光コードBにおいては発光指令信
号Fが、Cμsec 出力→Cμsec 出力停止→Cμsec 出
力→Dμsec 出力停止→Cμsec 出力→Dμsec 出力停
止→Cμsec 出力→Dμsec 出力停止、の順序で出力さ
れる。
On the other hand, in the light emission code B, the light emission command signal F is output in the order of Cμsec output → Cμsec output stop → Cμsec output → Dμsec output stop → Cμsec output → Dμsec output stop → Cμsec output → Dμsec output stop. .

【0029】従って、この発光コードA(またはB)に
従った発光指令信号Fに基づいて発光素子6aが発光
し,その発光素子6aの投射光の反射光を受光素子6a
が正確に受光した場合、受光信号Rは発光コードA(ま
たはB)に従って出力されることになる。
Therefore, the light emitting element 6a emits light based on the light emission command signal F in accordance with the light emission code A (or B), and reflects the reflected light of the light projected from the light emitting element 6a.
Is received correctly, the light receiving signal R is output according to the light emission code A (or B).

【0030】弁駆動回路21はマイコン22からの指令
信号に基づいて自己保持ソレノイド・バルブからなる電
磁開閉弁4を開閉させる。すなわち、弁駆動回路21が
パルス状のタイミング信号を出力する度に電磁開閉弁4
の開閉の状態は切り替わり、タイミング信号が出力され
ていないときには、それ以前の開閉の状態がそのまま保
持される。
The valve drive circuit 21 opens and closes the solenoid on-off valve 4 composed of a self-holding solenoid valve based on a command signal from the microcomputer 22. That is, each time the valve drive circuit 21 outputs a pulse-like timing signal, the electromagnetic on-off valve 4
The open / close state is switched, and when the timing signal is not output, the previous open / close state is held as it is.

【0031】次に、上記のように構成された本実施例に
おける、朝顔1の前に人が立っているかどうかを検知す
る動作(以下、人検知動作という)について、図5に示
すフローチャートに従って説明する。
Next, an operation for detecting whether or not a person is standing in front of the morning glory 1 (hereinafter, referred to as a person detection operation) in the embodiment configured as described above will be described with reference to a flowchart shown in FIG. I do.

【0032】まず、ステップ(以下、Sとする)1にお
いて、マイコン22は、発光コードAに従って発光駆動
回路23に発光指令信号Fを出力する。その発光コード
Aに従った発光指令信号Fに基づいて、発光駆動回路2
3は発光素子6aを発光させる。
First, in step (hereinafter referred to as S) 1, the microcomputer 22 outputs a light emission command signal F to the light emission drive circuit 23 according to the light emission code A. Based on the light emission command signal F according to the light emission code A, the light emission drive circuit 2
3 makes the light emitting element 6a emit light.

【0033】すなわち、発光素子6aは発光コードAに
基づいて、Cμsec で一定回数発光→Dμsec の間だけ
発光停止→Cμsec で一定回数発光→Cμsec の間だけ
発光停止→Cμsec で一定回数発光→Eμsec の間だけ
発光停止→Cμsec で一定回数発光→Cμsec の間だけ
発光停止、の順序で発光する。
That is, based on the light emission code A, the light emitting element 6a emits light for a certain number of times in Cμsec → stops light emission for Dμsec → lights for a certain number of times in Cμsec → stops light emission for only Cμsec → lights for a certain number of times in Cμsec → Eμsec During this time, light emission is stopped for a certain number of times, and light emission is stopped for a certain number of times at C μsec.

【0034】そして、S2へ移行する。S2において、
マイコン22は一定時間経過するまで待ち、一定時間経
過したらS3へ移行する。
Then, the flow shifts to S2. In S2,
The microcomputer 22 waits until a certain time elapses, and after the certain time elapses, proceeds to S3.

【0035】S3において、マイコン22は、発光コー
ドBに従って発光駆動回路23に発光指令信号Fを出力
する。その発光コードBに従った発光指令信号Fに基づ
いて、発光駆動回路23は発光素子6aを発光させる。
In S3, the microcomputer 22 outputs a light emission command signal F to the light emission drive circuit 23 according to the light emission code B. Based on the light emission command signal F according to the light emission code B, the light emission drive circuit 23 causes the light emitting element 6a to emit light.

【0036】すなわち、発光素子6aは発光コードBに
基づいて、Cμsec で一定回数発光→Cμsec の間だけ
発光停止→Cμsec で一定回数発光→Dμsec の間だけ
発光停止→Cμsec で一定回数発光→Dμsec の間だけ
発光停止→Cμsec で一定回数発光→Dμsec の間だけ
発光停止、の順序で発光する。
That is, based on the light emission code B, the light emitting element 6a emits light for a certain number of times in C μsec → stops emitting light for a period of Cμsec → emits light for a certain number of times in Cμsec → stops emitting light for a period of Dμsec → emits light for a certain number of times in Cμsec → Dμsec During this time, the light emission is stopped in a sequence of stopping light emission for a certain number of times at C μsec and stopping light emission only for D μsec.

【0037】そして、S4へ移行する。S4において、
マイコン22は、S1およびS3における発光素子6a
の発光コードA,Bに基づく発光に対して、受光素子6
bが両方共正確に受光し、受光回路24から各発光コー
ドA,Bに従った受光信号Rが出力されたかどうかを判
別する。
Then, the flow shifts to S4. In S4,
The microcomputer 22 controls the light emitting element 6a in S1 and S3.
Light-receiving element 6 for light emission based on light-emitting codes A and B
b, light is received accurately, and it is determined whether or not the light receiving circuit 24 outputs the light receiving signal R according to each of the light emitting codes A, B.

【0038】すなわち、S1において、発光コードAの
発光指令信号Fによって発光素子6aを発光させた時点
で、朝顔1の前に人が立っている場合、発光素子6aか
らの投射光はその人にあたって反射する。すると、受光
素子6bはその反射光を検出して検出信号を出力し、受
光回路24はその検出信号を増幅した受光信号Rを出力
する。
That is, in S1, when a person stands in front of the morning glory 1 at the time when the light emitting element 6a is caused to emit light by the light emission command signal F of the light emission code A, the projection light from the light emitting element 6a hits the person. reflect. Then, the light receiving element 6b detects the reflected light and outputs a detection signal, and the light receiving circuit 24 outputs a light receiving signal R obtained by amplifying the detection signal.

【0039】このときに外乱光が発生せず、発光素子6
aの投射光の反射光を受光素子6bが正確に受光した場
合、受光信号Rは発光コードAに従って出力されること
になる。
At this time, no disturbance light is generated and the light emitting element 6
When the light receiving element 6b correctly receives the reflected light of the projection light a, the light receiving signal R is output according to the light emission code A.

【0040】そして、S2において一定時間経過後、S
3において、発光コードBの発光指令信号Fによって発
光素子6aを発光させた時点で、朝顔1の前に人が立っ
ている場合、発光素子6aからの投射光はその人にあた
って反射する。すると、受光素子6bはその反射光を検
出して検出信号を出力し、受光回路24はその検出信号
を増幅した受光信号Rを出力する。
After a lapse of a predetermined time in S2, S
In 3, when the light-emitting element 6a is caused to emit light by the light-emitting command signal F of the light-emitting code B, if a person stands in front of the morning glory 1, the projection light from the light-emitting element 6a reflects on the person. Then, the light receiving element 6b detects the reflected light and outputs a detection signal, and the light receiving circuit 24 outputs a light receiving signal R obtained by amplifying the detection signal.

【0041】このときに外乱光が発生せず、発光素子6
aの投射光の反射光を受光素子6bが正確に受光した場
合、受光信号Rは発光コードBに従って出力されること
になる。
At this time, no disturbance light is generated and the light emitting element 6
When the light receiving element 6b correctly receives the reflected light of the projection light a, the light receiving signal R is output according to the light emission code B.

【0042】従って、受光回路24から各発光コード
A,Bに従った受光信号Rが出力されたならば、朝顔1
の前に一定時間以上、人が立っていることがわかる。一
方、受光回路24から各発光コードA,Bに従った受光
信号Rが出力されなかったならば、朝顔1の前には一定
時間以上、人が現れなかったことがわかる。
Therefore, if the light receiving signal R is output from the light receiving circuit 24 in accordance with each of the light emitting codes A and B,
It can be seen that a person is standing for more than a certain time in front of. On the other hand, if the light receiving signal R according to each of the light emission codes A and B is not output from the light receiving circuit 24, it can be understood that no person has appeared before the morning glory 1 for a certain period of time.

【0043】また、発光コードAに従った受光信号Rは
出力されたが,発光コードBに従った受光信号Rが出力
されなかった場合は、朝顔1の前を単に人が横切っただ
けであることがわかる。
When the light reception signal R according to the light emission code A is output but the light reception signal R according to the light emission code B is not output, a person simply crosses the front of the morning glory 1. You can see that.

【0044】同様に、発光コードAに従った受光信号R
は出力されたが、発光コードBに従った受光信号Rが出
力されなかった場合は、朝顔1の前に人が現れたばかり
であることがわかる。
Similarly, the light receiving signal R according to the light emission code A
Is output, but when the light reception signal R according to the light emission code B is not output, it is understood that a person has just appeared in front of the morning glory 1.

【0045】そして、受光回路24から各発光コード
A,Bに従った受光信号Rが出力されたならばS5へ移
行し、少なくともいずれか一方の発光コードA,Bに従
った受光信号Rが出力されなかったならばS6へ移行す
る。
When the light receiving circuit 24 outputs the light receiving signal R in accordance with each of the light emitting codes A and B, the process proceeds to S5, and outputs the light receiving signal R in accordance with at least one of the light emitting codes A and B. If not, the process proceeds to S6.

【0046】S5において、マイコン22は朝顔1の前
に人が立っているとして「人検知」と判定し、その判定
結果をRAMに記憶する。そして、S7へ移行する。一
方、S6において、マイコン22は朝顔1の前に人が立
っていないとして「人非検知」と判定し、その判定結果
をRAMに記憶する。そして、S7へ移行する。
In step S5, the microcomputer 22 determines that a person is standing in front of the morning glory 1 and determines "human detection", and stores the determination result in the RAM. Then, the process proceeds to S7. On the other hand, in S6, the microcomputer 22 determines that no person is standing in front of the morning glory 1 and determines “non-detection”, and stores the determination result in the RAM. Then, the process proceeds to S7.

【0047】S7において、マイコン22は一定時間経
過するまで待ち、一定時間経過したらS1へ戻る。この
ように本実施例においては、まず、発光コードAに基づ
いて発光素子6aを発光させる。そして、一定時間後、
次は、発光コードBに基づいて発光素子6aを発光させ
る。
In S7, the microcomputer 22 waits until a predetermined time has elapsed, and returns to S1 after the predetermined time has elapsed. As described above, in this embodiment, first, the light emitting element 6a emits light based on the light emission code A. And after a certain time,
Next, the light emitting element 6a emits light based on the light emission code B.

【0048】マイコン22は、この2種類の発光コード
A,Bによる発光に対して、各発光コードA,Bに従っ
た受光信号Rが出力された場合にのみ、朝顔1の前に人
が立っている(すなわち、「人検知」)と判定する。
The microcomputer 22 detects a person in front of the morning glory 1 only when a light reception signal R according to each of the light emission codes A and B is output in response to the light emission by the two kinds of light emission codes A and B. (Ie, “human detection”).

【0049】一方、マイコン22は、2種類の発光コー
ドA,Bによる発光に対して、少なくともいずれか一方
の発光コードA,Bに従った受光信号Rが出力されなか
った場合は、朝顔1の前に人が立っていない(すなわ
ち、「人非検知」)と判定する。
On the other hand, when the light receiving signal R according to at least one of the light emission codes A and B is not output for the light emission by the two kinds of light emission codes A and B, the microcomputer 22 It is determined that a person is not standing in front (that is, “people not detected”).

【0050】ところで、この朝顔1の自動洗浄装置の設
置場所の照明としてインバータ蛍光灯が使用されている
場合には、前記したように、周期的パルス状ノイズが発
生することがある。しかしながら、その周期的パルス状
ノイズが、いずれかの発光コードA,Bと合致すること
はごく稀であり、両方の発光コードA,Bと共に合致す
ることはまずないといってよい。
When an inverter fluorescent lamp is used as an illumination of an installation place of the automatic morning glaze washing apparatus 1, periodic pulse-like noise may be generated as described above. However, it is very rare that the periodic pulse-like noise matches either of the light emission codes A and B, and it is unlikely that the noise coincides with both of the light emission codes A and B.

【0051】また、周期的パルス状ノイズ以外の外乱光
に対しても、その外乱光が両方の発光コードA,Bと共
に合致することはまずないといってよい。上記のように
本実施例においては、両方の発光コードA,Bに従った
受光信号Rが出力された場合にのみ「人検知」と判定す
るようになっている。そのため、周期的パルス状ノイズ
等の外乱光を発光素子6aからの投射光の反射光と誤っ
て「人検知」と判定することはない。
It can be said that disturbance light other than the periodic pulse-like noise rarely coincides with both the emission codes A and B. As described above, in the present embodiment, "human detection" is determined only when the light receiving signal R according to both the light emission codes A and B is output. Therefore, disturbance light such as periodic pulsed noise is not erroneously determined as “human detection” as reflected light of the projection light from the light emitting element 6a.

【0052】従って、本実施例においては、周期的パル
ス状ノイズ等の外乱光が発生しても、その影響を受ける
ことなく、朝顔1の前に立っている人を正確に検知する
ことができる。
Therefore, in this embodiment, even if disturbance light such as periodic pulse noise is generated, a person standing in front of the morning glory 1 can be accurately detected without being affected by the disturbance light. .

【0053】そして、「人非検知」という判定結果の次
に「人検知」という判定結果がでた場合、マイコン22
は前洗浄処理を行う。すなわち、マイコン22は、弁駆
動回路21を制御することにより電磁開閉弁4を一定時
間だけ開かせて水供給管3から朝顔1へ一定量の洗浄水
を供給させ、朝顔1を洗浄する。これにより、快適に小
用を足すことができると共に朝顔1を汚れにくくしてい
る。
Then, when the determination result of “human detection” follows the determination result of “non-human detection”, the microcomputer 22
Performs a pre-cleaning process. That is, the microcomputer 22 controls the valve drive circuit 21 to open the electromagnetic opening / closing valve 4 for a certain period of time to supply a certain amount of washing water from the water supply pipe 3 to the morning glory 1 to wash the morning glory 1. As a result, it is possible to comfortably add small items and to make the morning glory 1 difficult to stain.

【0054】続いて、「人検知」という判定結果の次に
「人非検知」という判定結果がでた場合、マイコン22
は小用を足し終えた人が朝顔1の前から立ち去ったと判
定し、後洗浄処理を行う。
Subsequently, when a determination result of "human non-detection" follows a determination result of "human detection", the microcomputer 22
Determines that the person who has completed the addition has left before the morning glory 1, and performs post-cleaning processing.

【0055】すなわち、マイコン22は、弁駆動回路2
1を制御することにより電磁開閉弁4を一定時間だけ開
かせて水供給管3から朝顔1へ一定量の洗浄水を供給さ
せ、朝顔1を洗浄する。
That is, the microcomputer 22 controls the valve drive circuit 2
By controlling the valve 1, the electromagnetic opening / closing valve 4 is opened for a predetermined time so that a certain amount of washing water is supplied from the water supply pipe 3 to the morning glory 1, and the morning glory 1 is washed.

【0056】このように朝顔1の自動洗浄装置において
は、小用を足そうとする人が朝顔1の前に立つと朝顔1
を洗浄し(前洗浄処理)、小用を足し終えた人が朝顔1
の前から立ち去ると再度朝顔1を洗浄(後洗浄処理)す
るようになっている。
As described above, in the automatic morning glory 1 cleaning apparatus, when a person who intends to add a small business stands in front of the morning glory 1,
After cleaning (pre-cleaning) and adding small items
After that, the morning glory 1 is washed again (post-washing process) when the user leaves from the front.

【0057】尚、本発明は上記実施例に限定されるもの
ではなく、以下の事項を変更して実施してもよい。 1)各コード「0」「1」をそれぞれ適宜に設定する。
すなわち、発光指令信号Fが適宜な時間だけ出力された
後、それと同じ時間だけ出力が停止される状態をコード
「1」とする。また、発光指令信号Fの出力が前記コー
ド「1」における適宜な時間の2倍の時間だけ停止され
る状態をコード「0」とする。
Incidentally, the present invention is not limited to the above-described embodiment, but may be carried out with the following changes. 1) Each code “0” and “1” is appropriately set.
That is, after the light emission command signal F is output for an appropriate time, the state in which the output is stopped for the same time is referred to as a code “1”. Further, a state in which the output of the light emission command signal F is stopped for twice the appropriate time in the code “1” is referred to as a code “0”.

【0058】2)発光コードA,Bを、各コード「0」
「1」の適宜な数の適宜な組合せとする。 3)発光コードをA.Bの2種類ではなく、3種類以上
用意して上記実施例と同様に実施する。
2) The light emission codes A and B are changed to each code "0".
An appropriate combination of an appropriate number of “1” is used. 3) The light emitting code is A. Instead of using two types of B, three or more types are prepared and implemented in the same manner as in the above embodiment.

【0059】4)発光指令信号Fの周波数は、インバー
タ蛍光灯の点灯周波数とは異なる範囲で適宜な周波数と
する。 また、各発光コードA,Bにおける発光指令信号Fの周
波数を異なるものにする。例えば、発光コードAにおけ
る発光指令信号Fの周波数をXKHZ とし、発光コード
Bにおける発光指令信号Fの周波数をYKHZ として実
施する。この場合は、点灯周波数の異なるインバータ蛍
光灯が複数近接して設置されている場所においても、正
確な人検知動作を行うことができる。
4) The frequency of the light emission command signal F is an appropriate frequency within a range different from the lighting frequency of the inverter fluorescent lamp. Further, the frequency of the light emission command signal F in each of the light emission codes A and B is made different. For example, the frequency of the light emission command signal F in the light emission code A is XKHz, and the frequency of the light emission command signal F in the light emission code B is YKHz. In this case, an accurate human detection operation can be performed even in a place where a plurality of inverter fluorescent lamps having different lighting frequencies are installed close to each other.

【0060】5)マイコン22にタイマ動作を行わせる
のではなく、マイコン22の周辺回路としてタイマ回路
を設け、そのタイマ回路にタイマ動作を行わせる。 6)「人非検知」という判定結果の次に「人検知」とい
う判定結果が2回連続した場合に前洗浄処理を行う。ま
た、「人検知」という判定結果の次に「人非検知」とい
う判定結果が2回連続した場合に後洗浄処理を行う。こ
の場合は、朝顔1の前を単に人が横切ったり、小用中に
人の体が揺れたりしても、より確実に人検知動作を行う
ことができ、前洗浄処理や後洗浄処理を誤って行うこと
がなくなる。
5) Instead of causing the microcomputer 22 to perform a timer operation, a timer circuit is provided as a peripheral circuit of the microcomputer 22 and the timer circuit performs the timer operation. 6) The pre-cleaning process is performed when the determination result of “human detection” follows the determination result of “human detection” twice. After the determination result of “human detection” is followed by the determination result of “non-human detection” twice, the post-cleaning process is performed. In this case, even if a person simply crosses in front of the morning glory 1 or the person's body shakes during small use, the person detection operation can be performed more reliably, and the pre-cleaning process and the post-cleaning process are performed incorrectly. To do it.

【0061】7)発光指令信号Fをデューティ50%の
パルス波ではなく任意なデューティのパルス波とする。 8)リチウム電池8を直流電源装置に置き換え、商用電
源から電源を供給する。
7) The emission command signal F is not a pulse wave with a duty of 50% but a pulse wave with an arbitrary duty. 8) Replace the lithium battery 8 with a DC power supply and supply power from a commercial power supply.

【0062】9)赤外光ではなく可視光または紫外光を
利用する。すなわち、発光素子6aは赤外光ではなく可
視光または紫外光を投射するようにし、受光素子6bは
その投射光を受光して検出信号を出力する。
9) Use visible light or ultraviolet light instead of infrared light. That is, the light emitting element 6a projects visible light or ultraviolet light instead of infrared light, and the light receiving element 6b receives the projected light and outputs a detection signal.

【0063】10)光ではなく超音波を利用する。すな
わち、発光素子6aを超音波用スーピーカに置き換え、
受光素子6bを超音波用マイクロフォンに置き換える。
また、受光回路24および発光回路23の回路構成も適
宜に変更する。そして、超音波用スーピーカからの超音
波が物体にあたって反射した音波を、超音波用マイクロ
フォンによって検出する。
10) Use ultrasonic waves instead of light. That is, the light emitting element 6a is replaced with an ultrasonic speaker,
The light receiving element 6b is replaced with an ultrasonic microphone.
Further, the circuit configurations of the light receiving circuit 24 and the light emitting circuit 23 are appropriately changed. Then, a sound wave reflected from the ultrasonic speaker from the ultrasonic speaker hits the object is detected by the ultrasonic microphone.

【0064】11)朝顔1だけでなく、洗面台等の各種
の衛生器具における自動洗浄装置に具体化する。 12)衛生器具における自動洗浄装置だけでなく、自動
ドア、FA機器等の他の物体検出装置に具体化する。
11) The present invention is embodied not only in the morning glory 1 but also in an automatic cleaning device for various sanitary appliances such as a wash basin. 12) Not only an automatic cleaning device for sanitary appliances but also other object detection devices such as automatic doors and FA devices.

【0065】13)上記1)〜12)をそれぞれ適宜に
組み合わせて実施する。
13) The above-mentioned 1) to 12) are carried out by appropriately combining them.

【0066】[0066]

【発明の効果】以上詳述したように本発明によれば、周
期的パルス状ノイズ等の外乱光が発生しても正確に物体
を検出することができる優れた効果がある。
As described above in detail, according to the present invention, there is an excellent effect that an object can be accurately detected even when disturbance light such as periodic pulse noise is generated.

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

【図1】本発明を男子用水洗小便器(朝顔)の自動洗浄
装置に具体化した一実施例の電気ブロック回路図であ
る。
FIG. 1 is an electric block circuit diagram of an embodiment in which the present invention is embodied in an automatic washing device for a flush toilet for men (morning glory).

【図2】一実施例の男子用水洗小便器(朝顔)の取り付
け状態を示す一部切欠側面図である。
FIG. 2 is a partially cutaway side view showing an attached state of a men's flush urinal (morning glory) of one embodiment.

【図3】図2に示す男子用水洗小便器(朝顔)の正面図
である。
FIG. 3 is a front view of the men's flush urinal (morning glory) shown in FIG. 2;

【図4】発光コードA,Bを示すタイムチャートであ
る。
FIG. 4 is a time chart showing light emission codes A and B.

【図5】一実施例における人検知動作を示すフローチャ
ートである。
FIG. 5 is a flowchart illustrating a human detection operation according to one embodiment.

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

6a…発光素子、6b…受光素子、22…制御判定手段
としてのマイクロコンピュータ、発光コードA…第1の
コード信号、発光コードB…第2のコード信号
6a: light emitting element, 6b: light receiving element, 22: microcomputer as control determining means, light emitting code A: first code signal, light emitting code B: second code signal

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−157333(JP,A) 特開 平4−230888(JP,A) (58)調査した分野(Int.Cl.6,DB名) G01V 8/10 E03D 5/10 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-2-157333 (JP, A) JP-A-4-230888 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G01V 8/10 E03D 5/10

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 発光素子(6a)から光を投射し、その
投射光が物体にあたって反射した反射光を受光素子(6
b)によって検出することにより物体を検知するように
した物体検出装置において、 発光素子(6a)を一定のパターンで発光させるための
第1のコード信号を出力すると共に、発光素子(6a)
を先の一定のパターンとは異なるパターンで発光させる
ための第2のコード信号を出力するコード生成手段(2
2)と、 まず最初に、第1のコード信号に基づいて発光素子(6
a)を一定のパターンで発光させ、次に、一定時間経過
後、第2のコード信号に基づいて発光素子(6a)を先
の一定のパターンとは異なるパターンで発光させ、その
第1および第2のコード信号による発光素子(6a)の
発光に対して、その両方の反射光を受光素子(6b)が
受光した場合にのみ物体が存在していると判定し、その
両方又はいずれか一方の反射光を受光素子(6b)が受
光しなかった場合は物体が存在していないと判定する制
御判定手段(22)を設けたことを特徴とする物体検出
装置。
A light is projected from a light emitting element (6a), and reflected light reflected by the projected light hitting an object is received by a light receiving element (6a).
b) detecting an object by detecting the object, wherein the first code signal for causing the light emitting element (6a) to emit light in a predetermined pattern is output, and the light emitting element (6a) is output.
Code generating means (2) for outputting a second code signal for causing the light to emit in a pattern different from the predetermined pattern.
2) First, based on the first code signal, the light emitting element (6)
a) is caused to emit light in a certain pattern, and after a certain period of time, the light-emitting element (6a) is caused to emit light in a pattern different from the previous certain pattern based on the second code signal. It is determined that an object is present only when the light receiving element (6b) receives both reflected lights with respect to the light emission of the light emitting element (6a) by the code signal of No. 2 and both or any one of them is determined. An object detection device, comprising: a control judging means (22) for judging that no object exists when the light receiving element (6b) does not receive reflected light.
JP25348193A 1992-10-09 1993-10-08 Object detection device Expired - Fee Related JP2986662B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25348193A JP2986662B2 (en) 1992-10-09 1993-10-08 Object detection device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP4-271994 1992-10-09
JP27199492 1992-10-09
JP25348193A JP2986662B2 (en) 1992-10-09 1993-10-08 Object detection device

Publications (2)

Publication Number Publication Date
JPH06207987A JPH06207987A (en) 1994-07-26
JP2986662B2 true JP2986662B2 (en) 1999-12-06

Family

ID=26541227

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25348193A Expired - Fee Related JP2986662B2 (en) 1992-10-09 1993-10-08 Object detection device

Country Status (1)

Country Link
JP (1) JP2986662B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4007965B2 (en) * 2004-01-29 2007-11-14 ホシデン株式会社 Object detection device

Also Published As

Publication number Publication date
JPH06207987A (en) 1994-07-26

Similar Documents

Publication Publication Date Title
JP2774545B2 (en) Automatic faucet device
JP2866774B2 (en) Object detection device
JP2986662B2 (en) Object detection device
JP3021253B2 (en) Object detection device
JP2952115B2 (en) Object detection device
JPH07225282A (en) Object detection apparatus
JP2587229Y2 (en) Object detection device
JP2815274B2 (en) Object detection device
JP2905016B2 (en) Object detection device
JP2889445B2 (en) Object detection device
JP2588879Y2 (en) Object detection device
JPH0714394U (en) Object detection device
JPH0755953A (en) Detecting device of object
JP2654307B2 (en) Automatic cleaning control device for sanitary appliances
JP2561787Y2 (en) Automatic urinal cleaning device for men
JPH07294662A (en) Object-detecting apparatus, and automatic washing device for sanitary fixture
JP2902237B2 (en) Automatic water supply
JP2902256B2 (en) Automatic toilet cleaning device
JPH06173311A (en) Automatic water feeder
JP2002048877A (en) Body detecting device
JPH0741483U (en) Object detection device
JP3144583B2 (en) Water supply control device
JPH05263448A (en) Automatic washing control device for various sanitary apparatus
JP3127970B2 (en) Automatic water supply
JPH0659050A (en) Object detector

Legal Events

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