JP2889445B2 - Object detection device - Google Patents

Object detection device

Info

Publication number
JP2889445B2
JP2889445B2 JP28468092A JP28468092A JP2889445B2 JP 2889445 B2 JP2889445 B2 JP 2889445B2 JP 28468092 A JP28468092 A JP 28468092A JP 28468092 A JP28468092 A JP 28468092A JP 2889445 B2 JP2889445 B2 JP 2889445B2
Authority
JP
Japan
Prior art keywords
light
microcomputer
emitting element
time
detection
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
JP28468092A
Other languages
Japanese (ja)
Other versions
JPH06138255A (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 JP28468092A priority Critical patent/JP2889445B2/en
Publication of JPH06138255A publication Critical patent/JPH06138255A/en
Application granted granted Critical
Publication of JP2889445B2 publication Critical patent/JP2889445B2/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 disturbance light is generated. That is, it cannot be determined whether or not the object is detected, and an 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の設定回数以上受光し
たときには物体が存在していると判定し、第1の設定回
数以下しか受光しないときは物体が存在していないと判
定し、前回の物体検出動作では物体が存在していないと
判定した場合、今回の物体検出動作では、発光素子の複
数回の発光に対して、その反射光を受光素子が第2の設
定回数以上受光したときには物体が存在していると判定
し、第2の設定回数以下しか受光しないときは物体が存
在していないと判定する制御判定装置を備えると共に、
第2の設定回数を第1の設定回数より大きな値としたこ
とをその要旨とする。
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 that object detection apparatus, originating
The optical element emits light multiple times at irregular time intervals to
The object detection operation for determining the presence is repeatedly performed , and when it is determined that the object is present in the previous object detection operation, in the current object detection operation, the reflected light is emitted for a plurality of light emission of the light emitting element. When the light receiving element receives light for at least the first set number of times, it is determined that an object is present. When the light receiving element receives light for less than the first set number of times, it is determined that no object is present. Is determined not to exist, in the current object detection operation, the object is present when the light receiving element receives the reflected light for a plurality of times of light emission of the light emitting element for the second set number of times or more. And a control determination device that determines that the object does not exist when light is received only less than or equal to the second set number of times.
The gist is that the second set number is set to a value larger than the first set number.

【0010】[0010]

【作用】従って本発明によれば、前回の物体検出動作で
物体が存在していると判定した場合は今回も物体が存在
しているという判定がでやすくなると共に、前回の物体
検出動作で物体が存在していないと判定した場合は今回
も物体が存在していないという判定がでやすくなる。
Therefore, according to the present invention, when it is determined that an object is present in the previous object detection operation, it is easy to determine that an object is present this time, and the object is detected in the previous object detection operation. When it is determined that the object does not exist, it is easy to determine that the object does not exist again.

【0011】そのため、一旦、物体の存在を検出すれ
ば、その後に少々の外乱光が発生しても、その後の物体
検出動作では物体が存在していると判定することにな
る。また、一旦、物体が存在していないことを検出すれ
ば、その後に少しの外乱光が発生しただけでも、その後
の物体検出動作では物体が存在していないと判定するこ
とになる。
For this reason, once the presence of an object is detected, even if a little disturbance light occurs thereafter, it is determined that the object is present in the subsequent object detection operation. Further, once it is detected that an object does not exist, even if a little disturbance light is generated thereafter, it is determined that the object does not exist in the subsequent object detection operation.

【0012】その結果、多少の外乱光が発生しても、物
体検出動作の判定が毎回異なることはなくなり、物体検
出結果の不安定さを解消することができる。
As a result, even if some disturbance light is generated, the determination of the object detection operation does not differ every time, and the instability of the object detection result can be eliminated.

【0013】[0013]

【実施例】以下、本発明の物体検出装置を男子用水洗小
便器(以下、朝顔という)の自動洗浄装置に具体化した
一実施例を、図面に従って説明する。
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.

【0014】図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.

【0015】制御箱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.

【0016】尚、発光素子6aは発光ダイオードからな
り、予め設定された波長の赤外光を投射する。また、受
光素子6bはフォトダイオードまたはフォトトランジス
タからなり、発光素子6aの投射光と同じ波長の赤外光
を受光したときにのみ検出信号を出力する。
The light emitting element 6a is composed of a light emitting diode and emits infrared light having a preset 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.

【0017】図1に、本実施例の自動洗浄装置の電気ブ
ロック回路を示す。リチウム電池8は、コントローラ7
内の定電圧回路20および弁駆動回路21に電源を供給
している。
FIG. 1 shows an electric block circuit of the automatic cleaning apparatus of 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.

【0018】定電圧回路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 switching circuits 24.

【0019】マイコン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.

【0020】そして、マイコン22は計時動作およびカ
ウント動作を行うようになっている。また、マイコン2
2は、時間T間隔毎に一定時間だけスイッチング回路2
4に指令信号Sを出力する。
The microcomputer 22 performs a timing operation and a counting operation. In addition, microcomputer 2
2 is a switching circuit 2 for a fixed time every time T interval.
4 to output a command signal S.

【0021】さらに、マイコン22は予め設定された適
宜な桁数の乱数を発生する機能をもっている。マイコン
22内のROMには、発生する乱数と同じ桁数の任意な
数値と、その数値に対応した適宜な時間のデータ(以
下、時間データという)とが予めテーブル化されてい
る。
Further, the microcomputer 22 has a function of generating a random number having an appropriate number of digits set in advance. In the ROM in the microcomputer 22, an arbitrary numerical value having the same number of digits as the generated random number and data of an appropriate time corresponding to the numerical value (hereinafter referred to as time data) are stored in a table in advance.

【0022】マイコン22は、そのROMに設定された
テーブル(以下、ROMテーブルという)と発生した乱
数とを照合し、乱数に対応した時間データを選定する。
尚、時間データは、指令信号Sの出力間隔に対して、十
分に小さな値をとるようになっている。例えば、指令信
号Sの出力間隔(時間T)に対し、時間データ(時間
t)はその1/100程度に設定されている。
The microcomputer 22 checks a table set in the ROM (hereinafter referred to as a ROM table) with the generated random numbers, and selects time data corresponding to the random numbers.
Note that the time data takes a sufficiently small value with respect to the output interval of the command signal S. For example, the time data (time t) is set to about 1/100 of the output interval (time T) of the command signal S.

【0023】そして、マイコン22は、得られた時間デ
ータに基づいて発光信号Fを出力する。弁駆動回路21
はマイコン22からの指令信号に基づいて自己保持ソレ
ノイド・バルブからなる電磁開閉弁4を開閉させる。す
なわち、弁駆動回路21がパルス状のタイミング信号を
出力する度に電磁開閉弁4の開閉の状態は切り替わり、
タイミング信号が出力されていないときには、それ以前
の開閉の状態がそのまま保持される。
Then, the microcomputer 22 outputs a light emission signal F based on the obtained time data. Valve drive circuit 21
Opens and closes the electromagnetic 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 open / close state of the solenoid on-off valve 4 is switched,
When the timing signal is not output, the previous open / closed state is kept as it is.

【0024】スイッチング回路24はマイコン22から
の指令信号Sに基づいて、オン・オフ制御される。そし
て、スイッチング回路24は、オン時に定電圧回路20
から供給される電源を受光回路25に供給し、オフ時に
受光回路25への電源供給を遮断する。
The switching circuit 24 is ON / OFF controlled based on a command signal S from the microcomputer 22. The switching circuit 24 is turned on when the constant voltage circuit 20 is turned on.
Is supplied to the light receiving circuit 25, and the power supply to the light receiving circuit 25 is cut off when the power is off.

【0025】受光回路25は、スイッチング回路24か
ら電源が供給されているときにのみ動作可能になる。
尚、マイコン22からの指令信号Sは時間T間隔毎に一
定時間だけ出力されるため、スイッチング回路24も時
間T間隔毎に一定時間だけ受光回路25に電源を供給す
る。従って、受光回路25は時間T間隔毎に一定時間だ
け電源がオンになって動作可能になる。
The light receiving circuit 25 becomes operable only when power is supplied from the switching circuit 24.
Since the command signal S from the microcomputer 22 is output for a certain period of time at intervals of time T, the switching circuit 24 also supplies power to the light receiving circuit 25 for a certain period of time at intervals of time T. Therefore, the light receiving circuit 25 is operable with the power supply being turned on for a fixed time at every time T interval.

【0026】受光回路25は受光素子6bの検出信号を
増幅し、受光信号Rとしてマイコン22に出力する。
尚、受光素子6bは、発光素子6aの投射光の反射光を
受光した場合でも、発光素子6aの投射光と同じ波長の
外乱光を受光した場合でも、同じように検出信号を出力
する。そのため、受光回路25は、発光素子6aの投射
光の反射光を受光した場合でも、発光素子6aの投射光
と同じ波長の外乱光を受光した場合でも、同じように受
光信号Rを出力する。
The light receiving circuit 25 amplifies the detection signal of the light receiving element 6b and outputs it to the microcomputer 22 as a light receiving signal R.
The light receiving element 6b outputs a detection signal in the same manner regardless of whether reflected light of the light projected from the light emitting element 6a is received or disturbance light having the same wavelength as the light projected from the light emitting element 6a. Therefore, the light receiving circuit 25 outputs the light receiving signal R in the same manner regardless of whether the light reflected from the light projected from the light emitting element 6a is received or the disturbance light having the same wavelength as the light projected from the light emitting element 6a.

【0027】発光駆動回路23は、マイコン22からの
発光信号Fに基づいて発光素子6aを発光させる。次
に、上記のように構成された本実施例における、朝顔1
の前に人が立っているかどうかを検知する動作(以下、
人検知動作という)について、図4〜図7に示すフロー
チャートに従って説明する。
The light emission drive circuit 23 causes the light emitting element 6a to emit light based on the light emission signal F from the microcomputer 22. Next, the morning glory 1 in the present embodiment configured as described above.
Action to detect if a person is standing in front of
The operation will be described with reference to flowcharts shown in FIGS.

【0028】尚、図4,図5はメインルーチンを示すフ
ローチャートである。また、図6はカウント処理のサブ
ルーチンを示すフローチャートであり、図7はウエイト
処理のサブルーチンを示すフローチャートである。
FIGS. 4 and 5 are flowcharts showing the main routine. FIG. 6 is a flowchart showing a subroutine of a count process, and FIG. 7 is a flowchart showing a subroutine of a wait process.

【0029】図4,図5に示すように、まず、ステップ
(以下、Sとする)1において、マイコン22はスイッ
チング回路24に指令信号Sを出力する。そのため、ス
イッチング回路24はオンし、受光回路25に電源を供
給する。すると、受光回路25は電源がオンになって動
作可能状態になる。そして、S2へ移行する。
As shown in FIGS. 4 and 5, first, in step (hereinafter referred to as S) 1, the microcomputer 22 outputs a command signal S to the switching circuit 24. Therefore, the switching circuit 24 turns on and supplies power to the light receiving circuit 25. Then, the light receiving circuit 25 is turned on and becomes operable. Then, the process proceeds to S2.

【0030】S2において、マイコン22はカウント動
作を開始するために、カウント値を「0」に戻す。そし
て、S3へ移行する。S3において、カウント処理のサ
ブルーチンに移行する。
In S2, the microcomputer 22 returns the count value to "0" in order to start the counting operation. Then, the process proceeds to S3. In S3, the process proceeds to a subroutine of a counting process.

【0031】すなわち、図6に示すように、まず、S3
1において、マイコン22は発光駆動回路23に発光信
号Fを出力する。すると、発光駆動回路23はその発光
信号Fに基づいて発光素子6aを発光させる。そして、
S32へ移行する。
That is, as shown in FIG.
In 1, the microcomputer 22 outputs a light emission signal F to the light emission drive circuit 23. Then, the light emission drive circuit 23 causes the light emitting element 6a to emit light based on the light emission signal F. And
The process moves to S32.

【0032】S32において、マイコン22は、受光回
路25から受光信号Rが出力されているかどうかを判別
する。すなわち、朝顔1の前に人が立っている場合、発
光素子6aからの投射光はその人にあたって反射する。
すると、受光素子6bはその反射光を検出して検出信号
を出力し、受光回路25はその検出信号を増幅した受光
信号Rを出力する。
In S32, the microcomputer 22 determines whether or not the light receiving signal R is output from the light receiving circuit 25. 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 25 outputs a light receiving signal R obtained by amplifying the detection signal.

【0033】また、朝顔1の前に人が立っていない場
合、発光素子6aからの投射光は反射せず、受光素子6
bは反射光を検出できないため検出信号を出力しない。
そのため、受光回路25は受光信号Rを出力しない。
When no person stands in front of the morning glory 1, the light projected from the light emitting element 6a is not reflected, and the light receiving element 6a is not reflected.
b does not output a detection signal because reflected light cannot be detected.
Therefore, the light receiving circuit 25 does not output the light receiving signal R.

【0034】そして、受光信号Rが出力されていれば続
くS33へ移行し、出力されていなければメインルーチ
ンのS4へ移行するS33において、マイコン22はカ
ウント値をインクリメントする。そして、メインルーチ
ンのS4へ移行するS4において、ウエイト処理のサブ
ルーチンに移行する。
If the light receiving signal R has been output, the process proceeds to S33, and if not, the process proceeds to S4 of the main routine. At S33, the microcomputer 22 increments the count value. Then, in S4, the process proceeds to S4 of the main routine, the process proceeds to a subroutine of the wait process.

【0035】すなわち、図7に示すように、まず、S4
1において、マイコン22は、予め設定された適宜な桁
数の乱数を発生する。そして、S42へ移行する。S4
2において、マイコン22は、発生した乱数をROMテ
ーブルと照合し、その乱数の数値に対応した時間データ
を選定する。尚、時間データは時間tになるように予め
定められている。そして、S43へ移行する。
That is, as shown in FIG.
In step 1, the microcomputer 22 generates a random number having an appropriate number of digits set in advance. Then, control goes to a step S42. S4
In step 2, the microcomputer 22 compares the generated random number with the ROM table and selects time data corresponding to the numerical value of the random number. The time data is set in advance so as to be the time t. Then, control goes to a step S43.

【0036】S43において、マイコン22は、選定し
た時間データ分の時間が経過するまで待ち、その時間が
経過したらメインルーチンのS5へ移行する続く、S5
〜S21においては、上記のカウント処理とウエイト処
理とを交互に繰り返す。そして、S21において10回
目のカウント処理が終了したら、図5に示すメインルー
チンのS22へ移行する。
In S43, the microcomputer 22 waits until the time corresponding to the selected time data elapses, and after the elapse of the time, shifts to S5 of the main routine.
In steps S21 to S21, the counting process and the weighting process are alternately repeated. Then, when the tenth counting process is completed in S21, the process proceeds to S22 of the main routine shown in FIG.

【0037】尚、各ウエイト処理S4,S6,S8,S
10,S12,S14,S16,S18,S20で選定
される時間データは、それぞれ時間tである。従って、
メインルーチンの周期(時間T)に対して、各ウエイト
処理に要する時間は十分に小さくなっている。
Each weight processing S4, S6, S8, S
The time data selected in 10, S12, S14, S16, S18, and S20 is time t. Therefore,
The time required for each weight process is sufficiently shorter than the cycle (time T) of the main routine.

【0038】S22において、マイコン22内のRAM
に記憶されている前回の人検知動作の判定結果が「人検
知」の場合はS23へ移行し、「人非検知」の場合はS
24へ移行する。
At S22, the RAM in the microcomputer 22
If the determination result of the previous human detection operation stored in step S23 is “human detection”, the process proceeds to step S23, and if “human non-detection”, the process proceeds to step S23.
Move to 24.

【0039】すなわち、この人検知動作のメインルーチ
ンは時間T間隔毎に繰り返され、後記するように、1回
のルーチン毎に、RAMには「人検知」または「人非検
知」という判定結果が記憶される。そこで、RAMに記
憶されている前回のメインルーチンの判定結果を参照す
るわけである。
That is, the main routine of this human detection operation is repeated at intervals of time T. As will be described later, a determination result of "human detection" or "non-human detection" is stored in the RAM for each routine. It is memorized. Therefore, the determination result of the previous main routine stored in the RAM is referred to.

【0040】S23において、カウント値が「7」以下
であればS25へ移行し、「8」以上であればS56へ
移行する。S25において、マイコン22は朝顔1の前
に人が立っていないとして「人非検知」と判定し、その
判定結果をRAMに記憶する。そして、S27へ移行す
る。
In S23, if the count value is equal to or less than "7", the flow proceeds to S25, and if it is "8" or more, the flow proceeds to S56. In S25, the microcomputer 22 determines that a person is not standing in front of the morning glory 1 and determines “non-detection”, and stores the determination result in the RAM. Then, control goes to a step S27.

【0041】一方、S26において、マイコン22は朝
顔1の前に人が立っているとして「人検知」と判定し、
その判定結果をRAMに記憶する。そして、S27へ移
行する。
On the other hand, in S26, the microcomputer 22 determines that a person is standing in front of the morning glory 1 and determines that "person detection" has been performed.
The result of the determination is stored in the RAM. Then, control goes to a step S27.

【0042】S27において、マイコン22はスイッチ
ング回路24に指令信号Sを出力するのを停止する。そ
のため、スイッチング回路24はオフし、受光回路25
への電源供給を遮断する。すると、受光回路25の電源
がオフして動作が停止する。そして、S1へ戻る。
In S27, the microcomputer 22 stops outputting the command signal S to the switching circuit 24. Therefore, the switching circuit 24 is turned off, and the light receiving circuit 25 is turned off.
Cut off the power supply to the Then, the power of the light receiving circuit 25 is turned off and the operation stops. Then, the process returns to S1.

【0043】一方、S24において、カウント値が「1
0」であればS28へ移行し、「10」でなければS2
9へ移行する。S28において、マイコン22は朝顔1
の前に人が立っているとして「人検知」と判定し、その
判定結果をRAMに記憶する。そして、S27へ移行す
る。
On the other hand, in S24, the count value becomes "1".
If "0", the process proceeds to S28, and if not "10", S2.
Move to 9. In S28, the microcomputer 22 sets the morning glory 1
Is determined to be "human detection" as a person stands in front of, and the determination result is stored in the RAM. Then, control goes to a step S27.

【0044】一方、S29において、マイコン22は朝
顔1の前に人が立っていないとして「人非検知」と判定
し、その判定結果をRAMに記憶する。そして、S27
へ移行する。
On the other hand, in S29, the microcomputer 22 determines that no person is standing in front of the morning glory 1 and determines that "person is not detected", and stores the determination result in the RAM. And S27
Move to.

【0045】このように本実施例においては、発光素子
6aの発光を時間Tという一定の周期で間欠的に行うと
共に、1周期において10回発光させるようになってい
る。また、マイコン22は、発光素子6aを発光させる
度毎に乱数を発生し、その乱数をROMテーブルと照合
することによって発光素子6aの発光間隔を選定してい
る。従って、発光素子6aの発光間隔は発生する乱数に
基づいたランダムなものになる。
As described above, in this embodiment, the light-emitting element 6a emits light intermittently at a constant period of time T, and emits light 10 times in one period. The microcomputer 22 generates a random number every time the light emitting element 6a emits light, and selects the light emitting interval of the light emitting element 6a by comparing the random number with a ROM table. Therefore, the light emission interval of the light emitting element 6a is random based on the generated random number.

【0046】そして、受光素子6bが受光する度に、マ
イコン22はカウント値をインクリメントする。続い
て、前回のメインルーチンの判定結果が「人検知」であ
る場合、カウント値が「7」以下なら「人非検知」と判
定し、カウント値が「8」以上なら「人検知」と判定す
る。
Each time the light receiving element 6b receives light, the microcomputer 22 increments the count value. Subsequently, when the result of the previous main routine is “human detection”, if the count value is “7” or less, it is determined to be “non-human detection”; I do.

【0047】すなわち、前回の判定結果が「人検知」で
ある場合、発光素子6aの10回の発光に対して、受光
素子6bが7回以下しか受光できなければ今回は「人非
検知」であると判定し、受光素子6bが8回以上受光で
きれば今回も「人検知」であると判定する。
That is, when the previous determination result is "human detection", if the light-receiving element 6b can receive no more than 7 times of light emission of the light-emitting element 6a ten times, this time is "non-human detection". It is determined that there is, and if the light receiving element 6b can receive light eight times or more, it is also determined that the detection is “human detection”.

【0048】また、前回のメインルーチンの判定結果が
「人非検知」である場合、カウント値が「10」であれ
ば「人検知」と判定し、カウント値が「10」でなけれ
ば「人非検知」と判定する。
When the result of the previous main routine is "non-human detection", if the count value is "10", "human detection" is determined, and if the count value is not "10", "human detection" is determined. Not detected "is determined.

【0049】すなわち、前回の判定結果が「人非検知」
である場合、発光素子6aの10回の発光に対して、受
光素子6bが10回共全て受光できれば今回は「人検
知」であると判定し、受光素子6bが1回でも受光でき
なければ今回も「人非検知」であると判定する。
That is, the result of the previous determination is “no person detected”.
In the case of, if the light receiving element 6b can receive all 10 times of the light emission of the light emitting element 6a for 10 times, it is determined to be "human detection" this time, and if the light receiving element 6b cannot receive even one time, this time Is also determined to be “non-human detection”.

【0050】従って、前回の判定結果が「人検知」であ
る場合は今回の判定結果も「人検知」になりやすく、前
回の判定結果が「人非検知」である場合は今回の判定結
果も「人非検知」になりやすい。いうなれば、人検知動
作に「ヒステリシス」をつけているわけである。
Therefore, when the previous determination result is “human detection”, the present determination result is also likely to be “human detection”, and when the previous determination result is “non-human detection”, the current determination result is also It is easy to be "non-detected". In other words, "hysteresis" is added to the human detection operation.

【0051】以上詳述したように本実施例では、発光素
子6aをランダムな発光間隔で10回発光させるため、
周期的な外乱光が発生したとしても、その外乱光と発光
素子6aの発光とが完全に合致することはまずなくな
る。従って、本実施例は、前記したような周期的パルス
状ノイズに対しても、その影響を受けることなく正確に
人の存在を検知することができる。
As described in detail above, in this embodiment, the light emitting element 6a emits light 10 times at random light emitting intervals.
Even if periodic disturbance light is generated, it is unlikely that the disturbance light completely matches the light emission of the light emitting element 6a. Therefore, the present embodiment can accurately detect the presence of a person without being affected by the periodic pulse noise as described above.

【0052】加えて、人検知動作に「ヒステリシス」を
つけたことにより、一旦「人検知」という判定結果が出
ると、その後に何らかの原因による外乱光が少々発生し
たとしても、その後の人検知動作では引き続き「人検
知」という判定を出すことになる。
In addition, by adding "hysteresis" to the human detection operation, once the determination result of "human detection" comes out, even if a little disturbance light is generated for some reason thereafter, the subsequent human detection operation Then, the determination of "human detection" will be continued.

【0053】また、一旦「人非検知」という判定結果が
出ると、その後に少しの外乱光が発生しただけでも、そ
の後の人検知動作では引き続き「人非検知」という判定
を出すことになる。
Further, once the determination result of "non-detection of human" is obtained, even if a little disturbance light is generated thereafter, the determination of "non-detection of human" is continued in the subsequent human detection operation.

【0054】従って、多少の外乱光が発生しても、人検
知動作の判定結果が毎回異なることはなく、安定した判
定結果を得ることができる。また、発光駆動回路23や
受光回路25の動作が不安定な場合でも、安定した判定
結果を得ることができる。
Therefore, even if some disturbance light occurs, the determination result of the human detection operation does not differ every time, and a stable determination result can be obtained. Even when the operation of the light emission drive circuit 23 and the light reception circuit 25 is unstable, a stable determination result can be obtained.

【0055】ところで、受光回路25は時間T間隔毎に
動作可能になるため、上記のルーチンは時間T間隔毎に
繰り返される。すなわち、1回のルーチン毎に、マイコ
ン22内のRAMには「人検知」または「人非検知」と
いう判定結果が記憶される。
Incidentally, since the light receiving circuit 25 becomes operable at intervals of time T, the above routine is repeated at intervals of time T. That is, the determination result of “human detection” or “non-human detection” is stored in the RAM in the microcomputer 22 for each routine.

【0056】そして、「人非検知」という判定結果の次
に「人検知」という判定結果が2回連続した場合、マイ
コン22は朝顔1の前に立っている人が小用を足そうと
していると判定する。
When the determination result of "human detection" continues twice after the determination result of "non-detection of human", the microcomputer 22 tries to add a small person to the person standing in front of the morning glory 1. Is determined.

【0057】これは、朝顔1の前を人が横切った場合で
も、1回だけなら「人検知」という判定結果がでること
があるためである。すなわち、「人検知」という判定結
果が2回連続すれば、朝顔1の前に立っている人は時間
T以上立ち止まっていることになり、単に朝顔1の前を
横切ったのではなく、小用を足そうとしていることがわ
かるわけである。
This is because even if a person crosses in front of the morning glory 1, a determination result of "human detection" may occur only once. That is, if the determination result of “human detection” is repeated twice, the person standing in front of the morning glory 1 has stopped for the time T or more, and it is not merely crossing in front of the morning glory 1 but small You are trying to add

【0058】すると、マイコン22は弁駆動回路21を
制御することにより電磁開閉弁4を一定時間だけ開かせ
て水供給管3から朝顔1へ一定量の洗浄水を供給させ、
朝顔1を洗浄する。これにより、快適に小用を足すこと
ができると共に朝顔1を汚れにくくしている。
Then, the microcomputer 22 controls the valve drive circuit 21 to open the electromagnetic opening / closing valve 4 for a fixed time to supply a fixed amount of washing water from the water supply pipe 3 to the morning glory 1.
Wash morning glory 1. As a result, it is possible to comfortably add small items and to make the morning glory 1 difficult to stain.

【0059】続いて、「人検知」という判定結果の次に
「人非検知」という判定結果が2回連続した場合、マイ
コン22は小用を足し終えた人が朝顔1の前から立ち去
ったと判定する。
Subsequently, when the determination result of "human detection" is followed by the determination result of "non-human detection" twice, the microcomputer 22 determines that the person who has completed the small use has left before the morning glory 1. I do.

【0060】これは、小用中に人の体が揺れた場合で
も、1回だけなら「人非検知」という判定結果がでるこ
とがあるためである。すなわち、「人非検知」という判
定結果が2回連続すれば、朝顔1の前には時間T以上人
がいないことになり、小用を足し終えた人が立ち去った
ことが確実にわかるわけである。
This is because even if the body of the person shakes during the small use, a determination result of "non-detection of the person" may occur only once. That is, if the determination result of “people non-detection” is repeated twice, there is no person for more than the time T in front of the morning glory 1, and it can be surely confirmed that the person who has completed the small-work has left. is there.

【0061】すると、マイコン22は弁駆動回路21を
制御することにより電磁開閉弁4を一定時間だけ開かせ
て水供給管3から朝顔1へ一定量の洗浄水を供給させ、
朝顔1を洗浄する。
Then, the microcomputer 22 controls the valve drive circuit 21 to open the electromagnetic on-off 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.
Wash morning glory 1.

【0062】このように朝顔1の自動洗浄装置において
は、小用を足そうとする人が朝顔1の前に立つと朝顔1
を洗浄し(前洗浄処理)、小用を足し終えた人が朝顔1
の前から立ち去ると再度朝顔1を洗浄(後洗浄処理)す
るようになっている。
As described above, in the apparatus for automatically cleaning morning glory 1, when a person who wants to add a small product stands in front of 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.

【0063】尚、本発明は上記実施例に限定されるもの
ではなく、以下の事項を変更して実施してもよい。 1)1周期における発光素子6aの発光回数を10回で
はなく、適宜な回数にする。
Note that the present invention is not limited to the above-described embodiment, and may be implemented with the following changes. 1) The number of times of light emission of the light emitting element 6a in one cycle is not 10 but an appropriate number.

【0064】2)光間隔を公約数をもたない適宜な時
間間隔に設定すれば、上記実施例と同様に、周期的パル
ス状ノイズに対して効果がある。
[0064] 2) is set to an appropriate time interval without a common divisor of the light - emitting interval, similarly to the above-described embodiment, it is effective against periodic pulse-like noise.

【0065】3)マイコン22にカウント動作を行わせ
るのではなく、マイコン22の周辺回路としてカウント
回路を設け、そのカウント回路にカウント動作を行わせ
る。 4)マイコン22から指令信号Sが出力される間隔を、
時間Tではなく適宜な時間に設定する。すなわち、発光
素子6aの発光の周期を適宜に設定する。
3) Instead of causing the microcomputer 22 to perform a counting operation, a counting circuit is provided as a peripheral circuit of the microcomputer 22 and the counting circuit performs the counting operation. 4) The interval at which the command signal S is output from the microcomputer 22 is
An appropriate time is set instead of the time T. That is, the light emission period of the light emitting element 6a is set appropriately.

【0066】5)「人非検知」という判定結果の次に
「人検知」という判定結果が1回だけあった場合でも前
洗浄処理を行う。また、「人検知」という判定結果の次
に「人非検知」という判定結果が1回だけあった場合で
も後洗浄処理を行う。
5) The pre-cleaning process is performed even if the determination result of "human detection" is found only once after the determination result of "human non-detection". The post-cleaning process is performed even when the determination result of “human detection” is once after the determination result of “human detection”.

【0067】6)マイコン22に計時動作を行わせるの
ではなく、マイコン22の周辺回路としてタイマ回路を
設け、そのタイマ回路に計時動作を行わせる。 7)マイコン22をパーソナルコンピュータ等の外部装
置に置き換える。
6) Instead of causing the microcomputer 22 to perform a timekeeping operation, a timer circuit is provided as a peripheral circuit of the microcomputer 22 and the timer circuit performs the timekeeping operation. 7) Replace the microcomputer 22 with an external device such as a personal computer.

【0068】8)発光信号Fを、適宜な周波数で任意な
デューティの複数のパルスとする。例えば、10KHZ
、デューティ80%のパルス10個で発光信号Fを構
成する。
8) The light emission signal F is a plurality of pulses having an appropriate frequency and an arbitrary duty. For example, 10KHz
The light emission signal F is composed of ten pulses with a duty of 80%.

【0069】9)リチウム電池8を直流電源装置に置き
換え、商用電源から電源を供給する。 10)赤外光ではなく可視光または紫外光を利用する。
すなわち、発光素子6aは赤外光ではなく可視光または
紫外光を投射するようにし、受光素子6bはその投射光
を受光して検出信号を出力する。
9) The lithium battery 8 is replaced with a DC power supply, and power is supplied from a commercial power supply. 10) 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.

【0070】11)光ではなく超音波を利用する。すな
わち、発光素子6aを超音波用スーピーカに置き換え、
受光素子6bを超音波用マイクロフォンに置き換える。
また、受光回路25および発光回路23の回路構成も適
宜に変更する。そして、超音波用スーピーカからの超音
波が物体にあたって反射した音波を、超音波用マイクロ
フォンによって検出する。
11) 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 25 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.

【0071】12)朝顔1だけでなく、洗面台等の各種
の衛生器具における自動洗浄装置に具体化する。 13)衛生器具における自動洗浄装置だけでなく、自動
ドア、FA機器等の他の物体検出装置に具体化する。
12) 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. 13) Not only an automatic cleaning device for sanitary appliances but also other object detection devices such as automatic doors and FA devices.

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

【0073】[0073]

【発明の効果】以上詳述したように本発明によれば、周
期的パルス状ノイズ等の外乱光が発生しても正確に物体
を検出することができる優れた効果がある。
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 automatic cleaning device according to one embodiment of the present invention.

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

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

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

【図5】一実施例における人検知動作のメインルーチン
を示すフローチャートである。
FIG. 5 is a flowchart illustrating a main routine of a human detection operation in one embodiment.

【図6】一実施例における人検知動作のカウント処理の
サブルーチンを示すフローチャートである。
FIG. 6 is a flowchart illustrating a subroutine of a count process of a human detection operation in one embodiment.

【図7】一実施例における人検知動作のウエイト処理の
サブルーチンを示すフローチャートである。
FIG. 7 is a flowchart illustrating a subroutine of a wait process of a human detection operation in one embodiment.

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

6a…発光素子、6b…受光素子、22…制御判定装置
としてのマイクロコンピュータ
6a: light-emitting element, 6b: light-receiving element, 22: microcomputer as control determination device

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−296680(JP,A) 特開 平2−300687(JP,A) 実開 平2−7592(JP,U) 特公 平3−77896(JP,B2) 特公 平3−32030(JP,B2) (58)調査した分野(Int.Cl.6,DB名) G01V 9/04 E03D 5/10 G01J 1/02 G01J 1/42 - 1/44 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-3-296680 (JP, A) JP-A-2-300687 (JP, A) JP-A-2-7592 (JP, U) 77896 (JP, B2) JP 3-32030 (JP, B2) (58) Fields investigated (Int. Cl. 6 , DB name) G01V 9/04 E03D 5/10 G01J 1/02 G01J 1/42- 1/44

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 発光素子(6a)から光を投射し、その
投射光が物体にあたって反射した反射光を受光素子(6
b)によって検出することにより物体を検知する物体検
出装置において、発光素子(6a)を不規則な時間間隔で複数回発光させ
て物体の存在を判定する物体検出動作を繰り返し行い
前回の物体検出動作では物体が存在していると判定した
場合、今回の物体検出動作では、発光素子(6a)の複
数回の発光に対して、その反射光を受光素子(6b)が
第1の設定回数以上受光したときには物体が存在してい
ると判定し、第1の設定回数以下しか受光しないときは
物体が存在していないと判定し、前回の物体検出動作で
は物体が存在していないと判定した場合、今回の物体検
出動作では、発光素子(6a)の複数回の発光に対し
て、その反射光を受光素子(6b)が第2の設定回数以
上受光したときには物体が存在していると判定し、第2
の設定回数以下しか受光しないときは物体が存在してい
ないと判定する制御判定装置(22)を備えると共に、 第2の設定回数を第1の設定回数より大きな値としたこ
とを特徴とする物体検出装置。
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).
In the object detection apparatus detect an object by detecting by b), a plurality of times to emit light emitting element (6a) at irregular time intervals
Repeat the object detection operation to determine the presence of the object
If it is determined in the previous object detection operation that an object is present, in the current object detection operation, the light-receiving element (6b) receives the reflected light from the light-emitting element (6a) for a plurality of light-emissions. It is determined that an object is present when light is received more than the set number of times, and it is determined that an object is not present when light is received less than the first set number of times, and no object is present in the previous object detection operation. In the object detection operation of this time, the object is present when the light receiving element (6b) receives the reflected light more than the second set number of times for the light emission of the light emitting element (6a) a plurality of times. And the second
An object characterized by comprising a control determining device (22) for determining that an object does not exist when light is received no more than the set number of times, and wherein the second set number is set to a value larger than the first set number. Detection device.
JP28468092A 1992-10-22 1992-10-22 Object detection device Expired - Fee Related JP2889445B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28468092A JP2889445B2 (en) 1992-10-22 1992-10-22 Object detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28468092A JP2889445B2 (en) 1992-10-22 1992-10-22 Object detection device

Publications (2)

Publication Number Publication Date
JPH06138255A JPH06138255A (en) 1994-05-20
JP2889445B2 true JP2889445B2 (en) 1999-05-10

Family

ID=17681593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28468092A Expired - Fee Related JP2889445B2 (en) 1992-10-22 1992-10-22 Object detection device

Country Status (1)

Country Link
JP (1) JP2889445B2 (en)

Also Published As

Publication number Publication date
JPH06138255A (en) 1994-05-20

Similar Documents

Publication Publication Date Title
US5063622A (en) Water supply control system
TW201333678A (en) Methods for managing power consumption for a hands-free dispenser
JP2889445B2 (en) Object detection device
JP2815274B2 (en) Object detection device
JP2866774B2 (en) Object detection device
JP2952115B2 (en) Object detection device
JP2986662B2 (en) Object detection device
JP2587229Y2 (en) Object detection device
JP2905016B2 (en) Object detection device
JP3021253B2 (en) Object detection device
JP2588879Y2 (en) Object detection device
JPH07225282A (en) Object detection apparatus
TW212822B (en)
JPH0755953A (en) Detecting device of object
JPH0659050A (en) Object detector
JP3144583B2 (en) Water supply control device
JP2902237B2 (en) Automatic water supply
JP2502946B2 (en) Water supply control device
JP3189960B2 (en) Water supply control device
JPH05280082A (en) Automatic cleaning control device for sanitary device
JP2889437B2 (en) Automatic water supply
JPH11152775A (en) Sterilized water supply device
JPH0587587U (en) Object detection device
JPH05118071A (en) Water supply controller
JPH0696872B2 (en) Water supply control device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090219

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100219

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100219

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110219

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees