JP4047466B2 - Capacitance sensor circuit - Google Patents

Capacitance sensor circuit Download PDF

Info

Publication number
JP4047466B2
JP4047466B2 JP32283198A JP32283198A JP4047466B2 JP 4047466 B2 JP4047466 B2 JP 4047466B2 JP 32283198 A JP32283198 A JP 32283198A JP 32283198 A JP32283198 A JP 32283198A JP 4047466 B2 JP4047466 B2 JP 4047466B2
Authority
JP
Japan
Prior art keywords
signal
data signal
capacitance sensor
detection
circuit
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
JP32283198A
Other languages
Japanese (ja)
Other versions
JP2000134078A (en
Inventor
良智 加藤
正幸 篠原
武土 瀬塚
Original Assignee
ケイエステクノ株式会社
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 ケイエステクノ株式会社 filed Critical ケイエステクノ株式会社
Priority to JP32283198A priority Critical patent/JP4047466B2/en
Publication of JP2000134078A publication Critical patent/JP2000134078A/en
Application granted granted Critical
Publication of JP4047466B2 publication Critical patent/JP4047466B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Electronic Switches (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、静電容量センサ回路に関する。
【0002】
【従来の技術】
従来、2の検出電極の静電容量差を検出する静電容量センサ回路が日本国実用新案出願公告公報第63−36246号に開示されている。図10に示すように、この回路は、パルス信号発生回路と、可変抵抗と、第1可変遅延回路と、第2可変遅延回路と、位相弁別手段とを備え、検出電極は、第1可変遅延回路へ、また、基準電極は、第2可変遅延回路へ接続されている。
【0003】
パルス信号発生回路から出力されたパルス信号は、可変抵抗を介して第1可変遅延回路と、第2可変遅延回路へ分枝される。両可変遅延回路は、検出領域に被検出物が存在する場合の検出電極とアース間の静電容量(以下、「検出電極静電容量」とする。)、基準電極とアース間の静電容量(以下、「基準電極静電容量」とする。)の大きさに応じ、入力されたパルス信号を遅延させ、比較手段である位相弁別手段へ各パルス信号を出力する。
【0004】
位相弁別手段は、入力された各パルス信号の位相を比較し、その位相のずれが、所定しきい値以上である場合には、検出信号を出力する。尚、検出領域内に検出物が存在しない場合の検出電極とアース間の静電容量(以下、「検出電極基礎容量」とする。)と基準電極とアース間の静電容量(以下、「基準電極基礎容量」とする。)との相違は、可変抵抗を手動で調整していた。
【0005】
【発明が解決しようとする課題】
上記の静電容量センサ回路は、ノイズ等の影響により検出電極基礎容量、または、基準電極基礎容量の何れかが変動した場合、その両基礎容量の相違による遅延パルス信号の位相差が所定のしきい値以上であれば、検出領域内に被検出物が存在しない場合でも検出信号を出力する。即ち、誤動作する。
【0006】
上記の検出電極基礎容量と基準電極基礎容量の相違による上記の誤動作を防止するためは、上記のしきい値を大きく設定すれば回避できる。しかし、しきい値を大きく設定すると、所定の電荷量を有する被検出物を検出する場合、その被検出物が、検出電極により接近あるいは接触しなければ検出することができなくなる。即ち、検出感度を低下させなければならないという問題点があった。
【0007】
また、上記の静電容量センサ回路は、検出電極の領域内に、物体が接近し静止してしまうと、検出電極の電荷量は増大した状態のままであるため、他の物体が新たに検出領域内に侵入しても検出することができないという問題点があった。
【0008】
本発明は、上記の静電容量センサ回路の問題点を解決し、検出電極基礎容量と基準電極基礎容量バランスが損なわれても誤動作等が発生せず、また、安定した感度と高い検出感度を維持することができる静電容量センサ回路を提供することを目的とする。
【0009】
【課題を解決するための手段】
請求項1記載の静電容量センサ回路は、パルス信号を発生するパルス信号発生回路と、該パルス信号を少なくとも2の検出電極の静電容量の変化に基づいてクロック信号、第1データ信号及び第2データ信号を形成する比較手段と、該第1データ信号のタイミングt2と該クロック信号のタイミングt1間の時間と、該クロック信号のタイミングt1と該第2データ信号のタイミングt3間の時間を制御する自動バランス調整手段と、該クロック信号と第1データ信号とを比較し、また、該クロック信号と第2データ信号を比較判断する判断手段とを有し、前記比較手段は、第1検出電極と接続されると共に前記クロック信号を形成する第1コンパレータと、第2検出電極と接続されると共に前記第1データ信号を形成する第2コンパレータと、前記第1データ信号を遅延して前記第2データ信号を形成する遅延回路とから成るというものである。
【0010】
本発明に係る静電容量センサ回路は、2の検出電極の静電容量の変化に基づきクロック信号、第1データ信号及び第2データ信号を形成し、そのタイミング間の時間を制御することにより、2の検出電極の検出感度を所定の感度に維持することができる。
【0011】
請求項2記載の静電容量センサ回路は、自動バランス手段が、第1データ信号のタイミングt2とクロック信号のタイミングt1間の時間と、クロック信号のタイミングt1と第2データ信号のタイミングt3間の時間を均等に制御するというものである。
【0012】
本発明に係る静電容量センサ回路は、2の検出電極の検出感度を略均等な感度に維持することができる。また、外部から検出電極へ侵入するノイズは、2の検出電極に略均等に影響を与えるため、このノイズの影響を効率的に排除することができる。
【0013】
請求項1記載の比較手段の具体的構成は、第1検出電極と接続されると共に前記クロック信号を形成する第1コンパレータと、第2検出電極と接続されると共に前記第1データ信号を形成する第2コンパレータと、第1データ信号を遅延して第2データ信号を形成する遅延回路とから成り、本願発明の特定要件として加味される。
【0014】
請求項3記載の静電容量センサ回路は、自動バランス調整手段が、第2コンパレータの比較電圧を可変制御するというものである。
【0015】
本発明に係る静電容量センサ回路は、自動バランス調整手段により第2コンパレータのみを制御するため、第1コンパレータを制御する必要がない。従って、回路構成を簡易にすると共に、制御を容易にし回路の作動信頼性を向上させることができる。
【0016】
請求項4記載の静電容量センサ回路は、自動バランス調整手段が、CPUにより作動するD/A変換回路であるというものである。
【0017】
本発明に係る静電容量センサ回路は、CPUにより作動するD/A変換回路を用いたため、自動バランス調整を精密に行うことができる。
【0018】
請求項5記載の静電容量センサ回路は、判断手段が、クロック信号と第1データ信号を比較し、また、クロック信号と第2データ信号を比較した結果、何れか一方が所定時間以上無効検出状態にあると判断した場合には、自動バランス調整手段を作動させるというものである。
【0019】
請求項6記載の静電容量センサ回路は、判断手段が、クロック信号と第1データ信号を比較し、また、クロック信号と第2データ信号を比較した結果、何れか一方が有効検出状態にあると判断した場合には、検出信号を出力するというものである。
【0020】
請求項7記載の静電容量センサ回路は、判断手段が、検出信号を出力した後、クロック信号と第1データ信号を比較し、また、クロック信号と第2データ信号を比較した結果、何れか一方が所定時間以上有効検出状態にあると判断した場合には、自動バランス調整手段を作動させるというものである。
【0021】
本発明に係る静電容量センサ回路は、検出電極の領域内に、物体が接近し静止している場合でも、自動バランス調整手段を作動させることにより、他の物体が新たに検出領域内に侵入したことを検出することができる。
【0022】
請求項8記載の静電容量センサ回路は、判断手段が、クロック信号と第1データ信号を比較する第1フリップフロップ回路と、クロック信号と第2データ信号を比較する第2フリップフロップ回路と、第1フリップフロップ回路及び第2フリップフロップ回路の出力信号を判断するCPUから成るというものである。
【0023】
請求項9記載の静電容量センサ回路は、遅延回路が、第2データ信号の遅延時間を可変制御することにより、自動感度調整を行うというものである。
【0024】
請求項10記載の静電容量センサ回路は、判断手段が、クロック信号と第1データ信号を比較し、また、クロック信号と第2データ信号を比較した結果、何れもが無効検出状態にあると判断した場合には、遅延回路を作動させ検出感度を低下させるというものである。
【0025】
請求項11記載の静電容量センサ回路は、遅延回路が、CPUにより選択される複数の時定数を有する積分回路から成るというものである。
【0026】
請求項12記載の静電容量センサ回路は、判断手段が、静電容量センサ回路作動直後、自動バランス調整手段を作動させるというものである。
【0027】
請求項13記載の静電容量センサ回路は、判断手段は、静電容量センサ回路作動直後、遅延回路を作動させ、検出感度が最も高い状態に設定するというものである。
【0028】
【発明の実施の形態】
本発明に係る静電容量センサ回路を図1を参照しつつ説明する。本回路は、入力端子1、2から順に、サージ保護回路10と、比較回路20と、波形整形回路30と、フリップフロップ回路40と、CPU80を一連に接続して成り、さらに、波形整形回路30には遅延回路50が、また、比較回路20にはD/A変換回路60が接続されている。
【0029】
さらに、本回路は、安定化電源回路120、リセット回路130、LED表示回路140、CPUクロック150を備えている。尚、このリセット回路130は、電源投入後にCPU80への供給電圧が所定の作動可能電圧になるまで、CPU80の動作を停止しリセット状態を保持するものであり、また、LED表示回路140は、CPU80の検出状態をモニタするためのLED141、142、143、144を点灯するための回路である。
【0030】
入力端子1には、第1検出電極6が接続されており、この第1検出電極は、アース電極8と対向して配設されている。また、入力端子2には、第2検出電極7が接続されており、アース電極9と対向して配設されている。本実施の形態においては、この第1検出電極6とアース電極8間の基礎静電容量と、第2検出電極7とアース電極9との基礎静電容量は、同一に調整されているが、必ずしも同一である必要はない。
【0031】
入力端子1、2には、トランス5が後続しており、ノイズ除去用のローパスフィルタを構成している。さらに、このトランス5に後続するサージ保護回路10は、サージノイズを除去するために設けられている。尚、このトランス5及びサージ保護回路10は、必ずしも必要ではなく、適宜、ノイズ除去用の他の回路を用いることもできる。
【0032】
1/2DUTYの249Hzのパルス信号P1を供給するCPU80のポート81は、分枝された上、夫々、増幅抵抗3、4を介し、サージ保護回路10の抵抗11、12の直前に接続される。尚、パルス信号P1の周波数は、上記周波数に限定されるものではない。
【0033】
増幅抵抗3と、第1検出電極6及びアース電極8との間で形成されるコンデンサとにより構成された積分回路により、パルス信号P1は、第1積分波形信号P2に変換される。この立ち上がり縁の傾斜は、増幅抵抗3と、第1検出電極6及びアース電極8との間で形成されるコンデンサとの時定数により決定される。また、増幅抵抗4と第2検出電極7及びアース電極9との間で形成されるコンデンサとにより構成された積分回路により、パルス信号P1は、第2積分波形信号P3に変換される。
【0034】
比較回路20は、第1積分波形信号P2を遅延させた第1遅延パルス信号P4を形成する第1コンパレータ22と、第2積分波形信号P3を遅延させた第2遅延パルス信号P5を形成する第2コンパレータ23を備えている。この第1コンパレータ22のプラス極221には、第1積分波形信号P2が入力され、マイナス極222には、抵抗24により1.25Vに固定された直流電圧が供給されている。尚、コンデンサ25、27は平滑用のデカップリングコンデンサであり、抵抗26は分圧用の抵抗である。
【0035】
一方、第2コンパレータ23のプラス極231には、第2積分波形信号P3が入力され、マイナス極232には、後述するD/A変換回路60からの可変制御された直流電圧が供給される。尚、両コンパレータ22、23は、オープンコレクタであるため、各出力端子223、233には、プルアップ抵抗28、29を介して、直流電圧が供給されている。
【0036】
波形整形回路30は、第1ノット回路31と、第2ノット回路32と、第3ノット回路33とを備えている。この第1ノット回路31は、第1遅延パルス信号P4を位相反転すると共に、クロック信号P6へ波形整形し、また、第2ノット回路32は、第2遅延パルス信号P5を位相反転すると共に、第1データ信号P7へ波形整形する。
【0037】
第3ノット回路33は、第2コンパレータ23の出力端子233の直後に分枝された第2遅延パルス信号P5を、後述する遅延回路50により4段階に遅延して形成し、位相反転し、第2データ信号P8へ波形整形する。
【0038】
フリップフロップ回路40は、遅延型のフリップフロップ回路である第1フリップフロップ回路41及び第2フリップフロップ回路42を備えている。第1フリップフロップ回路のデータ入力端子411には、第1データ信号P7を、また、クロック入力端子412には、クロック信号P6を入力する。第1フリップフロップ回路41は、クロック信号P6の立ち上がり縁のタイミングにおける第1データ信号P7の信号レベルを反転した上、出力端子413から第1FF出力信号P9をCPU80のポート82へ出力する。
【0039】
第2フリップフロップ回路42データ入力端子421には、第2データ信号P8を、また、クロック入力端子422には、クロック信号P6を入力する。第2フリップフロップ回路42は、クロック信号P6の立ち上がり縁のタイミングにおける第2データ信号P8の信号レベルを反転せずに出力端子423から第2FF出力信号としてCPU80のポート83へ出力する。
【0040】
遅延回路50は、抵抗51と、コンデンサ52、53、54と、MOSトランジスタ55、56とから構成されている。このMOSトランジスタ55、56のゲートは、夫々、CPU80のポート84、85に接続され、ON/OFF制御されている。
【0041】
この遅延回路50は、MOSトランジスタ55、56をON/OFF制御することにより、遅延回路50内の積分回路の時定数を4段階に制御する。従って、分枝された上記第2遅延パルス信号の遅延時間は4段階に制御される。即ち、両MOSトランジスタ55、56をOFF制御すると、抵抗51及びコンデンサ52により積分回路が構成される。
【0042】
さらに、MOSトランジスタ55のみをON制御すると抵抗51及びコンデンサ52、53により、また、MOSトランジスタ56のみをON制御すると抵抗51及びコンデンサ52、54により、また、両MOSトランジスタ55、56をON制御すると抵抗51及びコンデンサ52、53、54により積分回路が構成される。
【0043】
D/A変換回路60は、CPU80のポート86乃至93に接続した抵抗62乃至69から構成され、各ポートから8ビットデジタル2進データ信号を直流電圧に変換する。そして、第2コンパレータ23のマイナス極232に、1.0から1.5Vまでの直流電圧を256段階に可変制御し供給する。尚、本実施の形態においては、8ビットデジタル2進データを用いたが、本発明に係る回路は、当該ビット数に限定されるものではない。
【0044】
次に、図2乃至図7に示すタイミングチャートにより、本実施の形態の回路の動作を説明する。最初に、本回路の電源をONにした直後の状態を図2を参照しつつ説明する。
【0045】
本回路の電源をONにすると、CPU80のポート81から出力されたパルス信号P1は、分枝された上、上記各積分回路により、第1積分波形信号P2及び第2積分波形信号P3に変換される。
【0046】
第1積分波形信号P2は、第1コンパレータ22に供給されている1.25Vの直流電圧のしきい値を越えたタイミングt1に立ち下がり縁を有する第1遅延パルス信号P4に変換される。一方、第2積分波形信号P3は、第2コンパレータ23に供給されている可変直流電圧のしきい値を越えたタイミングt2に立ち下がり縁を有する第2遅延パルス信号P5に変換される。
【0047】
図2に示すタイミングチャートにおいて、第2コンパレータ23のマイナス極232に供給されている可変直流電圧は、最低値の1.0Vであるため、第1遅延パルス信号P4のタイミングt1は、第2遅延パルス信号P5のタイミングt2よりも進んでいる。
【0048】
第1遅延パルス信号P4は、第1ノット回路31に入力され、クロック信号P6として出力され、第1フリップフロップ回路41及び第2フリップフロップ回路42の各クロック入力端子412、422に供給される。
【0049】
分枝された第2遅延パルス信号P5は、第2ノット回路32に入力され、第1データ信号として第1フリップフロップ回路41へ入力される。また、分枝された他の第2遅延パルス信号P5は、遅延回路50により、所定時間遅延された上、第3ノット回路33に入力され、第2データ信号P8として第2フリップフロップ回路42へ入力される。従って、この第2データ信号P8の立ち上がり縁のタイミングt3は、タイミングt2よりもさらに遅延するように制御されている。
【0050】
クロック信号P6の立ち上がり縁のタイミングt1において、第1データ信号P7は、LOWレベルであるため、反転出力される第1FF出力信号P9は、HIGHレベル信号になる。一方、第2データ信号P8は、LOWレベルであるため、そのまま出力される第2FF出力信号P10は、LOWレベル信号になる。
【0051】
次に、CPU80は、第1FF出力信号が、LOWレベルになるまで、第2コンパレータ23のマイナス極232に供給されている可変直流電圧を最低値の1.0Vから上昇させて行く。この可変直流電圧は、上記CPU80のポート86乃至93から出力された8ビットデジタル2進コード信号が、D/A変換回路60により変換されたものであり、256段階の電圧値を有している。従って、この8ビットデジタル2進コード信号を+1づつ加算して可変直流電圧を上昇させて行く。尚、必ずしも+1づつ加算する必要はなく、所定の間隔でラフに加算又は減算を行い、後述する第1データと第2データを得ることもできる。
【0052】
可変直流電圧を上昇させ、一定値の電圧値において、第1FF出力信号がHIGHレベルからLOWレベルへ変化した場合、この一定値の電圧値における8ビットデジタル2進コード信号を第1データとして、CPU80の内部のメモリに記憶する。
【0053】
さらに、CPU80は、図3に示すように、第2FF出力信号がLOWレベルからHIGHレベルへ変化するまで、第2コンパレータ23のマイナス極232に供給されている可変直流電圧を上昇させる。図3において、この電圧は、仮に1.4Vとして表示されている。そして、1.4Vの電圧における8ビットデジタル2進コード信号を第2データとして、CPU80の内部のメモリに記憶する。
【0054】
CPU80は、上記測定結果である第1データと第2データの中間電圧値に、第1データの一定の電圧値を加算し、バランス電圧値を算出する。そして、このバランス電圧値に相当する8ビットデジタル2進コード信号をD/A変換回路60へ出力する。
【0055】
上記のバランス電圧値が、仮に1.3Vであった場合、そのタイミングチャートは、図4のようになる。即ち、タイミングt2とタイミングt1間の時間と、タイミングt1とタイミングt3間の時間は、等しくなる。この状態に至って、本回路は、検出可能状態になる。CPU80は、ポート82、83の何れのポートもLOWレベルを維持している場合には、両電極の何れの検出領域内に物体が存在しないと判断する。
【0056】
次に、第1検出電極6の検出領域内のみに物体が接近又は接触し、第1検出電極6の電荷量が増大した場合を図5を参照しつつ説明する。
【0057】
第1積分波形信号P2は、第1検出電極6とアース電極8間の静電容量が増大するため、第1積分波形信号P2の立ち下がり縁の傾斜がより小さくなる。従って、第1積分波形信号P2のタイミングt1は、第2データ信号P8の立ち上がり縁のタイミングt3よりも遅延してゆく。
【0058】
このため、クロック信号P6の立ち上がり縁t1において、第2データ信号P8は、HIGHレベルであるため、第2FF出力信号P10は、LOWレベルからHIGHレベルへ変化する。一方、第1データ信号P7は、HIGHレベルのままであるため、第1FF出力信号P9は、LOWレベルを維持する。
【0059】
ポート82、83のポートの信号レベルを監視していたCPU80は、夫々のポートの信号レベルが、LOWレベルとHIGHレベルになると、当該状態が0.2秒以上継続したことを条件に、第1検出信号をポート94から出力する。
【0060】
尚、上記のタイミングt1が、タイミングt3よりも遅延する場合としては、所定の電荷を有する静止物体が検出電極7の検出領域内に存在した状態で上記図4に示したバランス状態に調整し、その後、当該物体が検出電極7の検出領域内から離間し、又は、離脱した場合にも生ずる。従って、ポート82、83のポートの信号レベルが、LOWレベルとHIGHレベルになった場合の第1検出信号は、物体が検出電極7の検出領域内から離間し、又は、離脱した場合にも出力される。
【0061】
次に、第2検出電極7の検出領域内のみに物体が接近又は接触し、第2検出電極7の電荷量が増大した場合を図6を参照しつつ説明する。
【0062】
第2積分波形信号P3は、第2検出電極7とアース電極9間の静電容量が増大するため、第2積分波形信号P3の立ち下がり縁の傾斜がより小さくなる。従って、第2積分波形信号P3のタイミングt2は、第1積分波形信号P2の立ち下がり縁のタイミングt1よりも遅延してゆく。
【0063】
このため、クロック信号P6の立ち上がり縁t1において、第1データ信号P7は、LOWレベルであるため、第1FF出力信号P9は、LOWレベルからHIGHレベルへ変化する。一方、第2データ信号Pは、LOWレベルのままであるため、第2FF出力信号P10は、LOWレベルを維持する。
【0064】
ポート82、83のポートの信号レベルを監視していたCPU80は、夫々のポートの信号レベルが、HIGHレベルとLOWレベルになると、当該状態が0.2秒以上継続したことを条件に、第2検出信号をポート94から出力する。
【0065】
尚、上記のタイミングt2が、タイミングt1よりも遅延する場合としては、所定の電荷を有する静止物体が検出電極6の検出領域内に存在した状態で上記図4に示したバランス状態に調整し、その後、当該物体が検出電極6の検出領域内から離間し、又は、離脱した場合にも生ずる。従って、ポート82、83のポートの信号レベルが、HIGHレベルとLOWレベルになった場合の第2検出信号は、物体が検出電極6の検出領域内から離間し、又は、離脱した場合にも出力される。
【0066】
図8は、図5に示した第1検出電極6の検出領域内のみに物体が接近又は接触した場合のタイミングチャートのパルス信号P1と第2FF出力信号を、さらに詳細に図示したタイミングチャートを示している。
【0067】
第1検出電極6の検出領域内に物体が接近等すると、上述したように、第2FF出力信号が、安定したLOWレベル(非検出信号)から安定したHIGHレベル(有効検出信号)へ変化するが、実際には、図8に示すように、この非検出信号と有効検出信号の間には、LOWレベル又はHIGHレベルを交互に繰り返す無効検出信号が短時間出力される。
【0068】
この無効検出信号は、タイミングt1と第2データ信号の立ち上がり縁のタイミングt3が略一致している場合に生じ、タイミングt1がタイミングt3よりも完全に遅延すると有効検出信号が形成されるのである。
【0069】
この無効検出信号は、自動バランス調整後の時間の経過に伴い検出電極周囲の温度や湿度等が変化することによっても生じる。即ち、一方の検出電極の電荷量が、他方の検出電極の電荷量よりも徐々に増大し、あるいは、減少することにより、上記のバランス電圧値において、タイミングt2とタイミングt1間の時間と、タイミングt1とタイミングt3間の時間が相違し、無効検出信号が形成される。
【0070】
しかし、上記検出電極の電荷量の変化は、温度等の変化に伴って生じるため、時間の経過と共に徐々に変化していく。従って、温度等の変化により生ずる無効検出信号の持続時間は、検出領域内の物体の接近や接触により生ずる電荷量の変化に比べて極めて長くなる。後述するように、この無効検出信号が出力されている時間が所定時間(2秒間)よりも長い場合、CPU80により上記の自動バランス調整が実行される。
【0071】
次に、自動感度調整について説明する。検出電極を通じて外部ノイズが侵入した場合、または、電源部等から回路へノイズが侵入した場合には、タイミングt1、t2、t3に揺らぎ(ジッタ)を生じ、第1FF出力信号P9及び第2FF出力信号P10の何れもが上記の無効検出信号となり、チャタリングを生じる。
【0072】
このチャタリングは、タイミングt2とタイミングt1間の時間、及び、タイミングt1とタイミングt3間の時間が短い場合、即ち、検出感度が高い状態では、比較的弱いノイズによって惹起される。
【0073】
自動感度調整は、この各タイミング間の時間を調整することにより、ノイズの影響を排除する。図7は、図4に示す最も感度の高い状態から、遅延回路50により1段階検出感度を下げた状態のタイミングチャートを示している。図4のタイミングt2とタイミングt1間の時間、及び、タイミングt1とタイミングt3間の時間よりも、図7のタイミングt2とタイミングt1間の時間、及び、タイミングt1とタイミングt3間の時間の方か長くなっている。
【0074】
具体的には、第1FF出力信号P9及び第2FF出力信号P10の何れもが、上記の無効検出信号となった場合には、CPU80は、ノイズにより正確な検出が不可能であると判断し、自動感度調整を実行する。即ち、遅延回路50を制御することにより、タイミングt2とタイミングt1間の時間、及び、タイミングt1とタイミングt3間の時間を段階的(4段階)に長くしてゆき、チャタリングが生じなくなった段階で自動感度調整を停止する。この自動感度調整により、検出感度の低下を必要最小限に抑えることができる。
【0075】
次に、本実施の形態のCPU80のフロチャートを図9を参照しつつ各ステップ毎に説明する。本回路の電源を投入し(S1)、ポート84、85から自動感度調整を行う遅延回路50へ直流電流を出力しないことにより、検出感度が最も高い状態に設定される(S2)。
【0076】
CPU80は、ポート86乃至93の各ポートから8ビットデジタル2進データ信号を出力し、上記の自動バランス調整を実行する(S3)。自動バランス調整終了後、ポート82の第1FF出力信号P9が、HIGHレベルであるか、および/または、ポート83の第2FF出力信号P10がHIGHレベルであるかを判定する。
【0077】
上記のHIGHレベル信号が、有効検出信号であると判断されると(S6)、その有効検出信号の継続時間が0.2秒以上であるかが判断される(S7)。有効検出信号の継続時間が0.2秒以上である場合には、第1検出信号又は第2検出信号がポート94から1秒間出力される(S7)。0.2秒未満である場合には、S4へ復帰する。
【0078】
有効検出信号の継続時間が、さらに持続し、10秒以上になった場合には、自動バランス調整を実行する(S9)。例えば、何れかの検出電極の検出領域内に、物体が10秒以上静止している場合、再度自動バランス調整を行うことにより、同検出電極の電荷量の増大の影響を排除することができる。従って、同検出電極と他の検出電極の静電容量のバランスが復元される。故に、この自動バランス調整の実行後はS4に復帰し、この静止物体が存在した状態において、他の物体が検出領域内に新たに浸入した場合でも、この他の物体を検出することができる。
【0079】
上記S5において、HIGHレベル信号が、無効検出信号であると判断されると、次に、その無効検出信号が、両ポート82、83の何れにも発生しているかが判断される(S10)。両ポート82、83の何れにも無効検出信号が生じている場合には、自動感度調整を実行し、4段階の感度レベルを1段階下げ(S11)、S4へ復帰する。
【0080】
ポート82、83の何れか一方のポートに無効検出信号が生じている場合には、その無効検出信号の継続時間が2秒以上であるかを判断する(S12)。2秒以上である場合には、自動バランス調整を実行し(S13)た後、S4へ復帰する。また、2秒未満である場合には、自動バランス調整を実行する必要がないものと判断し、自動バランス調整を実行せず、S4へ復帰する。
【図面の簡単な説明】
【図1】 本発明に係る実施の形態の静電容量センサ回路の回路図である。
【図2】 図1の静電容量センサ回路の動作を示すタイミングチャートであり、回路の作動直後の状態を示す。
【図3】 図1の静電容量センサ回路の動作を示すタイミングチャートであり、自動バランス調整中の作動状態を示す。
【図4】 図1の静電容量センサ回路の動作を示すタイミングチャートであり、自動バランス調整の完了状態を示す。
【図5】 図1の静電容量センサ回路の動作を示すタイミングチャートであり、第1検出電極の電荷量が増大した状態を示す。
【図6】 図1の静電容量センサ回路の動作を示すタイミングチャートであり、第2検出電極の電荷量が増大した状態を示す。
【図7】 図1の静電容量センサ回路の動作を示すタイミングチャートであり、自動感度調整により、検出感度を低下させた状態を示す。
【図8】 図1の静電容量センサ回路の動作を示すタイミングチャートであり、第1FF出力信号の無効検出信号と有効検出信号を示している。
【図9】 図1の静電容量センサ回路のCPU80の動作を示すフロチャートである。
【図10】 従来の静電容量センサ回路のブロック図である。
【符号の説明】
1、2 入力端子
3、4 増幅抵抗
5 トランス
6 第1検出電極
7 第2検出電極
8、9 アース電極
10 サージ保護回路
11、12 抵抗
13、14 ESD
20 比較回路
22 第1コンパレータ
23 第2コンパレータ
30 波形整形回路
31 第1ノット回路
32 第2ノット回路
33 第3ノット回路
40 フリップフロップ回路
41 第1フリップフロップ回路
42 第2フリップフロップ回路
50 自動感度調整回路
60 D/A変換回路
80 CPU
120 安定化電源回路
130 リセット回路
140 LED表示回路
150 CPUクロック
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to a capacitance sensor circuit.
[0002]
[Prior art]
  Conventionally, a capacitance sensor circuit for detecting a capacitance difference between two detection electrodes has been disclosed in Japanese Utility Model Application Publication No. 63-36246. As shown in FIG. 10, this circuit includes a pulse signal generation circuit, a variable resistor, a first variable delay circuit, a second variable delay circuit, and phase discriminating means, and the detection electrode has a first variable delay. The circuit and the reference electrode are connected to the second variable delay circuit.
[0003]
  The pulse signal output from the pulse signal generation circuit is branched to the first variable delay circuit and the second variable delay circuit via a variable resistor. Both variable delay circuits have a capacitance between the detection electrode and the ground (hereinafter referred to as “detection electrode capacitance”) when an object to be detected is present in the detection region, and a capacitance between the reference electrode and the ground. (Hereinafter referred to as “reference electrode capacitance”), the input pulse signal is delayed, and each pulse signal is output to the phase discriminating means as the comparing means.
[0004]
  The phase discriminating means compares the phases of the input pulse signals, and outputs a detection signal if the phase shift is equal to or greater than a predetermined threshold value. It should be noted that the capacitance between the detection electrode and ground (hereinafter referred to as “detection electrode basic capacitance”) and the capacitance between the reference electrode and ground (hereinafter referred to as “reference”) when no detection object is present in the detection region. The difference from “electrode basic capacity” was that the variable resistance was adjusted manually.
[0005]
[Problems to be solved by the invention]
  In the capacitance sensor circuit described above, when either the detection electrode basic capacitance or the reference electrode basic capacitance fluctuates due to noise or the like, the phase difference of the delayed pulse signal due to the difference between the two basic capacitances is predetermined. If it is equal to or greater than the threshold value, a detection signal is output even when there is no object to be detected in the detection area. That is, it malfunctions.
[0006]
  In order to prevent the malfunction due to the difference between the detection electrode basic capacitance and the reference electrode basic capacitance, it can be avoided by setting the threshold value large. However, if the threshold value is set to be large, when a detection object having a predetermined charge amount is detected, the detection object cannot be detected unless the detection object approaches or contacts the detection electrode. That is, there is a problem that the detection sensitivity has to be lowered.
[0007]
  In addition, when the object approaches and stops within the area of the detection electrode, the charge amount of the detection electrode remains in an increased state, so that another object is newly detected. There was a problem that even if it entered the area, it could not be detected.
[0008]
  The present invention solves the problems of the capacitance sensor circuit described above, and does not cause malfunction even if the balance between the detection electrode basic capacitance and the reference electrode basic capacitance is lost, and also provides stable sensitivity and high detection sensitivity. It is an object to provide a capacitance sensor circuit that can be maintained.
[0009]
[Means for Solving the Problems]
  The capacitance sensor circuit according to claim 1, wherein the pulse signal generation circuit generates a pulse signal, and the pulse signal is converted into a clock signal, a first data signal, and a first data signal based on a change in capacitance of at least two detection electrodes. A comparator for forming two data signals, a time between the timing t2 of the first data signal and the timing t1 of the clock signal, and a time between the timing t1 of the clock signal and the timing t3 of the second data signal. Automatic balance adjustment means for comparing the clock signal and the first data signal, and determining means for comparing and determining the clock signal and the second data signal,The comparison means is connected to a first detection electrode and forms the clock signal, the second comparator is connected to a second detection electrode and forms the first data signal, and the first comparator A delay circuit for delaying a data signal to form the second data signalThat's it.
[0010]
  The capacitance sensor circuit according to the present invention forms a clock signal, a first data signal, and a second data signal based on a change in capacitance of the two detection electrodes, and controls the time between the timings, The detection sensitivity of the two detection electrodes can be maintained at a predetermined sensitivity.
[0011]
  The capacitance sensor circuit according to claim 2, wherein the automatic balancing means includes a time between the timing t2 of the first data signal and the timing t1 of the clock signal, and between the timing t1 of the clock signal and the timing t3 of the second data signal. The time is controlled evenly.
[0012]
  The capacitance sensor circuit according to the present invention can maintain the detection sensitivity of the two detection electrodes at a substantially equal sensitivity. In addition, noise that enters the detection electrode from the outside affects the two detection electrodes substantially evenly, so that the influence of this noise can be efficiently eliminated.
[0013]
  The specific configuration of the comparison means according to claim 1 is as follows:A first comparator connected to the first detection electrode and forming the clock signal; a second comparator connected to the second detection electrode and forming the first data signal; and delaying the first data signal Delay circuit for forming a second data signalAnd is added as a specific requirement of the present invention.
[0014]
  Claim 3In the described capacitance sensor circuit, the automatic balance adjusting means variably controls the comparison voltage of the second comparator.
[0015]
  Since the capacitance sensor circuit according to the present invention controls only the second comparator by the automatic balance adjusting means, it is not necessary to control the first comparator. Therefore, the circuit configuration can be simplified, the control can be facilitated, and the operation reliability of the circuit can be improved.
[0016]
  Claim 4The described capacitance sensor circuit is such that the automatic balance adjusting means is a D / A conversion circuit operated by a CPU.
[0017]
  Since the capacitance sensor circuit according to the present invention uses a D / A conversion circuit operated by a CPU, automatic balance adjustment can be precisely performed.
[0018]
  Claim 5In the capacitance sensor circuit described above, as a result of the judgment unit comparing the clock signal and the first data signal and comparing the clock signal and the second data signal, one of them is in an invalid detection state for a predetermined time or more. If it is determined, the automatic balance adjusting means is activated.
[0019]
  Claim 6In the described capacitance sensor circuit, the determination unit compares the clock signal and the first data signal, and as a result of comparing the clock signal and the second data signal, it is determined that one of them is in the valid detection state. In some cases, a detection signal is output.
[0020]
  Claim 7In the described capacitance sensor circuit, after the judgment means outputs the detection signal, the clock signal and the first data signal are compared, and as a result of comparing the clock signal and the second data signal, either one is predetermined. If it is determined that the state is in the valid detection state for more than the time, the automatic balance adjusting means is activated.
[0021]
  The capacitance sensor circuit according to the present invention allows another object to enter the detection area by operating the automatic balance adjusting means even when the object approaches and stops in the detection electrode area. Can be detected.
[0022]
  Claim 8In the capacitance sensor circuit described above, the judging means includes a first flip-flop circuit that compares the clock signal and the first data signal, a second flip-flop circuit that compares the clock signal and the second data signal, and a first flip-flop. And a CPU for judging output signals of the flip-flop circuit and the second flip-flop circuit.
[0023]
  Claim 9In the described capacitance sensor circuit, the delay circuit performs automatic sensitivity adjustment by variably controlling the delay time of the second data signal.
[0024]
  Claim 10In the described capacitance sensor circuit, when the judging means compares the clock signal with the first data signal and also compares the clock signal with the second data signal, it is judged that both are in the invalid detection state. In this method, the delay circuit is activated to lower the detection sensitivity.
[0025]
  Claim 11In the described capacitance sensor circuit, the delay circuit is composed of an integration circuit having a plurality of time constants selected by the CPU.
[0026]
  Claim 12In the described capacitance sensor circuit, the determination unit operates the automatic balance adjustment unit immediately after the operation of the capacitance sensor circuit.
[0027]
  Claim 13In the described capacitance sensor circuit, the judging means operates the delay circuit immediately after the capacitance sensor circuit is activated, and sets the detection sensitivity to the highest state.
[0028]
DETAILED DESCRIPTION OF THE INVENTION
  A capacitance sensor circuit according to the present invention will be described with reference to FIG. This circuit is formed by connecting a surge protection circuit 10, a comparison circuit 20, a waveform shaping circuit 30, a flip-flop circuit 40, and a CPU 80 in series from the input terminals 1 and 2, and further, the waveform shaping circuit 30. Is connected to a delay circuit 50, and the comparison circuit 20 is connected to a D / A conversion circuit 60.
[0029]
  Further, the circuit includes a stabilized power supply circuit 120, a reset circuit 130, an LED display circuit 140, and a CPU clock 150. The reset circuit 130 stops the operation of the CPU 80 and maintains the reset state until the supply voltage to the CPU 80 reaches a predetermined operable voltage after the power is turned on. It is a circuit for lighting LED141, 142, 143, 144 for monitoring the detection state of this.
[0030]
  A first detection electrode 6 is connected to the input terminal 1, and the first detection electrode is disposed to face the ground electrode 8. Further, the second detection electrode 7 is connected to the input terminal 2 and is disposed to face the ground electrode 9. In the present embodiment, the basic capacitance between the first detection electrode 6 and the ground electrode 8 and the basic capacitance between the second detection electrode 7 and the ground electrode 9 are adjusted to be the same. It is not necessarily the same.
[0031]
  The input terminals 1 and 2 are followed by a transformer 5, which constitutes a low-pass filter for noise removal. Further, a surge protection circuit 10 following the transformer 5 is provided to remove surge noise. Note that the transformer 5 and the surge protection circuit 10 are not necessarily required, and other circuits for noise removal can be used as appropriate.
[0032]
  The port 81 of the CPU 80 that supplies the 1/2 DUTY 249 Hz pulse signal P1 is branched and connected to the resistors 11 and 12 of the surge protection circuit 10 via the amplification resistors 3 and 4 respectively. The frequency of the pulse signal P1 is not limited to the above frequency.
[0033]
  The pulse signal P1 is converted into a first integrated waveform signal P2 by an integration circuit configured by the amplification resistor 3 and a capacitor formed between the first detection electrode 6 and the ground electrode 8. The inclination of the rising edge is determined by the time constant of the amplification resistor 3 and the capacitor formed between the first detection electrode 6 and the ground electrode 8. In addition, the pulse signal P1 is converted into the second integrated waveform signal P3 by an integrating circuit constituted by the amplification resistor 4 and a capacitor formed between the second detection electrode 7 and the ground electrode 9.
[0034]
  The comparison circuit 20 forms a first comparator 22 that forms a first delayed pulse signal P4 obtained by delaying the first integrated waveform signal P2, and a second delayed pulse signal P5 that produces a second delayed waveform signal P3. 2 comparator 23 is provided. The first integrated waveform signal P <b> 2 is input to the positive pole 221 of the first comparator 22, and a DC voltage fixed to 1.25 V by the resistor 24 is supplied to the negative pole 222. The capacitors 25 and 27 are smoothing decoupling capacitors, and the resistor 26 is a voltage dividing resistor.
[0035]
  On the other hand, the second integrated waveform signal P3 is input to the positive pole 231 of the second comparator 23, and a variably controlled DC voltage from a D / A conversion circuit 60 described later is supplied to the negative pole 232. Since both the comparators 22 and 23 are open collectors, a DC voltage is supplied to the output terminals 223 and 233 via the pull-up resistors 28 and 29.
[0036]
  The waveform shaping circuit 30 includes a first knot circuit 31, a second knot circuit 32, and a third knot circuit 33. The first knot circuit 31 inverts the phase of the first delay pulse signal P4 and shapes the waveform to the clock signal P6. The second knot circuit 32 inverts the phase of the second delay pulse signal P5 and Waveform shaping to 1 data signal P7.
[0037]
  The third knot circuit 33 forms a second delayed pulse signal P5 branched immediately after the output terminal 233 of the second comparator 23 by delaying it in four stages by a delay circuit 50 to be described later, inverts the phase, 2 Waveform shaping to data signal P8.
[0038]
  The flip-flop circuit 40 includes a first flip-flop circuit 41 and a second flip-flop circuit 42 which are delay flip-flop circuits. The first data signal P7 is input to the data input terminal 411 of the first flip-flop circuit, and the clock signal P6 is input to the clock input terminal 412. The first flip-flop circuit 41 inverts the signal level of the first data signal P7 at the timing of the rising edge of the clock signal P6 and outputs the first FF output signal P9 from the output terminal 413 to the port 82 of the CPU 80.
[0039]
  The second data signal P8 is input to the data input terminal 421 of the second flip-flop circuit 42, and the clock signal P6 is input to the clock input terminal 422. The second flip-flop circuit 42 outputs the second data signal P8 from the output terminal 423 to the port 83 of the CPU 80 as the second FF output signal without inverting the signal level of the second data signal P8 at the rising edge timing of the clock signal P6.
[0040]
  The delay circuit 50 includes a resistor 51, capacitors 52, 53 and 54, and MOS transistors 55 and 56. The gates of the MOS transistors 55 and 56 are connected to the ports 84 and 85 of the CPU 80, respectively, and are ON / OFF controlled.
[0041]
  The delay circuit 50 controls the time constant of the integrating circuit in the delay circuit 50 in four stages by ON / OFF control of the MOS transistors 55 and 56. Accordingly, the delay time of the branched second delay pulse signal is controlled in four stages. That is, when both MOS transistors 55 and 56 are OFF controlled, the resistor 51 and the capacitor 52 constitute an integrating circuit.
[0042]
  Further, when only the MOS transistor 55 is ON-controlled, the resistor 51 and the capacitors 52 and 53 are ON. When only the MOS transistor 56 is ON-controlled, the resistor 51 and the capacitors 52 and 54 are ON-controlled, and both the MOS transistors 55 and 56 are ON-controlled. An integrating circuit is configured by the resistor 51 and the capacitors 52, 53, and 54.
[0043]
  The D / A conversion circuit 60 is composed of resistors 62 to 69 connected to the ports 86 to 93 of the CPU 80, and converts 8-bit digital binary data signals from each port into a DC voltage. Then, a DC voltage of 1.0 to 1.5 V is variably controlled in 256 steps and supplied to the negative pole 232 of the second comparator 23. In this embodiment, 8-bit digital binary data is used. However, the circuit according to the present invention is not limited to the number of bits.
[0044]
  Next, the operation of the circuit of this embodiment will be described with reference to timing charts shown in FIGS. First, a state immediately after the power supply of this circuit is turned on will be described with reference to FIG.
[0045]
  When the power supply of this circuit is turned on, the pulse signal P1 output from the port 81 of the CPU 80 is branched and converted into the first integrated waveform signal P2 and the second integrated waveform signal P3 by the integration circuits. The
[0046]
  The first integrated waveform signal P2 is converted into a first delayed pulse signal P4 having a falling edge at a timing t1 when the threshold value of the 1.25V DC voltage supplied to the first comparator 22 is exceeded. On the other hand, the second integrated waveform signal P3 is converted into a second delayed pulse signal P5 having a falling edge at a timing t2 when the threshold value of the variable DC voltage supplied to the second comparator 23 is exceeded.
[0047]
  In the timing chart shown in FIG. 2, since the variable DC voltage supplied to the negative pole 232 of the second comparator 23 is the minimum value of 1.0 V, the timing t1 of the first delay pulse signal P4 is the second delay. It is ahead of the timing t2 of the pulse signal P5.
[0048]
  The first delayed pulse signal P4 is input to the first knot circuit 31, is output as the clock signal P6, and is supplied to the clock input terminals 412 and 422 of the first flip-flop circuit 41 and the second flip-flop circuit 42.
[0049]
  The branched second delayed pulse signal P5 is input to the second knot circuit 32 and input to the first flip-flop circuit 41 as the first data signal. Further, the other branched second delayed pulse signal P5 is delayed by a predetermined time by the delay circuit 50, and is then input to the third knot circuit 33, to the second flip-flop circuit 42 as the second data signal P8. Entered. Therefore, the timing t3 of the rising edge of the second data signal P8 is controlled to be further delayed than the timing t2.
[0050]
  Since the first data signal P7 is at the LOW level at the timing t1 of the rising edge of the clock signal P6, the first FF output signal P9 to be inverted is a HIGH level signal. On the other hand, since the second data signal P8 is at the LOW level, the second FF output signal P10 output as it is is a LOW level signal.
[0051]
  Next, the CPU 80 increases the variable DC voltage supplied to the negative pole 232 of the second comparator 23 from the minimum value of 1.0 V until the first FF output signal becomes the LOW level. This variable DC voltage is obtained by converting the 8-bit digital binary code signal output from the ports 86 to 93 of the CPU 80 by the D / A conversion circuit 60, and has 256 levels of voltage values. . Accordingly, the 8-bit digital binary code signal is incremented by +1 to increase the variable DC voltage. Note that it is not always necessary to add one by one, and first data and second data to be described later can be obtained by roughly adding or subtracting at a predetermined interval.
[0052]
  When the variable DC voltage is raised and the first FF output signal changes from HIGH level to LOW level at a constant voltage value, the CPU 80 uses the 8-bit digital binary code signal at the constant voltage value as the first data. Stored in the internal memory.
[0053]
  Further, as shown in FIG. 3, the CPU 80 increases the variable DC voltage supplied to the negative pole 232 of the second comparator 23 until the second FF output signal changes from the LOW level to the HIGH level. In FIG. 3, this voltage is temporarily displayed as 1.4V. Then, an 8-bit digital binary code signal at a voltage of 1.4 V is stored in the memory inside the CPU 80 as second data.
[0054]
  The CPU 80 calculates a balance voltage value by adding a constant voltage value of the first data to the intermediate voltage value of the first data and the second data as the measurement result. Then, an 8-bit digital binary code signal corresponding to the balance voltage value is output to the D / A conversion circuit 60.
[0055]
  If the balance voltage value is 1.3 V, the timing chart is as shown in FIG. That is, the time between timing t2 and timing t1 is equal to the time between timing t1 and timing t3. This state is reached, and the circuit becomes in a detectable state. When any of the ports 82 and 83 is kept at the LOW level, the CPU 80 determines that no object is present in any detection area of both electrodes.
[0056]
  Next, a case where an object approaches or contacts only within the detection region of the first detection electrode 6 and the amount of charge of the first detection electrode 6 increases will be described with reference to FIG.
[0057]
  In the first integrated waveform signal P2, since the capacitance between the first detection electrode 6 and the ground electrode 8 increases, the slope of the falling edge of the first integrated waveform signal P2 becomes smaller. Accordingly, the timing t1 of the first integrated waveform signal P2 is delayed from the timing t3 of the rising edge of the second data signal P8.
[0058]
  For this reason, at the rising edge t1 of the clock signal P6, the second data signal P8 is at the HIGH level, so the second FF output signal P10 changes from the LOW level to the HIGH level. On the other hand, since the first data signal P7 remains at the HIGH level, the first FF output signal P9 maintains the LOW level.
[0059]
  The CPU 80 that has monitored the signal levels of the ports 82 and 83, when the signal level of each port becomes the LOW level and the HIGH level, on the condition that the state continues for 0.2 seconds or more. A detection signal is output from the port 94.
[0060]
  Note that, when the timing t1 is delayed from the timing t3, the balance object shown in FIG. 4 is adjusted in a state where a stationary object having a predetermined charge is present in the detection region of the detection electrode 7, Thereafter, this also occurs when the object is separated from or separated from the detection region of the detection electrode 7. Therefore, the first detection signal when the signal level of the ports 82 and 83 becomes the LOW level and the HIGH level is output even when the object is separated from the detection region of the detection electrode 7 or separated. Is done.
[0061]
  Next, a case where an object approaches or contacts only within the detection region of the second detection electrode 7 and the amount of charge of the second detection electrode 7 increases will be described with reference to FIG.
[0062]
  In the second integrated waveform signal P3, since the capacitance between the second detection electrode 7 and the ground electrode 9 increases, the slope of the falling edge of the second integrated waveform signal P3 becomes smaller. Accordingly, the timing t2 of the second integrated waveform signal P3 is delayed from the timing t1 of the falling edge of the first integrated waveform signal P2.
[0063]
  Therefore, at the rising edge t1 of the clock signal P6, the first data signal P7 is at the LOW level, so the first FF output signal P9 changes from the LOW level to the HIGH level. Meanwhile, the second data signal P8Remains at the LOW level, the second FF output signal P10 maintains the LOW level.
[0064]
  The CPU 80 that has monitored the signal levels of the ports 82 and 83, when the signal level of each port becomes the HIGH level and the LOW level, on the condition that the state continues for 0.2 seconds or more. A detection signal is output from the port 94.
[0065]
  When the timing t2 is delayed from the timing t1, the balance object shown in FIG. 4 is adjusted in a state where a stationary object having a predetermined charge is present in the detection region of the detection electrode 6. Thereafter, this also occurs when the object is separated from or separated from the detection region of the detection electrode 6. Therefore, the second detection signal when the signal level of the ports 82 and 83 becomes the HIGH level and the LOW level is also output when the object is separated from the detection region of the detection electrode 6 or separated. Is done.
[0066]
  FIG. 8 is a timing chart showing in more detail the pulse signal P1 and the second FF output signal of the timing chart when an object approaches or contacts only within the detection region of the first detection electrode 6 shown in FIG. ing.
[0067]
  When an object approaches the detection area of the first detection electrode 6, as described above, the second FF output signal changes from a stable LOW level (non-detection signal) to a stable HIGH level (effective detection signal). Actually, as shown in FIG. 8, an invalid detection signal that alternately repeats the LOW level or the HIGH level is output between the non-detection signal and the valid detection signal for a short time.
[0068]
  This invalid detection signal is generated when the timing t1 and the timing t3 of the rising edge of the second data signal substantially coincide with each other, and the valid detection signal is formed when the timing t1 is completely delayed from the timing t3.
[0069]
  This invalid detection signal is also generated when the temperature, humidity, or the like around the detection electrode changes with the passage of time after the automatic balance adjustment. That is, the charge amount of one detection electrode gradually increases or decreases than the charge amount of the other detection electrode, so that the time between the timing t2 and the timing t1, The time between t1 and timing t3 is different, and an invalid detection signal is formed.
[0070]
  However, since the change in the charge amount of the detection electrode occurs with changes in temperature or the like, it gradually changes over time. Accordingly, the duration of the invalid detection signal caused by a change in temperature or the like is extremely longer than the change in the amount of charge caused by the approach or contact of an object in the detection region. As will be described later, when the time during which the invalidity detection signal is output is longer than a predetermined time (2 seconds), the CPU 80 executes the automatic balance adjustment.
[0071]
  Next, automatic sensitivity adjustment will be described. When external noise enters through the detection electrode or when noise enters the circuit from the power supply unit or the like, fluctuations (jitter) occur at timings t1, t2, and t3, and the first FF output signal P9 and the second FF output signal. Any of P10 becomes the above-mentioned invalidity detection signal and causes chattering.
[0072]
  This chattering is caused by relatively weak noise when the time between the timing t2 and the timing t1 and the time between the timing t1 and the timing t3 are short, that is, when the detection sensitivity is high.
[0073]
  Automatic sensitivity adjustment eliminates the influence of noise by adjusting the time between each timing. FIG. 7 shows a timing chart in a state where the one-step detection sensitivity is lowered by the delay circuit 50 from the most sensitive state shown in FIG. 7 is the time between the timing t2 and the timing t1 in FIG. 7 and the time between the timing t1 and the timing t3 in FIG. 7 than the time between the timing t2 and the timing t3 in FIG. It is getting longer.
[0074]
  Specifically, when both the first FF output signal P9 and the second FF output signal P10 are the above-described invalid detection signals, the CPU 80 determines that accurate detection is impossible due to noise, Perform automatic sensitivity adjustment. That is, by controlling the delay circuit 50, the time between the timing t2 and the timing t1 and the time between the timing t1 and the timing t3 are increased stepwise (four steps), and chattering no longer occurs. Stop automatic sensitivity adjustment. By this automatic sensitivity adjustment, a decrease in detection sensitivity can be minimized.
[0075]
  Next, a flowchart of the CPU 80 of the present embodiment will be described for each step with reference to FIG. By turning on the power of this circuit (S1) and not outputting direct current from the ports 84 and 85 to the delay circuit 50 that performs automatic sensitivity adjustment, the detection sensitivity is set to the highest state (S2).
[0076]
  The CPU 80 outputs an 8-bit digital binary data signal from each of the ports 86 to 93, and executes the automatic balance adjustment (S3). After completion of the automatic balance adjustment, it is determined whether the first FF output signal P9 of the port 82 is HIGH level and / or whether the second FF output signal P10 of the port 83 is HIGH level.
[0077]
  If it is determined that the HIGH level signal is a valid detection signal (S6), it is determined whether the duration of the valid detection signal is 0.2 seconds or more (S7). If the duration of the valid detection signal is 0.2 seconds or longer, the first detection signal or the second detection signal is output from the port 94 for 1 second (S7). If it is less than 0.2 seconds, the process returns to S4.
[0078]
  When the duration of the valid detection signal is further continued and becomes 10 seconds or more, automatic balance adjustment is executed (S9). For example, when the object is stationary for 10 seconds or longer in the detection region of any of the detection electrodes, the influence of the increase in the charge amount of the detection electrode can be eliminated by performing automatic balance adjustment again. Therefore, the balance of capacitance between the detection electrode and other detection electrodes is restored. Therefore, after the automatic balance adjustment is executed, the process returns to S4, and even when another object enters the detection area in the state where the stationary object exists, the other object can be detected.
[0079]
  If it is determined in S5 that the HIGH level signal is an invalid detection signal, it is then determined whether the invalid detection signal is generated in either of the ports 82 and 83 (S10). When invalid detection signals are generated in both ports 82 and 83, automatic sensitivity adjustment is executed, the sensitivity level of the four levels is lowered by one level (S11), and the process returns to S4.
[0080]
  When an invalidity detection signal is generated in one of the ports 82 and 83, it is determined whether the duration of the invalidity detection signal is 2 seconds or more (S12). If it is 2 seconds or longer, automatic balance adjustment is executed (S13), and then the process returns to S4. If it is less than 2 seconds, it is determined that it is not necessary to execute the automatic balance adjustment, and the process returns to S4 without executing the automatic balance adjustment.
[Brief description of the drawings]
FIG. 1 is a circuit diagram of a capacitance sensor circuit according to an embodiment of the present invention.
FIG. 2 is a timing chart showing the operation of the capacitance sensor circuit of FIG. 1, showing a state immediately after the operation of the circuit.
FIG. 3 is a timing chart showing the operation of the capacitance sensor circuit of FIG. 1, showing an operating state during automatic balance adjustment;
4 is a timing chart showing the operation of the capacitance sensor circuit of FIG. 1, and shows a state in which automatic balance adjustment is completed. FIG.
5 is a timing chart showing the operation of the capacitance sensor circuit of FIG. 1, showing a state in which the charge amount of the first detection electrode is increased.
6 is a timing chart showing the operation of the capacitance sensor circuit of FIG. 1, showing a state in which the charge amount of the second detection electrode is increased.
7 is a timing chart showing the operation of the capacitance sensor circuit of FIG. 1, and shows a state in which detection sensitivity is lowered by automatic sensitivity adjustment.
8 is a timing chart showing the operation of the capacitance sensor circuit of FIG. 1, showing an invalid detection signal and a valid detection signal of the first FF output signal.
9 is a flowchart showing the operation of a CPU 80 of the capacitance sensor circuit of FIG.
FIG. 10 is a block diagram of a conventional capacitance sensor circuit.
[Explanation of symbols]
1, 2 input terminals
3, 4 Amplification resistor
5 transformer
6 First detection electrode
7 Second sensing electrode
8, 9 Ground electrode
10 Surge protection circuit
11, 12 resistance
13, 14 ESD
20 Comparison circuit
22 First comparator
23 Second comparator
30 Waveform shaping circuit
31 First knot circuit
32 Second knot circuit
33 Third knot circuit
40 Flip-flop circuit
41 First flip-flop circuit
42 Second flip-flop circuit
50 Automatic sensitivity adjustment circuit
60 D / A converter circuit
80 CPU
120 Stabilized power supply circuit
130 Reset circuit
140 LED display circuit
150 CPU clock

Claims (13)

パルス信号を発生するパルス信号発生回路と、
該パルス信号を少なくとも2の検出電極の静電容量の変化に基づいてクロック信号、第1データ信号及び第2データ信号を形成する比較手段と、
該第1データ信号のタイミングt2と該クロック信号のタイミングt1間の時間と、該クロック信号のタイミングt1と該第2データ信号のタイミングt3間の時間を制御する自動バランス調整手段と、
該クロック信号と第1データ信号とを比較し、また、該クロック信号と第2データ信号を比較判断する判断手段とを有し、
前記比較手段は、第1検出電極と接続されると共に前記クロック信号を形成する第1コンパレータと、第2検出電極と接続されると共に前記第1データ信号を形成する第2コンパレータと、前記第1データ信号を遅延して前記第2データ信号を形成する遅延回路とから成ることを特徴とする静電容量センサ回路。
A pulse signal generation circuit for generating a pulse signal;
Comparing means for forming a clock signal, a first data signal and a second data signal based on a change in capacitance of at least two detection electrodes, the pulse signal;
Automatic balance adjustment means for controlling the time between the timing t2 of the first data signal and the timing t1 of the clock signal and the time between the timing t1 of the clock signal and the timing t3 of the second data signal;
Determining means for comparing the clock signal with the first data signal and comparing the clock signal with the second data signal;
The comparison means is connected to a first detection electrode and forms the clock signal, the second comparator is connected to a second detection electrode and forms the first data signal, and the first comparator A capacitance sensor circuit comprising a delay circuit that delays a data signal to form the second data signal .
前記自動バランス手段は、前記第1データ信号のタイミングt2と前記クロック信号のタイミングt1間の時間と、前記クロック信号のタイミングt1と前記第2データ信号のタイミングt3間の時間を均等に制御する請求項1記載の静電容量センサ回路。  The automatic balancing means controls the time between the timing t2 of the first data signal and the timing t1 of the clock signal and the time between the timing t1 of the clock signal and the timing t3 of the second data signal equally. Item 4. The capacitance sensor circuit according to Item 1. 前記自動バランス調整手段は、前記第2コンパレータの比較電圧を可変制御する請求項記載の静電容量センサ回路。The automatic balance adjustment means, the electrostatic capacitance sensor circuit of claim 1 wherein the variable control of the comparison voltage of the second comparator. 前記自動バランス調整手段は、CPUにより作動するD/A変換回路である請求項に記載の静電容量センサ回路。The capacitance sensor circuit according to claim 1 , wherein the automatic balance adjusting unit is a D / A conversion circuit operated by a CPU. 前記判断手段は、前記クロック信号と前記第1データ信号を比較し、また、前記クロック信号と前記第2データ信号を比較した結果、何れか一方が所定時間以上無効検出状態にあると判断した場合には、自動バランス調整手段を作動させる請求項1記載の静電容量センサ回路。  The determination means compares the clock signal with the first data signal, and compares the clock signal with the second data signal, and determines that one of them is in an invalid detection state for a predetermined time or more. 2. The capacitance sensor circuit according to claim 1, wherein the automatic balance adjusting means is operated. 前記判断手段は、前記クロック信号と前記第1データ信号を比較し、また、前記クロック信号と前記第2データ信号を比較した結果、何れか一方が有効検出状態にあると判断した場合には、検出信号を出力する請求項1記載の静電容量センサ回路。  The determination means compares the clock signal and the first data signal, and, as a result of comparing the clock signal and the second data signal, determines that one of them is in a valid detection state, The capacitance sensor circuit according to claim 1, which outputs a detection signal. 前記判断手段は、検出信号を出力した後、前記クロック信号と前記第1データ信号を比較し、また、前記クロック信号と前記第2データ信号を比較した結果、何れか一方が所定時間以上有効検出状態にあると判断した場合には、自動バランス調整手段を作動させる請求項1記載の静電容量センサ回路。  The determination means outputs a detection signal, compares the clock signal with the first data signal, and compares the clock signal with the second data signal. 2. The capacitance sensor circuit according to claim 1, wherein when it is determined that the state is in a state, the automatic balance adjusting means is operated. 前記判断手段は、前記クロック信号と前記第1データ信号を比較する第1フリップフロップ回路と、前記クロック信号と前記第2データ信号を比較する第2フリップフロップ回路と、該第1フリップフロップ回路及び該第2フリップフロップ回路の出力信号を判断するCPUから成る請求項1記載の静電容量センサ回路。  The determination means includes a first flip-flop circuit that compares the clock signal with the first data signal, a second flip-flop circuit that compares the clock signal with the second data signal, the first flip-flop circuit, 2. The capacitance sensor circuit according to claim 1, further comprising a CPU for determining an output signal of the second flip-flop circuit. 前記遅延回路は、前記第2データ信号の遅延時間を可変制御することにより、自動感度調整を行う請求項1記載の静電容量センサ回路。  The capacitance sensor circuit according to claim 1, wherein the delay circuit performs automatic sensitivity adjustment by variably controlling a delay time of the second data signal. 前記判断手段は、前記クロック信号と前記第1データ信号を比較し、また、前記クロック信号と前記第2データ信号を比較した結果、何れもが無効検出状態にあると判断した場合には、前記遅延回路を作動させ検出感度を低下させる請求項記載の静電容量センサ回路。The determination means compares the clock signal with the first data signal, and compares the clock signal with the second data signal, and determines that both are in an invalid detection state. capacitive sensor circuit of claim 1 wherein lowering the detection sensitivity by operating the delay circuit. 前記遅延回路は、CPUにより選択される複数の時定数を有する積分回路から成る請求項1記載の静電容量センサ回路。  2. The capacitance sensor circuit according to claim 1, wherein the delay circuit comprises an integration circuit having a plurality of time constants selected by a CPU. 前記判断手段は、静電容量センサ回路作動直後、前記自動バランス調整手段を作動させる請求項1記載の静電容量センサ回路。  The capacitance sensor circuit according to claim 1, wherein the determination unit operates the automatic balance adjustment unit immediately after the capacitance sensor circuit is operated. 前記判断手段は、静電容量センサ回路作動直後、前記遅延回路を作動させ、検出感度が最も高い状態に設定する請求項1記載の静電容量センサ回路。  2. The capacitance sensor circuit according to claim 1, wherein immediately after the capacitance sensor circuit is activated, the determination unit activates the delay circuit and sets the detection sensitivity to the highest state.
JP32283198A 1998-10-28 1998-10-28 Capacitance sensor circuit Expired - Fee Related JP4047466B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32283198A JP4047466B2 (en) 1998-10-28 1998-10-28 Capacitance sensor circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32283198A JP4047466B2 (en) 1998-10-28 1998-10-28 Capacitance sensor circuit

Publications (2)

Publication Number Publication Date
JP2000134078A JP2000134078A (en) 2000-05-12
JP4047466B2 true JP4047466B2 (en) 2008-02-13

Family

ID=18148100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32283198A Expired - Fee Related JP4047466B2 (en) 1998-10-28 1998-10-28 Capacitance sensor circuit

Country Status (1)

Country Link
JP (1) JP4047466B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4605870B2 (en) * 2000-08-25 2011-01-05 センサテック株式会社 Touch sensor
FR2886725B1 (en) * 2005-06-01 2007-08-31 Valeo Securite Habitacle Sas DEVICE FOR DETECTING A CAPACITANCE VARIATION AND CAPACITIVE SENSOR FOR DETECTING THE PRESENCE OF A USER, IMPLEMENTING SUCH A DEVICE
KR100683249B1 (en) 2005-06-16 2007-02-15 주식회사 애트랩 Touch Sensor and Signal Generation Method thereof
JP4914258B2 (en) * 2007-03-22 2012-04-11 本田技研工業株式会社 Gas-liquid separator
CN105808024B (en) * 2014-12-30 2020-04-14 新益先创科技股份有限公司 Capacitance difference measuring device and method
JP7173661B2 (en) * 2018-11-16 2022-11-16 ミネベアミツミ株式会社 Humidity detector

Also Published As

Publication number Publication date
JP2000134078A (en) 2000-05-12

Similar Documents

Publication Publication Date Title
US6842064B2 (en) Overcurrent protection and masking circuitry for protection against an overcurrent condition
US8456434B2 (en) Touch sensor and operating method thereof
US6265918B1 (en) Clock signal processing circuit and semiconductor device in which a clock signal is processed in improved method
US20090095542A1 (en) Touch sensor and operating method thereof
US7737730B2 (en) Method of detecting the frequency of an input clock signal of an integrated circuit and integrated circuit
WO2007150056A2 (en) Method and delay circuit with accurately controlled duty cycle
JP4047466B2 (en) Capacitance sensor circuit
US5949261A (en) Method and circuit for reducing power and/or current consumption
JP4249357B2 (en) Object-intrusive capacitive sensor in urban environment
US6889655B1 (en) Device for controlling the ignition timing for internal combustion engines
JPS5827884A (en) Control of closing angle in ignition apparatus of internal combustion engine
US6208172B1 (en) System margin and core temperature monitoring of an integrated circuit
US6456129B1 (en) Internal clock signal generator
US20020097032A1 (en) Power supply control circuit and LSI using the same
JPH08327392A (en) Electrostatic capacitance type sensor
JP2671516B2 (en) Skew correction circuit
US5489863A (en) Reset circuit
JPS59614A (en) Reference signal waveform shaping circuit device
JPH01196522A (en) Knocking detector for engine
JP2001034368A (en) Power supply voltage monitor and control device
JP3984194B2 (en) Sensor signal processing circuit
JP3485635B2 (en) Integrated circuit
JP2000174598A (en) Signal stop detection circuit
JPH08195655A (en) Hopper type voltage comparator
JP2527608Y2 (en) Logical decision circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051020

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070817

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070911

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071010

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20071030

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071122

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111130

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111130

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121130

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121130

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131130

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees