[go: up one dir, main page]

JPH07209435A - Sanitary device using distance sensor - Google Patents

Sanitary device using distance sensor

Info

Publication number
JPH07209435A
JPH07209435A JP2198794A JP2198794A JPH07209435A JP H07209435 A JPH07209435 A JP H07209435A JP 2198794 A JP2198794 A JP 2198794A JP 2198794 A JP2198794 A JP 2198794A JP H07209435 A JPH07209435 A JP H07209435A
Authority
JP
Japan
Prior art keywords
distance
voltage
distance sensor
light
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2198794A
Other languages
Japanese (ja)
Other versions
JP2992859B2 (en
Inventor
Toshiaki Takahane
利明 高羽
Hiroaki Araki
宏明 新木
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.)
Inax Corp
Original Assignee
Inax Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inax Corp filed Critical Inax Corp
Priority to JP2198794A priority Critical patent/JP2992859B2/en
Publication of JPH07209435A publication Critical patent/JPH07209435A/en
Application granted granted Critical
Publication of JP2992859B2 publication Critical patent/JP2992859B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Sanitary Device For Flush Toilet (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

PURPOSE:To provide a sanitary device having a distance sensor in which the step width can be uniformly set even with a far or near detection setting distance when the distance with a human body is measured. CONSTITUTION:In a sanitary device having a distance sensor having a light emitting element 2 for projecting a light synchronously with intermittent light projecting timing, a semiconductor position detecting element 1 to which a photoelectric current is carried proportionally in conformation of the incident position of the light, current/voltage converting circuits 11, 12 for converting the respective photoelectric currents of the semiconductor position detecting element 1 to voltage, integrating circuit 13, 14 for averaging the voltages from the current/voltage converting circuits 11, 12, and a microcomputer 15 for arithmetically operating the distance between a subject to be measured and the semiconductor position detecting element 1 by the principle of triangulation on the basis of the averaged voltage, the resistance of one of the resistors connected in series to the input terminals of operating amplifiers constituting the integrating circuits 13, 14 is made variable.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、自動水栓,便器洗浄装
置,温水洗浄便座,ハンドドライヤ−,温風発生機付化
粧台等の衛生装置に関するものであり、詳しくは、半導
体位置検出素子を利用して三角測量法により被測定物と
の間の距離を測定し、その距離デ−タを人体検知器等と
して用いる距離センサを備えた衛生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sanitary device such as an automatic water faucet, a toilet bowl cleaning device, a hot water washing toilet seat, a hand dryer, and a dressing table with a hot air generator. The present invention relates to a sanitary device equipped with a distance sensor that measures the distance to an object to be measured by a triangulation method and uses the distance data as a human body detector or the like.

【0002】[0002]

【従来の技術】従来、図2に示すように、半導体位置検
出素子(Position Sensitive Ph
oto Detector)1を受光素子として用い、
発光素子2からの投光が被測定物3で反射した光が受光
される半導体位置検出素子1上のスポット位置を検出
し、三角測量の原理を利用して被測定物3との間の距離
dを測定する距離センサ5を用いて人体等を検出し、電
磁バルブ,温風ファン等を駆動制御する自動水栓,便器
洗浄装置,温水洗浄便座,ハンドドライヤ−,温風発生
機付化粧台等の衛生装置がある。上記三角測量の原理
は、半導体位置検出素子1の二つの端子から得られる光
電流値をそれぞれ電圧値に変換し、これらの電圧値に基
づいて距離dを演算するものである。
2. Description of the Related Art Conventionally, as shown in FIG. 2, a semiconductor position detecting element (Position Sensitive Ph) is used.
auto detector 1 as a light receiving element,
The distance from the object 3 to be measured is detected by detecting the spot position on the semiconductor position detecting element 1 where the light emitted from the light emitting element 2 is reflected by the object 3 to be measured and the principle of triangulation is used. An automatic faucet that detects the human body using the distance sensor 5 that measures d, and drives and controls an electromagnetic valve, a hot air fan, etc., a toilet bowl cleaning device, a hot water washing toilet seat, a hand dryer, and a dressing table with a hot air generator. There is a sanitary device such as. The principle of triangulation is to convert the photocurrent values obtained from the two terminals of the semiconductor position detecting element 1 into voltage values and calculate the distance d based on these voltage values.

【0003】図3は、上記従来の衛生装置に用いられる
距離センサ5の回路図であり、図3に示すように半導体
位置検出素子1の二つの端子から得られるそれぞれの光
電流値I1,I2を、電圧値V1,V2に変換するため
に電流/電圧変換回路11,12が用いられる。電流/
電圧変換回路11は、オペアンプOP1と抵抗R1とか
ら成り、電流/電圧変換回路12は、オペアンプOP2
と抵抗R2とから成っている。
FIG. 3 is a circuit diagram of the distance sensor 5 used in the conventional sanitary device. As shown in FIG. 3, the photocurrent values I1 and I2 obtained from the two terminals of the semiconductor position detecting element 1 are shown. Are converted into voltage values V1 and V2 using current / voltage conversion circuits 11 and 12. Current /
The voltage conversion circuit 11 includes an operational amplifier OP1 and a resistor R1, and the current / voltage conversion circuit 12 includes an operational amplifier OP2.
And resistor R2.

【0004】オペアンプOP1の出力側にはコンデンサ
C1が接続され、オペアンプOP2の出力側にはコンデ
ンサC2が接続されている。また、コンデンサC1には
抵抗R21を入力抵抗とする積分回路13が接続され、
コンデンサC2には抵抗R22を入力抵抗とする積分回
路14が接続されている。この積分回路13,14はオ
ペアンプ回路で構成され、電流/電圧変換回路11,1
2から出力された電圧値V1,V2を平均化するために
設けられている。そして、この積分回路13,14で平
均化された電圧値V1,V2がA/D変換器23,24
でディジタル値に変換されたあとマイクロコンピュ−タ
15に入力されると、マイクロコンピュ−タ15は、平
均化された電圧値V1,V2のディジタル値に基づいて
前記三角測量の原理で半導体位置検出素子1と被測定物
3との間の距離を演算し、その距離がしきい値以下であ
る場合に検知信号を出力する。
A capacitor C1 is connected to the output side of the operational amplifier OP1, and a capacitor C2 is connected to the output side of the operational amplifier OP2. Further, an integrating circuit 13 having a resistor R21 as an input resistance is connected to the capacitor C1,
An integrating circuit 14 having a resistor R22 as an input resistor is connected to the capacitor C2. The integrating circuits 13 and 14 are composed of operational amplifier circuits, and the current / voltage converting circuits 11 and 1 are
It is provided for averaging the voltage values V1 and V2 output from the circuit 2. The voltage values V1 and V2 averaged by the integrating circuits 13 and 14 are A / D converters 23 and 24.
When it is input to the micro computer 15 after being converted into a digital value by, the micro computer 15 detects the semiconductor position on the basis of the triangulation principle based on the averaged digital values of the voltage values V1 and V2. The distance between the element 1 and the DUT 3 is calculated, and a detection signal is output when the distance is less than or equal to a threshold value.

【0005】一方、マイクロコンピュ−タ15には、抵
抗R3を介してトランジスタQ1が接続されており、マ
イクロコンピュ−タ15から投光パルスが出力される
と、トランジスタQ1がその投光パルスに同期してオン
される。そしてトランジスタQ1のオン時に電源電圧V
Bから発光素子2に電流が通電され、発光素子2から間
欠投光される。また、マイクロコンピュ−タ15にはA
/D変換器25が接続され、そのA/D変換器25には
可変抵抗器VR26が接続されており、その可変抵抗器
VR26の調節により前記検知距離のしきい値が設定さ
れる。
On the other hand, a transistor Q1 is connected to the microcomputer 15 via a resistor R3, and when a light emitting pulse is output from the microcomputer 15, the transistor Q1 is synchronized with the light emitting pulse. Then it is turned on. Then, when the transistor Q1 is turned on, the power supply voltage V
A current is passed from B to the light emitting element 2, and the light emitting element 2 emits light intermittently. Also, the microcomputer 15 has an A
A / D converter 25 is connected, and a variable resistor VR26 is connected to the A / D converter 25, and the threshold value of the detection distance is set by adjusting the variable resistor VR26.

【0006】発光素子2から間欠投光される結果、被測
定物3で反射した反射光は間欠的に半導体位置検出素子
1で受光される。そのため、電流/電圧変換回路11,
12から出力される電圧値V1,V2は投光時と非投光
時で変化する。そのため、マイクロコンピュ−タ15
は、投光及び非投光タイミングそれぞれにおける電圧値
V1,V2の変動分をディジタル値で演算し、その変動
分について半導体位置検出素子1と被測定物3との間の
距離を演算したうえ、その距離がしきい値以下である場
合に検知信号を出力する。尚、電流/電圧変換回路11
から出力される電圧値V1は、基準電圧E1との差(V
1=E1−I1・R1)に基づくものであり、電流/電
圧変換回路12から出力される電圧値V2は、基準電圧
(E1+E2)との差{V2=(E1+E2)+(I1
+I2)・R2}に基づくものである。
As a result of intermittent light emission from the light emitting element 2, the reflected light reflected by the DUT 3 is intermittently received by the semiconductor position detecting element 1. Therefore, the current / voltage conversion circuit 11,
The voltage values V1 and V2 output from 12 change during light projection and during non-light projection. Therefore, the microcomputer 15
Calculates the fluctuations of the voltage values V1 and V2 at the light projection and non-lighting timings by digital values, and calculates the distance between the semiconductor position detecting element 1 and the DUT 3 for the fluctuations. If the distance is less than or equal to the threshold value, a detection signal is output. The current / voltage conversion circuit 11
The voltage value V1 output from the
1 = E1−I1 · R1), and the voltage value V2 output from the current / voltage conversion circuit 12 is a difference {V2 = (E1 + E2) + (I1) from the reference voltage (E1 + E2).
+ I2) .R2}.

【0007】[0007]

【発明が解決しようとする課題】上記従来の距離センサ
5では、電圧値V1,V2をディジタル値に変換する際
に用いられるA/D変換器23,24、及びしきい値設
定回路のA/D変換器25は、安価な8ビットタイプが
用いられている。従って、この8ビットタイプA/D変
換器の最大組み合わせ出力は256段階であり、0〜2
55までの値しか取ることができない。即ち、半導体位
置検出素子1で受光される受光ポイントの最大分解能は
255であり、また、しきい値設定回路のA/D変換器
25のディジタル出力値をVとすればV=0〜255の
範囲でしか設定できない。しきい値を(J/I)s、
(但しJはA/D変換器23の出力値であり、IはA/
D変換器24の出力値である)とすれば、マイクロコン
ピュ−タ15は、J/Iの値と、しきい値(J/I)s
とを比較し、J/Iの値がしきい値(J/I)sより小
さい場合に人体等の検知信号を出力する。
In the conventional distance sensor 5, the A / D converters 23 and 24 used when converting the voltage values V1 and V2 into digital values, and the A / D converter of the threshold value setting circuit. An inexpensive 8-bit type is used for the D converter 25. Therefore, the maximum combined output of this 8-bit type A / D converter is 256 steps, and 0 to 2
Only values up to 55 can be taken. That is, the maximum resolution of the light receiving point received by the semiconductor position detecting element 1 is 255, and if the digital output value of the A / D converter 25 of the threshold value setting circuit is V, V = 0 to 255 Can only be set within the range. The threshold is (J / I) s,
(However, J is the output value of the A / D converter 23, and I is A / D
(The output value of the D converter 24), the microcomputer 15 determines the value of J / I and the threshold value (J / I) s.
When the value of J / I is smaller than the threshold value (J / I) s, a detection signal of a human body or the like is output.

【0008】図2において、設定する距離をd、レンズ
21,22間の距離をB、レンズ21,22と半導体位
置検出素子1間の距離をf、半導体位置検出素子1の受
光可能な長さをLとすれば、Iが255の場合、Jは1
ステップで設定可能である。このとき、I/J=(L・
d)/(B・f)より、d=(I・B・f/L)×(1
/J)となり、上記の条件では(I・B・f/L)が固
定値になるため、dはJに反比例するのでdは遠方設定
ほどステップ幅が広い。図4は、d=(I・B・f/
L)×(1/J)を模式的に示したグラフであり、遠方
ほどラフな設定(ステップ幅が広い設定)になるという
ことを示したものである。勿論、A/D変換器23,2
4、及びしきい値設定回路のA/D変換器25をビット
数の大きなものにすれば、ある程度この問題を解決する
ことが可能であるが、コストが高くなるという問題があ
る。
In FIG. 2, the distance to be set is d, the distance between the lenses 21 and 22 is B, the distance between the lenses 21 and 22 and the semiconductor position detecting element 1 is f, and the light receiving length of the semiconductor position detecting element 1 is Is L, and if I is 255, J is 1
It can be set in steps. At this time, I / J = (L ·
From d) / (B · f), d = (I · B · f / L) × (1
/ J), and under the above conditions, (I · B · f / L) is a fixed value, and d is inversely proportional to J. Therefore, the farther the d is set, the wider the step width. In FIG. 4, d = (I · B · f /
L) × (1 / J) is a graph schematically showing that the farther the distance, the rougher the setting becomes (the wider the step width is). Of course, the A / D converters 23, 2
4, and if the A / D converter 25 of the threshold value setting circuit has a large number of bits, this problem can be solved to some extent, but there is a problem that the cost becomes high.

【0009】そこで本発明では、設定する距離dが遠方
でも、近くでもステップ幅が均一にできるような距離セ
ンサをコストを上げずに提供し、この距離センサを用い
た衛生装置が使用者等を正確に検知できるようにするこ
とを解決すべき技術的課題とするものである。
In view of the above, the present invention provides a distance sensor which can make the step width uniform even if the set distance d is distant or near, without increasing the cost, and a sanitary device using this distance sensor can be used by a user or the like. The technical problem to be solved is to enable accurate detection.

【0010】[0010]

【課題を解決するための手段】上記課題解決のための技
術的手段は、間欠投光タイミングに同期して投光する発
光素子と、光の入射位置に対応して比例的に光電流が通
電される受光素子としての半導体位置検出素子と、前記
半導体位置検出素子の光電流のそれぞれを電圧に変換す
る電流/電圧変換回路と、その電流/電圧変換回路から
出力されたそれぞれの電圧をコンデンサと抵抗とを介し
て入力し平均化するオペアンプ使用の積分回路と、平均
化された前記それぞれの電圧をディジタル値に変換する
A/D変換回路と、各A/D変換回路から出力されたそ
れぞれのディジタル値に基づいて被検知体と前記半導体
位置検出素子間の距離を三角測量法の原理で演算し、そ
の距離がしきい値以下であるとき被検知体を検知し、そ
の検知信号を出力する距離演算手段とを有する距離セン
サを用いた自動水栓,便器洗浄装置等の衛生装置におい
て、前記積分回路を構成する前記それぞれのオペアンプ
の入力端子に直列に接続された抵抗の一方を抵抗値可変
とすることである。
The technical means for solving the above-mentioned problems is to provide a light emitting element which emits light in synchronization with intermittent light emitting timing and a photocurrent which is proportional to the light incident position corresponding to the incident position of light. A semiconductor position detecting element as a light receiving element, a current / voltage converting circuit for converting each of the photocurrents of the semiconductor position detecting element into a voltage, and each voltage output from the current / voltage converting circuit as a capacitor. An integrating circuit using an operational amplifier for inputting via a resistor and averaging, an A / D converting circuit for converting the respective averaged voltages into digital values, and respective output from each A / D converting circuit. The distance between the object to be detected and the semiconductor position detecting element is calculated based on the digital value by the principle of triangulation method, and when the distance is less than the threshold value, the object is detected and the detection signal is output. In a sanitary device such as an automatic water faucet or a toilet bowl cleaning device using a distance sensor having a distance calculating means, one of the resistors connected in series to the input terminals of the operational amplifiers forming the integrating circuit has a resistance value. It is to be variable.

【0011】[0011]

【作用】上記構成の距離センサを用いた自動水栓,便器
洗浄装置等の衛生装置によれば積分回路を構成する前記
それぞれのオペアンプの入力端子に直列に接続された抵
抗の一方を可変抵抗器としたため、各積分回路で平均化
され、各A/D変換回路でディジタル値に変換された二
つの光電流変換電圧が例えば1対1になるように可変抵
抗器を調節し、しきい値を設定すれば、被検知体と距離
センサとの間の距離は、それぞれのオペアンプの入力端
子に直列に接続された二つの抵抗の抵抗値の比率に比例
した値になり、検出距離が遠方でも近くでもステップ幅
が一定になる。
According to a sanitary device such as an automatic faucet and a toilet bowl cleaning device using the distance sensor having the above-mentioned configuration, one of the resistors connected in series to the input terminals of the respective operational amplifiers constituting the integrating circuit is a variable resistor. Therefore, the variable resistor is adjusted so that the two photocurrent conversion voltages averaged by each integration circuit and converted into a digital value by each A / D conversion circuit become, for example, 1: 1 and the threshold value is set. If set, the distance between the object to be sensed and the distance sensor will be proportional to the ratio of the resistance values of the two resistors connected in series to the input terminals of each operational amplifier, and the detection distance will be short even at a long distance. But the step size is constant.

【0012】[0012]

【実施例】次に、本発明の一実施例を図面を参照しなが
ら説明する。図1は、自動水栓,便器洗浄装置,温水洗
浄便座,ハンドドライヤ−,温風発生機付化粧台等の衛
生装置に備えられた距離センサ10の電子回路である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows an electronic circuit of a distance sensor 10 provided in a sanitary device such as an automatic water faucet, a toilet bowl cleaning device, a hot water cleaning toilet seat, a hand dryer, and a dressing table with a hot air generator.

【0013】以下、距離センサ10について説明する。
尚、前記従来の距離センサ5を構成する部品と同一部品
については同一符号で説明する。図1に示すように半導
体位置検出素子1の二つの端子から得られるそれぞれの
光電流値I1,I2を、電圧値V1,V2に変換するた
めの電流/電圧変換回路11は、オペアンプOP1と抵
抗R1とから成り、電流/電圧変換回路12は、オペア
ンプOP2と抵抗R2とから成っている。
The distance sensor 10 will be described below.
The same components as those constituting the conventional distance sensor 5 will be described with the same reference numerals. As shown in FIG. 1, the current / voltage conversion circuit 11 for converting the respective photocurrent values I1 and I2 obtained from the two terminals of the semiconductor position detecting element 1 into voltage values V1 and V2 includes an operational amplifier OP1 and a resistor. The current / voltage conversion circuit 12 includes an operational amplifier OP2 and a resistor R2.

【0014】オペアンプOP1の出力側にはコンデンサ
C1が接続され、オペアンプOP2の出力側にはコンデ
ンサC2が接続されている。また、コンデンサC1には
抵抗R21を入力抵抗とするオペアンプ使用の積分回路
13が接続され、コンデンサC2には抵抗R22と可変
抵抗器VR1の直列抵抗を入力抵抗とするオペアンプ使
用の積分回路14が接続されている。この積分回路1
3,14は電流/電圧変換回路11,12から出力され
た電圧値V1,V2を平均化するために設けられてい
る。そして、この積分回路13,14で平均化された電
圧値V1,V2がA/D変換器23,24でディジタル
値に変換されたあとマイクロコンピュ−タ15に入力さ
れると、マイクロコンピュ−タ15は、A/D変換器2
3,24からのディジタル値に基づいて三角測量の原理
で半導体位置検出素子1と被測定物3との間の距離を演
算し、その距離がしきい値以下である場合に検知信号を
出力する。
A capacitor C1 is connected to the output side of the operational amplifier OP1, and a capacitor C2 is connected to the output side of the operational amplifier OP2. Further, an integrating circuit 13 using an operational amplifier having a resistor R21 as an input resistance is connected to the capacitor C1, and an integrating circuit 14 using an operational amplifier having a series resistance of the resistor R22 and the variable resistor VR1 as an input resistance is connected to the capacitor C2. Has been done. This integration circuit 1
Reference numerals 3 and 14 are provided to average the voltage values V1 and V2 output from the current / voltage conversion circuits 11 and 12. When the voltage values V1 and V2 averaged by the integrating circuits 13 and 14 are converted into digital values by the A / D converters 23 and 24 and then input to the micro computer 15, the micro computer 15 receives them. 15 is an A / D converter 2
The distance between the semiconductor position detecting element 1 and the object to be measured 3 is calculated based on the digital value from 3, 24 by the principle of triangulation, and the detection signal is output when the distance is less than the threshold value. .

【0015】一方、マイクロコンピュ−タ15には、抵
抗R3を介してトランジスタQ1が接続されており、マ
イクロコンピュ−タ15から投光パルスが出力される
と、トランジスタQ1がその投光パルスに同期してオン
される。そしてトランジスタQ1のオン時に電源電圧V
Bから発光素子2に電流が通電され、発光素子2から間
欠投光される。
On the other hand, a transistor Q1 is connected to the micro computer 15 via a resistor R3, and when a light projecting pulse is output from the micro computer 15, the transistor Q1 is synchronized with the light projecting pulse. Then it is turned on. Then, when the transistor Q1 is turned on, the power supply voltage V
A current is passed from B to the light emitting element 2, and the light emitting element 2 emits light intermittently.

【0016】また、投光レベル低減回路16には、電流
/電圧変換回路12の出力電圧値V2が、コンデンサC
2を介してオペアンプOP3の非反転端子(+)に入力
される。一方、オペアンプOP3の反転端子(−)に
は、電源電圧VBを抵抗R5,R6で分圧した基準電圧
が印加されている。そしてオペアンプOP3の出力端子
には、抵抗R7、コンデンサC3、及び抵抗R8から成
る積分回路17が接続されている。上記積分回路17の
出力側にはNPN型のトランジスタQ2が接続されてお
り、積分回路17の出力電圧が高くなる程、即ち、半導
体位置検出素子1に入射される外乱光の強さが強い場合
にトランジスタQ2のベ−ス電圧が高くなるため、トラ
ンジスタQ2の内部抵抗(コレクタ、エミッタ間抵抗)
が低くなり、トランジスタQ2のコレクタに接続された
トランジスタQ1の内部抵抗(コレクタ、エミッタ間抵
抗)が高くなって自動的に発光素子2の発光量が低減さ
れることから、被測定物3の検知が正常に行われる。
Further, in the light emission level reduction circuit 16, the output voltage value V2 of the current / voltage conversion circuit 12 is changed to the capacitor C.
2 is input to the non-inverting terminal (+) of the operational amplifier OP3. On the other hand, a reference voltage obtained by dividing the power supply voltage VB by the resistors R5 and R6 is applied to the inverting terminal (−) of the operational amplifier OP3. An integrating circuit 17 including a resistor R7, a capacitor C3, and a resistor R8 is connected to the output terminal of the operational amplifier OP3. An NPN-type transistor Q2 is connected to the output side of the integration circuit 17, and as the output voltage of the integration circuit 17 increases, that is, when the intensity of ambient light incident on the semiconductor position detection element 1 is higher. Since the base voltage of the transistor Q2 becomes high, the internal resistance of the transistor Q2 (resistance between collector and emitter)
Becomes low, the internal resistance (collector-emitter resistance) of the transistor Q1 connected to the collector of the transistor Q2 becomes high, and the light emission amount of the light emitting element 2 is automatically reduced. Is done normally.

【0017】以上のように構成された距離センサ10に
おいて、積分回路14のオペアンプの入力端子には抵抗
R22と可変抵抗器VR1が接続されているため、この
入力抵抗を様々に変化させることができる。また、前記
従来の距離センサ5と同様に、電流/電圧変換回路11
から出力される電圧値V1は、V1=E1−I1・R1
であり、電流/電圧変換回路12から出力される電圧値
V2は、V2=(E1+E2)+(I1+I2)・R2
である。
In the distance sensor 10 configured as described above, since the resistor R22 and the variable resistor VR1 are connected to the input terminal of the operational amplifier of the integrating circuit 14, this input resistance can be changed variously. . Further, like the conventional distance sensor 5, the current / voltage conversion circuit 11
The voltage value V1 output from V1 = V1 = E1−I1 · R1
And the voltage value V2 output from the current / voltage conversion circuit 12 is V2 = (E1 + E2) + (I1 + I2) .R2
Is.

【0018】また、コンデンサC1から出力された電圧
V1cは、V1c=−I1R1であり、コンデンサC2
から出力された電圧V2cは、V2c=(I1+I2)
・R2である。ここで、(R22+VR1)=kR21
(但し、kは1以上の値)とすれば、k=(R22+V
R1)/R21となり、kは、積分回路14,13それ
ぞれのオペアンプの入力抵抗値の比である。今、(R2
2+VR1)=2R21(k=2)とすれば、V1/V
2=1/2がしきい値となり、V1/V2と1/2との
比較で、V1/V2が1/2より大きければ、マイクロ
コンピュ−タ15は検知信号を出力する。
The voltage V1c output from the capacitor C1 is V1c = -I1R1 and the voltage of the capacitor C2 is
The voltage V2c output from V2c = (I1 + I2)
・ It is R2. Here, (R22 + VR1) = kR21
(However, if k is a value of 1 or more), k = (R22 + V
R1) / R21, and k is the ratio of the input resistance values of the operational amplifiers of the integrating circuits 14 and 13. Now (R2
2 + VR1) = 2R21 (k = 2), V1 / V
The threshold value is 2 = 1/2, and if V1 / V2 is larger than 1/2 in the comparison between V1 / V2 and 1/2, the microcomputer 15 outputs a detection signal.

【0019】図2に示すように、設定する距離をd、レ
ンズ21,22間の距離をB、レンズ21,22と半導
体位置検出素子1間の距離をf、半導体位置検出素子1
の受光可能長さをLとすれば、(I1+I2)/I1=
L・d/B・fとなり、d=(B・f/L)×{(I1
+I2)/I1}となる。また、A/D変換器23,2
4からのディジタル値J,Iは、J=(R1/R21)
I1、I=(R2/k・R21)・(I1+I2)よ
り、d=(B・f/L)×(I/J)×kとなり、Iと
Jを1対1でしきい値を決めると、図5に示すように、
dはkに比例する。従って、被検知体3と距離センサ1
0との間の距離dは、積分回路13,14それぞれのオ
ペアンプの入力端子に直列に接続された二つの抵抗の抵
抗値の比率に比例した値になり、検出距離が遠方でも近
くでもステップ幅が一定になる。
As shown in FIG. 2, the distance to be set is d, the distance between the lenses 21 and 22 is B, the distance between the lenses 21 and 22 and the semiconductor position detecting element 1 is f, and the semiconductor position detecting element 1 is
If the length of light that can be received is L, then (I1 + I2) / I1 =
L · d / B · f, and d = (B · f / L) × {(I1
+ I2) / I1}. In addition, the A / D converters 23, 2
The digital values J and I from 4 are J = (R1 / R21)
From I1 and I = (R2 / k.R21). (I1 + I2), d = (B.f / L) .times. (I / J) .times.k. , As shown in FIG.
d is proportional to k. Therefore, the detected object 3 and the distance sensor 1
The distance d between 0 and 0 becomes a value proportional to the ratio of the resistance values of the two resistors connected in series to the input terminals of the operational amplifiers of the integrating circuits 13 and 14, and the step width is set regardless of whether the detection distance is distant or near. Is constant.

【0020】以上の距離センサ10は、設定されたしき
い値を境に、被測定物3の検知、非検知が行われるた
め、この境界において短時間間隔の検知、非検知が繰り
返され不安定な検知状態になることがある。そのため、
マイクロコンピュ−タ15は、被測定物3の検知前に前
記I=Jをしきい値とする一方、検知後は、検知後のI
をIaとして、Ia=0.9Iになるように制御し、非
検知状態になったら、I=Jのしきい値に戻すという制
御をする。上記制御により検知、非検知のヒステリシス
状態を作り、検知、非検知の短時間間隔の繰り返しを防
止することができる。尚、検知後のしきい値距離はd/
0.9に長くなる。
The above-described distance sensor 10 detects and non-detects the object to be measured 3 with the set threshold value as a boundary. Therefore, at this boundary, detection and non-detection are repeated for a short period of time, resulting in instability. May be in a different detection state. for that reason,
The microcomputer 15 sets the above I = J as a threshold value before the detection of the DUT 3, and after the detection, the I = J after the detection.
Is set as Ia, and Ia = 0.9I is controlled, and when the non-detection state is set, the threshold value of I = J is returned. By the above control, it is possible to create a hysteresis state of detection and non-detection and prevent repetition of short time intervals of detection and non-detection. The threshold distance after detection is d /
It will be increased to 0.9.

【0021】以上説明した距離センサ10は、小便器、
大便器等の用便者検知用に、あるいは洗面化粧台の洗浄
装置の使用者検知用に、また、ハンドドライヤ−の使用
者検知用等に使用することができる。
The distance sensor 10 described above is a urinal,
It can be used for detecting a user of a toilet bowl or the like, or for detecting a user of a washing device for a vanity, and for detecting a user of a hand dryer.

【0022】[0022]

【発明の効果】以上のように本発明によれば、間欠投光
タイミングに同期して投光する発光素子と、光の入射位
置に対応して比例的に光電流が通電される受光素子とし
ての半導体位置検出素子と、前記半導体位置検出素子の
光電流のそれぞれを電圧に変換する電流/電圧変換回路
と、その電流/電圧変換回路から出力されたそれぞれの
電圧をコンデンサと抵抗とを介して入力し平均化するオ
ペアンプ使用の積分回路と、平均化された前記それぞれ
の電圧をディジタル値に変換するA/D変換回路と、各
A/D変換回路から出力されたそれぞれのディジタル値
に基づいて被検知体と前記半導体位置検出素子間の距離
を三角測量法の原理で演算し、その距離がしきい値以下
であるとき被検知体を検知し、その検知信号を出力する
距離演算手段とを有する距離センサを用いた自動水栓、
便器洗浄装置等の衛生装置において、前記積分回路を構
成する前記それぞれのオペアンプの入力端子に直列に接
続された抵抗の一方を抵抗値可変としたことにより、被
検知体と距離センサとの間の距離は、それぞれのオペア
ンプの入力端子に直列に接続された二つの抵抗の抵抗値
の比率に比例した値になり、検出距離が遠方でも近くで
もステップ幅を一定にすることができる。また、被検知
体を検知したとき、所定のしきい値を所定の比率で小さ
くする一方、被検知体が非検知位置に移動したとき、し
きい値を元の値に戻すような制御をした場合には、被検
知体の検知、非検知状態の短時間間隔の繰り返しが防止
され、安定した検知をすることができる。
As described above, according to the present invention, a light emitting element that emits light in synchronization with intermittent light emitting timing and a light receiving element to which a photocurrent is proportionally supplied corresponding to the incident position of light are provided. Semiconductor position detecting element, a current / voltage converting circuit for converting each of the photocurrents of the semiconductor position detecting element into a voltage, and respective voltages output from the current / voltage converting circuit via a capacitor and a resistor. Based on an integrating circuit using an operational amplifier for inputting and averaging, an A / D converting circuit for converting each of the averaged voltages into a digital value, and each digital value output from each A / D converting circuit A distance calculating means for calculating the distance between the object to be detected and the semiconductor position detecting element by the principle of triangulation, detecting the object to be detected when the distance is less than a threshold value, and outputting the detection signal. Automatic faucet using the distance sensor,
In a sanitary device such as a toilet bowl cleaning device, one of the resistors connected in series to the input terminals of the respective operational amplifiers forming the integrating circuit has a variable resistance value, so that the distance between the object to be detected and the distance sensor is increased. The distance becomes a value proportional to the ratio of the resistance values of the two resistors connected in series to the input terminals of the respective operational amplifiers, and the step width can be made constant regardless of whether the detection distance is distant or near. Further, when the detected object is detected, the predetermined threshold value is reduced at a predetermined ratio, and when the detected object moves to the non-detection position, the threshold value is returned to the original value. In this case, the detection of the detected object and the non-detection state are prevented from being repeated at short intervals, and stable detection can be performed.

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

【図1】衛生装置用の距離センサの回路ブロック図であ
る。
FIG. 1 is a circuit block diagram of a distance sensor for a sanitary device.

【図2】距離センサの距離測定原理説明図である。FIG. 2 is an explanatory diagram of a distance measurement principle of a distance sensor.

【図3】従来の距離センサの回路ブロック図である。FIG. 3 is a circuit block diagram of a conventional distance sensor.

【図4】従来の距離センサの距離検知特性を示した特性
図である。
FIG. 4 is a characteristic diagram showing distance detection characteristics of a conventional distance sensor.

【図5】本発明の距離センサの距離検知特性を示した特
性図である。
FIG. 5 is a characteristic diagram showing distance detection characteristics of the distance sensor of the present invention.

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

1 半導体位置検出素子 2 発光素子 11 電流/電圧変換回路 12 電流/電圧変換回路 13 積分回路 14 積分回路 15 マイクロコンピュ−タ 23 A/D変換器 24 A/D変換器 R21 抵抗 R22 抵抗 VR1 可変抵抗器 C1 コンデンサ C2 コンデンサ DESCRIPTION OF SYMBOLS 1 semiconductor position detection element 2 light emitting element 11 current / voltage conversion circuit 12 current / voltage conversion circuit 13 integration circuit 14 integration circuit 15 micro computer 23 A / D converter 24 A / D converter R21 resistance R22 resistance VR1 variable resistance Container C1 capacitor C2 capacitor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 間欠投光タイミングに同期して投光する
発光素子と、光の入射位置に対応して比例的に光電流が
通電される受光素子としての半導体位置検出素子と、前
記半導体位置検出素子の光電流のそれぞれを電圧に変換
する電流/電圧変換回路と、その電流/電圧変換回路か
ら出力されたそれぞれの電圧をコンデンサと抵抗とを介
して入力し平均化するオペアンプ使用の積分回路と、平
均化された前記それぞれの電圧をディジタル値に変換す
るA/D変換回路と、各A/D変換回路から出力された
それぞれのディジタル値に基づいて被検知体と前記半導
体位置検出素子間の距離を三角測量法の原理で演算し、
その距離がしきい値以下であるとき被検知体を検知し、
その検知信号を出力する距離演算手段とを有する距離セ
ンサを用いた自動水栓,便器洗浄装置等の衛生装置にお
いて、前記積分回路を構成する前記それぞれのオペアン
プの入力端子に直列に接続された抵抗の一方を抵抗値可
変としたことを特徴とする距離センサを用いた衛生装
置。
1. A light emitting element that emits light in synchronization with an intermittent light emitting timing, a semiconductor position detecting element as a light receiving element to which a photocurrent is proportionally supplied in correspondence with an incident position of light, and the semiconductor position. A current / voltage conversion circuit that converts each photocurrent of the detection element into a voltage, and an integrating circuit using an operational amplifier that inputs each voltage output from the current / voltage conversion circuit via a capacitor and a resistor and averages the voltage. And an A / D conversion circuit for converting the respective averaged voltages into digital values, and between the detected object and the semiconductor position detection element based on the respective digital values output from the respective A / D conversion circuits. Calculate the distance of by the principle of triangulation,
When the distance is less than the threshold value, the detected object is detected,
In a sanitary device such as an automatic water faucet or a toilet bowl cleaning device using a distance sensor having a distance calculating means for outputting the detection signal, resistors connected in series to the input terminals of the respective operational amplifiers forming the integrating circuit. A sanitary device using a distance sensor, one of which has a variable resistance value.
【請求項2】 距離演算手段は、被検知体を検知したと
き、所定のしきい値を所定の比率で小さくする一方、被
検知体が非検知位置に移動したとき、しきい値を元の値
に戻すことを特徴とする距離センサを用いた衛生装置。
2. The distance calculation means reduces the predetermined threshold value at a predetermined ratio when the detected object is detected, and when the detected object moves to a non-detected position, the threshold value is set to the original value. A sanitary device using a distance sensor characterized by returning to a value.
JP2198794A 1994-01-20 1994-01-20 Sanitary equipment using distance sensor Expired - Fee Related JP2992859B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2198794A JP2992859B2 (en) 1994-01-20 1994-01-20 Sanitary equipment using distance sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2198794A JP2992859B2 (en) 1994-01-20 1994-01-20 Sanitary equipment using distance sensor

Publications (2)

Publication Number Publication Date
JPH07209435A true JPH07209435A (en) 1995-08-11
JP2992859B2 JP2992859B2 (en) 1999-12-20

Family

ID=12070385

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2198794A Expired - Fee Related JP2992859B2 (en) 1994-01-20 1994-01-20 Sanitary equipment using distance sensor

Country Status (1)

Country Link
JP (1) JP2992859B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009124666A (en) * 2007-11-12 2009-06-04 Anywire:Kk Photoelectric sensor
JP2011047740A (en) * 2009-08-26 2011-03-10 Nanao Corp Electronic device with function for discriminating moving body
JP2012198215A (en) * 2012-04-10 2012-10-18 Nanao Corp Electronic equipment with moving body discrimination function

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009124666A (en) * 2007-11-12 2009-06-04 Anywire:Kk Photoelectric sensor
JP2011047740A (en) * 2009-08-26 2011-03-10 Nanao Corp Electronic device with function for discriminating moving body
JP2012198215A (en) * 2012-04-10 2012-10-18 Nanao Corp Electronic equipment with moving body discrimination function

Also Published As

Publication number Publication date
JP2992859B2 (en) 1999-12-20

Similar Documents

Publication Publication Date Title
KR900002199B1 (en) Body detecting method
US5598085A (en) Circuit arrangement for charging rechargeable batteries
US20110141078A1 (en) Ambient light detection
TWI735399B (en) Photosensor device with dark current cancellation
JP3771346B2 (en) Distance measuring device
US4313655A (en) Focussing system with automatic control of emitted radiant power
US5148011A (en) Distance measuring apparatus using integration of reflected light and obtaining a plurality of distance signals
JPH07209435A (en) Sanitary device using distance sensor
GB2280025A (en) Range sensor suitable for a sanitary device
EP0868022A3 (en) Offset correction circuit
US4929833A (en) Feedback stabilized digital infrared detector circuit
JP3044518B2 (en) Human body detection device
JPH07167648A (en) Sanitary equipment
JPH10153425A (en) Light receive circuit of position detection sensor
JPH1062160A (en) Moving device for optical axis of distance sensor
JPH11304470A (en) Range finder
JPS6177711A (en) Automatic focusing device
JP3074782B2 (en) Human body detector
JPH07225247A (en) Current detector
JP2547985B2 (en) Dimming circuit of flash light emitting device
JP3286859B2 (en) Automatic light control strobe
JPS5836300B2 (en) Common cold junction compensation circuit
JPS60229527A (en) Sensor circuit
JPH0497781A (en) Controller for washing machine
JPH03261219A (en) Photoelectric switch

Legal Events

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