JP4198897B2 - Gas detector, vehicle auto ventilation system - Google Patents

Gas detector, vehicle auto ventilation system Download PDF

Info

Publication number
JP4198897B2
JP4198897B2 JP2001157733A JP2001157733A JP4198897B2 JP 4198897 B2 JP4198897 B2 JP 4198897B2 JP 2001157733 A JP2001157733 A JP 2001157733A JP 2001157733 A JP2001157733 A JP 2001157733A JP 4198897 B2 JP4198897 B2 JP 4198897B2
Authority
JP
Japan
Prior art keywords
value
level
density
signal
density level
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
JP2001157733A
Other languages
Japanese (ja)
Other versions
JP2002055068A (en
Inventor
祐治 木元
俊也 松岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NGK Spark Plug Co Ltd
Original Assignee
NGK Spark Plug Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NGK Spark Plug Co Ltd filed Critical NGK Spark Plug Co Ltd
Priority to JP2001157733A priority Critical patent/JP4198897B2/en
Publication of JP2002055068A publication Critical patent/JP2002055068A/en
Application granted granted Critical
Publication of JP4198897B2 publication Critical patent/JP4198897B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60HARRANGEMENTS OF HEATING, COOLING, VENTILATING OR OTHER AIR-TREATING DEVICES SPECIALLY ADAPTED FOR PASSENGER OR GOODS SPACES OF VEHICLES
    • B60H1/00Heating, cooling or ventilating [HVAC] devices
    • B60H1/00642Control systems or circuits; Control members or indication devices for heating, cooling or ventilating devices
    • B60H1/00735Control systems or circuits characterised by their input, i.e. by the detection, measurement or calculation of particular conditions, e.g. signal treatment, dynamic models
    • B60H1/008Control systems or circuits characterised by their input, i.e. by the detection, measurement or calculation of particular conditions, e.g. signal treatment, dynamic models the input being air quality

Landscapes

  • Physics & Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Investigating Or Analyzing Materials By The Use Of Fluid Adsorption Or Reactions (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ガスセンサ素子を用いて環境中の特定ガスの濃度やその変化を検出するガス検出装置および車両用オートベンチレーションシステムに関する。
【0002】
【従来の技術】
従来より、鉛−フタロシアニンを用いたり、WO3やSnO2などの金属酸化物半導体を用いたガスセンサ素子など、環境中のNOxなどの酸化性ガスやCO、HC(ハイドロカーボン)など還元性ガスなど、特定のガスの濃度変化によってそのセンサ抵抗値が変化するために、このセンサ抵抗値の変化によって特定のガス濃度の変化を検出可能なガスセンサ素子が知られている。また、このようなガスセンサ素子を用いたガス検出装置も知られている。さらには、このガス検出装置を用いた各種の制御システム、例えば、車室外空気の汚染状況に応じて、車室内への外気導入・内気導入を切り替えるためのフラップ開閉制御を行う車両用オートベンチレーションシステムや、喫煙などによる室内空気の汚染を検知し、空気清浄機の制御を行うシステムなどが知られている。
【0003】
このようなガスセンサ素子を用いたガス検出装置では、例えば、特開平5−157714号に開示されているように、ガス濃度の変化に素早く対応することが出来るように、濃度変化の感度を向上させ、風等のノイズに対するS/Nを向上させるべく、ガスセンサ素子の出力信号を微分したり、アナログ微分値をA/D変換した後、さらにデジタル微分して2階微分値を得るものが知られている。
また、特表平1−501095号では、センサ信号を積分しこの積分値とセンサ信号とを比較してガス検知を行うものが開示されている。
【0004】
【発明が解決しようとする課題】
しかしながら、特定ガスの濃度変化によりセンサ抵抗値などの電気的特性が変化するガスセンサ素子を用いるガス検出装置では、ガスセンサ素子の電気的特性(センサ抵抗値)が特定ガスの濃度変化だけでなく、温度や湿度、風速などの環境の影響によっても変動する性質を有する。そのため、上記微分を用いるガス検出装置においては、出力信号の相対変化を検出しているわけであるが、この出力信号が特定ガスの濃度変化だけでなく、温度や湿度、風速など他の環境によっても大きく変動するため、出力信号の相対変化だけからでは、特定ガスの濃度によるものであるか、湿度変化などの外乱による変動によるものであるのかを明確に分けることができない。このため、上記のようにガスセンサ素子の出力信号の微分値や2階微分値を用いると、ガス濃度が変動した時点(例えば、ガス濃度が急に高くなった時点)を捉えることはできるが、どの程度のガス濃度変化が見られたか、あるいはその後のガス濃度の変化状況やガス濃度が低下した時点を知ることは難しい。
一方、センサ信号の積分値とセンサ信号とを比較してガス検知を行うガス検出装置においては、特定ガスの濃度変化に対して積分値の変化が遅れるため、特定ガスの濃度が一旦低下し始めると、センサ出力値よりも積分値の方が大きくなることがある。このため、特定ガスの濃度がその後再び上昇した場合にも、特定ガスの濃度(従ってセンサ出力値)が上昇しはじめているにも拘わらず、積分値がセンサ出力値より大きいため、特定ガスの濃度上昇を検知できず、検知タイミングが遅れるなど、適切に特定ガスの濃度変化を検出できないことがあった。
【0005】
また、特定ガスの濃度の上昇及び低下を検知するにあたり、温度や湿度などの環境の影響を軽減させつつ濃度の上昇期をできるだけ早く、つまり濃度上昇の初期段階を捉えて濃度が高くなった旨の信号を発生させたいという希望がある。一方、濃度の下降時期には、濃度が十分下がってから濃度が低くなった旨の信号を発生させたいという希望がある。しかし、微分や積分などを用いる上記従来技術などのように、同じ算出手法で算出した値(微分値など)を用いて、濃度上昇と濃度低下のいずれをも判断しているものでは、上昇の初期段階と濃度の下降時期の両方を適切に捉えて各信号を発生させることは困難である。
【0006】
本発明は、かかる問題点に鑑みてなされたものであって、特定ガス濃度の上昇及び低下の時期を適切に捉えて各信号を発生させることができ、温度、湿度、風速などの環境の影響を軽減して、特定ガスの濃度の変化を検出することができるガス検出装置、及びこれを用いた車両用オートベンチレーションシステムを提供することを目的とする。
【0007】
【課題を解決するための手段、作用及び効果】
その解決手段は、特定ガスの濃度に応じて電気的特性が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子を用いてセンサ出力値を取得する取得手段と、上記センサ出力値を用いて算出された第1判断対象値が、第1しきい値に対し第1大小関係を満たしているか否かを判断する第1判断手段と、上記センサ出力値を用いて、上記第1判断対象値を算出する算出手法とは異なる算出手法で算出された第2判断対象値が、第2しきい値に対し第2大小関係を満たしているか否かを判断する第2判断手段と、濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記濃度低信号を発生している期間において、上記第1判断手段で上記第1大小関係が満たされたときに、上記濃度低信号に代えて上記濃度高信号を発生し、上記濃度高信号を発生している期間において、上記第2判断手段で上記第2大小関係が満たされたときに、上記濃度高信号に代えて上記濃度低信号を発生する 濃度信号発生手段と、を備えるガス検出装置である。
【0008】
本発明のガス検出装置によれば、特定ガスの濃度が低い期間(濃度低信号の発生期間)には、センサ出力値を用いて算出された第1判断対象値が第1しきい値に対し第1大小関係を満たすと、濃度低信号に代えて濃度高信号を発生する。一方、濃度が高い期間(濃度高信号の発生期間)には、センサ出力値を用いて第1判断対象値とは異なる算出手法で算出された第2判断対象値が第2しきい値に対して第2大小関係を満たすと、濃度高信号に代えて濃度低信号を発生する。
しかも、濃度低信号の発生期間において第1判断対象値を算出する算出手段と、濃度高信号の発生期間において第2判断対象値を算出する算出手法とを異ならせている。
つまり、特定ガスの濃度が低い場合と高い場合で、異なる算出手段によって算出した第1判断対象値及び第2判断対象値を用いて、第1大小関係あるいは第2大小関係を判断をするので、それぞれの濃度低信号あるいは濃度高信号を発生している期間に応じて適切な条件で、ガスの濃度変化を判断することができる。
【0009】
このようにすれば、人間の嗅覚などの感性に適合するようにするなど、濃度の上昇時期に及び下降時期の検知にそれぞれ適した条件を設定することができる。例えば、濃度の上昇時期には、温度や湿度などの環境の影響を軽減させつつできるだけ早い時期に濃度高信号を発生させる一方、濃度の下降時期には、濃度が十分下がったタイミングで濃度低信号を発生させるように設定することができる。従って、車両用オートベンチレーションシステムなどにおいて、適切な制御、例えば外気における特定ガスの濃度上昇の初期に内気循環に切り替え、濃度が十分下がった時点で外気循環に切り替えることができるようになる。
【0010】
なお、第1判断対象値及び第2判断対象値は、いずれも、ある算出手法によりセンサ出力値を用いて算出された値である。この第1判断対象値及び第2判断対象値としては、例えば、微分値、2階微分値などが挙げられる。あるいは、センサ出力値と積分値との差分値や、センサ出力値S(n)とB(n)=B(n−1)+k{S(n)−B(n−1)}の式で求めたベース値B(n)との差分値、あるいは、センサ出力値S(n)と移動平均値Md(n)との差分値などの差分値が挙げられる。さらに、センサ出力値と所定パターンで時間とともに上昇(または低下)する値との差分値、例えば、センサ出力値と所定の傾きで時間と共に直線的に上昇(または低下)する値との差分値、センサ出力値と時間と共に階段状に上昇(または低下)する値との差分値などの値が挙げられる。
【0011】
ガスセンサ素子において変化する電気的特性としては、抵抗値、起電力、電流、キャパシタンス、インダクタンスなどが挙げられる。
また、センサ出力値の取得手段としては、ガスセンサ素子の電気的特性の変化やアナログ処理あるいはデジタル処理などの処理形式に応じて、適宜センサ出力値を取得できるように構成されていればよい。例えば、デジタル処理を行う場合には、A/D変換処理などを含む。
さらに、例えば濃度高信号として3つの濃度レベルに対応する信号を含むなど、濃度低信号あるいは濃度高信号には、それぞれ複数レベルの信号が対応する場合も含まれる。
さらに、算出手法が異なる場合としては、例えば、一方が微分値を求める算出手法であり、他方が移動平均値を求める算出手法であるなど、全く異なる算出手法である場合がある。そのほか、一方が30ヶの移動平均値を求める算出手法であり、他方が50ヶの移動平均を求める算出手法である場合も挙げられる。さらに、同様な算出式を用いるが、算出式中に設定される所定の係数の値を異ならせるようにして、センサ出力値に基づいて算出される算出値に重み付けをもたせる場合も挙げられる。
【0012】
上記ガス検出装置であって、前記濃度高信号は、前記特定ガスの複数の濃度レベルにそれぞれ対応した複数の濃度レベル信号を含み、前記第2判断対象値と、上記複数の濃度レベル同士間のレベル間境界に対して1対1に対応する複数のレベル間しきい値とが、それぞれ所定の大小関係を満たすか否かを判断する第3判断手段を備え、前記濃度信号発生手段は、前記濃度低信号を発生している期間において、前記第1判断手段で前記第1大小関係が満たされたときに、前記濃度低信号に代えて上記濃度高信号うちいずれかの濃度レベルに対応する濃度レベル信号を発生し、上記濃度高信号に属するいずれかの上記濃度レベル信号を発生している期間において、上記第2判断対象値が、現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値に対し、上記所定の大小関係を満たすときに、上記現在の濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、上記第2判断対象値が、現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値に対し、上記所定の大小関係を満たさないときに、上記現在の濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生し、前記第2判断手段で前記第2大小関係が満たされたときに、上記濃度高信号に代えて上記濃度低信号を発生するガス検出装置とするのが好ましい。
【0013】
このように濃度高信号が複数の濃度レベル信号を含むことにより、濃度高信号発生中においても、特定ガスの濃度に応じて濃度レベル信号を切り替えることができる。このため、濃度高信号の発生中においても、特定ガスの濃度が比較的低いとか、比較的高いとかの濃度の程度を知ることができる。また、車両用オートベンチレーションシステムにおいて、フラップを全閉と全開のいずれかにするだけでなく、半開など適宜の開度に設定するなど、より細かな制御をすることができる。
【0014】
さらに、上記ガス検出装置であって、前記センサ出力値と、このセンサ出力値を用いて算出され、このセンサ出力値が変化したときに、このセンサ出力値よりも緩慢に追従変化する第2計算値と、の差分である第2差分値を算出する第2算出手段を備え、前記第2判断手段は、前記第2判断対象値である上記第2差分値が、前記第2しきい値に対し、前記第2大小関係を満たすか否かの判断を行うガス検出装置とすると良い。
【0015】
このガス検出装置では、第2計算値がセンサ出力値よりも緩慢に変化する。例えば、取得手段の特性の関係から、特定ガス濃度の上昇に伴ってセンサ出力値が増大した場合に、第2計算値はセンサ出力値よりも緩慢に追従変化する。
ガスセンサ素子の電気的特性は、特定ガスの濃度変化だけでなく、温度や湿度などの環境や風速などによっても影響され、特定ガスの濃度は一定の場合でも、センサ出力値が徐々に変化する、つまりドリフトすることがある。
まず、特定ガス濃度の上昇によってセンサ出力値が増加する特性を有する取得手段を用いた場合を仮定する。ここで、特定ガスの濃度が上昇して、その後に濃度が低下するまでの期間中に、センサ出力値が大きくなる方向にドリフトが生じると、特定ガスの濃度が上昇前と同レベルにまで低下した場合でも、ドリフトによりセンサ出力値は、上昇前の値よりも大きな値までしか低下しない。
【0016】
この場合に、もし第2計算値が変化せずに一定値のままであったとすると、センサ出力値と第2計算値との差である第2差分値も、上昇前の値よりも大きな値までしか低下しない。従って、実際には特定ガスの濃度が十分低下しているのに、第2差分値が大きいため特定ガスの濃度が高いと誤判定されて、ガス濃度の低下が判別できない不具合が生じる危険性がある。すると、車両用オートベンチレーションシステムや空気清浄機の制御システムに本発明のガス検出装置を用いた場合には、長時間にわたってフラップが閉じたままとなったりファンが高回転となったりして、適切な制御ができにくくなる。
一方、第2計算値として、変化はするがセンサ出力値に追従するのではなくこれに関係なく、所定のパターンで上昇する値、例えば、一定の傾きで時間と共に直線的に上昇する値や、時間と共に階段状に上昇する値を用いた場合には、上記のような不具合を生じない。しかし、長いトンネルに入った場合のように、長時間にわたって特定ガスの濃度が高い場合や、センサ出力値がさほど大きな値にならなかった場合には、特定ガスの濃度が高い状態であるにも拘わらず、センサ出力値と第2計算値との差分である第2差分値が第2しきい値よりも小さくなって、濃度低信号を発生することがある。
【0017】
これに対し、本発明によれば、上記仮定の場合でも、第2計算値がセンサ出力値に緩慢ではあるが追従して変化するので、たとえセンサ出力値が大きくなる方向にドリフトが生じても、時間の経過とともに第2差分値が徐々に小さくなる。このため、特定ガスの濃度が低下した場合には、第2差分値が第2しきい値より小さくなって、必ず濃度低信号を発生することができる。しかも、第2計算値がセンサ出力値に緩慢ではあるが追従するから、第2計算値を所定パターンで上昇させる上述の場合と異なり、第2計算値はセンサ出力値に応じた値となるので、特定ガスの濃度が高い状態で、濃度低信号を発生することが防止される。
従って、車両用オートベンチレーションシステムや空気清浄機の制御システムにおいて、ある程度の時間が経過したときにフラップを開けたりファンを低回転とするなど、適切な制御を行わせることができる。
一方、取得手段の特性の関係から、上記仮定とは逆に、特定ガス濃度の上昇によってセンサ出力値が低下する場合には、上記と逆にすれば同様に特定ガス濃度の低下を検知することができる。
【0018】
従って、取得手段の特性や第2計算値の性質に応じて、第2差分値と第2しきい値との大小関係を適切に設定すれば、第2判断手段でこの大小関係を満たすか否かを判断することによって、特定ガス濃度の低下を適切に検知できる。従って、濃度信号発生手段により、濃度高信号に代えて濃度低信号を発生することができる。このようにして、特定ガス濃度の高低に応じた濃度信号を出力することができる。
【0019】
さらに、上記ガス検出装置であって、前記センサ出力値と、このセンサ出力値を用いて算出され、このセンサ出力値が変化したときに、前記第2計算値よりも敏感に追従変化する第1計算値との差分である第1差分値を算出する第1算出手段を備え、前記第1判断手段は、前記第1判断対象値である上記第1差分値が、前記第1しきい値に対して前記第1大小関係を満たすか否かの判断を行うガス検出装置とすると良い。
【0020】
このガス検出装置では、仮に算出したとした場合の第2計算値よりも敏感に追従変化する第1計算値を用いる。
前記したように第2計算値及び第2差分値によって特定ガスの濃度低下を検知するが、本発明ではさらに第1差分値を第1しきい値と比較して、特定ガスの濃度上昇を検出する。
上述したように、濃度低信号の発生期間中において、特定ガスの濃度が上昇してセンサ出力値が変化した場合、第2計算値を用いた場合に比較して比較的敏感に第1計算値が追従変化する。つまり、第1計算値は第2計算値よりも比較的迅速にセンサ出力値に対して追従する。
ここで、特定ガスの濃度が低い状態において、ノイズの混入によりセンサ出力値が若干程度変動した場合には、第1計算値も迅速に追従変化するので、第1差分値はあまり大きな値にならない。このため、ノイズによる誤検知が防止できる。また、温度や湿度などの影響によって緩やかにセンサ出力値が変動(ドリフト)した場合にも、第1計算値も追従して変化するため、このドリフトの影響を抑制し、ドリフトの影響によるガスの濃度変化の誤検知を防止することができる。しかし、特定ガスの濃度が上昇してセンサ出力値が速く大きく変化すると、第1計算値が十分追従できないために第1差分値が大きくなるから、この第1差分値が第1しきい値と所定の大小関係を満たし、濃度高信号を発生する。かくして、ドリフトの影響を抑制しつつ、特定ガス濃度上昇の比較的早い時期にガス濃度の上昇を検知して、濃度高信号を発生することができる。
【0021】
なお、第1計算値としては、センサ出力値を変化させたときに、第2計算値よりも敏感に変化する第1計算値であれば良い。例えば、第2算出手法よりも積分定数の小さくして算出した積分値や、第2算出手法で用いた係数k2よりも大きい係数k1(k1>k2)を用いてB(n)=B(n−1)+k1{S(n)−B(n−1)}の式で算出したベース値B(n)、あるいは、第2算出手法で求めたm2個移動平均値のサンプル数m2よりも小さいサンプル数m1(m1<m2)により算出したm1個移動平均値Mdなどが挙げられる。
【0022】
さらに他の解決手段は、特定ガスの濃度に応じて電気的特性が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子を用いてセンサ出力値を取得する取得手段と、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段と、上記センサ出力値を用いて算出された第1判断対象値が、第1しきい値に対し第1大小関係を満たしているか否かを判断する第1判断手段と、上記センサ出力値を用いて、上記第1判断対象値を算出する算出手法とは異なる算出手法で算出された第2判断対象値と、上記複数の濃度レベル同士間のレベル間境界に対して1対1に対応する複数のレベル間しきい値とが、それぞれ所定の大小関係を満たすか否かを判断する第2判断手段と、を備え、上記濃度レベル信号切替発生手段は、最も低位の濃度レベルに対応する濃度レベル信号を発生している期間において、上記第1判断手段で上記第1大小関係が満たされたときに、上記最も低位の濃度レベルに対応する濃度レベル信号に代えて、上記最も低位の濃度レベルより1つ高位の濃度レベルに対応する濃度レベル信号を発生し、最も低位の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生している期間において、上記第2判断対象値が、現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値に対し、上記所定の大小関係を満たすときに、上記現在の濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、上記第2判断対象値が、現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値に対し、上記所定の大小関係を満たさないときに、上記現在の濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置である。
【0023】
本発明のガス検出装置によれば、最低位の濃度レベル信号の発生期間、つまり最も低位の濃度レベルの期間には、センサ出力値を用いて算出された第1判断対象値が第1しきい値に対し第1大小関係を満たすと、最低位の濃度レベル信号に代えて1つ高位(つまり下から2番目)の濃度レベル信号を発生させる。
一方、最低位の濃度レベル信号より高位の濃度レベル信号の発生期間では、現在の濃度レベルとこれより1つ高位の濃度レベルとの間のレベル間境界に対応するレベル間しきい値に対し、第2判断対象値が所定の大小関係を満たすときには、現在よりも高位の濃度レベル信号を発生させる。例えば第2判断対象値がレベル間しきい値よりも大きいという関係を満たす場合に、より高位の濃度レベル信号を発生させる。
これとは逆に、現在の濃度レベルとこれより1つ低位の濃度レベルとの間のレベル間境界に対応するレベル間しきい値に対し、第2判断対象値が所定の大小関係を満たすときには、現在よりも低位の濃度レベル信号を発生させる。
【0024】
つまり、特定ガスの濃度が低い場合(最低位の濃度レベルの場合)と、これよりも濃度が高い場合(最低位より高位の濃度レベルの場合)とで、異なる算出手法によって算出した第1判断対象値及び第2判断対象値を用いて、第1大小関係あるいは所定の大小関係を判断をする。従って、濃度レベルが最低位の場合とそれよりも高位の場合とで、ガス濃度に応じた適切な条件で判断することができる。
しかも、ガス濃度が高い場合には、複数の濃度レベルを判定する。つまり全体として3種以上の濃度レベルに合わせた信号を発生することができる。このため、さらにそれぞれの濃度レベル信号に応じて適切な条件でフラップを開閉するなど、より適切な制御が可能となる。
【0025】
その解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(1)に従ってベース値を算出する第1ベース値算出手段と、
B(n)=B(n−1)+k1{S(n)−B(n−1)} …(1)
但し、S(n)はセンサ出力値、B(n)はベース値、k1は第1係数であり、0<k1<1、nは時系列の順序を示す整数、上記センサ出力値S(n)とベース値B(n)とから下記式(2)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(2)
但し、D(n)は差分値、濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記差分値が所定の濃度しきい値よりも大きいときに、上記濃度高信号を発生する濃度信号発生手段と、上記濃度高信号の発生期間中、上記式(1)に代えて、上記センサ出力値S(n)から下記式(3)に従ってベース値B(n)を算出する第2ベース値算出手段と、
B(n)=B(n−1)+k2{S(n)−B(n−1)} …(3)
但し、k2は第2係数であり、0≦k2<k1<1、を備えるガス検出装置である。
【0026】
まず、ベース値B(n)について説明する。センサ出力値S(n)の変動に対して、上記式(1)または(3)に従って算出されるベース値B(n)は、これに追従して変化する(但し係数k2≠0とき)。ここで、ベース値B(n)は係数k1,k2の値を変化させると、センサ出力値S(n)に対する追従の程度が変化する性質を有し、係数k1,k2が大きく(1に近く)なるとベース値B(n)がセンサ出力値S(n)に対して素早く追従する。逆に係数k1,k2が小さく(0に近く)なるとベース値B(n)の変化は緩慢になり、センサ出力値S(n)に対してゆっくりと追従する。係数k2=0の場合には、ベース値B(n)は一定になり、センサ出力値S(n)に追従しなくなる。従って、係数k2が低い場合、あるいはk2=0の場合には、ベース値B(n)は、過去のセンサ出力値S(n)やベース値B(n)の影響を大きく受けた値となる。
【0027】
本発明のガス検出装置は、センサ抵抗値変換回路及びA/D変換手段のほか、このような性質を有するベース値B(n)を算出する第1,第2ベース値算出手段を有し、2つの算出手段を途中で切り替えながらベース値を算出する。このうち、第1ベース値算出手段では比較的大きな第1係数k1(k1>k2)を用いるので、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。従って、第1ベース値算出手段でベース値を算出している間、つまり、特定ガスの濃度が低いままであるなど、センサ出力値に対する変化が少なく、濃度低信号を発生している場合には、差分値D(n)(=S(n)−B(n))はあまり大きな値にならない。また、温度変動などによって緩やかにセンサ出力値が変動した場合には、ベース値B(n)も追従して変化するため、温度変化などによるドリフトの影響も抑制することができる。しかし、特定ガスの濃度が上昇してセンサ出力値S(n)が、速く大きく変化(上昇)すると、ベース値B(n)が十分追従できないために差分値D(n)が大きくなる。この大きさが濃度しきい値を超えると濃度信号発生手段で濃度低信号に代えて濃度高信号を発生する。それと共に、ベース値B(n)の算出に第2ベース値算出手段を用いるようにする。
【0028】
一方、第2ベース値算出手段で用いる第2係数k2は、比較的小さい(0≦k2<k1)ので、ベース値B(n)の変化は緩慢になって、センサ出力値に対する追従は比較的ゆっくりになる。あるいはベース値B(n)が変化しなくなる(k2=0のとき)。比較的小さな第2係数k2を用いて算出したベース値は、上記したように、過去のセンサ出力値やベース値の影響を受けた値、具体的にはベース値B(n)の算出式を(1)式から(3)式に切り替えた時点の直前に(1)式で算出したベース値の影響を受けた値、従って、切替前のセンサ出力値やベース値の影響を受けた値になっている。典型的には、k2=0とした場合には、ベース値B(n)は切替直前のベース値を維持することから容易に理解できる。つまり、第2ベース値算出手段で算出したベース値B(n)は、センサ出力値S(n)に緩慢に追従しながらも、即ち徐々に近づきながらも、あるいは一定値を保って、特定ガスの濃度が上昇する直前の状態を反映あるいは維持することになる。
よって、現在のセンサ出力値S(n)と第2ベース値算出手段で算出したベース値B(n)との差である差分値D(n)が表す値は、現在、つまり特定ガスの濃度が上昇した後の状態と、過去、つまり濃度が上昇する前の状態とを比較した値となる。
このため、特定ガスの濃度が再び低下してセンサ出力値S(n)が低下したときには、このベース値B(n)との差分値D(n)によって、特定ガスの濃度が低下したことが容易に判定できる。具体的には、濃度信号発生手段で濃度高信号に代えて濃度低信号を発生する。しかも、係数k2によってベース値B(n)の追従の緩急を調整することができるので、適切な濃度低下の時期を捉えることができる。
【0029】
さらに、濃度高信号に代えて濃度低信号を発生させるのと同期して、ベース値B(n)を第2ベース値算出手段に代えて、第1係数k1を用いる第1ベース値算出手段で算出する。これにより、ベース値B(n)は再びセンサ出力値S(n)に比較的早く追従するようになる。従って、その後に再び特定ガスの濃度が上昇しても、迅速にまた確実に濃度の上昇を検出することができる。
このように本発明のガス検出装置によれば、ベース値B(n)を算出するに当たって、異なる2つの係数k1,k2を用い、式(1)と式(3)の互いに異なる算出手法を用いている。このため、係数k1,k2をそれぞれ調整することにより、濃度の上昇時期に及び下降時期それぞれに適した条件を設定することができる。
なお、第1係数k1及び第2係数k2は、A/D変換手段におけるサンプリング周期や、センサ出力値S(n)の変動域などをも考慮して適宜選択すればよい。
【0030】
さらに、上記ガス検出装置であって、前記所定の濃度しきい値に代えて、濃度高しきい値と、上記濃度高しきい値よりも小さな濃度低しきい値と、を有し、前記濃度信号発生手段は、前記濃度低信号の発生期間中に前記差分値が上記濃度高しきい値よりも大きくなると、上記濃度低信号に代えて上記濃度高信号を発生し、上記濃度高信号発生期間中に前記差分値が上記濃度低しきい値よりも小さくなると、上記濃度高信号に代えて濃度低信号を発生するガス検出装置とすると良い。
【0031】
本発明のガス検出装置では、濃度高しきい値と濃度低しきい値の2つのしきい値を有しており、濃度低信号に代えて濃度高信号を発生するに際しては濃度高しきい値によって判断し、また、濃度高信号に代えて濃度低信号を発生するに際しては、濃度高しきい値よりも小さい濃度低しきい値によって判断する。このため、差分値D(n)がこれらのしきい値に近い値となったときに、わずかな差分値の変動によって濃度高信号と濃度低信号とが頻繁に入れ替わるチャタリングが防止される。
【0032】
他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(1)に従ってベース値を算出する第1ベース値算出手段と、
B(n)=B(n−1)+k1{S(n)−B(n−1)} …(1)
但し、S(n)はセンサ出力値、B(n)はベース値、k1は第1係数であり、0<k1<1、nは時系列の順序を示す整数、上記センサ出力値とベース値とから下記式(2)に従って差分値を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(2)
但し、D(n)は差分値、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベル間しきい値であって、高位の上記濃度レベル間境界に対応する上記レベル間しきい値ほど大きな値であるレベル間しきい値を有し、現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が大きいときに、上記現在の濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が小さいときに、上記現在の濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する濃度レベル信号切替発生手段と、上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(1)に代えて、上記センサ出力値から下記式(3)に従ってベース値を算出する第2ベース値算出手段と、
B(n)=B(n−1)+k2{S(n)−B(n−1)} …(3)
但し、k2は第2係数であり、0≦k2<k1<1、を備えるガス検出装置である。
【0033】
本発明のガス検出装置でも センサ抵抗値変換回路及びA/D変換手段のほか、ベース値B(n)を算出する第1,第2ベース値算出手段を有し、2つの算出手段を途中で切り替えながらベース値を算出する。第1ベース値算出手段では第1係数k1を用いるので、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。まず、第1ベース値算出手段でベース値を算出している間、つまり、特定ガスの濃度が低いままであるなど、変化が少ない場合には、差分値D(n)(=S(n)−B(n))はあまり大きな値にならない。また、温度変動などによって緩やかにセンサ出力値が変動した場合には、ベース値B(n)も追従して変化するため、温度変化などによるドリフトの影響も抑制することができる。しかし、特定ガスの濃度が上昇してセンサ出力値S(n)が大きく変化(上昇)すると、ベース値B(n)が十分追従できないために差分値D(n)が大きくなり、この差分値D(n)が複数あるレベル間しきい値のいくつかを超えると、現在の濃度レベル、即ち、現在発生している濃度レベル信号に対応する濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生する。つまり濃度レベル信号のランクを上げる。また、所定の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中には、ベース値B(n)の算出に第2ベース値算出手段を用いるようにする。
【0034】
一方、第2ベース値算出手段で使用する第2係数k2は比較的小さい(0≦k2<k1)ので、ベース値B(n)の変化は緩慢になって、センサ出力値に対する追従は比較的ゆっくりになる。あるいはベース値B(n)が変化しなくなる(k2=0のとき)。比較的小さな第2係数k2を用いて算出したベース値B(n)は、上記したように、過去のセンサ出力値やベース値の影響を受けた値、具体的にはベース値B(n)の算出式を(1)式から(3)式に切り替えた時点の直前に(1)式で算出したベース値の影響を受けた値、従って、切り替え前のセンサ出力値やベース値の影響を受けた値になっている。つまり、第2ベース値算出手段で算出したベース値B(n)は、センサ出力値S(n)に緩慢に追従しながらも即ち徐々に近づきながらも、あるいは一定値を保って、特定ガスの濃度が上昇する直前の状態を反映あるいは維持することになる。
従って、この第2ベース値算出手段で算出したベース値B(n)と現在のセンサ出力値S(n)との差である差分値D(n)を用いれば、現在の特定ガスの濃度のレベルを、過去、具体的にはベース値B(n)の算出式を(1)式から(3)式に切り替えた時点の濃度を基準として判定することができる。
【0035】
そこで、差分値D(n)の変動により、現在発生している濃度レベル信号に対応する濃度レベルとは異なる濃度レベルに判定された場合には、濃度レベル信号を切り替える。つまり、特定ガスの濃度が低下あるいは上昇してセンサ出力値S(n)が低下あるいは上昇したときにも、この差分値D(n)によって特定ガスの濃度が低下あるいは上昇したことが容易に判定できる。しかも、係数k1,k2によってベース値B(n)の追従の緩急を調整することができるので、適切な濃度上昇あるいは低下の時期を捉えることができる。
例えば、特定ガスの濃度が低下して差分値D(n)が低位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを下げる。逆に特定ガスの濃度が上昇して差分値D(n)が高位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを上げる。
なお、濃度レベル信号のランクの上下は、第2ベース値算出手段でベース値B(n)を算出している場合にも行われる。
【0036】
さらに、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中に、差分値D(n)が、所定の濃度レベル以下の濃度レベルに対応する値となった場合には、ベース値B(n)を第2ベース値算出手段に代えて、再び第1ベース値算出手段で算出する。これにより、ベース値B(n)は再びセンサ出力値S(n)に比較的早く追従するようになる。従って、その後に再び特定ガスの濃度が上昇しても、迅速にまた確実に濃度の上昇を検出することができる。
なお、第1係数k1及び第2係数k2は、A/D変換手段におけるサンプリング周期や、センサ出力値S(n)の変動域などによって適宜選択すればよい。
【0037】
このように本発明のガス検出装置では、ベース値B(n)を算出するに当たって、異なる2つの係数k1,k2を用い、式(1)と式(3)の互いに異なる算出手法を用いている。このため、係数k1,k2をそれぞれ調整することにより、濃度の上昇時期に及び下降時期にそれぞれ適した条件を設定することができる。
本発明のガス検出装置では、濃度レベル信号切替発生手段で、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生するので、特定ガスの濃度の高低だけでなく、より細かな濃度レベルに対応した濃度レベル信号を発生することができる。このため、このガス検出装置を用いたオートベンチレーションシステムにおけるフラップ制御や、空気清浄機の制御システムにおけるファン制御など、各種の制御システムにおいて、特定ガスの濃度レベルに応じたより細かな制御を行わせることができる。
【0038】
さらに、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0039】
本発明のガス検出装置では、差分値が大きくなって現在よりも濃度レベルを上げるときに、発生する濃度レベル信号として1つ高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク上げる。また、差分値が小さくなって現在よりも濃度レベルを下げるときに、発生する濃度レベル信号として1つ低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク下げる。
このように濃度レベル信号を1つずつ高位あるいは低位に変化させすることで、出力される濃度レベル信号の急変を避けることができる。
【0040】
あるいは、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記差分値が超えた上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記差分値が下回った上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0041】
本発明のガス検出装置では、差分値が大きくなって現在よりも濃度レベルを上げるときに、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。また、差分値が小さくなって現在よりも濃度レベルを下げるときにも、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。
このように濃度レベル信号を得られた差分値D(n)に対応したものに変化させすることで、常に、差分値D(n)、従って、特定ガスの濃度に応じた濃度レベル信号を出力することができる。
【0042】
さらに他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(1)に従ってベース値を算出する第1ベース値算出手段と、
B(n)=B(n−1)+k1{S(n)−B(n−1)} …(1)
但し、S(n)はセンサ出力値、B(n)はベース値、k1は第1係数であり、0<k1<1、nは時系列の順序を示す整数、上記センサ出力値とベース値とから下記式(2)に従って差分値を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(2)
但し、D(n)は差分値、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベルアップしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルアップしきい値ほど大きな値であるレベルアップしきい値と、上記複数の濃度レベル間境界と1対1に対応する複数のレベルダウンしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルダウンしきい値ほど大きな値であり、同位の上記濃度レベル間境界に対応する上記レベルアップしきい値よりも小さな値であるレベルダウンしきい値と、を有し、現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベルアップしきい値よりも、上記差分値が大きいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベルダウンしきい値よりも、上記差分値が小さいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する濃度レベル信号切替発生手段と、上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(1)に代えて、上記センサ出力値から下記式(3)に従ってベース値を算出する第2ベース値算出手段と、
B(n)=B(n−1)+k2{S(n)−B(n−1)} …(3)
但し、k2は第2係数であり、0≦k2<k1<1、を備えるガス検出装置である。
【0043】
本発明のガス検出装置でも センサ抵抗値変換回路及びA/D変換手段のほか、ベース値B(n)を算出する第1,第2ベース値算出手段を有し、2つの算出手段を途中で切り替えながらベース値を算出する。第1ベース値算出手段では第1係数k1を用いるので、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。まず、第1ベース値算出手段でベース値を算出している間、つまり、特定ガスの濃度が低いままであるなど、センサ出力値に対する変化が少ない場合には、差分値D(n)はあまり大きな値にならない。しかし、特定ガスの濃度が上昇してセンサ出力値S(n)が大きく変化(上昇)すると、ベース値B(n)が十分追従できないために差分値D(n)が大きくなり、この差分値D(n)が複数あるレベルアップしきい値のいくつかを超えると濃度レベル信号切替発生手段でそれに対応する濃度レベル信号を発生する。また、所定の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中には、ベース値B(n)の算出に第2ベース値算出手段を用いるようにする。
【0044】
第2ベース値算出手段で使用する第2係数k2は比較的小さい(0≦k2<k1)ので、ベース値B(n)の変化は緩慢になって、センサ出力値に対する追従は比較的ゆっくりになる。あるいはベース値B(n)が変化しなくなる(k2=0のとき)。比較的小さな第2係数k2を用いて算出したベース値B(n)は、上記したように、過去のセンサ出力値やベース値の影響を受けた値、具体的にはベース値B(n)の算出式を(1)式から(3)式に切り替えた時点の直前に(1)式で算出したベース値の影響を受けた値、従って、切替前のセンサ出力値やベース値の影響を受けた値になっている。つまり、第2ベース値算出手段で算出したベース値B(n)は、センサ出力値S(n)に緩慢に追従しながらも即ち徐々に近づきながらも、あるいは一定値を保って、特定ガスの濃度が上昇する直前の状態を反映あるいは維持することになる。
従って、この第2ベース値算出手段で算出したベース値B(n)と現在のセンサ出力値S(n)との差である差分値D(n)を用いれば、現在の特定ガスの濃度のレベルを、過去、具体的にはベース値B(n)の算出式を(1)式から(3)式に切り替えた時点の濃度を基準として判定することができる。
【0045】
そこで、差分値D(n)の変動により、現在発生している濃度レベル信号に対応する濃度レベルとは異なる濃度レベルに判定された場合には、濃度レベル信号を切り替える。つまり、特定ガスの濃度が低下あるいは上昇してセンサ出力値S(n)が低下あるいは上昇したときにも、この差分値D(n)によって特定ガスの濃度が低下あるいは上昇したことが容易に判定できる。
例えば、特定ガスの濃度が低下して差分値D(n)が低位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを下げる。逆に特定ガスの濃度が上昇して差分値D(n)が高位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを上げる。
なお、濃度レベル信号のランクの上下は、第2ベース値算出手段でベース値B(n)を算出している場合にも行われる。
【0046】
さらに、所定の濃度レベル以下の濃度レベルとなった場合には、ベース値B(n)を第2ベース値算出手段に代えて、再び第1ベース値算出手段で算出する。これにより、ベース値B(n)は再びセンサ出力値S(n)に比較的早く追従するようになる。従って、その後に再び特定ガスの濃度が上昇しても、迅速にまた確実に濃度の上昇を検出することができる。
なお、第1係数k1及び第2係数k2は、A/D変換手段におけるサンプリング周期や、センサ出力値S(n)の変動域などによって適宜選択すればよい。
【0047】
このように、本発明のガス検出装置では、濃度レベル信号切替発生手段で、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生するので、特定ガスの濃度の高低だけでなく、より細かな濃度レベルに対応した濃度レベル信号を発生することができる。このため、このガス検出装置を用いたオートベンチレーションシステムにおけるフラップ制御や、空気清浄機の制御システムにおけるファン制御など、各種の制御システムにおいて、特定ガスの濃度レベルに応じたより細かな制御を行わせることができる。
このように本発明のガス検出装置では、ベース値B(n)を算出するに当たって、異なる2つの係数k1,k2を用い、式(1)と式(3)の互いに異なる算出手法を用いている。このため、係数k1,k2をそれぞれ調整することにより、濃度の上昇時期に及び下降時期にそれぞれ適した条件を設定することができる。
また、濃度レベル信号発生に際しては、濃度レベル間境界に対応するレベルアップしきい値と、同位の上記濃度レベル間境界に対応する上記レベルアップしきい値よりも小さな値のレベルダウンしきい値とを用いて濃度レベルを判断しているので、差分値D(n)がしきい値に近い値となったときに、濃度レベル信号が頻繁に変わるチャタリングが防止される。
【0048】
さらに、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0049】
本発明のガス検出装置では、差分値が大きくなって現在よりも濃度レベルを上げるときに、発生する濃度レベル信号として1つ高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク上げる。また、差分値が小さくなって現在よりも濃度レベルを下げるときに、発生する濃度レベル信号として1つ低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク下げる。
このように濃度レベル信号を1つずつ高位あるいは低位に変化させることで、出力される濃度レベル信号の急変を避けることができる。
【0050】
あるいは、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、前記濃度レベル信号として、上記差分値が超えた上記レベルアップしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、前記濃度レベル信号として、上記差分値が下回った上記レベルダウンしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0051】
本発明のガス検出装置では、差分値が大きくなって現在よりも濃度レベルを上げるときに、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。また、差分値が小さくなって現在よりも濃度レベルを下げるときにも、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。
このように濃度レベル信号を得られた差分値D(n)に対応したものに変化させることで、常に、差分値D(n)、従って、特定ガスの濃度に応じた濃度レベル信号を出力することができる。
【0052】
さらに、上記いずれかに記載のガス検出装置であって、前記第2ベース値算出手段における前記所定の濃度レベルは、前記濃度レベル信号切替発生手段が有する前記複数の濃度レベルのうち、最も低位の濃度レベルであるガス検出装置とすると良い。
【0053】
ベース値B(n)を算出するにあたって、本発明のように第2ベース値算出手段を使用するのを最も低位の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中とすると、特定ガスの濃度が最も低い濃度レベルから、それより1つ上の濃度レベルに上がる時点での濃度を基準として、以降のベース値B(n)が算出される。このため、最も低位の濃度レベルを基準として用いることができるから、特定ガスの濃度の高低をより正確に比較することができるようになる。
【0054】
さらに、上記いずれかに記載のガス検出装置であって、前記第2係数k2は、k2>0であるガス検出装置とすると良い。
【0055】
本発明のガス検出装置では、第2係数k2が0より大きい(k2>0)。このため、特定ガスの濃度高信号の発生期間中に第2ベース値算出手段で算出されるベース値B(n)は、一定ではなく、緩慢ではあるがセンサ出力値S(n)に追従して変化する。
ガスセンサ素子は、前記したように、特定ガスの濃度変化だけでなく、温度や湿度などの環境や風速などによっても影響され、特定ガスの濃度は一定の場合でも、センサ出力値S(n)が徐々に変化することがある。もし、特定ガスの濃度が上昇して、その後に濃度が低下するまでの期間、具体的には、ベース値B(n)の算出を第1ベース値算出手段から第2ベース値算出手段に変更している期間中に、センサ出力値S(n)が大きくなる方向にドリフトが生じると、特定ガスの濃度が上昇前と同レベルにまで低下した場合でも、ドリフトによりセンサ出力値S(n)は、上昇前の値よりも大きな値までしか低下しない。ここで、第2係数k2=0とした場合には、式(3)によればベース値B(n)は変化しない(B(n)=B(n−1))ので、差分値D(n)も上昇前の値よりも大きな値までしか低下しない。従って、実際には特定ガスの濃度が十分低下しているのに、差分値D(n)が大きいため特定ガスの濃度が高いと誤判定されて、ガス濃度の低下が判別できない不具合が生じる危険性がある。このため、車両用オートベンチレーションシステムや空気清浄機の制御システムに本発明のガス検出装置を用いた場合には、長時間にわたってフラップが閉じたままとなったりファンが高回転となったりして、適切な制御ができにくくなる。
【0056】
これに対し、本発明では、k2>0としているので、緩慢ではあるがベース値B(n)がセンサ出力値S(n)に追従するから、たとえセンサ出力値S(n)にドリフトを生じた後に、特定ガスの濃度が低下した場合にも、時間の経過とともに差分値D(n)が徐々に小さくなる。従って、ある程度の時間が経過すると、必ず濃度低信号を発生し、あるいは濃度レベルを低位の濃度レベルにまで引き下げ、これに対応する濃度レベル信号を発生することができる。
従って、車両用オートベンチレーションシステムや空気清浄機の制御システムにおいて、ある程度の時間が経過したときにフラップを開けたりファンを低回転とするなど、適切な制御を行わせることができる。
また、ある程度の時間が経過すると、必ず第2ベース値算出手段に代えて第1ベース値算出手段を用いてベース値B(n)を算出することができるようになるので、再びセンサ出力値S(n)に比較的早く追従するベース値B(n)を算出して、特定ガスの濃度上昇に対してこれを検出できるようになる。
【0057】
さらに他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(4)に従ってベース値を算出する第3ベース値算出手段と、
B(n)=B(n−1)+k3{S(n)−B(n−1)} …(4)
但し、S(n)はセンサ出力値、B(n)はベース値、k3は第3係数であり、0<k3<1、nは時系列の順序を示す整数、上記センサ出力値S(n)とベース値B(n)とから下記式(5)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(5)
但し、D(n)は差分値、濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記差分値が所定の濃度しきい値よりも大きいときに、上記濃度高信号を発生する濃度信号発生手段と、上記濃度高信号の発生期間中、上記式(4)に代えて、上記センサ出力値S(n)から下記式(6)に従ってベース値B(n)を算出する第4ベース値算出手段と、
B(n)=B(n−1)+k4{S(n)−B(n−1)} …(6)
但し、k4は第4係数であり、0≦k4<k3<1、を備えるガス検出装置である。
【0058】
本発明のガス検出装置は、センサ抵抗値変換回路及びA/D変換手段のほか、このような性質を有するベース値B(n)を算出する第3,第4ベース値算出手段を有し、2つの算出手段を途中で切り替えながらベース値を算出する。このうち、第3ベース値算出手段では比較的大きな第3係数k3(k3>k4)を用いるので、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。従って、第3ベース値算出手段でベース値を算出している間、つまり、特定ガスの濃度が低いままであるなど、センサ出力値に対する変化が少なく、濃度低信号を発生している場合には、差分値D(n)(=B(n)−S(n))はあまり大きな値にならない。しかし、特定ガスの濃度が上昇してセンサ出力値S(n)が大きく変化(低下)すると、ベース値B(n)が十分追従できないために差分値D(n)が大きくなる。この大きさが濃度しきい値を超えると濃度信号発生手段で濃度低信号に代えて濃度高信号を発生する。それと共に、ベース値B(n)の算出に第4ベース値算出手段を用いるようにする。
【0059】
第4ベース値算出手段で用いる第4係数k4は、比較的小さい(0≦k4<k3)ので、ベース値B(n)の変化は緩慢になって、センサ出力値に対する追従は比較的ゆっくりになる。あるいはベース値B(n)が変化しなくなる(k4=0のとき)。比較的小さな第4係数k4を用いて算出したベース値は、上記したように、過去のセンサ出力値やベース値の影響を受けた値、具体的にはベース値B(n)の算出式を(4)式から(6)式に切り替えた時点の直前に(4)式で算出したベース値の影響を受けた値、従って、切替前のセンサ出力値やベース値の影響を受けた値になっている。典型的には、k4=0とした場合には、ベース値B(n)は切替直前のベース値を維持することから容易に理解できる。つまり、第4ベース値算出手段で算出したベース値B(n)は、センサ出力値S(n)に緩慢に追従しながらも即ち徐々に近づきながらも、あるいは一定値を保って、特定ガスの濃度が上昇する直前の状態を反映あるいは維持することになる。
よって、現在のセンサ出力値S(n)と第4ベース値算出手段で算出したベース値B(n)との差である差分値D(n)が表す値は、現在、つまり特定ガスの濃度が上昇した後の状態と、過去、つまり濃度が上昇する前の状態とを比較した値となる。
このため、特定ガスの濃度が再び低下してセンサ出力値S(n)が上昇場したときには、このベース値B(n)との差分値D(n)によって、特定ガスの濃度が低下したことが容易に判定できる。具体的には、濃度信号発生手段で濃度高信号に代えて濃度低信号を発生する。
【0060】
さらに、濃度高信号に代えて濃度低信号を発生させるのと同期して、ベース値B(n)を第4ベース値算出手段に代えて、第3係数k3を用いる第3ベース値算出手段で算出する。これにより、ベース値B(n)は再びセンサ出力値S(n)に比較的早く追従するようになる。従って、その後に再び特定ガスの濃度が上昇しても、迅速にまた確実に濃度の上昇を検出することができる。
なお、第3係数k3及び第4係数k4は、A/D変換手段におけるサンプリング周期や、センサ出力値S(n)の変動域などによって適宜選択すればよい。
【0061】
さらに上記ガス検出装置であって、前記所定の濃度しきい値に代えて、濃度高しきい値と、上記濃度高しきい値よりも小さな濃度低しきい値と、を有し、前記濃度信号発生手段は、前記濃度低信号の発生期間中に前記差分値が上記濃度高しきい値よりも大きくなると、上記濃度低信号に代えて上記濃度高信号を発生し、上記濃度高信号発生期間中に前記差分値が上記濃度低しきい値よりも小さくなると、上記濃度高信号に代えて濃度低信号を発生するガス検出装置とすると良い。
【0062】
本発明のガス検出装置では、濃度高しきい値と濃度低しきい値の2つのしきい値を有しており、濃度低信号に代えて濃度高信号を発生するに際しては濃度高しきい値によって判断し、また、濃度高信号に代えて濃度低信号を発生するに際しては、濃度高しきい値よりも小さい濃度低しきい値によって判断する。このため、差分値D(n)がこれらのしきい値に近い値となったときに、わずかな差分値の変動によって濃度高信号と濃度低信号とが頻繁に入れ替わるチャタリングが防止される。
【0063】
さらに他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(4)に従ってベース値を算出する第3ベース値算出手段と、
B(n)=B(n−1)+k3{S(n)−B(n−1)} …(4)
但し、S(n)はセンサ出力値、B(n)はベース値、k3は第3係数であり、0<k3<1、nは時系列の順序を示す整数、上記センサ出力値とベース値とから下記式(5)に従って差分値を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(5)
但し、D(n)は差分値、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベル間しきい値であって、高位の上記濃度レベル間境界に対応する上記レベル間しきい値ほど大きな値であるレベル間しきい値を有し、現在の上記濃度レベルとこれより1つ高位の上記位濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が大きいときに、上記現在の濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が小さいときに、上記現在の濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する濃度レベル信号切替発生手段と、上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(4)に代えて、上記センサ出力値から下記式(6)に従ってベース値を算出する第4ベース値算出手段と、
B(n)=B(n−1)+k4{S(n)−B(n−1)} …(6)
但し、k4は第4係数であり、0≦k4<k3<1、を備えるガス検出装置である。
【0064】
本発明のガス検出装置でも センサ抵抗値変換回路及びA/D変換手段のほか、ベース値B(n)を算出する第3,第4ベース値算出手段を有し、2つの算出手段を途中で切り替えながらベース値を算出する。第3ベース値算出手段では比較的大きい第3係数k3(k3>k4)を用いるので、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。まず、第3ベース値算出手段でベース値を算出している間、つまり、特定ガスの濃度が低いままであるなど、変化が少ない場合には、差分値D(n)(=B(n)−S(n))はあまり大きな値にならない。しかし、特定ガスの濃度が上昇してセンサ出力値S(n)が大きく変化(低下)すると、ベース値B(n)が十分追従できないために差分値D(n)が大きくなり、この差分値D(n)が複数あるレベル間しきい値のいくつかを超えると、現在の濃度レベル、即ち、現在発生している濃度レベル信号に対応する濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生する。つまり濃度レベル信号のランクを上げる。また、所定の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中には、ベース値B(n)の算出に第4ベース値算出手段を用いるようにする。
【0065】
第4ベース値算出手段で使用する第4係数k4は比較的小さい(0≦k4<k3)ので、ベース値B(n)の変化は緩慢になって、センサ出力値に対する追従は比較的ゆっくりになる。あるいはベース値B(n)が変化しなくなる(k4=0のとき)。比較的小さな第4係数k4を用いて算出したベース値B(n)は、上記したように、過去のセンサ出力値やベース値の影響を受けた値、具体的にはベース値B(n)の算出式を(4)式から(6)式に切り替えた時点の直前に(4)式で算出したベース値の影響を受けた値、従って、切替前のセンサ出力値やベース値の影響を受けた値になっている。つまり、第4ベース値算出手段で算出したベース値B(n)は、センサ出力値S(n)に緩慢に追従しながらも即ち徐々に近づきながらも、あるいは一定値を保って、特定ガスの濃度が上昇する直前の状態を反映あるいは維持することになる。
従って、この第4ベース値算出手段で算出したベース値B(n)と現在のセンサ出力値S(n)との差である差分値D(n)を用いれば、現在の特定ガスの濃度のレベルを、過去、具体的にはベース値B(n)の算出式を(4)式から(6)式に切り替えた時点の濃度を基準として判定することができる。
【0066】
そこで、差分値D(n)の変動により、現在発生している濃度レベル信号に対応する濃度レベルとは異なる濃度レベルに判定された場合には、濃度レベル信号を切り替える。つまり、特定ガスの濃度が低下あるいは上昇してセンサ出力値S(n)が低下あるいは上昇したときにも、この差分値D(n)によって特定ガスの濃度が低下あるいは上昇したことが容易に判定できる。
例えば、特定ガスの濃度が低下して差分値D(n)が低位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを下げる。逆に特定ガスの濃度が上昇して差分値D(n)が高位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを上げる。
なお、濃度レベル信号のランクの上下は、第4ベース値算出手段でベース値B(n)を算出している場合にも行われる。
【0067】
さらに、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中に、差分値D(n)が、所定の濃度レベル以下の濃度レベルに対応する値となった場合には、ベース値B(n)を第4ベース値算出手段に代えて、再び第31ベース値算出手段で算出する。これにより、ベース値B(n)は再びセンサ出力値S(n)に比較的早く追従するようになる。従って、その後に再び特定ガスの濃度が上昇しても、迅速にまた確実に濃度の上昇を検出することができる。
なお、第3係数k3及び第4係数k4は、A/D変換手段におけるサンプリング周期や、センサ出力値S(n)の変動域などによって適宜選択すればよい。
【0068】
本発明のガス検出装置では、濃度レベル信号切替発生手段で、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生するので、特定ガスの濃度の高低だけでなく、より細かな濃度レベルに対応した濃度レベル信号を発生することができる。このため、このガス検出装置を用いたオートベンチレーションシステムにおけるフラップ制御や、空気清浄機の制御システムにおけるファン制御など、各種の制御システムにおいて、特定ガスの濃度レベルに応じたより細かな制御を行わせることができる。
【0069】
さらに、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0070】
本発明のガス検出装置では、差分値が大きくなって現在よりも濃度レベルを上げるときに、発生する濃度レベル信号として1つ高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク上げる。また、差分値が小さくなって現在よりも濃度レベルを下げるときに、発生する濃度レベル信号として1つ低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク下げる。
このように濃度レベル信号が1つずつ高位あるいは低位に変化することで、出力される濃度レベル信号の急変を避けることができる。
【0071】
あるいは、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記差分値が超えた上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記差分値が下回った上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0072】
本発明のガス検出装置では、差分値が大きくなって現在よりも濃度レベルを上げるときに、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。また、差分値が小さくなって現在よりも濃度レベルを下げるときにも、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。
このように濃度レベル信号を得られた差分値D(n)に対応したものに変化することで、常に、差分値D(n)、従って、特定ガスの濃度に応じた濃度レベル信号を出力することができる。
【0073】
さらに他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(4)に従ってベース値を算出する第3ベース値算出手段と、
B(n)=B(n−1)+k3{S(n)−B(n−1)} …(4)
但し、S(n)はセンサ出力値、B(n)はベース値、k3は第3係数であり、0<k3<1、nは時系列の順序を示す整数、上記センサ出力値とベース値とから下記式(5)に従って差分値を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(5)
但し、D(n)は差分値、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベルアップしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルアップしきい値ほど大きな値であるレベルアップしきい値と、上記複数の濃度レベル間境界と1対1に対応する複数のレベルダウンしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルダウンしきい値ほど大きな値であり、同位の上記濃度レベル間境界に対応する上記レベルアップしきい値よりも小さな値であるレベルダウンしきい値と、を有し、現在の上記濃度レベルとこれより1つ高位の上記位濃度レベルとの間の上記レベル間境界に対応する上記レベルアップしきい値よりも、上記差分値が大きいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベルダウンしきい値よりも、上記差分値が小さいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する濃度レベル信号切替発生手段と、上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(4)に代えて、上記センサ出力値から下記式(6)に従ってベース値を算出する第4ベース値算出手段と、
B(n)=B(n−1)+k4{S(n)−B(n−1)} …(6)
但し、k4は第4係数であり、0≦k4<k3<1、を備えるガス検出装置である。
【0074】
本発明のガス検出装置でも センサ抵抗値変換回路及びA/D変換手段のほか、ベース値B(n)を算出する第3,第4ベース値算出手段を有し、2つの算出手段を途中で切り替えながらベース値を算出する。第3ベース値算出手段では第3係数k3を用いるので、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。まず、第3ベース値算出手段でベース値を算出している間、つまり、特定ガスの濃度が低いままであるなど、センサ出力値に対する変化が少ない場合には、差分値D(n)はあまり大きな値にならない。しかし、特定ガスの濃度が上昇してセンサ出力値S(n)が大きく変化(低下)すると、ベース値B(n)が十分追従できないために差分値D(n)が大きくなり、この差分値D(n)が複数あるレベルアップしきい値のいくつかを超えると濃度レベル信号切替発生手段でそれに対応する濃度レベル信号を発生する。また、所定の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中には、ベース値B(n)の算出に第4ベース値算出手段を用いるようにする。
【0075】
第4ベース値算出手段で使用する第4係数k4は比較的小さい(0≦k4<k3)ので、ベース値B(n)の変化は緩慢になって、センサ出力値に対する追従は比較的ゆっくりになる。あるいはベース値B(n)が変化しなくなる(k4=0のとき)。比較的小さな第4係数k4を用いて算出したベース値B(n)は、上記したように、過去のセンサ出力値やベース値の影響を受けた値、具体的にはベース値B(n)の算出式を(4)式から(6)式に切り替えた時点の直前に(4)式で算出したベース値の影響を受けた値、従って、切替前のセンサ出力値やベース値の影響を受けた値になっている。つまり、第4ベース値算出手段で算出したベース値B(n)は、センサ出力値S(n)に徐々に近づきながらも、あるいは一定値を保って、特定ガスの濃度が上昇する直前の状態を反映あるいは維持することになる。
従って、この第4ベース値算出手段で算出したベース値B(n)と現在のセンサ出力値S(n)との差である差分値D(n)を用いれば、現在の特定ガスの濃度のレベルを、過去、具体的にはベース値B(n)の算出式を(4)式から(6)式に切り替えた時点の濃度を基準として判定することができる。
【0076】
そこで、差分値D(n)の変動により、現在発生している濃度レベル信号に対応する濃度レベルとは異なる濃度レベルに判定された場合には、濃度レベル信号を切り替える。つまり、特定ガスの濃度が低下あるいは上昇してセンサ出力値S(n)が低下あるいは上昇したときにも、この差分値D(n)によって特定ガスの濃度が低下あるいは上昇したことが容易に判定できる。
例えば、特定ガスの濃度が低下して差分値D(n)が低位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを下げる。逆に特定ガスの濃度が上昇して差分値D(n)が高位の濃度レベルに相当する値となった場合には、現在発生している濃度レベル信号に対応する濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベル信号のランクを上げる。
なお、濃度レベル信号のランクの上下は、第4ベース値算出手段でベース値B(n)を算出している場合にも行われる。
【0077】
さらに、所定の濃度レベル以下の濃度レベルとなった場合には、ベース値B(n)を第4ベース値算出手段に代えて、再び第3ベース値算出手段で算出する。これにより、ベース値B(n)は再びセンサ出力値S(n)に比較的早く追従するようになる。従って、その後に再び特定ガスの濃度が上昇しても、迅速にまた確実に濃度の上昇を検出することができる。
なお、第3係数k3及び第4係数k4は、A/D変換手段におけるサンプリング周期や、センサ出力値S(n)の変動域などによって適宜選択すればよい。
【0078】
このように、本発明のガス検出装置では、濃度レベル信号切替発生手段で、複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生するので、特定ガスの濃度の高低だけでなく、より細かな濃度レベルに対応した濃度レベル信号を発生することができる。このため、このガス検出装置を用いたオートベンチレーションシステムにおけるフラップ制御や、空気清浄機の制御システムにおけるファン制御など、各種の制御システムにおいて、特定ガスの濃度レベルに応じたより細かな制御を行わせることができる。
また、濃度レベル信号発生に際しては、濃度レベル間境界に対応するレベルアップしきい値と、同位の上記濃度レベル間境界に対応する上記レベルアップしきい値よりも小さな値のレベルダウンしきい値とを用いて濃度レベルを判断しているので、差分値D(n)がしきい値に近い値となったときに、濃度レベル信号が頻繁に変わるチャタリングが防止される。
【0079】
さらに、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0080】
本発明のガス検出装置では、差分値が大きくなって現在よりも濃度レベルを上げるときに、発生する濃度レベル信号として1つ高位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク上げる。また、差分値が小さくなって現在よりも濃度レベルを下げるときに、発生する濃度レベル信号として1つ低位の濃度レベルに対応する濃度レベル信号を発生する。つまり、濃度レベルを1ランク下げる。
このように濃度レベル信号を1つずつ高位あるいは低位に変化することで、出力される濃度レベル信号の急変を避けることができる。
【0081】
あるいは、上記ガス検出装置であって、前記濃度レベル信号切替発生手段は、前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、前記濃度レベル信号として、上記差分値が超えた上記レベルアップしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、前記濃度レベル信号として、上記差分値が下回った上記レベルダウンしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生するガス検出装置とすると良い。
【0082】
本発明のガス検出装置では、差分値が大きくなって濃度レベルを上げるときに、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。また、差分値が小さくなって濃度レベルを下げるときにも、差分値D(n)に応じた濃度レベルに対応する濃度レベル信号を発生する。つまり、算出された差分値D(n)に対応する濃度レベルに変更する。
このように濃度レベル信号を得られた差分値D(n)に対応したものに変化することで、常に、差分値D(n)、従って、特定ガスの濃度に応じた濃度レベル信号を出力することができる。
【0083】
さらに、上記いずれかに記載のガス検出装置であって、前記第4ベース値算出手段における前記所定の濃度レベルは、前記濃度レベル信号切替発生手段が有する前記複数の濃度レベルのうち、最も低位の濃度レベルであるガス検出装置とすると良い。
【0084】
ベース値B(n)を算出するにあたって、本発明のように第4ベース値算出手段を使用するのを最も低位の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中とすると、特定ガスの濃度が最も低い濃度レベルから、それより1つ上の濃度レベルに上がる時点での濃度を基準として、以降のベース値B(n)が算出される。このため、最も低位の濃度レベルを基準として用いることができるから、特定ガスの濃度の高低をより正確に比較することができるようになる。
【0085】
さらに、上記いずれかに記載のガス検出装置であって、前記第4係数k4は、k4>0であるガス検出装置とすると良い。
【0086】
本発明のガス検出装置では、第4係数k4が0より大きい(k4>0)。このため、特定ガスの濃度高信号の発生期間中に第4ベース値算出手段で算出されるベース値B(n)は、一定ではなく、緩慢ではあるがセンサ出力値S(n)に追従して変化する。
ガスセンサ素子は、前記したように、特定ガスの濃度変化だけでなく、温度や湿度などの環境や風速などによっても影響され、特定ガスの濃度は一定の場合でも、センサ出力値S(n)が徐々に変化することがある。もし、特定ガスの濃度が上昇して、その後に濃度が低下するまでの期間、具体的には、ベース値B(n)の算出を第3ベース値算出手段から第4ベース値算出手段に変更している期間中に、センサ出力値S(n)が小さくなる方向にドリフトが生じると、特定ガスの濃度が上昇前と同レベルにまで上昇した場合でも、ドリフトによりセンサ出力値S(n)は、上昇前の値よりも小さな値までしか上昇しない。ここで、第4係数k4=0とした場合には、式(6)によればベース値B(n)は変化しない(B(n)=B(n−1))ので、差分値D(n)はガス濃度上昇前の値よりも大きな値までしか低下しない。従って、実際には特定ガスの濃度が十分低下しているのに、差分値D(n)が大きいため特定ガスの濃度が高いと誤判定されて、ガス濃度の低下が判別できない不具合が生じる危険性がある。このため、車両用オートベンチレーションシステムや空気清浄機の制御システムに本発明のガス検出装置を用いた場合には、長時間にわたってフラップが閉じたままとなったりファンが高回転となったりして、適切な制御ができにくくなる。
【0087】
これに対し、本発明では、k4>0としているので、緩慢ではあるがベース値B(n)がセンサ出力値S(n)に追従するから、たとえセンサ出力値S(n)にドリフトを生じた後に、特定ガスの濃度が低下した場合にも、時間の経過とともに差分値D(n)が徐々に小さくなる。従って、ある程度の時間が経過すると、必ず濃度低信号を発生し、あるいは濃度レベルを低位の濃度レベルにまで引き下げてこれに対応する濃度レベル信号を発生することができる。
従って、車両用オートベンチレーションシステムや空気清浄機の制御システムにおいて、ある程度の時間が経過したときにフラップを開けたりファンを低回転とするなど、適切な制御を行わせることができる。
また、ある程度の時間が経過すると、必ず第4ベース値算出手段に代えて第3ベース値算出手段を用いてベース値B(n)を算出することができるようになるので、再びセンサ出力値S(n)に比較的早く追従するベース値B(n)を算出して、特定ガスの濃度上昇に対してこれを検出できるようになる。
【0088】
さらに他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(7)に従って微分値を算出する微分値算出手段と、
V(n)=S(n)−S(n−1) …(7)
但し、S(n)はセンサ出力値、V(n)は微分値、nは時系列の順序を示す整数、上記センサ出力値S(n)から下記式(8)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(8)
但し、kは係数であり、0<k<1、上記センサ出力値S(n)とベース値B(n)とから下記式(9)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(9)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記濃度低信号の発生期間中、上記微分値V(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、上記濃度高信号の発生期間中、上記差分値D(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する濃度信号発生手段と、を備えるガス検出装置である。
【0089】
式(7)によって求めた微分値V(n)は、センサ出力値S(n)と1つ前の値S(n−1)との差、つまり変化量を表す。従って、たとえばセンサ出力値が大きく上昇すると、直ちに大きな値となる。このため、ガス濃度が上昇したときにセンサ出力電位が上昇する特性のセンサ抵抗値変換回路を用いる場合には、この微分値V(n)を用いるとともに、温度や湿度等の環境の影響によるセンサ出力値の変動を考慮して任意に設定される第1しきい値と上記微分値V(n)とを比較することで、温度や湿度等の環境の影響を軽減させつつ、ガス濃度上昇の初期段階で濃度上昇を捉えることができる。一方、ベース値B(n)については、前記したように、センサ出力値S(n)の変動に対して追従して変化する性質を有する。
【0090】
本発明のガス検出装置は、センサ抵抗値変換回路及びA/D変換手段のほか、このような性質を有する微分値V(n)を算出する微分値算出手段、ベース値B(n)を算出するベース値算出手段、差分値算出手段を有し、濃度低信号と濃度高信号とを切り替えて発生する。即ち、濃度低信号の発生期間中で、微分値が第1しきい値よりも大きいときに、濃度高信号を発生する。
一方、濃度高信号発生期間中で、差分値D(n)が第2しきい値よりも小さいときに、濃度低信号を発生する。ここで、ベース値B(n)はセンサ出力値S(n)に若干遅れながら追従する。従って、センサ出力値S(n)が大きくなる方向にドリフトが生じても、時間の経過とともに差分値D(n)が徐々に小さくなる。このため、差分値D(n)がついには第2しきい値より小さくなって、必ず濃度低信号を発生することができる。このようにして、ガス濃度が低下した場合には、センサ出力S(n)及びベース値B(n)を用いて算出した差分値D(n)によって、ガス濃度の低下を検知することができる。しかもベース値を算出する際の係数kによって、センサ出力値に対するベース値の追従の緩急を調整できる。
【0091】
さらに他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、上記センサ出力値から下記式(10)に従って微分値を算出する微分値算出手段と、
V(n)=S(n−1)−S(n) …(10)
但し、S(n)はセンサ出力値、V(n)は微分値、nは時系列の順序を示す整数、上記センサ出力値S(n)から下記式(11)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(11)
但し、kは係数であり、0<k<1、上記センサ出力値S(n)とベース値B(n)とから下記式(12)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(12)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記濃度低信号の発生期間中、上記微分値V(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、上記濃度高信号の発生期間中、上記差分値D(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する濃度信号発生手段と、を備えるガス検出装置である。
【0092】
式(10)によって求めた微分値V(n)は、現在より1つ前のセンサ出力値S(n−1)と現在のセンサ出力値S(n)との差、つまり変化量を表す。但し、前記式(7)とは正負反転した値である。従って、たとえばセンサ出力値が大きくすると、直ちに大きな値となる。このため、ガス濃度上昇したときにセンサ出力電位が低下する特性のセンサ抵抗値変換回路を用いる場合には、この微分値V(n)を用いるとともに、温度や湿度等の環境の影響によるセンサ出力値の変動を考慮して任意に設定される第1しきい値と上記微分値V(n)とを比較することで、温度や湿度等の環境の影響を軽減させつつ、ガス濃度上昇の初期段階で濃度上昇を捉えることができる。一方、ベース値B(n)については、前記したように、センサ出力値S(n)の変動に対して追従して変化する性質を有する。また、式(12)によって求めた差分値D(n)は、前記式(9)とは逆に、ベース値からセンサ出力値を差し引いた値である。
【0093】
本発明のガス検出装置は、センサ抵抗値変換回路及びA/D変換手段のほか、このような性質を有する微分値V(n)を算出する微分値算出手段、ベース値B(n)を算出するベース値算出手段、差分値算出手段を有し、濃度低信号と濃度高信号とを切り替えて発生する。即ち、濃度低信号の発生期間中で、微分値が第1しきい値よりも大きいときに、濃度高信号を発生する。上記したように、微分値を用いることで、温度や湿度などの環境の影響を軽減しつつ、ガス濃度上昇の初期段階で濃度上昇を捉えることができる。
【0094】
一方、濃度高信号発生期間中で、差分値D(n)が第2しきい値よりも小さいときに、濃度低信号を発生する。ここで、ベース値B(n)はセンサ出力値S(n)に若干遅れながら追従することから、上記したように、ガス濃度が低下した場合には、センサ出力S(n)及びベース値B(n)を用いて算出した差分値D(n)によって、ガス濃度の低下を検知することができる。しかもベース値を算出する際の係数kによって、センサ出力値に対するベース値の追従の緩急を調整できる。
【0095】
さらに他の解決手段は、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、新しいものから遡ってm個分の上記センサ出力値から下記式(13)に従ってm個移動平均値を算出する移動平均値算出手段と、
Md(n)={S(n)+S(n−1)+…+S(n−(m−1))}…(13)
但し、S(n)はセンサ出力値、Md(n)はm個移動平均値、nは時系列の順序を示す整数、mは移動平均値のサンプル数、上記センサ出力値S(n)とm個移動平均値Md(n)とから下記式(14)に従って第1差分値D(n)を算出する第1差分値算出手段と、
D(n)=S(n)−Md(n) …(14)
上記センサ出力値S(n)から下記式(15)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(15)
但し、kは係数であり、0<k<1、上記センサ出力値S(n)とベース値B(n)とから下記式(16)に従って第2差分値D2(n)を算出する第2差分値算出手段と、
D2(n)=S(n)−B(n) …(16)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記濃度低信号の発生期間中、上記第1差分値D(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、上記濃度高信号の発生期間中、上記第2差分値D2(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する濃度信号発生手段と、を備えるガス検出装置である。
【0096】
m個移動平均値Md(n)は、過去m個分のセンサ出力値S(n)〜S(n−(m−1))の平均値である。このM個移動平均値Md(n)は、センサ出力値S(n)に緩やかに追従する。従って、例えば、ドリフト等によって、センサ出力値が緩やかに上昇するときには、これに追従して変化するが、センサ出力値が素早く変化したときには十分追従できないので、第1差分値が大きな値となる。ベース値B(n)についても、前記したように、センサ出力値S(n)の変動に対して追従して変化する。
【0097】
本発明のガス検出装置は、センサ抵抗値変換回路及びA/D変換手段のほか、このような性質を有するm個移動平均値Md(n)を算出する移動平均値算出手段、ベース値B(n)を算出するベース値算出手段、第1差分値算出手段、及び第2差分値算出手段を有し、濃度低信号と濃度高信号を切り替えて発生する。即ち、濃度低信号の発生期間中で、第1差分値が第1しきい値よりも大きいときに、濃度高信号を発生する。上記したように、移動平均値及びこれから算出した第1差分値を用いることで、ガス濃度上昇を捉えることができる。
一方、濃度高信号発生期間中で、第2差分値が第2しきい値よりも小さいときに、濃度低信号を発生する。ベース値はセンサ出力値に若干遅れながら追従する。従って、濃度が低下する期間には、センサ出力値に対してベース値が遅れて変化するから第2差分値は徐々に小さくなり、ついには第2しきい値よりも小さくなる。このようにして、ガス濃度が低下した場合には、第2差分値によって、ガス濃度の低下を検知することができる。しかもベース値を算出する際の係数kによって、センサ出力値に対するベース値の追従の緩急を調整できる。
【0098】
このように、このガス検出装置では、ガス濃度の上昇段階では、移動平均値及びこれを用いた第1差分値の算出によって濃度上昇を確実に捉えることができ、一方、ガス濃度の低下段階では、ベース値及びこれを用いた第2差分値の算出によって、適切な濃度低下の時期を捉えることができる。
【0099】
さらに、特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、新しいものから遡ってm個分の上記センサ出力値から下記式(17)に従ってm個移動平均値を算出する移動平均値算出手段と、
Md(n)={S(n)+S(n−1)+…+S(n−(m−1))}…(17)
但し、S(n)はセンサ出力値、Md(n)はm個移動平均値、nは時系列の順序を示す整数、mは移動平均のサンプル数、上記センサ出力値S(n)とm個移動平均値Md(n)とから下記式(18)に従って第1差分値D(n)を算出する第1差分値算出手段と、
D(n)=Md(n)−S(n) …(18)
上記センサ出力値S(n)から下記式(19)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(19)
但し、kは係数であり、0<k<1、上記センサ出力値S(n)とベース値B(n)とから下記式(20)に従って第2差分値D2(n)を算出する第2差分値算出手段と、
D2(n)=B(n)−S(n) …(20)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記濃度低信号の発生期間中、上記第1差分値D(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、上記濃度高信号の発生期間中、上記第2差分値D2(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する 濃度信号発生手段と、を備えるガス検出装置である。
【0100】
m個移動平均値Md(n)は、過去m個分のセンサ出力値S(n)〜S(n−(m−1))の平均値である。m個移動平均値Md(n)は、センサ出力値S(n)に緩やかに追従する、従って、例えば、ドリフト等によってセンサ出力値が緩やかに上昇するときには、これに追従して変化するが、センサ出力値が素早く変化したときには十分追従できないので、第1差分値が大きな値となる。ベース値B(n)についても、前記したように、センサ出力値S(n)の変動に対して追従して変化する。
但し、ガス濃度上昇したときにセンサ出力電位が低下する特性のセンサ抵抗値変換回路を用いるので、式(18)によって求めた第1差分値D(n)、及び式(20)によって求めた第2差分値D2(n)は、前記式(14)あるいは(16)とは逆に、数値の取り扱いを容易にするため、移動平均値またはベース値からセンサ出力値を差し引いた値としてある。
【0101】
本発明のガス検出装置は、センサ抵抗値変換回路及びA/D変換手段のほか、このような性質を有するm個移動平均値Md(n)を算出する移動平均値算出手段、ベース値B(n)を算出するベース値算出手段、第1差分値算出手段、及び第2差分値算出手段を有し、濃度低信号と濃度高信号を切り替えて発生する。即ち、濃度低信号の発生期間中で、第1差分値が第1しきい値よりも大きいときに、濃度高信号を発生する。上記したように、移動平均値及びこれから算出した第1差分値を用いることで、ノイズの影響を抑制して、ガス濃度上昇を捉えることができる。
【0102】
一方、濃度高信号発生期間中で、第2差分値が第2しきい値よりも小さいときに、濃度低信号を発生する。ベース値はセンサ出力値に若干遅れながら追従する。従って、濃度が低下する期間には、センサ出力値に対してベース値が遅れて変化するから第2差分値は徐々に小さくなり、ついには第2しきい値よりも小さくなる。このようにして、ガス濃度が低下した場合には、第2差分値によって、ガス濃度の低下を検知することができる。しかもベース値を算出する際の係数kによって、センサ出力値に対するベース値の追従の緩急を調整できる。
【0103】
このように、このガス検出装置でも、ガス濃度の上昇段階では、移動平均値及びこれを用いた第1差分値の算出によって濃度上昇を確実に捉えることができ、一方、ガス濃度の低下段階では、ベース値及びこれを用いた第2差分値の算出によって、適切な濃度低下の時期を捉えることができる。
【0104】
さらに上記いずれかに記載のガス検出装置を含む車両用オートベンチレーションシステムとすると良い。
【0105】
本発明の車両用オートベンチレーションシステムは、特定ガスの濃度変化に応じて、濃度高信号及び濃度低信号、あるいは濃度レベル信号を適切に発生するので、これを用いて適切にベンチレーションを行うことができる。
【0106】
さらに、外気導入口の開閉装置と、上記いずれかに記載のガス検出装置と、前記濃度信号が濃度低信号であるときに、上記外気導入口の開閉装置を全開とし、前記濃度信号が濃度高信号であるときに、上記外気導入口の開閉装置を全閉とする開閉指示信号を出力する開閉指示手段と、を備える車両用オートベンチレーションシステムとすると良い。
【0107】
この車両用オートベンチレーションシステムでは、特定ガスの濃度に応じて、上記ガス検出装置が濃度低信号及び濃度高信号を発生し、濃度低信号を発生している時には、開閉装置を全開とし、濃度高信号を発生しているときには、開閉装置を全閉とする開閉支持信号を出力する。このため、特定ガスの濃度に応じて、適切に開閉装置を開閉することができる。
【0108】
あるいは、外気導入口の開閉装置と、上記いずれかに記載のガス検出装置と、前記濃度レベル信号に応じて、上記外気導入口の開閉装置の開度を指示する開度指示信号を出力する開度指示手段と、を備える車両用オートベンチレーションシステムとすると良い。
【0109】
この車両用オートベンチレーションシステムでは、特定ガスの濃度に応じて、上記ガス検出装置が複数の濃度レベル信号のうち特定ガスに応じた濃度レベル信号を発生する。開度指示手段では、この濃度レベル信号に応じて開閉装置の開度を指示する開度指示信号を出力する。このため、特定ガスの濃度に応じて、適切に開閉装置の開度を調整することができる。
【0110】
なお、開度指示信号は、濃度レベル信号に応じて開閉装置の開度を指示する。この際、複数の濃度レベル信号と開閉装置の開度とが一対一に対応するように設定しても良いが、複数の濃度レベル信号が同一の開度に対応していても良い。たとえば、レベル0〜レベル4の5段階の濃度レベルに対応する5段階の濃度レベル信号がある場合において、レベル0とレベル1に対応した濃度レベル信号に対して、開閉装置の開度を全開とし、レベル2に対応した濃度レベル信号に対して、開閉装置の開度を半開とし、レベル3とレベ4に対応した濃度レベル信号に対して、開閉装置の開度を全閉としても良い。
【0111】
【発明の実施の形態】
(実施形態1)
本発明の第1の実施形態について、図1〜図5を参照して説明する。図1に本実施形態1のガス検出装置10の回路図及びブロック図と、これを含む車両用オートベンチレーションシステム100の概略構成を示す。
まずガス検出装置10について説明する。このガス検出装置10は、被測定ガス(本実施形態では大気)中にNOxなど酸化性ガス成分がある場合に、この様な特定ガスに反応して酸化性ガス成分の濃度上昇と共にセンサ抵抗値Rsが上昇するタイプの酸化物半導体のガスセンサ素子11を用いるものである。このガスセンサ素子11は自動車の室外に配置される。
このガスセンサ素子11を用い、センサ抵抗値変換回路14、バッファ13、A/D変換回路15からなる取得手段で、センサ出力値S(n)を取得する。具体的には、センサ抵抗値変換回路14は、このガスセンサ素子11のセンサ抵抗値Rsに応じたセンサ出力電位Vsを出力する。具体的には、電源電圧Vccをガスセンサ素子11と検出抵抗値Rdを有する抵抗器12とで分圧した動作点Pdのセンサ出力電位Vsを、バッファ13を介して出力するようになっている。このため、このセンサ抵抗値変換回路14では、NOxなどの酸化性ガスの濃度が上昇すると、センサ抵抗値Rsが上昇し、センサ出力電位Vsが上昇するように構成されている。
バッファ13の出力(センサ出力電位Vs)は、A/D変換回路15に入力されて、所定のサンプリング周期(本実施形態では0.25秒)毎にデジタル化されたセンサ出力値S(n)として出力され、マイクロコンピュータ16の入力端子17に入力される。nは順序を表す一連の整数である。
【0112】
さらにこのマイクロコンピュータ16の出力端子18からは、電子制御アセンブリ20を制御するための濃度高信号と濃度低信号のいずれかの濃度信号LVが出力される。この電子制御アセンブリ20は、自動車の内気循環及び外気取り入れを制御する換気系30のフラップ34を制御するものである。この換気系30は、本実施形態では具体的には、自動車室内につながるダクト31に、二股状に接続された、内気を取り入れ循環させる内気取り入れ用ダクト32と外気を取り入れる外気取り入れ用ダクト33とを切り替えるフラップ34を制御するものである。
電子制御アセンブリ20のうち、フラップ駆動回路21は、マイクロコンピュータ16の出力端子18からの濃度信号LV、本実施形態に即して言えば、NOxなどの酸化性ガス成分の濃度が上昇したか下降したかを示す濃度信号LVに従って、アクチュエータ22を動作させフラップ34を回動させて、内気取り入れ用ダクト32及び外気取り入れ用ダクト33のいずれかをダクト31に接続させる。
【0113】
例えば、図2のフローチャートに示すように、ステップS1で初期設定を行った後、ステップS2で濃度レベル信号LVを取得し、ステップS3で濃度信号LVが濃度高信号であるか否か、つまり濃度高信号発生中であるか否かを判断する。ここで、Noつまり濃度低信号発生中の場合には、特定ガスの濃度が低いのであるから、ステップS4において、フラップ34の全開を指示する。これにより、フラップ34が回動して、外気取り入れ用ダクト33がダクト31に接続され、外気が車室内に取り入れられる。一方、ステップS3においてYesつまり濃度高信号発生中の場合には、車室外の特定ガスの濃度が高いのであるから、ステップS5において、フラップ34の全閉を指示する。これにより、フラップ34が回動して、内気取り入れ用ダクト32がダクト31に接続され、外気導入が遮断されると共に、内気循環となる。
【0114】
ダクト31内には、空気を圧送するファン35が設置されている。なお、フラップ駆動回路21は、濃度信号LVだけに応じてフラップ34を開閉するようにしても良いが、例えば、マイクロコンピュータなどを用い、ガス検出装置10による濃度信号LVの他、図中破線で示すように、例えば室温センサや湿度センサ、外気温センサなどからの情報をも加味して、フラップ34を開閉するようにしても良い。
【0115】
マイクロコンピュータ16では、入力端子17から入力されたセンサ出力値S(n)を後述するフローに従った処理を行うことにより、ガスセンサ素子11のセンサ抵抗値Rsやその変化などから酸化性ガス成分の濃度変化を検出する。マイクロコンピュータ16は、詳細は図示しないが、公知の構成を有し、演算を行うマイクロプロセッサ、プログラムやデータを一時記憶しておくRAM、プログラムやデータを保持するROMなどを含む。また、A/D変換回路15をも含むものを用いることもできる。
【0116】
次いで、マイクロコンピュータ16における制御を、図3のフローチャートに従って説明する。自動車のエンジンが駆動されると、本制御システムが立ち上がる。ガスセンサ素子11が活性状態となるのを待って、まずステップS11で初期設定を行う。初期設定として、ベース値B(0)として、ガスセンサ素子11が活性状態となった当初のセンサ出力値S(0)を記憶しておく(B(0)=S(0))。また、濃度信号LVとして濃度低信号を発生させておく、具体的には濃度信号LVをローレベルとしておく。
その後、ステップS12に進み、センサ信号つまりセンサ出力電位Vsを0.25秒ごとにA/D変換したセンサ出力値S(n)を順次読み込む。次いで、ステップS13において、現時点で濃度信号LVがハイレベル、つまり特定ガス(本実施形態では酸化性ガス)の濃度が高いレベルにあることを示す濃度高信号を発生しているかどうかを判断する。ここで、Noつまり特定ガスの濃度が低く、濃度信号LVがローレベルであり濃度低信号を発生していれば、ステップS14に進む。一方、Yes、つまり特定ガスの濃度が高く濃度信号LVがハイレベルであり濃度高信号を発生していれば、ステップS15に進む。
【0117】
ステップS14では、ベース値B(n)を前回のベース値B(n−1)とセンサ出力値S(n)とを利用して以下の式によって算出しステップS16に進む。B(n)=B(n−1)+k1{S(n)−B(n−1)}、ここで、第1係数k1は、0<k1<1である。
一方、ステップS15では、以下の式を用いて前回のベース値B(n−1)とセンサ出力値S(n)とからベース値B(n)を算出してステップS16に進む。B(n)=B(n−1)+k2{S(n)−B(n−1)}、ここで、第2係数k2は、0≦k2<k1<1である。
前記したように、ベース値B(n)は、使用する係数k1,k2の大きさによってセンサ出力値S(n)に対する追従の程度が異なり、比較的大きな第1係数k1(k1>k2)を用いた場合(ステップS14)には、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。一方、比較的小さな第2係数k2(k2<k1)を用いた場合(ステップS15)には、ベース値B(n)の変化が緩慢になり、ゆっくり追従する。
【0118】
従って、ステップS14に代えてステップS15を経由し、算出式を切り替えて第2係数k2を用いてベース値を算出すると、たとえセンサ出力値S(n)が大きく変化していたとしても、算出されたベース値B(n)は、その切替直前ベース値B(n−1)からあまり変化しないことになる。ここで、切替直前のベース値B(n−1)は、ステップS14で第1係数k1を用いて算出したものであるから、その切替前のセンサ出力値S(n−1)に追従した値となっている。従って、このステップS15で算出されたベース値B(n)は、過去、つまり切り替え直前の状態の影響を反映した値となる。
逆に、ステップS15に代えてステップS14を経由し、ベース値の算出式を切り替えて、第1係数k1を用いてベース値を算出すると、ベース値B(n)は、現在のセンサ出力値S(n)に迅速に追従するので、切替以前のベース値やセンサ出力値の影響は少ない値となる。
【0119】
ステップS16では、差分値D(n)をD(n)=S(n)−B(n)の式に従って算出し、ステップS17で濃度しきい値Tと比較する。D(n)>Tとなった場合(Yes)はステップS18に進み、D(n)≦Tとなった場合(No)はステップS19に進む。
【0120】
もし、それまでは濃度低信号を発生している状態(ステップS13でNo)で、D(n)>Tとなった場合(Yes)には、センサ出力値S(n)とこれよりも若干遅れて追従するベース値B(n)との差が大きくなったことを示している。つまり、特定ガス(酸化性ガス)の濃度が上昇したためにセンサ出力値S(n)が上昇したと考えられる。
また、それまでは濃度高信号が発生している状態(ステップS13でYes)で、D(n)>Tとなった場合(Yes)には、現在のセンサ出力値S(n)と、過去の状態、即ち酸化性ガスの濃度が上昇する直前の状態をある程度反映しているベース値B(n)との差が未だに大きいこと、つまり、未だに酸化性ガスの濃度が十分低下していないことを示している。
そこで、ステップS18で特定ガスの濃度高信号を発生する、または濃度高信号の発生を維持する。具体的には、濃度信号LVをハイレベルにする。
【0121】
一方、もし、それまでは濃度低信号を発生している状態(ステップS13でNo)で、D(n)≦Tとなった場合(ステップS17でNo)には、現在のセンサ出力値S(n)とこれよりも若干遅れて追従するベース値B(n)との差が余り大きくなならず、ベース値B(n)が追従していることを示している。つまり、特定ガス(酸化性ガス)の濃度は低いままであると考えられる。
また、それまでは濃度高信号を発生している状態(ステップS13でYes)で、D(n)≦Tとなった場合(ステップS17でNo)には、センサ出力値S(n)と、過去の状態、即ち酸化性ガスの濃度が上昇する直前の状態をある程度反映しているベース値B(n)との差が小さくなったこと、つまり、酸化性ガスの濃度が十分低下したことを示している。
そこで、ステップS19で特定ガスの濃度低信号を発生させる、または発生を維持する。具体的には、濃度信号LVをローレベルにする。
【0122】
その後、ステップS18,S19のいずれからも、ステップS20に進み、ステップS14,S15で算出した前回のベース値B(n)を記憶し、ステップS21でA/Dサンプリングタイムのタイムアップを待った上で、ステップS12に戻る。
なお、特定ガスの濃度が上昇して差分値D(n)が大きくなると、ステップS18で濃度高信号を発生するので、その後は、ステップS13でYesと判断され、ステップS15に進むことで、ベース値B(n)を算出するための係数が切り替えられて、比較的小さな第2係数k2を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)の追従がゆっくりになり、特定ガスの濃度が上昇する時点のベース値に近い値を維持する。このため、ステップS15で算出されるこのベース値B(n)は、比較的特定ガスの濃度が低かった過去の状態を保持していると考えられ、このベース値B(n)を基準として差分値D(n)を算出することで特定ガスの濃度変化を判別できる。
【0123】
また逆に、特定ガスの濃度が低下して差分値D(n)が小さくなると、ステップS19で濃度低信号を発生するので、その後は、ステップS13でNoと判断され、ステップS14に進むことで、ベース値B(n)を算出するための係数が切り替えられて、再び比較的大きな第1係数k1を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)が良く追従するようになる。つまり過去の状態に影響されにくくなる。このため、再び特定ガスの濃度が上昇すると、過去の特定ガスの変動に影響されることなく再び差分値D(n)が大きくなるので、確実に特定ガスの濃度が上昇を捉えて濃度高信号を発生することができる。
【0124】
次いで、NOxの濃度を上昇させその後低下させたときの、図3に示すフローチャートに従った制御により得られるセンサ出力値S(n)、ベース値B(n)、差分値D(n)及び濃度信号LVの変化の例を図4、図5に示す。なお本例は、風洞内にガスセンサ素子11を配置しておき、当初、NOxを含まない清浄空気を所定の風速で流しておく。その後、所定時間だけ、所定濃度のNOxを混入した空気を流したものである。センサ出力値S(n)、ベース値B(n)、差分値D(n)はいずれもマイクロコンピュータ16内で処理される数値であるが、理解を容易にするため、これらの図ではA/D変換前の電圧値に換算して表現した。
まず、第1係数k1=1/16、第2係数k2=0、濃度しきい値T=0.02Vとした場合について説明する。
時刻0〜約35秒においては、清浄空気が流され、センサ出力値S(n)は若干のノイズによる変動はあるものの、ほぼ一定値(約1.0V)に保たれている。時刻約35秒においてNOxの上昇が始まると、それに伴いセンサ出力値S(n)が上昇して、時刻約70〜約210秒の間はほぼ一定の高い値(約1.8V)となり、それ以降、時刻約210〜約300秒において徐々に低下して元のレベル(約1.0V)に戻る様子が分かる。
【0125】
これに対し、ベース値B(n)は、当初時刻0〜約35秒においては、センサ出力値S(n)に追従して若干の変動しながらほぼ一定値を保っている。従って、差分値D(n)は、ほぼ0Vを維持している。ところが、時刻約35秒において、NOxの濃度が上昇すると、センサ出力値S(n)が上昇し始める。すると、ベース値B(n)が完全には追従できないため、差分値D(n)が大きくなり、しきい値T=0.02Vを超えると、濃度信号LVがローレベルからハイレベルに変化し、濃度高信号を発生する状態となる。また、次回以降、ベース値B(n)の算出にk2(=0)が使用される。ステップS15において、k2=0の場合、B(n)=B(n−1)となるので、ベース値B(n)はセンサ出力値S(n)に拘わらず、一定値、つまり、NOxの濃度が上昇する時点でのベース値を維持することになる。従って、図4において、時刻約35〜300秒ではベース値B(n)は一定となっている。
【0126】
その後、NOxの濃度が徐々に低下してセンサ出力値S(n)が低下すると、差分値D(n)も小さくなり、ついに時刻約300秒で濃度しきい値T=0.02Vを下回ると、NOxの濃度が低下したと判断され、濃度信号LVはハイレベルからローレベルに変化し、濃度低信号を発生する状態となる。それとともに、ベース値B(n)は第1係数k1を用いて算出されるので、センサ出力値S(n)に追従して変化する。
従って、もし、図4中に一点鎖線で示すように、再びNOxの濃度が上昇してセンサ出力値S(n)が上昇したとしても、直ちにこれを検知し、濃度信号LVをハイレベルとして濃度高信号を発生することができる。
【0127】
以上では、濃度高信号発生中のベース値B(n)算出に際し、第2係数k2=0とした。しかし、前記したように、ガスセンサ11は、特定ガスの濃度のみならず、温度や湿度、風速などの影響でそのセンサ抵抗値Rsがドリフトする。従って、もし、NOxの濃度が高い状態の間(例えば、時刻約35〜210秒の間)に、センサ抵抗値Rsが高くなる方向にドリフトが生じたとすると、たとえNOxの濃度を低下させ清浄空気を流したとしても、図4中に破線で示すように、センサ出力値S(n)が元のレベル(約1.0V)に戻らず、差分値D(n)が0Vに近づかないことがある。従って、濃度しきい値T=0.02Vを下回らないので、実際には、NOxの濃度が十分低下したのにも拘わらず、濃度信号LVがローレベルにならず、破線で示すようにいつまでも濃度高信号を発生し続けることがあり得る。
【0128】
そこで、第2係数k2>0とすることがより好ましい。図5に、第2係数k2=1/2048とした他は、上記と同様とした場合の結果について示す。このようにすると、時刻約35秒で濃度高信号を発生し、その後は第2係数k2を用いてベース値B(n)が算出されることに変わりはないが、ベース値B(n)はセンサ出力値S(n)に緩やかに近づくように徐々に増加する。したがって、ベース値B(n)は長時間経つとセンサ出力値S(n)に近づくので、差分値D(n)は必ず0に近づいて小さな値となる。このため、たとえドリフトが生じていたとしても、差分値D(n)が必ず濃度しきい値Tを下回り、濃度信号LVはローレベルに戻る、つまり濃度低信号を発生するようになる。
なお、濃度低信号を発生すると、ベース値B(n)の係数が切り替えられ、第1係数k1を用いて算出される(時刻約240秒以降)ので、ベース値B(n)は一転してセンサ出力値S(n)に対して良く追従するようになることが理解できる。従って、この場合にも、時刻約240秒以降に再びNOxの濃度が上昇しても、確実に上昇を検知することが出来る。
【0129】
(変形形態1)
次いで、上記実施形態1の変形形態について説明する。本変形形態1のガス検出装置40及び、これを含む車両用オートベンチレーションシステム140は、上記実施形態1とほぼ同様の構成及び処理フローによって処理されるが、異なる点をいくつか有する。即ち、上記実施形態1ではガスセンサ素子11として、NOxなどの酸化性ガス成分がある場合にこれに反応して、酸化性ガス成分の濃度上昇と共にセンサ抵抗値Rsが上昇するタイプのガスセンサ素子を用いた。これに対し、本変形形態1では、ガスセンサ素子411として、COやHCなどの還元性ガス成分がある場合にこれに反応し、還元性ガス成分の濃度上昇と共にセンサ抵抗値Rsが低下するタイプのガスセンサ素子41を用いる点で異なる。
またこれに伴い、本変形形態1のセンサ抵抗値変換回路44では、ガスセンサ素子41のセンサ抵抗値Rsに応じたセンサ出力電位Vsを出力し、COやHCなどの還元性ガスの濃度が上昇すると、センサ抵抗値Rsが低下し、センサ出力電位Vsが低下するように構成される点でも異なる。
さらに、マイクロコンピュータ16における処理のフローも若干異なる。
従って、異なる部分を中心に説明し、同様な部分については同じ記号や番号を付し、説明を省略あるいは簡略化する。
【0130】
まず、図6を参照して、ガス検出装置40について説明する。このガス検出装置40は、上記したように還元性ガス成分がある場合にこれに反応してガス濃度上昇と共にセンサ抵抗値Rsが低下するタイプの酸化物半導体のガスセンサ素子41を用いる。
センサ抵抗値変換回路44は、このガスセンサ素子41のセンサ抵抗値Rsに応じたセンサ出力電位Vsを出力する。センサ抵抗値変換回路44では、上記したように、還元性ガス濃度が上昇すると、動作点Pdのセンサ出力電位Vsが低下する。
センサ出力電位Vsは、A/D変換回路15で0.25秒毎にA/D変換され、センサ出力値S(n)としてマイクロコンピュータ16の入力端子17に入力される。
【0131】
さらにこのマイクロコンピュータ16の出力端子18からは、実施形態1と同様に、電子制御アセンブリ20を制御するため、還元性ガス成分濃度の高低を示す濃度高信号と濃度低信号のいずれかの濃度信号LVが出力され、電子制御アセンブリ20により、自動車の内気循環及び外気取り入れを制御する換気系30のフラップ34が制御される。
マイクロコンピュータ16では、入力端子17から入力されたセンサ出力値S(n)を後述するフローに従った処理を行い、ガスセンサ素子41のセンサ抵抗値Rsやその変化などから還元性ガス成分の濃度変化を検出する。
【0132】
次いで、本変形形態におけるマイクロコンピュータ16における制御を、図7のフローチャートに従って説明する。自動車のエンジンが駆動されると本制御システムが立ち上がり、ガスセンサ素子41が活性状態となるのを待って、まずステップS11で実施形態1と同様にして初期設定を行う。
その後、ステップS12に進み、センサ出力値S(n)を順次読み込む。次いで、ステップS13において、現時点で濃度信号LVが濃度高信号を発生しているかどうかを判断する。濃度低信号を発生していれば(No)、ステップS44に進む。一方、濃度高信号を発生していれば(Yes)、ステップS45に進む。
【0133】
ステップS44では、ベース値B(n)を前回のベース値B(n−1)とセンサ出力値S(n)とを利用して以下の式によって算出しステップS46に進む。B(n)=B(n−1)+k3{S(n)−B(n−1)}、ここで、第3係数k3は、0<k3<1である。
一方、ステップS45では、以下の式を用いて前回のベース値B(n−1)とセンサ出力値S(n)とからベース値B(n)を算出してステップS46に進む。B(n)=B(n−1)+k4{S(n)−B(n−1)}、ここで、第4係数k4は、0≦k4<k3<1である。
実施形態1で説明したのと同様ように、ベース値B(n)は、使用する係数k3,k4の大きさによってセンサ出力値S(n)に対する追従の程度が異なり、比較的大きな第3係数k3(k3>k4)を用いた場合(ステップS44)には、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。一方、比較的小さな第4係数k4(k4<k3)を用いた場合(ステップS45)には、ベース値B(n)の変化が緩慢になり、ゆっくり追従する。
【0134】
従って、ステップS44に代えてステップS45を経由し、算出式を切り替えて第4係数k4を用いてベース値を算出すると、たとえセンサ出力値S(n)が大きく変化していたとしても、算出されたベース値B(n)は、その切替直前ベース値B(n−1)からあまり変化しないことになる。ここで、切替直前のベース値B(n−1)は、ステップS44で第3係数k3を用いて算出したものであるから、その切替前のセンサ出力値S(n−1)に追従した値となっている。従って、このステップS45で算出されたベース値B(n)は、過去、つまり切り替え直前の状態の影響を反映した値となる。
逆に、ステップS45に代えてステップS44を経由し、ベース値の算出式を切り替えて、第3係数k3を用いてベース値を算出すると、ベース値B(n)は、現在のセンサ出力値S(n)に迅速に追従するので、切替以前のベース値やセンサ出力値の影響は少ない値となる。
【0135】
ステップS46では、差分値D(n)を実施形態1と異なるD(n)=B(n)−S(n)の式に従って算出し、ステップS17で濃度しきい値Tと比較する。D(n)>Tとなった場合(Yes)はステップS18に進み、D(n)≦Tとなった場合(No)はステップS19に進む。
【0136】
実施形態1と同様、ステップS18では、特定ガスの濃度高信号を発生させる、または濃度高信号の発生を維持する。具体的には、濃度信号LVをハイレベルにする。一方、ステップS19では、特定ガスの濃度低信号を発生させる、または発生を維持する。具体的には、濃度信号LVをローレベルにする。
【0137】
その後、ステップS18,S19のいずれからも、ステップS20に進み、ステップS14,S15で算出した前回のベース値B(n)を記憶し、ステップS21でA/Dサンプリングタイムのタイムアップを待った上で、ステップS12に戻る。
【0138】
実施形態1と同様に、特定ガスの濃度が上昇して差分値D(n)が大きくなると、ステップS18で濃度高信号を発生するので、その後は、ステップS13でYesと判断され、ステップS45に進むことで、ベース値B(n)を算出するための係数が切り替えられて、比較的小さな第4係数k4を用いてベース値B(n)が算出される。従って、現在のセンサ出力値S(n)に対してベース値B(n)の変化が緩慢になり、特定ガスの濃度が上昇する時点のベース値に近い値を維持する。このため、ステップS45で算出されるこのベース値B(n)は、比較的特定ガスの濃度が低かった過去の状態を保持していると考えられ、このベース値B(n)を基準として差分値D(n)を算出することで特定ガスの濃度変化を判別できる。
【0139】
また逆に、特定ガスの濃度が低下して差分値D(n)が小さくなると、ステップS19で濃度低信号を発生するので、その後は、ステップS13でNoと判断され、ステップS44に進むことで、ベース値B(n)を算出するための係数が切り替えられて、再び比較的大きな第3係数k3を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)が良く追従するようになる。つまり過去の状態に影響されにくくなる。このため、再び特定ガスの濃度が上昇すると、過去の特定ガスの変動に影響されることなく再び差分値D(n)が大きくなるので、確実に特定ガスの濃度が上昇を捉えて濃度高信号を発生することができる。
【0140】
次いで、COの濃度を上昇させその後低下させたときに、図7に示すフローチャートに従った制御により得られるセンサ出力値S(n)、ベース値B(n)、差分値D(n)及び濃度信号LVの変化の例を図8に示す。なお本例も、風洞内にガスセンサ素子41を配置しておき、当初、COを含まない清浄空気を所定の風速で流しておく。その後、所定時間だけ、所定濃度のCOを混入した空気を流したものである。センサ出力値S(n)、ベース値B(n)、差分値D(n)、及び濃度しきい値Tはいずれもマイクロコンピュータ16内で処理される数値であるが、理解を容易にするため、これらの図ではA/D変換前の電圧値に換算して表現した。
第3係数k3=1/16、第4係数k4=1/1920、濃度しきい値T=0.02Vとした場合について説明する。
時刻0〜約35秒においては、清浄空気が流され、センサ出力値S(n)は若干のノイズによる変動はあるものの、ほぼ一定値(約2.5V)に保たれている。時刻約35秒においてCOの上昇が始まると、それに伴いセンサ出力値S(n)が低下する。その後、再び時刻約210秒〜約245秒において徐々に上昇して、ついには元のレベル(約2.5V)に戻る様子が分かる。
【0141】
これに対し、ベース値B(n)は、当初時刻0〜約35秒においては、センサ出力値S(n)に追従して若干の変動しながらほぼ一定値を保っている。従って、差分値D(n)は、ほぼ0を維持している。ところが、時刻約35秒において、COの濃度が上昇すると、センサ出力値S(n)が低下し始める。すると、ベース値B(n)が完全には追従できないため、その差である差分値D(n)が大きくなり、しきい値T=0.02Vを超えると、濃度信号LVがローレベルからハイレベルに変化し、濃度高信号を発生する。また、次回以降、ベース値B(n)の算出にはk4(=1/1920)が使用される。ステップS45において、k4=1/1920(≠0)の場合、ベース値B(n)はセンサ出力値S(n)に緩やかに近づくように徐々に低下する。
【0142】
その後、COの濃度が徐々に低下してセンサ出力値S(n)が上昇すると、差分値D(n)も小さくなり、ついに時刻約235秒で濃度しきい値T=0.02Vを下回ると、COの濃度が低下したと判断され、濃度信号LVはハイレベルからローレベルに変化し、濃度低信号を発生する状態となる。それとともに、ベース値B(n)は第3係数k3を用いて算出されるので、再びセンサ出力値S(n)に追従して変化するようになる。
従って、もし、再びCOの濃度が上昇してセンサ出力値S(n)が低下したとしても、直ちにこれを検知し、濃度信号LVをハイレベルとして濃度高信号を発生することができる。
【0143】
このような制御によっても、車両用オートベンチレーションシステム140(図6参照)において、実施形態1と同様の制御(図2参照)により、得られた濃度信号LV(濃度低信号及び濃度高信号)を用いて、フラップ駆動回路21でフラップ34の開閉を指示し、外気導入と内気循環(全開/全閉)を制御することができる。
なお、本変形形態1では、第4係数k4=0としたものについては説明しなかったが、実施形態1と同様に、k4=0としても、還元性ガスの濃度変化を測定することができる。但し、実施形態1において説明したように、環境の変化などの影響で、もしガスセンサ素子41のセンサ抵抗値Rsが低くなる側にドリフトした場合には、還元性ガス成分の濃度が十分低下しても濃度低信号を発生できない場合があり得るので、上記のようにk4>0とするのが好ましい。
【0144】
(変形形態2)
次いで、第2の変形形態について説明する。本変形形態2は、変形形態1と異なり、上記実施形態1と同様のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100を有する。即ち、NOxなどの酸化性ガス成分の濃度変化を検出し、これに基づいてフラップ34を開閉するシステムである。但し、マイクロコンピュータ16における処理フローが異なり、濃度しきい値にヒステリシス特性を持たせたので、異なる部分を中心に説明し、同様な部分については同じ記号や番号を付し、説明を省略あるいは簡略化する。
【0145】
本変形形態2のマイクロコンピュータ16における制御を、図9のフローチャートに従って説明する。実施形態1と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子11が活性状態となるのを待って、ステップS11で初期設定を行う。初期設定として、ベース値B(0)として当初のセンサ出力値S(0)を記憶しておく(B(0)=S(0))。また、濃度信号LVとして濃度低信号を発生させてローレベルとしておく。
その後、ステップS12に進み、センサ出力電位Vsを0.25秒ごとにA/D変換してセンサ出力値S(n)を順次読み込む。次いで、ステップS13において、現時点で濃度信号LVがハイレベル、つまり濃度高信号を発生しているかどうかを判断する。ここで、Noつまり濃度低信号を発生していれば、ステップS14に進む。一方、Yesつまり濃度高信号を発生していれば、ステップS15に進む。
【0146】
ステップS14では、実施形態1と同様にしてベース値B(n)を算出し、ステップS51に進む。一方、ステップS15でも、ベース値B(n)を算出し、ステップS53に進む。
前記したように、ベース値B(n)は、使用する係数k1,k2の大きさによってセンサ出力値S(n)に対する追従の程度が異なり、比較的大きな第1係数k1(k1>k2)を用いた場合(ステップS14)には、ベース値B(n)はセンサ出力値S(n)に迅速に追従する。一方、比較的小さな第2係数k2(k2<k1)を用いた場合(ステップS15)には、ベース値B(n)は、その変化が緩慢になり、過去の状態の影響を反映した値となる。
【0147】
ステップS51では、差分値D(n)をD(n)=S(n)−B(n)の式に従って算出し、ステップS52で濃度高しきい値Tuと比較する。D(n)>Tuとなった場合(Yes)はステップS18に進み、D(n)≦Tuとなった場合(No)には、そのままステップS20に進む。
【0148】
ステップS52でYesとなるのは、それまでは濃度低信号を発生している状態(ステップS13でNo)で、D(n)>Tuとなった場合であるから、センサ出力値S(n)とこれよりも若干遅れて追従するベース値B(n)との差が大きくなったことを示している。つまり、特定ガス(酸化性ガス)の濃度が上昇したためにセンサ出力値S(n)が上昇したと考えられる。
そこで、ステップS18で特定ガスの濃度高信号を発生する。具体的には、濃度信号LVをハイレベルにする。
【0149】
一方、ステップS53でも、差分値D(n)をD(n)=S(n)−B(n)の式に従って算出し、ステップS54で濃度低しきい値Tdと比較する。なおこの濃度低しきい値はTdは、濃度高しきい値Tuよりも小さな値である(Tu>Td)。そして、D(n)<Tdとなった場合(Yes)はステップS19に進み、D(n)≧Tdとなった場合(No)には、そのままステップS20に進む。
【0150】
ステップS54でYesとなるのは、それまでは濃度高信号を発生している状態(ステップS13でYes)で、D(n)<Tdとなった場合であるから、センサ出力値S(n)と、過去の状態、即ち酸化性ガスの濃度が上昇する前の状態をある程度反映しているベース値B(n)との差が小さくなったこと、つまり、酸化性ガスの濃度が十分低下したことを示している。
そこで、ステップS19で特定ガスの濃度低信号を発生する。具体的には、濃度信号LVをローレベルにする。
【0151】
その後は、ステップS18,S19のいずれからも、ステップS20に進み、ステップS14,S15で算出した前回のベース値B(n)を記憶し、ステップS21でA/Dサンプリングタイムのタイムアップを待った上で、ステップS12に戻る。
このようにしても、実施形態1と同様に、特定ガスの濃度が上昇して差分値D(n)が大きくなると、ステップS18で濃度高信号を発生する。その後は、ステップS13でYesと判断され、ステップS15に進むことで、ベース値B(n)を算出するための係数が切り替えられて、比較的小さな第2係数k2を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)の変化が緩慢になり、特定ガスの濃度が上昇する時点のベース値に近い値を維持する。このため、ステップS15で算出されるこのベース値B(n)は、比較的特定ガスの濃度が低かった過去の状態を保持していると考えられ、このベース値B(n)を基準として差分値D(n)を算出することで特定ガスの濃度変化を判別できる。
【0152】
また逆に、特定ガスの濃度が低下して差分値D(n)が小さくなると、ステップS19で濃度低信号を発生する。その後は、ステップS13でNoと判断され、ステップS14に進むことで、ベース値B(n)を算出するための係数が切り替えられて、再び比較的大きな第1係数k1を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)が迅速に追従するようになる。このため、再び特定ガスの濃度が上昇しても、過去の特定ガスの変動に影響されることなく再び差分値D(n)が大きくなるので、確実に特定ガスの濃度が上昇を捉えて濃度高信号を発生することができる。
【0153】
また、本変形形態2の処理では、濃度しきい値として2つのしきい値Tu,Tdを用い、差分値D(n)が濃度高しきい値Tuよりも大きい(D(n)>Tu)ときに濃度高信号を発生し、差分値D(n)が濃度低しきい値Tdよりも小さい(D(n)<Td)ときに濃度低信号を発生するようにしている。このため、ノイズなどによってセンサ出力値S(n)や差分値D(n)が変動している場合にも、濃度高信号と濃度低信号がと頻繁入れ替わるチャタリングを生じ難くできるメリットがある。
【0154】
(変形形態3)
次いで、第3の変形形態について説明する。上記変形形態2は、実施形態1のものにおいて、濃度しきい値にヒステリシスを持たせたものである。これに対し、本変形形態3は、前記した変形形態1とのものにおいて、濃度しきい値にヒステリシスを持たせたものである。従って、本変形形態3は、前記変形形態1と同様のガス検出装置40及び、これを含む車両用オートベンチレーションシステム140を有する。即ち、COなどの還元性ガス成分の濃度変化を検出し、これに基づいてフラップ34を開閉するシステムである。
但し、マイクロコンピュータ16における処理フローが異なり、濃度しきい値にヒステリシス特性を持たせているので、異なる部分を中心に説明し、同様な部分については同じ記号や番号を付し、説明を省略あるいは簡略化する。
【0155】
本変形形態3のマイクロコンピュータ16における制御を、図10のフローチャートに従って説明する。変形形態1と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子41が活性状態となるのを待って、ステップS11で初期設定を行う。初期設定として、ベース値B(0)として当初のセンサ出力値S(0)を記憶しておく(B(0)=S(0))。また、濃度信号LVとして濃度低信号を発生させてローレベルとしておく。
その後、ステップS12に進み、センサ出力電位Vsを0.25秒ごとにA/D変換してセンサ出力値S(n)を順次読み込む。次いで、ステップS13において、現時点で濃度信号LVがハイレベル、つまり濃度高信号を発生しているかどうかを判断する。ここで、Noつまり濃度低信号を発生していれば、ステップS44に進む。一方、Yesつまり濃度高信号を発生していれば、ステップS45に進む。
【0156】
ステップS44では、変形実施形態1と同様にしてベース値B(n)を算出し、ステップS61に進む。一方、ステップS45でも、ベース値B(n)を算出し、ステップS63に進む。
前記したように、ベース値B(n)は、使用する係数k3,k4の大きさによってセンサ出力値S(n)に対する追従の程度が異なり、比較的大きな第3係数k3(k3>k4)を用いた場合(ステップS44)には、ベース値B(n)はセンサ出力値S(n)に良く追従する。一方、比較的小さな第4係数k4(k4<k3)を用いた場合(ステップS45)には、ベース値B(n)はその変化が緩慢になり、過去の状態の影響を反映した値となる。
【0157】
ステップS61では、差分値D(n)をD(n)=B(n)−S(n)の式に従って算出し、ステップS62で濃度高しきい値Tuと比較する。D(n)>Tuとなった場合(Yes)はステップS18に進み、D(n)≦Tuとなった場合(No)には、そのままステップS20に進む。
【0158】
ステップS62でYesとなるのは、それまでは濃度低信号を発生している状態(ステップS13でNo)で、D(n)>Tuとなった場合であるから、センサ出力値S(n)とこれよりも若干遅れて追従するベース値B(n)との差が大きくなったことを示している。つまり、特定ガス(還元性ガス)の濃度が上昇したためにセンサ出力値S(n)が上昇したと考えられる。
そこで、ステップS18で特定ガスの濃度高信号を発生する。具体的には、濃度信号LVをハイレベルにする。
【0159】
一方、ステップS63でも、差分値D(n)をD(n)=B(n)−S(n)の式に従って算出し、ステップS64で濃度低しきい値Tdと比較する。なおこの濃度低しきい値Tdは、濃度高しきい値Tuよりも小さな値である(Tu>Td)。そして、D(n)<Tdとなった場合(Yes)はステップS19に進み、D(n)≧Tdとなった場合(No)には、そのままステップS20に進む。
【0160】
ステップS64でYesとなるのは、それまでは濃度高信号を発生している状態(ステップS13でYes)で、D(n)<Tdとなった場合であるから、センサ出力値S(n)と、過去の状態、即ち還元性ガスの濃度が上昇する前の状態をある程度反映しているベース値B(n)との差が小さくなったこと、つまり、還元性ガスの濃度が十分低下したことを示している。
そこで、ステップS19で特定ガスの濃度低信号を発生する。具体的には、濃度信号LVをローレベルにする。
【0161】
その後は、ステップS18,S19のいずれからも、ステップS20に進み、ステップS44,S45で算出した前回のベース値B(n)を記憶し、ステップS21でA/Dサンプリングタイムのタイムアップを待った上で、ステップS12に戻る。
このようにしても、変形形態1と同様に、特定ガスの濃度が上昇して差分値D(n)が大きくなると、ステップS18で濃度高信号を発生する。その後は、ステップS13でYesと判断され、ステップS45に進むことで、ベース値B(n)を算出するための係数が切り替えられて、比較的小さな第4係数k4を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)の変化が緩慢になり、特定ガスの濃度が上昇する時点のベース値に近い値を維持する。このため、ステップS45で算出されるこのベース値B(n)は、比較的特定ガスの濃度が低かった過去の状態を保持していると考えられ、このベース値B(n)を基準として差分値D(n)を算出することで特定ガスの濃度変化を判別できる。
【0162】
また逆に、特定ガスの濃度が低下して差分値D(n)が小さくなると、ステップS19で濃度低信号を発生する。その後は、ステップS13でNoと判断され、ステップS44に進むことで、ベース値B(n)を算出するための係数が切り替えられて、再び比較的大きな第3係数k3を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)が良く追従するようになる。このため、再び特定ガスの濃度が上昇すると、過去の特定ガスの変動に影響されることなく再び差分値D(n)が大きくなるので、確実に特定ガスの濃度が上昇を捉えて濃度高信号を発生することができる。
【0163】
また、本変形形態3の処理でも、濃度しきい値として2つのしきい値Tu,Tdを用い、差分値D(n)が濃度高しきい値Tuよりも大きい(D(n)>Tu)ときに濃度高信号を発生し、差分値D(n)が濃度低しきい値Tdよりも小さい(D(n)<Td)ときに濃度低信号を発生するようにしている。このため、ノイズなどによってセンサ出力値S(n)や差分値D(n)が変動している場合にも、濃度高信号と濃度低信号がと頻繁入れ替わるチャタリングを生じ難くできるメリットがある。
【0164】
(実施形態2)
次いで、第2の実施形態について説明する。本実施形態2も、上記実施形態1と同様のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100を有する。即ち、NOxなどの酸化性ガス成分の濃度変化を検出し、これに基づいてフラップ34を開閉するシステムである。但し、マイクロコンピュータ16における処理フローが異なり、濃度高及び濃度低の2つのレベル信号ではなく、3つ以上濃度レベル、具体的には4つの濃度レベルに対応する4種の濃度レベル信号LV(LV=0,1,2,3)を有し、これらの濃度レベルを分ける3つのレベル間しきい値T1,T2,T3(T1<T2<T3)を有する。従って、異なる部分を中心に説明し、同様な部分については同じ記号や番号を付し、説明を省略あるいは簡略化する。
【0165】
本実施形態2のマイクロコンピュータ16における制御を、図11のフローチャートに従って説明する。実施形態1と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子11が活性状態となるのを待って、ステップS71で初期設定を行う。初期設定として、ベース値B(0)として当初のセンサ出力値S(0)を記憶しておく(B(0)=S(0))。また、濃度レベル信号LVとしてLV=0に相当する信号を発生させる。具体的には、マイクロコンピュータ16の出力端子18から出力される信号としてPWM(パルス幅変調)信号を出力するようにし、デューティ比を濃度レベル信号に対応させ、LV=0に相当する信号として、デューティ比15%のPWM信号を発生させる。なお、同様に、LV=1に相当する信号としてデューティ比30%、LV=2に相当する信号としてデューティ比50%、LV=3に相当する信号としてデューティ比70%のPWM信号を発生させることとしている。
【0166】
その後、ステップS72に進み、センサ出力電位Vsを0.25秒ごとにA/D変換してセンサ出力値S(n)を順次読み込む。次いで、ステップS73において、現時点で濃度レベル信号LV=0、つまり最も濃度が低いレベルを示す信号を発生しているかどうかを判断する。ここで、NoつまりLV=1,2,3のいずれかであれば、ステップS74に進む。一方、YesつまりLV=0の信号を発生していれば、ステップS75に進む。
【0167】
ステップS74では、実施形態1と同様にしてベース値B(n)を算出し、ステップS76に進む。一方、ステップS75でも、ベース値B(n)を算出し、ステップS76に進む。
前記したように、ベース値B(n)は、使用する係数k1,k2の大きさによってセンサ出力値S(n)に対する追従の程度が異なり、比較的大きな第1係数k1(k1>k2)を用いた場合(ステップS74)には、ベース値B(n)はセンサ出力値S(n)に迅速に追従する。一方、比較的小さな第2係数k2(k2<k1)を用いた場合(ステップS75)には、ベース値B(n)は、その変化が緩慢になり、過去の状態の影響を反映した値となる。
ステップS76では、差分値D(n)をD(n)=S(n)−B(n)の式に従って算出し、ステップS77のサブルーチンで濃度レベル信号LVを切り替えて発生させるかどうかを判断する。
【0168】
このステップS77の内容を図12に示す。このステップS77に進むと、まず、ステップS771で現在発生している濃度レベル信号LVが、最も低い濃度レベルに対応するLV=0であるかどうかを判断する。ここで、YesつまりLV=0の場合には、ステップS774に進む。一方、NoつまりLV=1,2,3のいずれかである場合には、ステップS772に進む。
ステップS772では、現在発生している濃度レベル信号LVが、2番目に低い濃度レベルに対応するLV=1であるかどうかを判断する。ここで、YesつまりLV=1の場合には、ステップS775に進む。一方、NoつまりLV=2,3のいずれかである場合には、ステップS773に進む。
さらに、ステップS773では、現在発生している濃度レベル信号LVが、3番目に低い濃度レベルに対応するLV=2であるかどうかを判断する。ここで、YesつまりLV=2の場合には、ステップS776に進む。一方、Noつまり最も高い濃度レベルに対応するLV=3である場合には、ステップS77Cに進む。
このようにすることで、いずれの濃度レベル信号LVにあるかが場合分けできたことになる。
【0169】
ステップS774では、差分値D(n)が第1レベル間しきい値T1より大きいかどうかを判断する。ここで、NoつまりD(n)≦T1のときは、最も低い濃度レベルから上の濃度レベルに変更する必要がないので、サブルーチンを抜けてメインルーチンに戻る。一方、YesつまりD(n)>T1のときは、ステップS777に進み、濃度レベル信号LVを1ランク上のLV=1とし、その後メインルーチンに戻る。具体的にはマイクロコンピュータ16の出力端子18から出力するPWM信号のデューティ比を15%から30%に変更し、メインルーチンに戻る。
また、ステップS775では、差分値D(n)が第2レベル間しきい値T2より大きいかどうかを判断する。ここで、NoつまりD(n)≦T2のときは、ステップS77Aに進む。一方、YesつまりD(n)>T2のときは、ステップS778に進み、濃度レベル信号LVを現在より1ランク上のLV=2とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を30%から50%に変更し、メインルーチンに戻る。
さらに、ステップS776では、差分値D(n)が第3レベル間しきい値T3より大きいかどうかを判断する。ここで、NoつまりD(n)≦T3のときは、ステップS77Bに進む。一方、YesつまりD(n)>T3のときは、ステップS779に進み、濃度レベル信号LVを現在より1ランク上のLV=3とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を50%から70%に変更し、メインルーチンに戻る。
【0170】
ステップS77Aでは、差分値D(n)が第1レベル間しきい値T1より小さいかどうかを判断する。ここで、NoつまりD(n)≧T1のときは、現在の濃度レベルからランクを下げる必要がないので、サブルーチンを抜けてメインルーチンに戻る。一方、YesつまりD(n)<T1のときは、ステップS77Dに進み、濃度レベル信号LVを1ランク下のLV=0とし、その後メインルーチンに戻る。具体的にはマイクロコンピュータ16の出力端子18から出力するPWM信号のデューティ比を30%から15%に変更し、メインルーチンに戻る。
また、ステップS77Bでは、差分値D(n)が第2レベル間しきい値T2より小さいかどうかを判断する。ここで、NoつまりD(n)≧T2のときは、現在の濃度レベルからランクを下げる必要がないのでメインルーチンに戻る。一方、YesつまりD(n)<T2のときは、ステップS77Eに進み、濃度レベル信号LVを現在より1ランク下のLV=1とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を50%から30%に変更し、メインルーチンに戻る。
さらに、ステップS77Cでは、差分値D(n)が第3レベル間しきい値T3より小さいかどうかを判断する。ここで、NoつまりD(n)≧T3のときは、現在の濃度レベルからランクを下げる必要がないのでメインルーチンに戻る。一方、YesつまりD(n)<T3のときは、ステップS77Fに進み、濃度レベル信号LVを現在より1ランク下のLV=2とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を70%から50%に変更し、メインルーチンに戻る。
【0171】
その後は、ステップS78で、ステップS74,S75で算出した前回のベース値B(n)を記憶し、ステップS79でA/Dサンプリングタイムのタイムアップを待った上で、ステップS72に戻る。
【0172】
このようにすると、特定ガスの濃度が上昇して差分値D(n)が大きくなり、第1レベル間しきい値T1を超えると、ステップS777で濃度レベル信号LV=1とする。その後は、ステップS73でNoと判断され、ステップS75に進むことで、ベース値B(n)を算出するための係数が切り替えられて、比較的小さな第2係数k2を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)の変化が緩慢になり、特定ガスの濃度が上昇する時点のベース値に近い値を維持する。このため、このベース値B(n)を基準として差分値D(n)を算出することで特定ガスの濃度変化を判別することができる。しかも本実施形態2では、特定ガスの濃度を複数の濃度レベルに分けて出力することができる。これにより、電子制御アセンブリ20において、全開や全閉だけでなく、半開などガス濃度に応じて適切なフラップ34の開閉を行わせることができる。
【0173】
また逆に、特定ガスの濃度が十分低下して差分値D(n)が小さくなると、ステップS77Dで濃度レベル信号LV=0を発生する。その後は、ステップS73でYesと判断され、ステップS74に進むことで、ベース値B(n)を算出するための係数が切り替えられて、再び比較的大きな第1係数k1を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)が良く追従するようになる。このため、再び特定ガスの濃度が上昇しても、過去の特定ガスの変動に影響されることなく再び差分値D(n)が大きくなるので、確実に特定ガスの濃度が上昇を捉えて適切な濃度レベル信号を発生することができる。
なお、本実施形態2では、濃度レベル信号LVは、1ランクずつしか上下しないようにしている。このようにすることで、濃度レベル信号の急変を防ぐことができる。
【0174】
次いで、NOxの濃度を上昇させ、その後低下させたときに、図11、図12に示すフローチャートに従った制御により得られるセンサ出力値S(n)、ベース値B(n)、差分値D(n)及び濃度レベル信号LVの変化の例を図13に示す。なお本例も、実施形態1において説明した例と同様に、風洞内にガスセンサ素子11を配置しておき、当初、NOxを含まない清浄空気を所定の風速で流し、その後、所定期間だけ所定濃度のNOxを混入した空気を流したものである。第1係数k1=1/16、第2係数k2=1/2048、第1レベル間しきい値T1=0.02V、第2レベル間しきい値T2=0.3V、第3レベル間しきい値T3=0.7Vとした場合について説明する。
時刻0〜約35秒においては、清浄空気が流され、センサ出力値S(n)は若干のノイズによる変動はあるものの、ほぼ一定値(約1.0V)に保たれている。時刻約35秒においてNOxの上昇が始まると、それに伴いセンサ出力値S(n)が上昇する。その後、再び時刻約240秒〜約300秒において徐々に低下して、ついには元のレベル(約1.0V)に戻る様子が分かる。
【0175】
これに対し、ベース値B(n)は、当初時刻0〜約35秒においては、センサ出力値S(n)に追従して若干の変動しながらほぼ一定値を保っている。従って、差分値D(n)は、ほぼ0Vを維持している。ところが、時刻約35秒において、NOxの濃度が上昇すると、センサ出力値S(n)が上昇し始める。すると、ベース値B(n)が完全には追従できないため、差分値D(n)が大きくなり、第1レベル間しきい値T1=0.02Vを超えると、濃度レベル信号LVがLV=0からLV=1に変更される。また、次回以降、ステップS75において、ベース値B(n)の算出にはk2(=1/2048)が使用されるので、ベース値B(n)はセンサ出力値S(n)に緩やかに近づくように徐々に上昇する。
【0176】
さらに、センサ出力値S(n)が上昇しても、ベース値B(n)はそれほど上昇しないため、さらに差分値D(n)が増加するので、第2レベル間しきい値T2=0.3Vを超えると、濃度レベル信号LVがLV=2に、さらに、第3レベル間しきい値T3=0.7Vを超えると、濃度レベル信号LVがLV=3に変更される。
【0177】
その後、NOxの濃度が徐々に低下してセンサ出力値S(n)が低下すると、差分値D(n)も小さくなる。差分値が第3レベル間しきい値T3=0.7Vを下回ると、NOxの濃度が1ランク分低下したと判断し、濃度レベル信号LVをLV=3からLV=2に変更する。さらに、差分値が第2レベル間しきい値T2=0.3Vを下回ると、NOxの濃度がさらに1ランク分低下したと判断し、濃度レベル信号LVをLV=2からLV=1に変更する。さらに、差分値が第1レベル間しきい値T1=0.02Vを下回ると、NOxの濃度が十分低下したと判断し、濃度レベル信号LVをLV=1からLV=0に変更する。それとともに、以降ベース値B(n)はステップS74によって第1係数k1を用いて算出されるようになるので、再びセンサ出力値S(n)に追従して変化するようになる。従って、再びNOxの濃度が上昇してセンサ出力値S(n)が低下したとしても、直ちにこれを検知し、適切な濃度レベル信号LVを発生することができる。
なお、本実施形態2では、濃度レベルを1ランク上げるときのレベル間しきい値と濃度レベルを1ランク上げるときのレベル間しきい値とに、同じレベル間しきい値T1,T2,T3を用いているので、上記例(図13参照)では、若干チャタリングが生じている。
【0178】
このような制御によって得られた濃度レベル信号LVを用いることで、車両用オートベンチレーションシステム100(図1参照)について、例えば、下記のような制御を行うことができる。即ち、フラップ駆動回路21において、図14のフローチャートに示すように、ステップS1で初期設定を行った後、ステップS2Aで濃度レベル信号LVを取得し、ステップS3Aで濃度レベル信号LVがレベルを検出する。ここで、LV=0、つまり車室外における特定ガスの濃度が十分低い場合には、ステップS4Aにおいて、フラップ34の全開を指示する。これにより、フラップ34が回動して、外気取り入れ用ダクト33がダクト31に接続され、外気が車室内に取り入れられる。一方、ステップS3AにおいてLV=2または3、つまり車室外における特定ガスの濃度がかなり高い場合には、ステップS5Aにおいて、フラップ34の全閉を指示する。これにより、フラップ34が回動して、内気取り入れ用ダクト32がダクト31に接続され、外気導入が遮断されると共に、内気循環となる。さらに、ステップS3Aにおいて、LV=1の場合、つまり特定ガスの濃度がやや高い場合には、ステップS6において、フラップ34の半開を指示する。これにより、外気の導入が若干制限されると共に、内気循環も行われる。
このように、複数(本実施形態では3つ)の濃度レベル信号を発生させることにより、フラップ34の開度を、全閉と全開だけでなく、より細かく制御することができる。
【0179】
さらに、上記では、LV=2と3とでいずれもフラップ34を全閉としたが、LV=2では1/4開とし、LV=3で全閉とするなど、各濃度レベル信号とフラップ34の開度とを一対一に対応させても良い。またこれとは逆に、LV=0で全開とし、LV=1,2,3のいずれでも全閉とするようにフラップ34を制御することもできる。この場合でも、特定ガスの濃度レベルがどの程度であるかを知ることができる利点がある。
【0180】
なお、本実施形態2では、第2係数k2=0としたものについては説明しなかったが、実施形態1と同様に、k2=0としても、還元性ガスの濃度変化を測定することができる。但し、実施形態1において説明したように、環境の変化などの影響で、もしガスセンサ素子11のセンサ抵抗値Rsが高くなる側にドリフトした場合には、酸化性ガス成分の濃度が十分低下してもLV=0の濃度レベル信号を発生できない場合があり得るので、上記のようにk2>0とするのが好ましい。
【0181】
(変形形態4)
上記実施形態2の変形形態について説明する。本変形形態4は、上記実施形態2と同様に、マイクロコンピュータ16における処理フローにおいて、3つ以上濃度レベル、具体的には4つの濃度レベルに対応する4種の濃度レベル信号LV(LV=0,1,2,3)を有し、これらの濃度レベルを分ける3つのレベル間しきい値T1,T2,T3(T1<T2<T3)を有する。但し、前記変形形態1と同様に、ガス検出装置40及びこれを含む車両用オートベンチレーションシステム140を有する。即ち、COなどの還元性ガス成分の濃度変化を検出し、これに基づいてフラップ34を開閉するシステムである点で、上記実施形態2と異なる。従って、異なる部分を中心に説明し、同様な部分については同じ記号や番号を付し、説明を省略あるいは簡略化する。
【0182】
本変形形態4のマイクロコンピュータ16における制御を、図15のフローチャートに従って説明する。実施形態2と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子41が活性状態となるのを待って、ステップS71で初期設定を行う。初期設定として、ベース値B(0)として当初のセンサ出力値S(0)を記憶しておく(B(0)=S(0))。また、濃度レベル信号LVとしてLV=0に相当する信号を発生させる。出力端子18から出力されるPWM信号のデューティ比を濃度レベル信号に対応させ、LV=0に相当する信号として、デューティ比15%、LV=1に相当する信号としてデューティ比30%、LV=2に相当する信号としてデューティ比50%、LV=3に相当する信号としてデューティ比70%のPWM信号を発生させることも実施形態2と同様である。
【0183】
その後、ステップS72に進み、センサ出力値S(n)を順次読み込む。次いで、ステップS73において、現時点で濃度レベル信号LV=0、つまり最も濃度が低いレベルを示す信号を発生しているかどうかを判断する。ここで、NoつまりLV=1,2,3のいずれかであれば、ステップS85に進む。一方、YesつまりLV=0の信号を発生していれば、ステップS84に進む。
【0184】
ステップS84では、第3係数k3によってベース値B(n)を算出し、ステップS86に進む。一方、ステップS85では、第4係数k4によってベース値B(n)を算出し、ステップS86に進む。
ベース値B(n)は、使用する係数k3,k4の大きさによってセンサ出力値S(n)に対する追従の程度が異なり、比較的大きな第3係数k3(k3>k4)を用いた場合(ステップS84)には、ベース値B(n)はセンサ出力値S(n)に迅速に追従する。一方、比較的小さな第4係数k4(k4<k3)を用いた場合(ステップS85)には、ベース値B(n)は、その変化が緩慢になり、過去の状態の影響を反映した値となる。
ステップS86では、差分値D(n)をD(n)=B(n)−S(n)の式に従って算出し、ステップS77のサブルーチンで濃度レベル信号LVを切り替えて発生させるかどうかを判断する。
ステップS77のサブルーチンでの処理(図12参照)は、実施形態2と同様であるので記載を省略する。
【0185】
その後は、ステップS78で、ステップS84,S85で算出した前回のベース値B(n)を記憶し、ステップS79でA/Dサンプリングタイムのタイムアップを待った上で、ステップS72に戻る。
【0186】
このようにしても、還元性ガスの濃度が上昇して差分値D(n)が大きくなって、第1レベル間しきい値T1を超えると、ステップS777で濃度レベル信号LV=1とする。その後は、ステップS73でNoと判断され、ステップS85に進むことで、ベース値B(n)を算出するための係数が切り替えられて、比較的小さな第4係数k4を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)の変化が緩慢になり、特定ガスの濃度が上昇する時点のベース値に近い値を維持する。このため、ステップS85で算出されるこのベース値B(n)は、比較的特定ガスの濃度が低かった過去の状態を保持していると考えられ、このベース値B(n)を基準として差分値D(n)を算出することで特定ガスの濃度変化を判別することができる。しかも本変形形態42でも、特定ガスの濃度を複数の濃度レベルに分けて出力することができる。これにより、電子制御アセンブリ20において、全開や全閉だけでなく、半開などガス濃度に応じて適切なフラップ34の開閉を行わせることができる。
【0187】
また逆に、特定ガスの濃度が十分低下して差分値D(n)が小さくなると、ステップS77Dで濃度レベル信号LV=0を発生する。その後は、ステップS73でYesと判断され、ステップS84に進むことで、ベース値B(n)を算出するための係数が切り替えられて、再び比較的大きな第3係数k3を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)が良く追従するようになる。このため、再び特定ガスの濃度が上昇しても、過去の特定ガスの変動に影響されることなく再び差分値D(n)が大きくなるので、確実に特定ガスの濃度が上昇を捉えて適切な濃度レベル信号を発生することができる。
なお、本変形形態42でも、濃度レベル信号LVは、1ランクずつしか上下しないようにしている。このようにすることで、濃度レベル信号の急変を防ぐことができる。
【0188】
次いで、本変形形態4でも、COの濃度を上昇させ、その後低下させたときに、図15及び図12に示すフローチャートに従った制御により得られるセンサ出力値S(n)、ベース値B(n)、差分値D(n)及び濃度レベル信号LVの変化の例を図16に示す。なお本例も、変形形態1において説明した例と同様に、風洞内にガスセンサ素子41を配置しておき、当初、COを含まない清浄空気を所定の風速で流し、その後、所定期間だけ所定濃度のCOを混入した空気を流したものである。
第3係数k3=1/16、第4係数k4=1/1920、第1レベル間しきい値T1=0.02V、第2レベル間しきい値T2=0.5V、第3レベル間しきい値T3=1.1Vとした場合について説明する。
時刻0〜約35秒においては、清浄空気が流され、センサ出力値S(n)は若干のノイズによる変動はあるものの、ほぼ一定値(約2.5V)に保たれている。時刻約35秒においてCOの上昇が始まると、それに伴いセンサ出力値S(n)が低下する。その後、再び時刻約210秒〜約265秒において徐々に上昇して、ついには元のレベル(約2.5V)に戻る様子が分かる。
【0189】
これに対し、ベース値B(n)は、当初時刻0〜約35秒においては、センサ出力値S(n)に追従して若干の変動しながらほぼ一定値を保っている。従って、差分値D(n)は、ほぼ0Vを維持している。ところが、時刻約35秒において、COの濃度が上昇すると、センサ出力値S(n)が上昇し始める。すると、ベース値B(n)が完全には追従できないため、差分値D(n)が大きくなり、第1レベル間しきい値T1=0.02Vを超えると、濃度レベル信号LVがLV=0からLV=1に変更される。また、次回以降、ステップS85において、ベース値B(n)の算出にはk4(=1/1920)が使用されるので、ベース値B(n)はセンサ出力値S(n)に緩やかに近づくように徐々に低下する。
【0190】
さらに、センサ出力値S(n)が低下しても、ベース値B(n)はそれほど低下しないため、さらに差分値D(n)が増加するので、第2レベル間しきい値T2=0.5Vを超えると、濃度レベル信号LVがLV=2に、さらに、第3レベル間しきい値T3=1.1Vを超えると、濃度レベル信号LVがLV=3に変更される。
【0191】
その後、COの濃度が徐々に低下してセンサ出力値S(n)が上昇すると、差分値D(n)も小さくなる。差分値が第3レベル間しきい値T3=1.1Vを下回ると、COの濃度が1ランク分低下したと判断し、濃度レベル信号LVをLV=3からLV=2に変更する。さらに、差分値が第2レベル間しきい値T2=0.5Vを下回ると、COの濃度がさらに1ランク分低下したと判断し、濃度レベル信号LVをLV=2からLV=1に変更する。さらに、差分値が第1レベル間しきい値T1=0.02Vを下回ると、COの濃度が十分低下したと判断し、濃度レベル信号LVをLV=1からLV=0に変更する。それとともに、以降ベース値B(n)はステップS84によって第3係数k3を用いて算出されるようになるので、再びセンサ出力値S(n)に追従して変化するようになる。従って、再びCOの濃度が上昇してセンサ出力値S(n)が低下したとしても、直ちにこれを検知し、適切な濃度レベル信号LVを発生することができる。
なお、本変形形態4でも、濃度レベルを1ランク上げるときのレベル間しきい値と濃度レベルを1ランク上げるときのレベル間しきい値とに、同じレベル間しきい値T1,T2,T3を用いているので、上記例(図16参照)では、若干チャタリングが生じている。
【0192】
このような制御によっても、車両用オートベンチレーションシステム140(図6参照)において、実施形態2と同様(図14参照)、得られた濃度レベル信号LVを用いて、フラップ駆動回路21でフラップ34の開度を指示し、適切に外気導入や内気循環の制御をすることができる。
【0193】
なお、本変形形態4でも、第4係数k4=0としたものについては説明しなかったが、変形形態1と同様に、k4=0としても、還元性ガスの濃度変化を測定することができる。但し、センサ抵抗値Rsが低くなる側にドリフトした場合には、還元性ガス成分の濃度が十分低下してもLV=0の濃度レベル信号を発生できない場合があり得るので、上記のようにk4>0とするのが好ましい。
【0194】
(変形形態5,6)
上記実施形態2及び変形形態4では、ステップS77のサブルーチン(図12参照)において、濃度レベル信号LVは、1ランクずつしか上下しないようにしている。しかし、差分値D(n)に応じて、濃度レベル信号LVを選択できるようにして、濃度レベル信号LVが一度に複数ランク分上下可能とすることもできる。
即ち、本変形形態5のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100は、処理フローのうち、ステップS77のサブルーチンが実施形態2のものとは異なるのみであるので、ステップS77のサブルーチンの内容を図17を参照して説明する。
【0195】
ステップS76で差分値D(n)を算出して、ステップS77に進む(図11参照)と、まず、ステップS91で現在発生している濃度レベル信号LVが、最も低い濃度レベルに対応するLV=0であるかどうかを判断する。ここで、YesつまりLV=0の場合には、ステップS94に進む。一方、NoつまりLV=1,2,3のいずれかである場合には、ステップS92に進む。
ステップS92では、現在発生している濃度レベル信号LVが、2番目に低い濃度レベルに対応するLV=1であるかどうかを判断する。ここで、YesつまりLV=1の場合には、ステップS95に進む。一方、NoつまりLV=2,3のいずれかである場合には、ステップS93に進む。
さらに、ステップS93では、現在発生している濃度レベル信号LVが、3番目に低い濃度レベルに対応するLV=2であるかどうかを判断する。ここで、YesつまりLV=2の場合には、ステップS96に進む。一方、Noつまり最も高い濃度レベルに対応するLV=3である場合には、ステップS97に進む。
このようにすることで、現在いずれの濃度レベルにあるか、つまりどの濃度レベル信号LVを発生しているかが場合分けできたことになる。
【0196】
ステップS94では、差分値D(n)が第1濃度レベル間しきい値T1より大きいかどうかを判断する。ここで、NoつまりD(n)≦T1のときは、ステップS9Aに進む。一方、YesつまりD(n)>T1のときは、ステップS95に進む。
さらに、ステップS95では、差分値D(n)が第2濃度レベル間しきい値T2より大きいかどうかを判断する。ここで、NoつまりD(n)≦T2のときは、ステップS99に進む。一方、YesつまりD(n)>T2のときは、ステップS96に進む。
さらに、ステップS96では、差分値D(n)が第3濃度レベル間しきい値T3より大きいかどうかを判断する。ここで、NoつまりD(n)≦T3のときは、ステップS98に進む。一方、YesつまりD(n)>T3のときは、ステップS9Eに進む。
【0197】
一方、ステップS97では、差分値D(n)が第3濃度レベル間しきい値T3より小さいかどうかを判断する。ここで、NoつまりD(n)≧T3のときは、ステップS9Eに進む。一方、YesつまりD(n)<T3のときは、ステップS98に進む。
さらに、ステップS98では、差分値D(n)が第2濃度レベル間しきい値T2より小さいかどうかを判断する。ここで、NoつまりD(n)≧T2のときは、ステップS9DCに進む。一方、YesつまりD(n)<T2のときは、ステップS99に進む。
さらに、ステップS99では、差分値D(n)が第1濃度レベル間しきい値T1より小さいかどうかを判断する。ここで、NoつまりD(n)≧T1のときは、ステップS9Bに進む。一方、YesつまりD(n)<T3のときは、ステップS9Aに進む。
これにより、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けができる。
【0198】
そこで、ステップS9Aでは、濃度レベル信号をLV=0とする、あるいはLV=0を維持する。また、ステップS9Bでは、濃度レベル信号をLV=1とする、あるいはLV=1を維持する。ステップS9Dでは、濃度レベル信号をLV=2とする、あるいはLV=2を維持する。ステップS9Eでは、濃度レベル信号をLV=3とする、あるいはLV=3を維持する。
以上により、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けを行って、差分値D(n)に応じた濃度レベル信号を発生させることができるようになる。従って、差分値D(n)が急激に上昇あるいは低下した場合には、濃度レベル信号LVが一度に複数ランク分上下することもあり得ることになる。
【0199】
なお、上記変形形態5では、実施形態2のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100において、処理フローのうち、ステップS77のサブルーチンの内容を図17に示すものとした。しかし、同様にして、前記変形形態4のガス検出装置40及び、これを含む車両用オートベンチレーションシステム140において、ステップS77のサブルーチンの内容を図17に示すものを適用した変形形態6としてもよい。この変形形態6でも、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けを行って、差分値D(n)に応じた濃度レベル信号を発生させることができるようになる。従って、差分値D(n)が急激に上昇あるいは低下した場合には、濃度レベル信号LVが一度に複数ランク分上下することもあり得ることになる。
【0200】
(変形形態7,8)
上記実施形態2や変形形態4では、濃度レベルを1ランク上げるときのレベル間しきい値と濃度レベルを1ランク下げるときのレベル間しきい値とに、同じレベル間しきい値T1,T2,T3を用いていた。これに対し、各々のレベル間しきい値について、ヒステリシスを持たせるとよい。つまりレベルを上げるときのしきい値としてレベルアップしきい値と、これより小さな値レベルを下げるときのしきい値として、対応するレベルアップしきい値より小さな値のレベルダウンしきい値をそれぞれ選択することが好ましい。
即ち、本変形形態7では、実施形態2のガス検出装置10及びこれを含む車両用オートベンチレーションシステム100において、処理フローのうち、図18に示すように、ステップS77のサブルーチンの内容のうち、各レベル間しきい値T1,T2,T3をそれぞれレベルアップしきい値Tu1,Tu2,Tu3、あるいはレベルダウンしきい値Td1,Td2,Td3に代えたものである。そこで、ステップS77のサブルーチンの内容を図18を参照して説明する。
なお、各レベルアップしきい値Tu1,Tu2,Tu3、及びレベルダウンしきい値Td1,Td2,Td3は、それぞれTu1<Tu2<Tu3、Td1<Td2<Td3、Td1<Tu1、Td2<Tu2、Td3<Tu3、の関係となっている。
【0201】
実施形態2と同様に、ステップS76で差分値D(n)を算出して、ステップS77に進む(図11参照)と、まず、ステップS771で現在発生している濃度レベル信号LVが、最も低い濃度レベルに対応するLV=0であるかどうかを判断する。ここで、YesつまりLV=0の場合には、ステップS774Aに進む。一方、NoつまりLV=1,2,3のいずれかである場合には、ステップS772に進む。
ステップS772では、現在発生している濃度レベル信号LVが、LV=1であるかどうかを判断する。ここで、Yesの場合には、ステップS775Aに進む。一方、Noの場合には、ステップS773に進む。
さらに、ステップS773では、現在発生している濃度レベル信号LVが、LV=2であるかどうかを判断する。ここで、Yesの場合はステップS776Aに進む。一方、NoつまりLV=3である場合には、ステップS77CAに進む。このようにすることで、現在いずれの濃度レベルにあるか、つまりどの濃度レベル信号LVを発生しているかが場合分けできる。
【0202】
ステップS774Aでは、差分値D(n)が第1レベルアップしきい値Tu1より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tu1のときは、最も低い濃度レベルから上の濃度レベルに変更する必要がないので、サブルーチンを抜けてメインルーチンに戻る。一方、YesつまりD(n)>Tu1のときは、ステップS777に進み、濃度レベル信号LVを1ランク上のLV=1とし、その後メインルーチンに戻る。具体的にはPWM信号のデューティ比を15%から30%に変更し、メインルーチンに戻る。
また、ステップS775Aでは、差分値D(n)が第2レベルアップしきい値Tu2より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tu2のときは、ステップS77AAに進む。一方、YesつまりD(n)>Tu2のときは、ステップS778に進み、濃度レベル信号LVを現在より1ランク上のLV=2とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を30%から50%に変更し、メインルーチンに戻る。
さらに、ステップS776Aでは、差分値D(n)が第3レベルアップしきい値Tu3より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tu3のときは、ステップS77BAに進む。一方、YesつまりD(n)>Tu3のときは、ステップS779に進み、濃度レベル信号LVを現在より1ランク上のLV=3とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を50%から70%に変更し、メインルーチンに戻る。
このように、ステップ774A,775A,776Aでは、レベル間しきい値T1,T2,T3に代えて、レベルアップしきい値Tu1,Tu2,Tu3と比較する。
【0203】
ステップS77AAでは、差分値D(n)が第1レベルダウンしきい値Td1より小さいかどうかを判断する。ここで、NoつまりD(n)≧Td1のときは、現在の濃度レベルからランクを下げる必要がないので、サブルーチンを抜けてメインルーチンに戻る。一方、YesつまりD(n)<Td1のときは、ステップS77Dに進み、濃度レベル信号LVを1ランク下のLV=0とし、その後メインルーチンに戻る。具体的にはPWM信号のデューティ比を30%から15%に変更し、メインルーチンに戻る。
また、ステップS77BAでは、差分値D(n)が第2レベルダウンしきい値Td2より小さいかどうかを判断する。ここで、NoつまりD(n)≧Td2のときは、現在の濃度レベルからランクを下げる必要がないのでメインルーチンに戻る。一方、YesつまりD(n)<Td2のときは、ステップS77Eに進み、濃度レベル信号LVを現在より1ランク下のLV=1とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を50%から30%に変更し、メインルーチンに戻る。
さらに、ステップS77CAでは、差分値D(n)が第3レベルダウンしきい値Td3より小さいかどうかを判断する。ここで、NoつまりD(n)≧Td3のときは、現在の濃度レベルからランクを下げる必要がないのでメインルーチンに戻る。一方、YesつまりD(n)<Td3のときは、ステップS77Fに進み、濃度レベル信号LVを現在より1ランク下のLV=2とし、メインルーチンに戻る。具体的にはPWM信号のデューティ比を70%から50%に変更し、メインルーチンに戻る。
このように、ステップ77AA,77BA,77CAでは、レベル間しきい値T1,T2,T3に代えて、レベルダウンしきい値Td1,Td2,Td3と比較する。
【0204】
その後は、ステップS78で、ステップS74,S75で算出した前回のベース値B(n)を記憶し、ステップS79でA/Dサンプリングタイムのタイムアップを待った上で、ステップS72に戻る(図11参照)。
【0205】
このようにすると、実施形態2と同様に、特定ガスの濃度が上昇して差分値D(n)が大きくなり、第1レベル間しきい値Tu1を超えると、比較的小さな第2係数k2を用いてベース値B(n)が算出される。従って、センサ出力値S(n)に対してベース値B(n)の変化が緩慢になり、算出されるベース値B(n)は、比較的特定ガスの濃度が低かった過去の状態を保持していると考えられる。このベース値B(n)を基準として差分値D(n)を算出することで特定ガスの濃度変化を判別することができる。
また、本変形形態7でも、特定ガスの濃度を複数の濃度レベルに分けて出力することができ、電子制御アセンブリ20において、全開や全閉だけでなく、半開などガス濃度に応じて適切なフラップ34の開閉を行わせることができる。
【0206】
さらに、上記のように、濃度レベルを1ランク上げるときのレベルアップしきい値Tu1等と濃度レベルを1ランク下げるときのレベルダウンしきい値Td1等とを異ならせているので、差分値D(n)がしきい値付近の値となったときにわずかな変動で濃度レベルが変わる問題、つまり濃度レベル信号LVが頻繁に変わるチャタリングを防止することができて好ましい。
【0207】
次いで、NOxの濃度を上昇させ、その後低下させたときに、本変形形態7、即ち、図11及び図18に示すフローチャートに従った制御により得られるセンサ出力値S(n)、ベース値B(n)、差分値D(n)及び濃度レベル信号LVの変化の例を図19に示す。なお本例は、実施形態2において説明したのと同じデータを用い、図18に示すフローチャートに従うデータ処理を行ったものである。従って、第1係数k1=1/16、第2係数k2=1/2048である。また、第1レベルアップしきい値Tu1=0.02V、第2レベルアップしきい値Tu2=0.3V、第3レベルアップしきい値Tu3=0.7V、第1レベルダインしきい値Tu1=0V、第2レベルダウンしきい値Tu2=0.2V、第3レベルダウンしきい値Tu3=0.6Vとした。
【0208】
図13に示す実施形態2の濃度レベル信号LVにおいて、時刻約150秒においてチャタリングが生じたのに対し、図19の例ではチャタリングが生じていない。このように、レベルアップしきい値とレベルダウンしきい値とを用いてヒステリシスを持たせたので、本変形形態7によれば、チャタリングを防止できることが判る。
【0209】
なお、上記変形形態7では、実施形態2のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100において、処理フローのうち、ステップS77のサブルーチンの内容を図18に示すものとした。しかし、同様にして、前記変形形態4のガス検出装置40及び、これを含む車両用オートベンチレーションシステム140において、ステップS77のサブルーチンの内容を図18に示すものを適用した変形形態8としてもよい。この変形形態8でも、濃度レベルを1ランク上げるときのレベルアップしきい値Tu1等と濃度レベルを1ランク下げるときのレベルダウンしきい値Td1等とを異ならせているので、差分値D(n)がしきい値付近の値となったときにわずかな変動で濃度レベルが変わる問題、つまり濃度レベル信号LVが頻繁に変わるチャタリングを防止することができて好ましい。
【0210】
同様に、COの濃度を上昇させ、その後低下させたときに、本変形形態8、即ち、図11及び図18に示すフローチャートに従った制御により得られるセンサ出力値S(n)、ベース値B(n)、差分値D(n)及び濃度レベル信号LVの変化の例を図20に示す。なお本例は、変形形態4において説明したのと同じデータを用い、図18に示すフローチャートに従うデータ処理を行ったものである。従って、第3係数k3=1/16、第4係数k4=1/1920である。また、第1レベルアップしきい値Tu1=0.02V、第2レベルアップしきい値Tu2=0.5V、第3レベルアップしきい値Tu3=1.1V、第1レベルダインしきい値Tu1=0V、第2レベルダウンしきい値Tu2=0.4V、第3レベルダウンしきい値Tu3=1.0Vとした。
【0211】
図16に示す変形形態4の濃度レベル信号LVにおいて、時刻約180〜200秒においてチャタリングが生じたのに対し、図20の例ではチャタリングが生じていない。このように、レベルアップしきい値とレベルダウンしきい値とを用いてヒステリシスを持たせたので、本変形形態8においても、チャタリングを防止できることが判る。
【0212】
(変形形態9,10)
上記変形形態5や変形形態6でも、濃度レベルを上げるとき際のレベル間しきい値と濃度レベルを下げるときのレベル間しきい値とに、同じレベル間しきい値T1,T2,T3を用いていた(図17参照)。これに対し、上記変形形態7,8で行ったのと同様に、各々のレベル間しきい値について、ヒステリシスを持たせるとよい。つまりレベルを上げるときのしきい値としてレベルアップしきい値と、これより小さな値レベルを下げるときのしきい値として、対応するレベルアップしきい値より小さな値のレベルダウンしきい値をそれぞれ選択することが好ましい。
即ち、本変形形態9では、実施形態2のガス検出装置10及びこれを含む車両用オートベンチレーションシステム100において、処理フローのうち、図21に示すように、ステップS77のサブルーチンの内容のうち、各レベル間しきい値T1,T2,T3をそれぞれレベルアップしきい値Tu1,Tu2,Tu3、あるいはレベルダウンしきい値Td1,Td2,Td3に代えたものである。そこで、ステップS77のサブルーチンの内容を図21を参照して説明する。
なお、各レベルアップしきい値Tu1,Tu2,Tu3、及びレベルダウンしきい値Td1,Td2,Td3は、それぞれTu1<Tu2<Tu3、Td1<Td2<Td3、Td1<Tu1、Td2<Tu2、Td3<Tu3、の関係となっている。
【0213】
実施形態2や変形形態5と同様に、ステップS76で差分値D(n)を算出して、ステップS77に進む(図11参照)と、まず、ステップS91で現在発生している濃度レベル信号LVが、LV=0であるかどうかを判断する。ここで、Yesの場合には、ステップS94Aに進む。一方、Noの場合には、ステップS92に進む。
ステップS92では、現在発生している濃度レベル信号LVが、LV=1であるかどうかを判断する。ここで、YesつまりLV=1の場合には、ステップS95Aに進む。一方、Noの場合には、ステップS93に進む。
さらに、ステップS93では、現在発生している濃度レベル信号LVが、LV=2であるかどうかを判断する。ここで、Yesの場合には、ステップS96Aに進む。一方、NoつまりLV=3である場合には、ステップS97Aに進む。
このようにすることで、変形形態4と同様に、現在いずれの濃度レベルにあるか、つまりどの濃度レベル信号LVを発生しているかが場合分けできたことになる。
【0214】
次いで、ステップS94Aでは、差分値D(n)が第1レベルアップしきい値Tu1より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tu1のときは、ステップS9Aに進む。一方、YesつまりD(n)>Tu1のときは、ステップS95Aに進む。
さらに、ステップS95Aでは、差分値D(n)が第2レベルアップしきい値Tu2より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tu2のときは、ステップS99Aに進む。一方、YesつまりD(n)>Tu2のときは、ステップS96Aに進む。
さらに、ステップS96Aでは、差分値D(n)が第3レベルアップしきい値Tu3より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tu3のときは、ステップS98Aに進む。一方、YesつまりD(n)>Tu3のときは、ステップS9Eに進む。
【0215】
一方、ステップS97Aでは、差分値D(n)が第3レベルダウンしきい値Td3より小さいかどうかを判断する。ここで、NoつまりD(n)≧Td3のときは、ステップS9Eに進む。一方、YesつまりD(n)<Td3のときは、ステップS98Aに進む。
さらに、ステップS98Aでは、差分値D(n)が第2レベルダウンしきい値Td2より小さいかどうかを判断する。ここで、NoつまりD(n)≧Td2のときは、ステップS9Dに進む。一方、YesつまりD(n)<Td2のときは、ステップS99Aに進む。
さらに、ステップS99Aでは、差分値D(n)が第1レベルダウンしきい値Td1より小さいかどうかを判断する。ここで、NoつまりD(n)≧Td1のときは、ステップS9Bに進む。一方、YesつまりD(n)<Td13のときは、ステップS9Aに進む。
これにより、本変形形態9でも、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けができる。
【0216】
そこで、ステップS9Aでは、濃度レベル信号をLV=0とする、あるいはLV=0を維持する。また、ステップS9Bでは、濃度レベル信号をLV=1とする、あるいはLV=1を維持する。ステップS9Dでは、濃度レベル信号をLV=2とする、あるいはLV=2を維持する。ステップS9Eでは、濃度レベル信号をLV=3とする、あるいはLV=3を維持する。
以上により、本実施形態9でも、変形形態5と同様に、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けを行って、差分値D(n)に応じた濃度レベル信号を発生させることができるようになる。従って、差分値D(n)が急激に上昇あるいは低下した場合には、濃度レベル信号LVが一度に複数ランク分上下することもあり得ることになる。
さらに、本変形形態9では、レベルアップしきい値及びレベルダウンしきい値を用いたので、濃度レベル変更の際、濃度レベル信号のチャタリングを防止することができる。
【0217】
なお、上記変形形態9では、変形形態5,即ち実施形態2のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100において、処理フローのうち、ステップS77のサブルーチンの内容を図21に示すものとした。しかし、同様にして、前記変形形態6,即ち変形形態4のガス検出装置40及び、これを含む車両用オートベンチレーションシステム140において、ステップS77のサブルーチンの内容を図21に示すものを適用した変形形態10としてもよい。この変形形態10でも、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けを行って、差分値D(n)に応じた濃度レベル信号を発生させることができるようになる。従って、差分値D(n)が急激に上昇あるいは低下した場合には、濃度レベル信号LVが一度に複数ランク分上下することもあり得ることになる。
しかも、本変形形態10では、レベルアップしきい値及びレベルダウンしきい値を用いたので、濃度レベル変更の際、濃度レベル信号のチャタリングを防止することができる。
【0218】
(実施形態3)
次いで、第3の実施形態について説明する。本実施形態3も、上記実施形態1,2と同様のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100を有する(図1参照)。即ち、NOxなどの酸化性ガス成分の濃度変化を検出し、これに基づいてフラップ34を開閉するシステムである。
但し、マイクロコンピュータ16における処理フローが異なる。即ち、前述の実施形態1,2等では、濃度低信号発生中の場合と濃度高信号発生中の場合で異なる算出手法を用いたが、その具体的手法としては、同様なベース値B(n)の算出式を用いながらも、その係数を異ならせることによって算出手法を異ならせた。
これに対し、本実施形態3では、濃度低信号発生中には微分値を用いてガス濃度の変化を検出する。一方、濃度高信号発生中には、ベース値B(n)を用いてガス濃度の変化を検出する。そこで、本実施形態3では、上記実施形態1,2と異なる部分を中心に説明し、同様な部分については説明を省略あるいは簡略化する。
【0219】
本実施形態3のマイクロコンピュータ16における制御を、図22のフローチャートに従って説明する。実施形態1と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子11が活性状態となるのを待って、ステップS101で初期設定を行う。初期設定として、濃度信号LVとして濃度低信号を発生させておく、具体的には濃度信号LVをローレベルとしておく。
【0220】
その後、ステップS102に進み、センサ出力電位Vsを0.4秒ごとにA/D変換したセンサ出力値S(n)を順次読み込む。次いで、ステップS103において、現時点で濃度信号LVがハイレベル、つまり特定ガス(本実施形態では酸化性ガス)の濃度が高いレベルにあることを示す濃度高信号を発生しているかどうかを判断する。ここで、Noつまり特定ガスの濃度が低く、濃度信号LVがローレベルであり濃度低信号を発生していれば、ステップS104に進む。一方、Yes、つまり特定ガスの濃度が高く濃度信号LVがハイレベルであり濃度高信号を発生していれば、ステップS108に進む。
【0221】
ステップS104では、実施形態1等と異なり、微分値V(n)を算出する。具体的には、現在のセンサ出力値S(n)と1サイクル前(0.4秒前)のセンサ出力値S(n−1)を用いて、以下の式V(n)=S(n)−S(n−1)によって算出し、ステップS105に進む。
この微分値V(n)は、現在と1サイクル前のセンサ出力値S(n)の変化を示している。従って、酸化性ガスの濃度の上昇によって、センサ出力値S(n)が大きくなると、その変化は直ちにこの微分値V(n)に現れる。
【0222】
次いで、ステップS105で、ベース値B(n)の値を調整する。このステップS105におけるベース値の調整については、後述する。その後、ステップS106で微分値V(n)と微分しきい値Tvとを比較し、微分値V(n)が微分しきい値Tvよりも大きいとき(Yes)には、ステップS107に進み、現在発生している濃度低信号に代えて、濃度高信号を発生し、ステップS112に進む。具体的には、濃度信号LVをローレベルからハイレベルに切り替える。一方、微分値V(n)の大きさが微分しきい値Tv以下の場合(No)には、ステップS112に進む。
【0223】
一方、ステップS108では、実施形態1と同様の式(下記参照)を用いて、前回のベース値B(n−1)とセンサ出力値S(n)とからベース値B(n)を算出してステップS109に進む。B(n)=B(n−1)+k{S(n)−B(n−1)}、ここで、係数kは、0<k<1である。
前記したように、ベース値B(n)は、センサ出力値S(n)に追従しつつもセンサ出力値より緩慢に変化する性質を有している。しかも、使用する係数kの大きさによってセンサ出力値S(n)に対する追従の程度が異なり、比較的大きな係数kを用いた場合には、ベース値B(n)はセンサ出力値S(n)に若干遅れながらも比較的迅速に追従する。一方、比較的小さな係数kを用いた場合には、ベース値B(n)の変化が緩慢になり、センサ出力値に対してゆっくり追従する。
【0224】
従って、酸化性ガス濃度の上昇によって、センサ出力値S(n)が大きくなる期間においては、ベース値B(n)はセンサ出力値S(n)ほどには上昇しない。つまり、算出されたベース値B(n)は、その直前ベース値B(n−1)からあまり変化しないことになる。従って、遡れば、ステップS107で濃度低信号から濃度高信号に切り替えて発生した時点のベース値の影響が反映していることになる。
【0225】
ここで、ステップS105では、ベース値B(n)として、現在のセンサ出力値S(n)を代入する調整を行っている。従って、濃度低信号から濃度高信号への切替(ステップS107)直前のベース値は、その時点(切り替え直前)でのセンサ出力値に等しくされている。このため、それ以降にステップS108で算出されたベース値は、切り替え直前のセンサ出力値から徐々に変化した値となる。このようにして、このステップS108で算出されたベース値B(n)は、切り替え直前のセンサ出力値からセンサ出力値の変化に対して緩慢に追従した値となる。
【0226】
ステップS109では、差分値D(n)をD(n)=S(n)−B(n)の式に従って算出し、ステップS110でPIしきい値Tpと比較する。差分値がPIしきい値Tpより小さくなった場合、即ちD(n)<Tpとなった場合(Yes)にはステップS111に進み、現在発生している濃度高信号に代えて、濃度低信号を発生し、ステップS112に進む。具体的には、濃度信号LVをハイレベルからローレベルに切り替える。一方、差分値D(n)の大きさがPIしきい値Tp以上の場合(No)には、ステップS112に進む。
このように、差分値D(n)がPIしきい値Tpよりも小さくなった場合、つまり、センサ出力値とベース値との差が、PIしきい値Tpより小さくなった場合には、酸化性ガスの濃度が低下したと判断して、濃度高信号から濃度低信号に切り替える。
【0227】
その後、ステップS107,S111のいずれからも、ステップS112に進み、ステップS105,S108で算出した前回のベース値B(n)を記憶し、ステップS113でA/Dサンプリングタイムのタイムアップを待った上で、ステップS102に戻る。
このようにして、酸化性ガスの濃度が大きく上昇すると、直ちに微分値V(n)が微分しきい値Tvより大きくなり、濃度上昇の早い段階で、濃度高信号を発生する。その後は、ステップS103でYesと判断され、ステップS108に進むことで、微分値V(n)に代えて、ベース値B(n)が算出される。
【0228】
逆に、酸化性ガスの濃度が低下すると、差分値D(n)が小さくなり、ステップS111で濃度低信号を発生する。その後は、ステップS103でNoと判断され、ステップS104に進むことで、再び微分値V(n)が算出される。従って、再び酸化性ガスの濃度が上昇しても、ガス濃度上昇の早い段階でこれを捉えて、濃度高信号を発生することができる。
【0229】
次いで、上記フローチャートに従って動作するガス検出装置10及び車両用オートベンチレーションシステム100を、実際の道路を走行した場合におけるガス濃度変化データに適用した場合の、センサ出力値S(n)、ベース値B(n)、差分値D(n)、微分値V(n)、及び濃度信号LVの変化の例を、図23のグラフに示す。なお、センサ出力値S(n)、微分値V(n)、ベース値B(n)、差分値D(n)はいずれもマイクロコンピュータ16内で処理される数値であるため、センサ出力値、ベース値、差分値の大きさを示す図中左端及び右端の縦軸は、任意の数値単位と考えて良い。また、見やすくするため、微分値V(n)は正の値のみ表示すると共に、図中右端の縦軸に示すように、目盛り毎の単位をセンサ出力値等に比して大きくしてある。最下段に示す濃度信号LVは、ハイ/ローの2段階に切り替えられ、図中上方がハイレベルに対応している。また、本実施形態では、係数k=1/64、微分しきい値Tv=100、PIしきい値Tp=0とした場合について説明する。
【0230】
時刻0〜785秒の期間においては、一部(330〜345秒、及び635〜680秒)を除き、濃度信号LVはローレベル、つまり濃度低信号を発生している。この期間は、ステップS105においてベース値B(n)=S(n)とされているので、センサ出力値とベース値とは一致して変化している。
その後、時刻約785秒付近において、センサ出力値が急激に(階段状)に上昇した。すると、直ちに微分値V(n)が大きくなって微分しきい値Tvを超えたため、濃度低信号に代えて濃度高信号が発生され(即ち濃度信号がハイレベルとされ)、ベース値B(n)がステップS108によって算出されるようになる。
その後、時刻約890秒でセンサ出力値が低下し始めると、差分値も減少し、時刻約905秒で差分値がPIしきい値Tp=0以下となる。従って、ステップS111において、濃度高信号に代えて濃度低信号が発生される。
【0231】
時刻約1155〜1260秒及び、時刻約1285〜1345秒においても同様な動作が確認できる。
さらに、時刻約785秒、1155秒、1285秒付近におけるセンサ出力値とベース値の関係から理解できるように、本実施形態では、濃度低信号発生時には、微分値V(n)によってセンサ出力値の上昇、即ちガス濃度の上昇を検知しているので、上昇のごく初期に濃度低信号に代えて濃度高信号を発生することが可能となっていることが判る。
なお、上記グラフでは、ベース値を算出するに当たって係数kとしてk=1/64を使用したが、より小さな係数(例えば1/256など)を用いれば、センサ出力値に対して、ベース値がより緩慢に追従するため、センサ出力値がさらに低くなった時点で濃度低信号へ切り替えるようにすることができる。
【0232】
上記制御によっても、車両用オートベンチレーションシステム100(図1参照)において、実施形態1と同様(図2参照)、得られた濃度信号LV(濃度低信号及び濃度高信号)を用いて、フラップ駆動回路21でフラップ34の開閉を指示し、外気導入と内気循環(全開/全閉)を制御することができる。
【0233】
(変形形態11)
次いで、上記実施形態3の変形形態について説明する。本変形形態11のガス検出装置40及び、これを含む車両用オートベンチレーションシステム140は、前記した変形形態1とほぼ同様の構成を有する(図6参照)。従って、実施形態3と、ほぼ同様な処理フローによって処理されるが、異なる点をいくつか有する。即ち、上記実施形態3ではガスセンサ素子11として、酸化性ガス成分の濃度上昇と共にセンサ抵抗値Rsが上昇するタイプのガスセンサ素子を用いた。これに対し、本変形形態11では、還元性ガス成分の濃度上昇と共にセンサ抵抗値Rsが低下するタイプのガスセンサ素子41を用いる点で異なる。
またこれに伴い、本変形形態11のセンサ抵抗値変換回路44では、還元性ガスの濃度が上昇すると、センサ抵抗値Rsが低下し、センサ出力電位Vsが低下するように構成されている点でも異なる。
さらに、マイクロコンピュータ16における処理のフローも若干異なる。
従って、変形形態1や実施形態3と異なる部分を中心に説明し、同様な部分については説明を省略あるいは簡略化する。
【0234】
本変形形態11のマイクロコンピュータ16における制御を、図24のフローチャートに従って説明する。実施形態3と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子41が活性状態となるのを待って、ステップS201で初期設定を行う。初期設定として、濃度信号LVとして濃度低信号を発生させておく、具体的には濃度信号LVをローレベルとしておく。
【0235】
その後、ステップS202に進み、センサ出力電位Vsを0.4秒ごとにセンサ出力値S(n)を順次読み込む。次いで、ステップS203において、濃度高信号を発生しているかどうかを判断する。ここで、Noつまり濃度信号LVがローレベルの場合には、ステップS104に進む。一方、Yesつまり濃度信号LVがハイレベルの場合には、ステップS108に進む。
【0236】
ステップS204では、実施形態3と同様に、微分値V(n)を算出する。但し、実施形態3のステップS104と異なり(図22参照)、1サイクル前のセンサ出力値S(n−1)から現在のセンサ出力値S(n)を差し引いて、つまり以下の式V(n)=S(n−1)−S(n)によって算出し、ステップS205に進む。このようにして微分値V(n)を算出するのは、ガスの濃度が上昇したときに微分値が正の値となるようにして、微分値を扱いやすくするためである。この微分値V(n)は、1サイクル前と現在のセンサ出力値S(n)の変化を示している。従って、還元性ガスの濃度の上昇によって、センサ出力値S(n)が小さくなると、その変化は直ちにこの微分値V(n)に現れる。
【0237】
次いで、ステップS205で、ベース値B(n)の値を調整する。このステップS205におけるベース値の調整については、後述する。その後、ステップS206で微分値V(n)と微分しきい値Tvと比較し、微分値V(n)が微分しきい値Tvよりも大きいとき(Yes)には、ステップS207に進み、現在発生している濃度低信号に代えて、濃度高信号を発生し、ステップS212に進む。具体的には、濃度信号LVをローレベルからハイレベルに切り替える。一方、微分値V(n)の大きさが微分しきい値Tv以下の場合(No)には、ステップ212に進む。
【0238】
一方、ステップS208では、変形形態1と同様の式(下記参照)を用いて、ベース値B(n)を算出してステップS209に進む。B(n)=B(n−1)+k{S(n)−B(n−1)}、ここで、係数kは、0<k<1である。
ベース値B(n)は、センサ出力値S(n)に追従しつつもセンサ出力値より緩慢に変化する。
【0239】
従って、還元性ガスの濃度の上昇によって、センサ出力値S(n)が小さくなる期間においては、ベース値B(n)はセンサ出力値S(n)ほどには低下しない。従って、遡れば、ステップS207で濃度低信号から濃度高信号に切り替えて発生した時点のベース値の影響が反映していることになる。
【0240】
ここで、ステップS205では、ベース値B(n)として、現在のセンサ出力値S(n)を代入する調整を行っているので、それ以降にステップS208で算出されたベース値は、切り替え直前のセンサ出力値から徐々に変化した値となる。このように、このステップS208で算出されたベース値B(n)は、切り替え直前のセンサ出力値からセンサ出力値の変化に対して緩慢に追従した値となる。
【0241】
ステップS209では、実施形態3と同じく差分値D(n)を求める。但し、D(n)=B(n)−S(n)の式に従って算出する。これも、差分値を正の値として扱いやすくするためである。その後、ステップS210でPIしきい値Tpと比較する。D(n)<Tpとなった場合(Yes)にはステップS211に進み、現在発生している濃度高信号に代えて、濃度低信号を発生し、ステップS212に進む。一方、D(n)≧Tpの場合(No)には、ステップS212に進む。
このようにして、差分値D(n)がPIしきい値Tpよりも小さくなった場合には、還元性ガスの濃度が低下したと判断して、濃度高信号から濃度低信号に切り替える。差分値D(n)がPIしきい値Tpより小さくなったと言うことは、還元性ガスの濃度が低下したことを示していると考えられるからである。
【0242】
その後、ステップS212において、ステップS205,S208で算出した前回のベース値B(n)を記憶し、ステップS213でA/Dサンプリングタイムのタイムアップを待った上で、ステップS202に戻る。
このようにして、還元性ガスの濃度が大きく上昇すると、直ちに微分値V(n)が微分しきい値Tvより大きくなり、濃度上昇の早い段階で濃度高信号を発生する。その後は、ステップS203でYesと判断され、ステップS208に進むことで、微分値V(n)に代えて、ベース値B(n)が算出される。
【0243】
逆に、還元性ガスの濃度が低下すると、差分値D(n)が小さくなり、ステップS211で濃度低信号を発生する。その後は、ステップS203でNoと判断され、ステップS204に進むことで、再び微分値V(n)が算出される。従って、再び還元性ガスの濃度が上昇しても、ガス濃度上昇の早い段階でこれを捉えて、濃度高信号を発生することができる。
【0244】
(実施形態4)
次いで、第4の実施形態について説明する。本実施形態4も、上記実施形態1,3と同様のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100を有する。即ち、酸化性ガス成分の濃度変化を検出し、これに基づいてフラップ34を開閉するシステムである。また、ガス濃度の低い期間は微分値を算出し、ガス濃度が高い期間はベース値及び差分値を算出する点は、実施形態3と同様である。
但し、本実施形態4は、マイクロコンピュータ16における処理フローが異なり、濃度高(ハイ)及び濃度低(ロー)の2つのレベルの濃度信号ではなく、実施形態2と同様に、3つ以上濃度レベル、具体的には4つの濃度レベルに対応する4種の濃度レベル信号LV(LV=0,1,2,3)を有する。なお、実施形態2と異なり、これらの濃度レベルを分ける3つのレベル間しきい値Tp1,Tp2,Tp3(Tp1<Tp2<Tp3)のほか、LV=0の状態からガス濃度が上昇した際、微分値と比較するしきい値として、微分しきい値Tvを有する。従って、実施形態1,3と異なる部分を中心に説明し、同様な部分については説明を省略あるいは簡略化する。
【0245】
本実施形態4のマイクロコンピュータ16における制御を、図25、図26のフローチャートに従って説明する。実施形態1,3と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子11が活性状態となるのを待って、ステップS301で初期設定を行う。初期設定として、濃度レベル信号LVとしてLV=0に相当する信号を発生させる。
具体的には、実施形態2と同じく、出力端子18からの出力信号としてPWM信号を出力し、デューティ比を濃度レベル信号に対応させ、LV=0に対応してデューティ比15%のPWM信号を発生させる。同様に、LV=1に相当する信号としてデューティ比30%、LV=2に相当する信号としてデューティ比50%、LV=3に相当する信号としてデューティ比70%のPWM信号を発生させる。
【0246】
その後、ステップS302に進み、センサ出力電位Vsを0.4秒ごとにA/D変換してセンサ出力値S(n)を順次読み込む。次いで、ステップS303において、現時点で濃度レベル信号LV=0、つまり最も濃度が低いレベルを示す信号を発生しているかどうかを判断する。ここで、NoつまりLV=1,2,3のいずれかであれば、ステップS308に進む。一方、YesつまりLV=0の信号を発生していれば、ステップS304に進む。
【0247】
ステップS304では、実施形態3と同様にして微分値V(n)を算出し、ステップS305に進む。ステップS305では、実施形態3と同様にして、ベース値B(n)の値を調整する。このステップS305におけるベース値の調整については、実施形態3と同様である。その後、ステップS306で微分値V(n)と微分しきい値Tvと比較し、微分値V(n)が微分しきい値Tvよりも大きいとき(Yes)には、ステップS307に進み、現在発生しているLV=0の濃度レベル信号に代えて、LV=1の濃度レベル信号を発生し、ステップS311に進む。一方、微分値V(n)の大きさが微分しきい値Tv以下の場合(No)には、ステップS311に進む。
これにより、センサ出力値S(n)が1サイクルの間に大きく増加して、微分値V(n)が微分しきい値Tvよりも大きくなった場合には、素早くこれを捉えて、濃度レベル信号をLV=0からLV=1に切り替え、ガス濃度が上昇してことを知らせることができる。
【0248】
一方、ステップS308でも、実施形態3と同じくベース値B(n)を算出し、ステップS309に進む。
前記したように、ベース値B(n)は、センサ出力値S(n)に追従しつつもセンサ出力値より緩慢に変化する性質を有している。
ステップS309では、差分値D(n)をD(n)=S(n)−B(n)の式に従って算出し、ステップS310で示すサブルーチンにおいて濃度レベル信号LVを切り替えるかどうかの判断に用いる。
【0249】
このステップS310のサブルーチンの内容を図26に示す。このサブルーチンS310は、ステップS91及びS94に対応するステップが無いことを除き、実施形態2におけるサブルーチンS77と同様である。
即ち、このステップS310に進むと、まず、ステップS321で現在発生している濃度レベル信号LVが、2番目に低い濃度レベルに対応するLV=1であるかどうかを判断する。ここで、YesつまりLV=1の場合には、ステップS323に進む。一方、NoつまりLV=2,3のいずれかである場合には、ステップS322に進む。
ステップS322では、現在発生している濃度レベル信号LVが、2番目に高い濃度レベルに対応するLV=2であるかどうかを判断する。ここで、YesつまりLV=2の場合には、ステップS324に進む。一方、Noつまり最も高い濃度レベルに対応するLV=3である場合には、ステップS325に進む。
このようにすることで、現在いずれの濃度レベル信号LVを発生しているかのよって場合分けできたことになる。
【0250】
ステップS323では、差分値D(n)が第2レベル間しきい値Tp2より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tp2のときは、ステップS327に進む。一方、YesつまりD(n)>Tp2のときは、ステップS324に進む。
さらに、ステップS324では、差分値D(n)が第3レベル間しきい値Tp3より大きいかどうかを判断する。ここで、NoつまりD(n)≦Tp3のときは、ステップS326に進む。一方、YesつまりD(n)>Tp3のときは、ステップS331に進む。
【0251】
一方、ステップS325では、差分値D(n)が第3レベル間しきい値Tp3より小さいかどうかを判断する。ここで、NoつまりD(n)≧Tp3のときは、ステップS331に進む。一方、YesつまりD(n)<Tp3のときは、ステップS326に進む。
さらに、ステップS326では、差分値D(n)が第2レベル間しきい値Tp2より小さいかどうかを判断する。ここで、NoつまりD(n)≧Tp2のときは、ステップS330に進む。一方、YesつまりD(n)<Tp2のときは、ステップS327に進む。
さらに、ステップS327では、差分値D(n)が第1レベル間しきい値Tp1より小さいかどうかを判断する。ここで、NoつまりD(n)≧Tp1のときは、ステップS329に進む。一方、YesつまりD(n)<Tp3のときは、ステップS328に進む。
これにより、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けができる。
【0252】
そこで、ステップS328では、濃度レベル信号をLV=0とする。また、ステップS329では、濃度レベル信号をLV=1とする、あるいはLV=1を維持する。ステップS330では、濃度レベル信号をLV=2とする、あるいはLV=2を維持する。ステップS331では、濃度レベル信号をLV=3とする、あるいはLV=3を維持する。
以上により、現在の濃度レベルに拘わらず、差分値D(n)に応じた場合分けを行って、差分値D(n)に応じた濃度レベル信号を発生させることができるようになる。従って、差分値D(n)が急激に上昇あるいは低下した場合には、濃度レベル信号LVが一度に複数ランク分上下することもあり得ることになる。
さらに、ステップS328で濃度レベル信号をLV=0とした後には、ステップS303でYesと判断され、ステップS304に進むことで、再び微分値V(n)が算出される。従って、再び還元性ガスの濃度が上昇しても、ガス濃度上昇の早い段階でこれを捉えて、濃度レベル信号LV=1を発生することができる。
【0253】
次いで、上記フローチャートに従って動作するガス検出装置10及び車両用オートベンチレーションシステム100を、実際の道路を走行した場合におけるガス濃度変化データに適用した場合の、センサ出力値S(n)、ベース値B(n)、差分値D(n)、微分値V(n)、及び濃度レベル信号LVの変化の例を、図27のグラフに示す。
なお、このグラフに使用するセンサ出力値のデータとしては、図23で示したガス濃度変化データと同一のものを使用した。また、ベース値の算出のための係数kも同様の値を用いた。従って、センサ出力値の他、微分値、ベース値、差分値はいずれも、図23に示したものと同一であり、濃度レベル信号のみが異なっている。即ち、本実施形態では、濃度レベル信号として、LV=0,1,2,3の4段階に対応する濃度レベル信号を出力するので、このグラフでも、図中上方ほど高位の濃度レベル信号に対応するように表現している。
また、図21と同様に、センサ出力値、ベース値、差分値の大きさを示す図中左端及び右端の縦軸は、任意の数値単位であり、微分値V(n)は正の値のみ表示すると共に、目盛り毎の単位をセンサ出力値等に比して大きくした。係数k=1/64、微分しきい値Tv=100、第1レベル間しきい値Tp1=0、第2レベル間しきい値Tp2=1000、第3レベル間しきい値Tp3=2000とした。
【0254】
時刻0〜785秒の期間においては、一部(330〜345秒、及び635〜680秒)を除き、濃度レベル信号LVはLV=0に対応するデューティ比15%のPWM信号を発生している。この期間は、ステップS305においてベース値B(n)=S(n)とされているので、センサ出力値とベース値とは一致して変化している。
その後、時刻約785秒付近において、センサ出力値が急激に(階段状)に上昇した。すると、直ちに微分値V(n)が大きくなって微分しきい値Tvを超えたため、濃度レベル信号としてLV=1(ディーティ比30%のPWM信号)が発生され、ベース値B(n)がステップS308によって算出されるようになる。従って、センサ出力値の増加に対しベース値は緩慢に増加するために、両者に差が生じて、差分値が正の値(ここでは約1600)となる。従って、ステップS310のサブルーチンにおいて、濃度レベル信号がLV=2(デューティ比50%)に切り替えられる。その後、このグラフから判るように、差分値の変動に従って、濃度レベル信号がLV=2あるいはLV=1に切り替えられる。
その後、時刻約905秒で差分値が第1レベル間しきい値Tp1=0以下となる。従って、ステップS111において、濃度レベル信号としてLV=0が発生される。
【0255】
時刻約1155〜1260秒及び、時刻約1285〜1345秒においても同様な動作が確認できる。特に、時刻1155秒付近では、差分値が極めて大きく(約4000)なったため、濃度レベル信号としてLV=3(デューティ比70%)を発生する期間も有ったことが判る。
さらに、時刻約785秒、1155秒、1285秒付近におけるセンサ出力値とベース値の関係から理解できるように、本実施形態では、濃度レベル信号としてLV=0の発生時には、微分値V(n)によってセンサ出力値の上昇、即ちガス濃度の上昇を検知しているので、上昇のごく初期に濃度レベル信号として、LV=0に代えてLV=1,2,3のいずれかを発生していることが判る。
なお、上記グラフでは、ベース値を算出するに当たって係数kとしてk=1/64を使用したが、より小さな係数(例えば1/256など)を用いれば、センサ出力値に対して、ベース値がより緩慢に追従するため、センサ出力値がさらに低くなった時点で濃度レベル信号をLV=0に切り替えるようにすることができる。
【0256】
このような制御によっても、車両用オートベンチレーションシステム100(図1参照)において、実施形態2と同様(図14参照)、得られた濃度レベル信号LVを用いて、フラップ駆動回路21でフラップ34の開度を指示し、適切に外気導入や内気循環の制御をすることができる。
【0257】
なお、上記実施形態4では、酸化性ガスに反応するガスセンサ素子11を用いたガス検出装置10及び車両用オートベンチレーションシステム100に適用した。しかし、変形形態4,11と同様、還元性ガスに反応するガスセンサ素子41を用いたガス検出装置40及び車両用オートベンチレーションシステム140において、同様な処理を行っても良い。但し、この場合には、還元性ガスの濃度が上昇すると、センサ出力値が低下するので、前記した変形形態11と同様に、微分値V(n)をV(n)=S(n−1)−S(n)により、また、差分値D(n)をD(n)=B(n)−S(n)により算出する(図24参照)。
【0258】
(実施形態5)
次いで、第5の実施形態について説明する。本実施形態5も、上記実施形態1と同様のガス検出装置10及び、これを含む車両用オートベンチレーションシステム100を有する。即ち、酸化性ガス成分の濃度変化を検出し、これに基づいてフラップ34を開閉するシステムである。
但し、前記実施形態1では、濃度低信号発生期間も濃度高信号発生期間のいずれも、ベース値及び差分値を算出して、ガスの濃度変化を検出した。
これに対し、本実施形態5では、濃度低信号発生期間はm個移動平均値及び差分値(第1差分値)を算出し、濃度高信号発生期間はベース値及び差分値(第2差分値)を算出して、ガスの濃度変化を検出する点で異なる。従って、実施形態1と異なる部分を中心に説明し、同様な部分については説明を省略あるいは簡略化する。なお、本実施形態5ではm=100とした。
【0259】
本実施形態5のマイクロコンピュータ16における制御を、図28のフローチャートに従って説明する。実施形態1と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子11が活性状態となるのを待って、ステップS401で初期設定を行う。この初期設定として、濃度信号LVとして濃度低信号を発生させておく、具体的には濃度信号LVをローレベルとしておく。
その後、ステップS402に進み、センサ出力電位VsをA/D変換したセンサ出力値S(n)を順次読み込む。これをステップS403でn≧m−1、従ってn≧99となるまで繰り返す。次述するように、ステップS406でm個移動平均値(100個移動平均値)を算出するため、予めm−1個(=99個)のセンサ出力値を得ておくのである。なお、ステップS402及びS403で繰り返し取得するセンサ出力値の時間間隔は、後述するセンサ出力値の取得と同じく0.4秒毎とした。但し、ガス検出をより早く可能とするために、ステップS402,S403でのサンプリングタイムを、短く設定しても良い。
【0260】
その後、ステップS404に進み、センサ出力電位Vsを0.4秒ごとにA/D変換したセンサ出力値S(n)を順次読み込む。次いで、ステップS405において、現時点で濃度信号LVがハイレベル、つまり特定ガス(本実施形態では酸化性ガス)の濃度が高いレベルにあることを示す濃度高信号を発生しているかどうかを判断する。ここで、Noつまり濃度信号LVがローレベルであり濃度低信号を発生していれば、ステップS406に進む。一方、Yes、つまり濃度信号LVがハイレベルであり濃度高信号を発生していれば、ステップS411に進む。
【0261】
ステップS406では、実施形態1等と異なり、m個移動平均値(本実施形態5では100個移動平均値)Md(n)を算出する。具体的には、現在から遡ってm個(=100個)のセンサ出力値S(n)〜S(n−99)の平均値を算出する。具体的には、以下の式Md(n)=(S(n)+S(n−1)+…+S(n−99))/100を用いて算出し、ステップS407に進む。
この移動平均値Md(n)は、現在から遡って100個分のセンサ出力値S(n)の平均値であって、平均値であるが故に、センサ出力値の急激な変動には十分追従できない。従って、例えばガスセンサ素子11の温度変化等によるセンサ出力値のドリフトなどにより、ゆっくりとセンサ出力値S(n)が大きくなると、その変化に追従して移動平均値Md(n)も増加する。しかし、センサ出力値が大きく上昇した場合には、移動平均値は十分追従できず、センサ出力値に遅れて上昇する。
【0262】
次いで、ステップS407で、第1差分値D(n)を式D(n)=S(n)−Md(n)に従って算出する。
酸化性ガスの濃度が低いまま変化が少ない場合や、変化が緩やかな場合には、移動平均値Md(n)がセンサ出力値S(n)に追従して変化するので、この第1差分値D(n)はあまり大きな値にならない。
しかし、酸化性ガスの濃度が大きく上昇してセンサ出力値S(n)が大きく上昇すると、移動平均値Md(n)は十分追従できないために第1差分値D(n)が大きくなる。従って、後述するステップS409において、D(n)>Tmと判断され、ステップS410で濃度高信号を発生させることができる。
【0263】
さらに、ステップS408でベース値B(n)の値を調整する。このステップS408におけるベース値の調整は、実施形態3におけるステップS105と同様の理由による。
その後、ステップS409で第1差分値D(n)と移動平均しきい値Tmとを比較し、第1差分値D(n)が移動平均しきい値Tmよりも大きいとき(Yes)には、ステップS410に進み、現在発生している濃度低信号に代えて、濃度高信号を発生し、ステップS416に進む。具体的には、濃度信号LVをローレベルからハイレベルに切り替える。一方、第1差分値D(n)の大きさが移動平均しきい値Tm以下の場合(No)には、てステップS416に進む。
【0264】
これにより、センサ出力値が増加して、第1差分値D(n)が移動平均しきい値Tmよりも大きくなった場合には、これを捉えて、濃度低信号から濃度高信号に切り替えることができる。
なお、本実施形態では、m=100としたが、移動平均のサンプル数mが大きいほど、m個移動平均値Md(n)は変化し難くなり、センサ出力値S(n)に対して緩慢に追従するようになる。逆にサンプル数mを小さくすると、センサ出力値S(n)に対して比較的早く追従するようになる。従って、このガス検出装置10などを使用する環境等を考慮して、サンプル数mの大きさを適宜選択すればよい。
なおこの移動平均値Md(n)は、センサ出力値S(n)の変化に対して、次述するステップS411で算出するベース値B(n)よりも敏感に変化するように、サンプル数mと係数kとの関係を定めると良い。
【0265】
一方、ステップS411では、実施形態1と同様の式(下記参照)を用いて、ベース値B(n)を算出してステップS412に進む。B(n)=B(n−1)+k{S(n)−B(n−1)}、ここで、係数kは、0<k<1である。
ベース値B(n)は、センサ出力値S(n)に追従しつつも、センサ出力値より緩慢に変化する性質を有している。しかも、使用する係数kの大きさによってセンサ出力値S(n)に対する追従の程度を変えることができる。
【0266】
従って、酸化性ガス濃度の上昇によって、センサ出力値S(n)が大きくなる期間においては、ベース値B(n)はセンサ出力値S(n)ほどには上昇しない。つまり、算出されたベース値B(n)は、その直前ベース値B(n−1)からあまり変化しないことになる。従って、遡れば、ステップS410で濃度低信号から濃度高信号に切り替えた時点のベース値の影響が反映していることになる。ここで、ステップS408では、ベース値B(n)として、現在のセンサ出力値S(n)を代入する調整を行っている。従って、濃度低信号から濃度高信号への切替(ステップS410)直前のベース値は、その時点(切り替え直前)でのセンサ出力値に等しい。また、それ以降にステップS411で算出されたベース値は、切り替え直前のセンサ出力値から徐々に変化した値となる。このように、このステップS411で算出されたベース値B(n)は、切り替え直前のセンサ出力値からセンサ出力値の変化に対して緩慢に追従した値となる。
【0267】
ステップS412では、第2差分値D2(n)を式D2(n)=S(n)−B(n)に従って算出する。
さらにステップS413では、過去のセンサ出力値の調整及び記憶を行う。具体的には、99個(=m−1個)分の過去のセンサ出力値S(n−1)〜S(n−99)を現在のセンサ出力値S(n)に書き換える。次述するように、ステップS405で濃度高信号に代えて濃度低信号を発生するようになった場合には、その後にステップS406で移動平均値を算出することとなる。その際に算出される移動平均値Md(n)の値を濃度信号切り替え直前のセンサ出力値に近い値となるようにし、切替時の動作が不安定となるのを防止するためである。
【0268】
次いで、ステップS414で第2差分値D2(n)とPIしきい値Tpとを比較する。D2(n)<Tpとなった場合(Yes)にはステップS415に進み、現在発生している濃度高信号に代えて、濃度低信号を発生し、ステップS416に進む。具体的には、濃度信号LVをハイレベルからローレベルに切り替える。
このように、D2(n)<Tpとなった場合、つまり、センサ出力値とベース値との差が、PIしきい値Tpより小さくなった場合には、酸化性ガスの濃度が低下したと判断して、濃度高信号から濃度低信号に切り替える。
【0269】
濃度高信号を発生中(ステップS405でYes)において、酸化性ガス濃度が低下すると、センサ出力値S(n)の低下に対して、ベース値B(n)が遅れて低下するので、第2差分値D2(n)は徐々に小さくなる。従って、第2差分値D2(n)がPIしきい値Tpより小さくなったということは、酸化性ガスの濃度が低下したことを示していると考えられるからである。
一方、第2差分値D2(n)の大きさがPIしきい値Tp以上の場合(No)には、ステップS416に進み、濃度高信号の発生を維持する。
【0270】
その後、ステップS410,S415のいずれからも、ステップS416に進み、ステップS408,S411で算出した前回のベース値B(n)を記憶し、ステップS417でA/Dサンプリングタイムのタイムアップを待った上で、ステップS404に戻る。
このようにして、酸化性ガスの濃度が上昇すると、センサ出力値S(n)の上昇に遅れて移動平均Md(n)が変化するので、これを用いて算出した第1差分値D(n)が移動平均しきい値Tmより大きくなり、ステップS410で濃度高信号を発生する。その後は、ステップS405でYesと判断され、ステップS411に進むことで、移動平均値Md(n)に代えて、ベース値B(n)が算出される。
【0271】
その後、酸化性ガスの濃度が低下すると、第2差分値D2(n)が小さくなり、ステップS414で濃度低信号を発生する。その後は、ステップS405でNoと判断され、ステップS406に進むことで、再び移動平均値Md(n)が算出される。従って、再び酸化性ガスの濃度が上昇しても、これを捉えて濃度高信号を発生することができる。
【0272】
上記制御によっても、車両用オートベンチレーションシステム100(図1参照)において、実施形態1と同様(図2参照)、得られた濃度信号LV(濃度低信号及び濃度高信号)を用いて、フラップ駆動回路21でフラップ34の開閉を指示し、外気導入と内気循環(全開/全閉)を制御することができる。
【0273】
(変形形態12)
次いで、上記実施形態5の変形形態について説明する。本変形形態12のガス検出装置40及び、これを含む車両用オートベンチレーションシステム140は、前記した変形形態1とほぼ同様の構成を有する(図6参照)。従って、実施形態5と、ほぼ同様な処理フローによって処理されるが、異なる点をいくつか有する。即ち、上記実施形態5ではガスセンサ素子11として、酸化性ガス成分の濃度上昇と共にセンサ抵抗値Rsが上昇するタイプのガスセンサ素子を用いた。これに対し、本変形形態12では、還元性ガス成分の濃度上昇と共にセンサ抵抗値Rsが低下するタイプのガスセンサ素子41を用いる点で異なる。
またこれに伴い、本変形形態12のセンサ抵抗値変換回路44では、還元性ガスの濃度が上昇すると、センサ抵抗値Rsが低下し、センサ出力電位Vsが低下するように構成されているる点でも異なる。
さらに、マイクロコンピュータ16における処理のフローも若干異なる。
従って、変形形態1や実施形態5と異なる部分を中心に説明し、同様な部分については説明を省略あるいは簡略化する。
【0274】
本変形形態12のマイクロコンピュータ16における制御を、図29のフローチャートに従って説明する。変形形態1と同様に、自動車のエンジンが駆動されると、本制御システムが立ち上がり、ガスセンサ素子41が活性状態となるのを待って、ステップS501で初期設定を行う。初期設定として、濃度信号LVとして濃度低信号を発生させておく、具体的には濃度信号LVをローレベルとしておく。
その後、ステップS502に進み、センサ出力電位VsをA/D変換したセンサ出力値S(n)を順次読み込む。これをステップS503でn≧99となるまで繰り返す。次述するように、ステップS506でm個移動平均値(100個移動平均値)を算出するため、予めm−1個(=99個)のセンサ出力値を得ておくのである。
【0275】
その後、ステップS504に進み、センサ出力電位Vsを0.4秒ごとにA/D変換したセンサ出力値S(n)を順次読み込む。次いで、ステップS505で、現在、濃度高信号を発生しているか否かを判断する。ここで、Noつまり濃度低信号を発生していれば、ステップS506に進む。一方、Yesつまり濃度高信号を発生していれば、ステップS511に進む。
【0276】
ステップS506では、実施形態5と同様にして100個移動平均値Md(n)を算出し、ステップS507に進む。
この移動平均値Md(n)は、センサ出力値に追従して変化することは、実施形態5と同様である。従って、ガスセンサ素子41の温度ドリフトなどにより、ゆっくりセンサ出力値S(n)が小さくなると、その変化に追従して移動平均値Md(n)も減少する。しかし、還元性ガスの濃度の上昇によりセンサ出力値が大きく減少した場合には、移動平均値が十分追従できずセンサ出力値に遅れて減少する。
【0277】
次いで、ステップS507で、第1差分値D(n)を式D(n)=Md(n)−S(n)に従って算出する。なお、実施形態5におけるステップS407と算出の式が異なるのは、本変形形態で用いるガスセンサ素子41の特性等を考慮し、還元性ガスの濃度の上昇局面で、第1差分値D(n)が正の値となるようにして、処理を容易にするためである。
さらに、ステップS508でベース値B(n)の値を調整する。このステップS508におけるベース値の調整は、実施形態3,5におけるステップS105、S408と同様の理由による。
【0278】
その後、ステップS509で第1差分値D(n)と移動平均しきい値Tmとを比較し、第1差分値D(n)が移動平均しきい値Tmよりも大きいとき(Yes)には、ステップS510に進み、現在発生している濃度低信号に代えて、濃度高信号を発生し、ステップS516に進む。具体的には、濃度信号LVをローレベルからハイレベルに切り替える。一方、第1差分値D(n)の大きさが移動平均しきい値Tm以下の場合(No)には、ステップS516に進む。
これにより、センサ出力値S(n)が減少して、第1差分値D(n)が移動平均しきい値Tmよりも大きくなった場合には、これを捉えて、濃度低信号から濃度高信号に切り替えることができる。
【0279】
一方、ステップS511では、変形形態1と同様の下記式を用いて、ベース値B(n)を算出してステップS512に進む。B(n)=B(n−1)+k{S(n)−B(n−1)}、ここで、係数kは、0<k<1である。
ベース値B(n)は、センサ出力値S(n)に追従しつつもセンサ出力値より緩慢に変化する性質を有している。しかも、使用する係数kの大きさによってセンサ出力値S(n)に対する追従の程度を変えることができる。
【0280】
従って、還元性ガスの濃度の上昇によって、たとえセンサ出力値S(n)が小さくなる期間においては、ベース値B(n)はセンサ出力値S(n)ほどには低下しない。つまり、算出されたベース値B(n)は、その直前ベース値B(n−1)からあまり変化しないことになる。従って、遡れば、ステップS510で濃度低信号から濃度高信号に切り替えて発生した時点のベース値の影響が反映していることになる。
ここで、ステップS508では、ベース値B(n)として、現在のセンサ出力値S(n)を代入する調整を行っている。従って、濃度低信号から濃度高信号への切替(ステップS510)直前のベース値は、その時点(切り替え直前)でのセンサ出力値に等しい。また、それ以降にステップS511で算出されたベース値は、切り替え直前のセンサ出力値から徐々に変化した値となる。このように、このステップS511で算出されたベース値B(n)は、切り替え直前のセンサ出力値からセンサ出力値の変化に対して緩慢に追従した値となる。
【0281】
ステップS512では、第2差分値D2(n)を式D2(n)=B(n)−S(n)に従って算出する。なお、本変形形態12におけるステップS412と算出の式が異なるのは、本変形形態で用いるガスセンサ素子41の特性等を考慮し、還元性ガスの濃度が高い期間に、第2差分値D2(n)が正の値となるようにして、処理を容易にするためである。
さらにステップS513では、過去のセンサ出力値の調整及び記憶を行う。具体的には、99個分の過去のセンサ出力値S(n−1)〜S(n−99)を現在のセンサ出力値S(n)に書き換える。再びステップS506で移動平均値を算出することとなった場合に、算出される移動平均値Md(n)の値を濃度信号切り替え直前のセンサ出力値に近い値となるようにし、切替時の動作が不安定となるのを防止するためである。
【0282】
次いで、ステップS514で第2差分値D2(n)とPIしきい値Tpとを比較する。D2(n)<Tpとなった場合(Yes)にはステップS515に進み、現在発生している濃度高信号に代えて、濃度低信号を発生し、ステップS516に進む。具体的には、濃度信号LVをハイレベルからローレベルに切り替える。このように、第2差分値D2(n)がPIしきい値Tpよりも小さい場合、つまり、ベース値とセンサ出力値との差が、PIしきい値Tpより小さくなった場合には、還元性ガスの濃度が低下したと判断して、濃度高信号から濃度低信号に切り替える。
【0283】
濃度高信号を発生中(ステップS505でYes)において、還元性ガスの濃度が低下すると、センサ出力値S(n)の上昇に対して、ベース値B(n)が遅れて上昇するので、第2差分値D2(n)は徐々に小さくなる。従って、第2差分値D2(n)がPIしきい値Tpより小さくなったということは、還元性ガスの濃度が低下したことを示していると考えられるからである。
一方、D2(n)≧Tpの場合(No)には、ステップ516に進み、濃度高信号の発生を維持する。
【0284】
その後、ステップS510,S515のいずれからも、ステップS516に進み、ステップS508,S511で算出した前回のベース値B(n)を記憶し、ステップS517でA/Dサンプリングタイムのタイムアップを待った上で、ステップS504に戻る。
このようにして、還元性ガスの濃度が上昇すると、センサ出力値S(n)の上昇に遅れて移動平均Md(n)が変化するので、これを用いて算出した第1差分値D(n)が移動平均しきい値Tmより大きくなり、ステップS510で濃度高信号を発生する。その後は、ステップS505でYesと判断され、ステップS511に進むことで、移動平均値Md(n)に代えて、ベース値B(n)が算出される。
【0285】
その後、還元性ガスの濃度が低下すると、第2差分値D2(n)が小さくなり、ステップS514で濃度低信号を発生する。その後は、ステップS505でNoと判断され、ステップS506に進むことで、再び移動平均値Md(n)や第1差分値D(n)が算出される。従って、再び還元性ガスの濃度が上昇してもこれを捉えて濃度高信号を発生することができる。
【0286】
上記制御によっても、車両用オートベンチレーションシステム140(図6参照)において、実施形態1と同様(図2参照)、得られた濃度信号LV(濃度低信号及び濃度高信号)を用いて、フラップ駆動回路21でフラップ34の開閉を指示し、外気導入と内気循環(全開/全閉)を制御することができる。
【0287】
以上において、本発明を実施形態及び変形形態に即して説明したが、本発明は上記実施形態や変形形態に限定されるものではなく、その要旨を逸脱しない範囲で、適宜変更して適用できることはいうまでもない。
例えば、上記実施形態や変形形態では、ガスセンサ素子11,41を分圧回路のアース側(下側)に位置させ、検出抵抗12を電源側(上側)とした(図1、図6参照)が、上下逆として、ガスセンサ素子11,41を分圧回路の電源側(上側)に位置させ、検出抵抗12をアース側(下側)としても良い。但し、このようにした場合には、例えば、NOxの濃度が上昇すると、センサ電圧Vsが低下する方向に変化するというように、センサ抵抗変換回路の特性が逆になるので、それに応じた処理を行う必要がある。
【0288】
また、上記実施形態3,変形形態11等では、ベース値B(n)を算出したが、このベース値の算出に代えて、移動平均値を算出するようにしても良い。また、実施形態3等では微分値V(n)を算出したが、微分値のほか、2階微分値や微分に似た算出手法(例えば、S(n)−S(n−2)など)によって求めた値を用いても良い。
【0289】
また、上記変形形態2,3,7,8,9,10では、濃度チャタリングを防止するため、しきい値にヒステリシスを持たせ、濃度レベルを上げるときと下げるときで異なるしきい値で判断するようにしている。しかし、その他の方法によって、濃度信号や濃度レベル信号のチャタリングを防止することもできる。例えば、一旦濃度レベルを変更したら、所定時間を経過するまでその濃度レベルを維持するようにする手法が挙げられる。
【0290】
さらに、上記各実施形態及び変形形態では、センサ抵抗変換回路14,44として、ガスセンサ素子11,41と検出抵抗12とで電源電位Vccを分圧し、その動作点Pdの電位Vsを用いるものを使用した。しかし、センサ抵抗変換回路としては、ガスセンサ素子のセンサ抵抗値Rsに応じたセンサ出力電位を出力するものであれば良く、上記分圧回路以外の回路構成とすることもできる。
例えば、図30に示すセンサ抵抗変換回路51を有するガス濃度検出装置50及びこれを含むオートベンチレーションシステム150を用いることもできる。即ち、センサ抵抗変換回路51は、ガスセンサ素子57のセンサ抵抗値Rsに応じて変化する動作点Pdのセンサ電圧Vs(出力信号)を得るためのセンサ抵抗変換回路であり、パルス入力端子52と、出力端子53とを有する。
このパルス入力端子52には、抵抗値Rcの固定抵抗器54が接続され、さらにこの抵抗器54に直列にダイオード55のアノード551が接続されている。また、ダイオード55のカソード552は、静電容量Cを有し一端562が接地されたコンデンサ56の他端561と接続している。さらに、ガスセンサ素子57は、コンデンサ56と並列に配置され、一端572が接地され、他端571がコンデンサ56の他端561及びダイオード55のカソード552と接続している。なお、この接続点が動作点Pdである。出力端子53にはこの動作点Pdのセンサ電位Vsが導かれている。
【0291】
センサ電位Vsは、実施形態1等と同様に、A/D変換回路15でA/D変換されて入力端子17入力されたセンサ出力値S(n)をマイクロコンピュータ16で処理して、ガスの濃度変化を検出する。このマイクロコンピュータ16の出力端子18には、実施形態1等と同様に、電子制御アセンブリ20(具体的にはフラップ駆動回路17やアクチュエータ18)が接続され、フラップ34が制御されるようになっている。
さらに、マイクロコンピュータ16には、センサ出力値S(n)などに応じて、オープンドレインタイプの制御出力端子19からパルス信号Scを出力する。このパルス信号Scによってガスセンサ素子駆動回路51が駆動される。このパルス信号Scは、図中下方の円内に示すように、0Vと+5Vとの2つの電位が交互に現れる周波数fpのパルス信号であり、このパルス信号Scのデューティ比DT(%)は、DT=100t1/(t1+t2)で与えられる。
【0292】
このセンサ抵抗変換回路51の入力端子52に印加されるパルス信号Scがハイレベルになると、固定抵抗器54とダイオード55を通じてコンデンサ56に、時定数τ1=C・Rc・Rs/(Rc+Rs)で充電される。
一方、パルス信号Scがローレベルになると、コンデンサ56の電荷はガスセンサ素子57を通じて、時定数τ2=CRsで放電される。
パルス信号Scを繰り返し入力すると、充電と放電とが均衡した定常状態となり、図中上方の円内に示すように、センサ電圧Vsは、若干のリップルVrを有するものの、ほぼ一定値となる。このセンサ電圧Vsは、センサ抵抗値Rsに応じて変化するから、センサ電圧VsをA/D変換して、実施形態1等と同様に処理することで、ガス濃度の変化を検出することができる。
【0293】
しかも、このセンサ抵抗変換回路51を用いると、パルス信号Scのデューティ比DTに応じて、コンデンサ56の充電電圧を変化させることができる。
前記したように、ガスセンサ素子11と検出抵抗12とで電源電圧Vccを分圧してセンサ電圧Vsを得る回路(図1参照)では、温度や湿度などの環境によって、センサ抵抗値Rsが大きく変動した場合に、センサ電圧Vsが電源電位Vcc近くあるいは接地電位近くに偏ってしまうことがある。すると、ガス濃度変化によってセンサ抵抗値Rsがさらに変化しても、それによるセンサ電圧Vsの変化が小さくなり、ガス濃度変化を正確に検出することができなくなることがある。
これに対して、本センサ抵抗変換回路51を用いたガス濃度検出装置50及びこれを含む車両用オートベンチレーションシステム150では、このような場合でも、パルス信号Scのデューティ比をDT適宜選択することで、センサ電圧Vsを、例えば、1〜3.5Vなどの所望の範囲に保ち、その電圧範囲内でガス濃度の変化によるセンサ電圧Vsの変動を精度良く計測できる利点がある。
【0294】
その他、図31に示すセンサ抵抗変換回路61を有するガス濃度検出装置60及びこれを含むオートベンチレーションシステム160を用いることもできる。このセンサ抵抗変換回路61では、コンデンサ70に蓄積した電荷を、ガスセンサ素子67と第2ダイオード68を介して接地電位(0V)となった制御出力端子19に戻して放電させる点で異なる。従って、異なる部分を中心に説明する。
【0295】
このセンサ抵抗変換回路61では、パルス入力端子62と一端702が接地されたコンデンサ70の他端701との間に、固定抵抗器64とコンデンサ70側をカソードとした第1ダイオード65とが直列に接続されたRD直列回路66と、ガスセンサ素子67とコンデンサ70側をアノードとした第2ダイオード68が直列に接続されたSD直列回路69とが、並列に接続されている。なお、コンデンサの他端701が動作点Pdであり、出力端子63にはこの動作点Pdのセンサ電位Vsが導かれている。
【0296】
このセンサ抵抗変換回路61についても、マイクロコンピュータ16の制御出力端子19から出力されたパルス信号Scがハイレベルとなると、RD直列回路66を通じて、時定数τ1=CRcでコンデンサ70に充電される。また、パルス信号Scがローレベルとなると、SD直列回路69を通じて、時定数τ2=CRsでコンデンサ70に蓄えられた電荷が放電される。
パルス信号Scを繰り返し入力すると、上記センサ抵抗変換回路51と同様に、センサ電圧Vsはほぼ一定値となる。このセンサ電圧Vsは、センサ抵抗値Rsに応じて変化するから、センサ電圧VsをA/D変換して、実施形態1等と同様に処理することで、ガス濃度の変化を検出することができる。
【0297】
しかも、パルス信号Scのデューティ比DTに応じてコンデンサ70の充電電圧を変化させることができる。このため、上記ガス検出装置50やオートベンチレーションシステム150と同じく、温度や湿度などの環境によって、センサ抵抗値Rsが大きく変動した場合に、センサ電圧Vsが電源電位Vcc近くあるいは接地電位近くに偏ってしまっても、パルス信号Scのデューティ比を適宜選択することで、センサ電圧Vsを、例えば、1〜3.5Vなどの所望の範囲に保ち、その電圧範囲内でガス濃度の変化によるセンサ電圧Vsの変動を確実に計測できる利点がある。
【図面の簡単な説明】
【図1】実施形態1にかかるガス検出装置および車両用オートベンチレーションシステムの概要を示す説明図である。
【図2】実施形態1にかかる車両用オートベンチレーションシステムにおける制御のフローを示す説明図である。
【図3】実施形態1にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図4】実施形態1にかかり、第2係数k2=0とした場合に、NOxの濃度がある期間上昇したときの、センサ出力値S(n)、ベース値B(n)、差分値D(n)の変化、及び濃度信号の変化を示す説明図である。
【図5】第2係数k2>0とした場合に、NOxの濃度がある期間上昇したときの、センサ出力値S(n)、ベース値B(n)、差分値D(n)の変化、及び濃度信号の変化を示す説明図である。
【図6】変形形態1にかかるガス検出装置および車両用オートベンチレーションシステムの概要を示す説明図である。
【図7】変形形態1にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図8】変形形態1にかかり、COの濃度がある期間上昇したときの、センサ出力値S(n)、ベース値B(n)、差分値D(n)の変化、及び濃度信号の変化を示す説明図である。
【図9】変形形態2にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図10】変形形態3にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図11】実施形態2にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図12】実施形態2にかかる制御フローのうち、濃度レベル信号切替発生のサブルーチンの内容を示す説明図である。
【図13】実施形態2にかかり、NOxの濃度がある期間上昇したときの、センサ出力値S(n)、ベース値B(n)、差分値D(n)の変化、及び濃度信号の変化を示す説明図である。
【図14】実施形態2にかかる車両用オートベンチレーションシステムにおける制御のフローを示す説明図である。
【図15】変形形態4にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図16】変形形態4にかかり、COの濃度がある期間上昇したときの、センサ出力値S(n)、ベース値B(n)、差分値D(n)の変化、及び濃度信号の変化を示す説明図である。
【図17】変形形態5,6にかかる制御フローのうち、濃度レベル信号切替発生のサブルーチンの内容を示す説明図である。
【図18】変形形態7,8にかかる制御フローのうち、濃度レベル信号切替発生のサブルーチンの内容を示す説明図である。
【図19】変形形態7にかかり、NOxの濃度がある期間上昇したときの、センサ出力値S(n)、ベース値B(n)、差分値D(n)の変化、及び濃度信号の変化を示す説明図である。
【図20】変形形態8にかかり、COの濃度がある期間上昇したときの、センサ出力値S(n)、ベース値B(n)、差分値D(n)の変化、及び濃度信号の変化を示す説明図である。
【図21】変形形態9,10にかかる制御フローのうち、濃度レベル信号切替発生のサブルーチンの内容を示す説明図である。
【図22】実施形態3にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図23】実施形態3にかかり、実際の走行時におけるセンサ出力値S(n)の例、及びベース値B(n)、差分値D(n)、微分値V(n)の変化、及び濃度信号の変化を示す説明図である。
【図24】変形形態11にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図25】実施形態4にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図26】実施形態4にかかる制御フローのうち、濃度レベル信号切替発生のサブルーチンの内容を示す説明図である。
【図27】実施形態4にかかり、実際の走行時におけるセンサ出力値S(n)の例、及びベース値B(n)、差分値D(n)、微分値V(n)の変化、及び濃度レベル信号の変化を示す説明図である。
【図28】実施形態5にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図29】変形形態12にかかるガス検出装置のうちマイクロコンピュータにおける制御のフローを示す説明図である。
【図30】その他のセンサ抵抗変換回路を含むガス濃度検出装置および車両用オートベンチレーションシステムの概要を示す説明図である。
【図31】さらに他のセンサ抵抗変換回路を含むガス濃度検出装置および車両用オートベンチレーションシステムの概要を示す説明図である。
【符号の説明】
100,140,150,160 車両用オートベンチレーションシステム
10,40,50,60 ガス検出装置
11,41,57,67 ガスセンサ素子
12 検出抵抗
14,44,51,61 センサ抵抗値変換回路
16 マイクロコンピュータ
20 電子制御アセンブリ
21 フラップ駆動回路
31,32,33 ダクト
34 フラップ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a gas detection device and a vehicle autoventilation system that detect the concentration of a specific gas in the environment and changes thereof using a gas sensor element.
[0002]
[Prior art]
Conventionally, such as gas sensor elements using lead-phthalocyanine or metal oxide semiconductors such as WO3 and SnO2, oxidizing gases such as NOx in the environment and reducing gases such as CO and HC (hydrocarbon) Since the sensor resistance value changes due to the gas concentration change, a gas sensor element is known that can detect a specific gas concentration change by the sensor resistance value change. A gas detection device using such a gas sensor element is also known. Furthermore, various control systems using this gas detection device, for example, a vehicle auto ventilator that performs flap opening / closing control for switching between introduction of outside air and introduction of inside air in accordance with the contamination status of outside air in the cabin There are known systems and systems that detect indoor air pollution caused by smoking or the like and control an air purifier.
[0003]
In such a gas detection device using a gas sensor element, for example, as disclosed in JP-A-5-157714, the sensitivity of the concentration change is improved so that the change in the gas concentration can be quickly handled. In order to improve the S / N against noise such as wind, what differentiates the output signal of the gas sensor element or A / D-converts the analog differential value, and further digitally differentiates to obtain a second-order differential value. ing.
Japanese National Publication No. 1-501095 discloses a sensor that integrates a sensor signal and compares the integrated value with the sensor signal to perform gas detection.
[0004]
[Problems to be solved by the invention]
However, in a gas detection device using a gas sensor element in which electrical characteristics such as sensor resistance change due to a change in the concentration of a specific gas, the electrical characteristic (sensor resistance value) of the gas sensor element is not only a change in the concentration of a specific gas, but also a temperature. It also has the property of fluctuating due to environmental influences such as humidity and wind speed. Therefore, in the gas detection device using the above differentiation, the relative change in the output signal is detected, but this output signal is not only due to the change in the concentration of the specific gas but also due to other environments such as temperature, humidity, and wind speed. Therefore, it is not possible to clearly distinguish whether it is due to the concentration of the specific gas or the variation due to disturbance such as a change in humidity only from the relative change in the output signal. For this reason, when the differential value or second-order differential value of the output signal of the gas sensor element is used as described above, it is possible to capture the time when the gas concentration fluctuates (for example, when the gas concentration suddenly increases) It is difficult to know how much the gas concentration has changed, or the subsequent gas concentration change state and the time when the gas concentration has decreased.
On the other hand, in the gas detection device that performs gas detection by comparing the integrated value of the sensor signal with the sensor signal, the change in the integrated value is delayed with respect to the change in the concentration of the specific gas. Then, the integrated value may be larger than the sensor output value. For this reason, even if the concentration of the specific gas subsequently increases again, the integrated value is larger than the sensor output value even though the concentration of the specific gas (and hence the sensor output value) starts to increase. In some cases, it was not possible to properly detect a change in the concentration of a specific gas, for example, the rise could not be detected and the detection timing was delayed.
[0005]
In addition, when detecting an increase or decrease in the concentration of a specific gas, the concentration rises as early as possible while reducing the effects of the environment, such as temperature and humidity, that is, the concentration is increased by catching the initial stage of concentration increase. There is a desire to generate a signal. On the other hand, there is a desire to generate a signal indicating that the concentration has decreased after the concentration has decreased sufficiently at the time when the concentration has decreased. However, as in the case of the above-described conventional technique using differentiation or integration, the value calculated by the same calculation method (differential value, etc.) is used to determine whether the concentration increases or decreases. It is difficult to generate each signal by properly grasping both the initial stage and the time when the concentration falls.
[0006]
The present invention has been made in view of such problems, and can appropriately generate each signal by appropriately detecting the rise and fall times of a specific gas concentration, and influence of the environment such as temperature, humidity, and wind speed. It is an object of the present invention to provide a gas detection device capable of detecting a change in the concentration of a specific gas and an autoventilation system for a vehicle using the same.
[0007]
[Means, actions and effects for solving the problems]
The solution is a gas detection device using a gas sensor element whose electrical characteristics change according to the concentration of a specific gas, the acquisition means for acquiring a sensor output value using the gas sensor element, and the sensor output value. The first determination target value calculated by using the first determination means for determining whether or not the first threshold value satisfies the first magnitude relationship with respect to the first threshold value, and the sensor output value is used for the first determination. Second determination means for determining whether or not a second determination target value calculated by a calculation method different from the calculation method for calculating the target value satisfies a second magnitude relationship with respect to the second threshold; A density signal generating means for generating either a low signal or a high density signal, wherein the first determination means satisfies the first magnitude relationship in a period in which the low density signal is generated; In place of the low concentration signal When the second determination means satisfies the second magnitude relationship during the period when the high density signal is generated and the high density signal is generated, the low density signal is generated instead of the high density signal. And a concentration signal generating means.
[0008]
According to the gas detection device of the present invention, during a period in which the concentration of the specific gas is low (period in which the low concentration signal is generated), the first determination target value calculated using the sensor output value is less than the first threshold value. When the first magnitude relationship is satisfied, a high density signal is generated instead of the low density signal. On the other hand, during the period when the concentration is high (the period during which the high concentration signal is generated), the second determination target value calculated by a calculation method different from the first determination target value using the sensor output value is greater than the second threshold value. When the second magnitude relationship is satisfied, a low density signal is generated instead of the high density signal.
In addition, the calculation means for calculating the first determination target value in the generation period of the low density signal is different from the calculation method for calculating the second determination target value in the generation period of the high density signal.
That is, the first magnitude relationship or the second magnitude relationship is determined using the first determination target value and the second determination target value calculated by different calculation means depending on whether the concentration of the specific gas is low or high. A change in gas concentration can be determined under appropriate conditions according to the period during which the low concentration signal or high concentration signal is generated.
[0009]
In this way, it is possible to set conditions suitable for detecting the rise time and the fall time of the concentration, such as adapting to the human sense of smell. For example, a high concentration signal is generated at the earliest possible time while reducing the influence of the environment such as temperature and humidity during the concentration rise time, while a low concentration signal is generated at the time when the concentration is sufficiently lowered during the concentration fall time. Can be set to generate. Therefore, in a vehicle auto-ventilation system or the like, appropriate control, for example, switching to the inside air circulation at the beginning of the concentration increase of the specific gas in the outside air, and switching to the outside air circulation when the concentration sufficiently decreases can be performed.
[0010]
Note that the first determination target value and the second determination target value are both values calculated using a sensor output value by a certain calculation method. Examples of the first determination target value and the second determination target value include a differential value, a second-order differential value, and the like. Alternatively, the difference value between the sensor output value and the integral value, or the sensor output value S (n) and B (n) = B (n−1) + k {S (n) −B (n−1)} A difference value such as a difference value from the obtained base value B (n) or a difference value between the sensor output value S (n) and the moving average value Md (n) can be mentioned. Further, a difference value between the sensor output value and a value that increases (or decreases) with time in a predetermined pattern, for example, a difference value between the sensor output value and a value that linearly increases (or decreases) with time at a predetermined inclination, Examples include values such as a difference value between the sensor output value and a value that increases (or decreases) stepwise with time.
[0011]
Examples of electrical characteristics that change in the gas sensor element include resistance value, electromotive force, current, capacitance, and inductance.
The sensor output value acquisition means may be configured to appropriately acquire the sensor output value according to a change in the electrical characteristics of the gas sensor element or a processing format such as analog processing or digital processing. For example, in the case of performing digital processing, A / D conversion processing and the like are included.
Further, for example, a case where a low density signal or a high density signal corresponds to a plurality of levels of signals, for example, a signal corresponding to three density levels is included as a high density signal.
Further, the calculation methods may be different from each other, for example, one is a calculation method for obtaining a differential value and the other is a calculation method for obtaining a moving average value. In addition, there is a case where one is a calculation method for obtaining 30 moving average values and the other is a calculation method for obtaining 50 moving averages. Furthermore, although the same calculation formula is used, there is a case where the calculated value calculated based on the sensor output value is weighted by changing the value of a predetermined coefficient set in the calculation formula.
[0012]
In the gas detection device, the high concentration signal includes a plurality of concentration level signals respectively corresponding to a plurality of concentration levels of the specific gas, and is between the second determination target value and the plurality of concentration levels. Third density determination means for determining whether or not a plurality of threshold values between levels corresponding one-to-one with respect to an inter-level boundary satisfy a predetermined magnitude relationship, and the density signal generating means includes: In a period when the low density signal is generated, when the first determination means satisfies the first magnitude relationship, the density corresponding to any one of the density high signals instead of the low density signal. In the period in which the level signal is generated and any one of the density level signals belonging to the high density signal is generated, the second determination target value is the current density level and the density level one higher than the current density level. The density level signal corresponding to a density level higher than the current density level is generated when the predetermined level relationship is satisfied with respect to the threshold between levels corresponding to the boundary between levels between The second determination target value is the predetermined magnitude relationship with respect to the inter-level threshold value corresponding to the inter-level boundary between the current density level and the density level one level lower than the current density level. When the second determination means satisfies the second magnitude relationship, the density level signal corresponding to a density level lower than the current density level is generated. It is preferable to use a gas detector that generates the low concentration signal instead.
[0013]
As described above, since the high concentration signal includes a plurality of concentration level signals, the concentration level signal can be switched according to the concentration of the specific gas even during the generation of the high concentration signal. For this reason, even during the generation of a high concentration signal, it is possible to know the degree of concentration such as whether the concentration of the specific gas is relatively low or relatively high. In addition, in the vehicle auto-ventilation system, it is possible to perform finer control such as setting the flap to an appropriate opening degree such as half-opening as well as making the flap either fully closed or fully open.
[0014]
Further, in the gas detection device, the second calculation is calculated by using the sensor output value and the sensor output value, and when the sensor output value changes, the second calculation changes more slowly than the sensor output value. A second calculation unit that calculates a second difference value that is a difference between the second determination value and the second determination value. On the other hand, a gas detection device that determines whether or not the second magnitude relationship is satisfied may be used.
[0015]
In this gas detection device, the second calculated value changes more slowly than the sensor output value. For example, when the sensor output value increases with the increase in the specific gas concentration, the second calculated value follows and changes more slowly than the sensor output value due to the characteristic relationship of the acquisition means.
The electrical characteristics of the gas sensor element are influenced not only by the concentration change of the specific gas, but also by the environment such as temperature and humidity and the wind speed, and even if the concentration of the specific gas is constant, the sensor output value gradually changes. In other words, it may drift.
First, it is assumed that an acquisition unit having a characteristic that the sensor output value increases as the specific gas concentration increases is used. Here, if a drift occurs in the direction in which the sensor output value increases during the period from when the concentration of the specific gas increases to the subsequent decrease in concentration, the concentration of the specific gas decreases to the same level as before the increase. Even in this case, the sensor output value decreases only to a value larger than the value before the increase due to drift.
[0016]
In this case, if the second calculated value does not change and remains constant, the second difference value that is the difference between the sensor output value and the second calculated value is also larger than the value before the increase. It will only decline. Accordingly, there is a risk that the concentration of the specific gas is actually lowered, but the second difference value is large, so that it is erroneously determined that the concentration of the specific gas is high, and a failure in which the decrease in gas concentration cannot be determined. is there. Then, when the gas detection device of the present invention is used for a vehicle autoventilation system or an air purifier control system, the flap remains closed for a long time or the fan becomes high rotation, Proper control becomes difficult.
On the other hand, as the second calculated value, although it changes, it does not follow the sensor output value but regardless of this, a value that rises in a predetermined pattern, for example, a value that rises linearly with time at a constant slope, When a value that rises stepwise with time is used, the above-described problems do not occur. However, if the concentration of the specified gas is high for a long time, such as when entering a long tunnel, or if the sensor output value does not become so large, the concentration of the specified gas is still high. Regardless, the second difference value, which is the difference between the sensor output value and the second calculated value, may be smaller than the second threshold value, and a low density signal may be generated.
[0017]
On the other hand, according to the present invention, even in the case of the above assumption, the second calculated value changes slowly following the sensor output value, so even if drift occurs in the direction in which the sensor output value increases. The second difference value gradually decreases with time. For this reason, when the concentration of the specific gas decreases, the second difference value becomes smaller than the second threshold value, and a low concentration signal can always be generated. In addition, since the second calculated value follows the sensor output value slowly, but the second calculated value is a value corresponding to the sensor output value, unlike the above-described case where the second calculated value is increased in a predetermined pattern. In the state where the concentration of the specific gas is high, generation of a low concentration signal is prevented.
Therefore, in a vehicle auto-ventilation system or an air purifier control system, appropriate control can be performed such as opening a flap or lowering a fan when a certain amount of time has elapsed.
On the other hand, if the sensor output value decreases due to the increase in the specific gas concentration, the decrease in the specific gas concentration can be detected in the same way when the sensor output value decreases due to the increase in the specific gas concentration. Can do.
[0018]
Therefore, if the magnitude relationship between the second difference value and the second threshold value is appropriately set according to the characteristics of the acquisition means and the nature of the second calculation value, whether or not the magnitude relation is satisfied by the second determination means. It is possible to appropriately detect a decrease in the specific gas concentration. Therefore, the density signal generation means can generate a low density signal instead of the high density signal. In this way, a concentration signal corresponding to the level of the specific gas concentration can be output.
[0019]
Further, in the gas detection device, a first output that is calculated using the sensor output value and the sensor output value, and changes more sensitively than the second calculated value when the sensor output value changes. A first calculating unit that calculates a first difference value that is a difference from the calculated value, wherein the first determining unit sets the first difference value that is the first determination target value as the first threshold value; On the other hand, it is preferable to use a gas detection device that determines whether or not the first magnitude relationship is satisfied.
[0020]
In this gas detection apparatus, the first calculation value that changes more sensitively than the second calculation value when it is assumed to be calculated is used.
As described above, the decrease in the concentration of the specific gas is detected based on the second calculated value and the second difference value. In the present invention, the increase in the concentration of the specific gas is detected by comparing the first difference value with the first threshold value. To do.
As described above, when the concentration of the specific gas increases and the sensor output value changes during the generation period of the low concentration signal, the first calculated value is relatively sensitive compared to the case where the second calculated value is used. Changes following. That is, the first calculated value follows the sensor output value relatively faster than the second calculated value.
Here, when the sensor output value fluctuates to some extent due to noise mixing in a state where the concentration of the specific gas is low, the first calculated value also rapidly follows and changes, so the first difference value does not become very large. . For this reason, erroneous detection due to noise can be prevented. Also, even if the sensor output value fluctuates (drifts) gently due to the influence of temperature, humidity, etc., the first calculated value also follows and changes. It is possible to prevent erroneous detection of density changes. However, if the concentration of the specific gas increases and the sensor output value changes rapidly and greatly, the first calculated value cannot be sufficiently followed and the first differential value increases. Therefore, the first differential value becomes the first threshold value. A predetermined high / low relationship is satisfied and a high density signal is generated. Thus, while suppressing the influence of drift, an increase in gas concentration can be detected and a high concentration signal can be generated at a relatively early time of the specific gas concentration increase.
[0021]
The first calculated value may be any first calculated value that changes more sensitively than the second calculated value when the sensor output value is changed. For example, B (n) = B (n) using an integral value calculated by making the integration constant smaller than that in the second calculation method, or a coefficient k1 (k1> k2) larger than the coefficient k2 used in the second calculation method. -1) + k1 {S (n) -B (n-1)} calculated based on the base value B (n) or smaller than the m2 moving average value sample number m2 obtained by the second calculation method Examples include m1 moving average value Md calculated by the number of samples m1 (m1 <m2).
[0022]
Still another solution is a gas detection device using a gas sensor element whose electrical characteristics change according to the concentration of a specific gas, the acquisition means for acquiring a sensor output value using the gas sensor element, and a plurality of concentrations The density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to the levels, and the first determination target value calculated using the sensor output value are the first magnitude smaller than the first threshold value. A first determination means for determining whether or not the relationship is satisfied, and a second determination target value calculated by a calculation method different from the calculation method for calculating the first determination target value using the sensor output value A second determination means for determining whether or not a plurality of inter-level thresholds corresponding to a level boundary between the plurality of density levels in a one-to-one relationship satisfy a predetermined magnitude relationship; The The density level signal switching generating means is the highest when the first determination means satisfies the first magnitude relationship during the period in which the density level signal corresponding to the lowest density level is generated. Instead of the density level signal corresponding to the lower density level, a density level signal corresponding to the density level one higher than the lowest density level is generated, and the density level signal higher than the lowest density level is supported. In the period during which a density level signal is generated, the second determination target value is an interval between the levels corresponding to the boundary between the levels between the current density level and the density level one level higher than the current density level. When the threshold value satisfies the predetermined magnitude relationship, the density level signal corresponding to a density level higher than the current density level is generated, and the second judgment pair is generated. When the value does not satisfy the predetermined magnitude relationship with respect to the threshold between levels corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, The gas detection device generates the concentration level signal corresponding to a concentration level lower than the current concentration level.
[0023]
According to the gas detection device of the present invention, the first determination target value calculated using the sensor output value is the first threshold during the generation period of the lowest concentration level signal, that is, the period of the lowest concentration level. When the first magnitude relationship is satisfied with respect to the value, a density level signal that is one higher level (that is, second from the bottom) is generated instead of the lowest density level signal.
On the other hand, in the generation period of the density level signal higher than the lowest density level signal, an inter-level threshold corresponding to the inter-level boundary between the current density level and the density level one higher than the current density level, When the second determination target value satisfies a predetermined magnitude relationship, a higher density level signal than the present is generated. For example, when the relationship that the second determination target value is larger than the threshold value between levels is satisfied, a higher density level signal is generated.
On the contrary, when the second determination target value satisfies a predetermined magnitude relationship with respect to the inter-level threshold corresponding to the inter-level boundary between the current density level and the density level one lower than the current density level. A density level signal lower than the present level is generated.
[0024]
That is, the first determination calculated by different calculation methods depending on whether the concentration of the specific gas is low (in the case of the lowest concentration level) or higher than this (in the case of the concentration level higher than the lowest). The first magnitude relation or the predetermined magnitude relation is judged using the target value and the second judgment target value. Therefore, it is possible to make a determination under appropriate conditions according to the gas concentration, depending on whether the concentration level is the lowest or higher.
In addition, when the gas concentration is high, a plurality of concentration levels are determined. That is, it is possible to generate signals in accordance with three or more density levels as a whole. For this reason, it is possible to perform more appropriate control such as opening and closing the flaps under appropriate conditions according to the respective density level signals.
[0025]
The solution is a gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to output a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for increasing the sensor output potential when the concentration of the specific gas increases; and a sensor output by A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring a value, first base value calculation means for calculating a base value from the sensor output value according to the following equation (1),
B (n) = B (n-1) + k1 {S (n) -B (n-1)} (1)
However, S (n) is a sensor output value, B (n) is a base value, k1 is a first coefficient, 0 <k1 <1, n is an integer indicating a time-series order, and the sensor output value S (n ) And a base value B (n), a difference value calculating means for calculating a difference value D (n) according to the following equation (2):
D (n) = S (n) -B (n) (2)
However, D (n) is a density signal generating means for generating a difference value, either a low density signal or a high density signal, and when the difference value is larger than a predetermined density threshold, A concentration signal generating means for generating a signal and a base value B (n) according to the following equation (3) from the sensor output value S (n) instead of the above equation (1) during the generation period of the high concentration signal. A second base value calculating means for calculating;
B (n) = B (n-1) + k2 {S (n) -B (n-1)} (3)
However, k2 is a 2nd coefficient and is a gas detection apparatus provided with 0 <= k2 <k1 <1.
[0026]
First, the base value B (n) will be described. The base value B (n) calculated according to the above equation (1) or (3) with respect to the fluctuation of the sensor output value S (n) changes following this (when the coefficient k2 ≠ 0). Here, the base value B (n) has a property that the degree of tracking of the sensor output value S (n) changes when the values of the coefficients k1 and k2 are changed, and the coefficients k1 and k2 are large (close to 1). ), The base value B (n) quickly follows the sensor output value S (n). Conversely, when the coefficients k1 and k2 are small (close to 0), the change in the base value B (n) becomes slow and slowly follows the sensor output value S (n). When the coefficient k2 = 0, the base value B (n) is constant and does not follow the sensor output value S (n). Accordingly, when the coefficient k2 is low, or when k2 = 0, the base value B (n) is a value greatly influenced by the past sensor output value S (n) and the base value B (n). .
[0027]
In addition to the sensor resistance value conversion circuit and the A / D conversion means, the gas detection device of the present invention has first and second base value calculation means for calculating the base value B (n) having such properties, The base value is calculated while switching between the two calculation means. Of these, the first base value calculation means uses a relatively large first coefficient k1 (k1> k2), so that the base value B (n) follows relatively quickly with a slight delay from the sensor output value S (n). To do. Therefore, while the base value is calculated by the first base value calculation means, that is, when the concentration of the specific gas remains low, the sensor output value is little changed and a low concentration signal is generated. The difference value D (n) (= S (n) −B (n)) is not a very large value. In addition, when the sensor output value fluctuates gently due to temperature fluctuation or the like, the base value B (n) also changes following the change, so that the influence of drift due to temperature change or the like can be suppressed. However, if the concentration of the specific gas is increased and the sensor output value S (n) is rapidly changed (increased) rapidly, the base value B (n) cannot sufficiently follow, and the difference value D (n) increases. When this magnitude exceeds the density threshold value, the density signal generating means generates a high density signal instead of the low density signal. At the same time, the second base value calculating means is used for calculating the base value B (n).
[0028]
On the other hand, since the second coefficient k2 used in the second base value calculation means is relatively small (0 ≦ k2 <k1), the change in the base value B (n) becomes slow, and the follow-up to the sensor output value is relatively small. Get slow. Alternatively, the base value B (n) does not change (when k2 = 0). As described above, the base value calculated using the relatively small second coefficient k2 is a value influenced by the past sensor output value or the base value, specifically, a formula for calculating the base value B (n). The value affected by the base value calculated by the expression (1) immediately before switching from the expression (1) to the expression (3), and accordingly, the sensor output value before switching and the value influenced by the base value. It has become. Typically, when k2 = 0, the base value B (n) can be easily understood from maintaining the base value immediately before switching. That is, the base value B (n) calculated by the second base value calculating means is a specific gas while slowly following the sensor output value S (n), that is, gradually approaching or maintaining a constant value. It reflects or maintains the state immediately before the concentration of sucrose increases.
Therefore, the value represented by the difference value D (n), which is the difference between the current sensor output value S (n) and the base value B (n) calculated by the second base value calculating means, is the current, that is, the concentration of the specific gas. It is a value obtained by comparing the state after the rise of the value and the past, that is, the state before the concentration rises.
For this reason, when the concentration of the specific gas is decreased again and the sensor output value S (n) is decreased, the concentration of the specific gas is decreased by the difference value D (n) from the base value B (n). Easy to judge. Specifically, the density signal generating means generates a low density signal instead of the high density signal. In addition, since it is possible to adjust the follow-up / slowness of the base value B (n) by the coefficient k2, it is possible to capture an appropriate concentration decrease time.
[0029]
Further, in synchronization with the generation of the low density signal instead of the high density signal, the first base value calculation means using the first coefficient k1 instead of the second base value calculation means replaces the base value B (n). calculate. Thereby, the base value B (n) again follows the sensor output value S (n) relatively quickly. Therefore, even if the concentration of the specific gas subsequently increases again, the increase in concentration can be detected quickly and reliably.
As described above, according to the gas detection device of the present invention, when calculating the base value B (n), two different coefficients k1 and k2 are used, and different calculation methods of the expressions (1) and (3) are used. ing. For this reason, by adjusting the coefficients k1 and k2, respectively, it is possible to set conditions suitable for the concentration rising time and the falling time.
Note that the first coefficient k1 and the second coefficient k2 may be appropriately selected in consideration of the sampling period in the A / D conversion means, the fluctuation range of the sensor output value S (n), and the like.
[0030]
Further, the gas detection device includes a high concentration threshold and a low concentration threshold smaller than the high concentration threshold instead of the predetermined concentration threshold, and the concentration The signal generating means generates the high density signal instead of the low density signal when the difference value becomes larger than the high density threshold during the low density signal generation period, and the high density signal generation period. When the difference value becomes smaller than the low concentration threshold value, the gas detection device may generate a low concentration signal instead of the high concentration signal.
[0031]
The gas detector of the present invention has two threshold values, a high concentration threshold value and a low concentration threshold value. When generating a high concentration signal instead of a low concentration signal, the high concentration threshold value is generated. In addition, when generating a low density signal instead of a high density signal, the determination is based on a low density threshold value smaller than the high density threshold value. For this reason, when the difference value D (n) becomes a value close to these threshold values, chattering in which the high density signal and the low density signal are frequently switched due to a slight change in the difference value is prevented.
[0032]
Another solution is a gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to output a sensor output potential according to the change in the sensor resistance value. A sensor resistance value conversion circuit that increases the sensor output potential when the concentration of the specific gas increases, and a sensor that performs A / D conversion on the sensor output potential at predetermined time intervals. A / D conversion means for acquiring an output value, first base value calculation means for calculating a base value from the sensor output value according to the following equation (1),
B (n) = B (n-1) + k1 {S (n) -B (n-1)} (1)
Where S (n) is the sensor output value, B (n) is the base value, k1 is the first coefficient, 0 <k1 <1, n is an integer indicating the time-series order, and the sensor output value and the base value Difference value calculating means for calculating a difference value according to the following formula (2) from:
D (n) = S (n) -B (n) (2)
D (n) is a density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a difference value and a plurality of density levels, and an inter-level boundary between the plurality of density levels. A plurality of inter-level thresholds corresponding to one-to-one, the inter-level threshold corresponding to the higher inter-density level boundary, and having a larger inter-level threshold, A density higher than the current density level when the difference value is larger than the threshold between levels corresponding to the boundary between the levels between the density level and the density level one higher than the density level. Generating said density level signal corresponding to a level, said difference being greater than said inter-level threshold corresponding to said inter-level boundary between said current density level and said density level one lower than this When the value is small, the density level signal switching generating means for generating the density level signal corresponding to the density level lower than the current density level and the density level signal switching generating means A second base value calculation means for calculating a base value according to the following equation (3) from the sensor output value instead of the equation (1) during the generation period of the density level signal corresponding to the higher density level:
B (n) = B (n-1) + k2 {S (n) -B (n-1)} (3)
However, k2 is a 2nd coefficient and is a gas detection apparatus provided with 0 <= k2 <k1 <1.
[0033]
The gas detection apparatus of the present invention also has first and second base value calculation means for calculating the base value B (n) in addition to the sensor resistance value conversion circuit and the A / D conversion means. The base value is calculated while switching. Since the first base value calculation means uses the first coefficient k1, the base value B (n) follows relatively quickly while slightly lagging behind the sensor output value S (n). First, the difference value D (n) (= S (n) is calculated while the base value is calculated by the first base value calculation means, that is, when the concentration of the specific gas remains low. -B (n)) is not very large. In addition, when the sensor output value fluctuates gently due to temperature fluctuation or the like, the base value B (n) also changes following the change, so that the influence of drift due to temperature change or the like can be suppressed. However, if the concentration of the specific gas is increased and the sensor output value S (n) is greatly changed (increased), the base value B (n) cannot sufficiently follow, and the difference value D (n) becomes large. When D (n) exceeds several thresholds between levels, the current density level, that is, the density level corresponding to the density level higher than the density level corresponding to the density level signal currently generated Generate a signal. That is, the rank of the density level signal is increased. Further, during the generation period of the density level signal corresponding to the density level higher than the predetermined density level, the second base value calculation means is used for calculating the base value B (n).
[0034]
On the other hand, since the second coefficient k2 used in the second base value calculation means is relatively small (0 ≦ k2 <k1), the change in the base value B (n) becomes slow, and the follow-up to the sensor output value is relatively small. Get slow. Alternatively, the base value B (n) does not change (when k2 = 0). As described above, the base value B (n) calculated using the relatively small second coefficient k2 is a value affected by the past sensor output value or base value, specifically, the base value B (n). The value affected by the base value calculated by the equation (1) immediately before switching the calculation formula from the equation (1) to the equation (3), and therefore the influence of the sensor output value and the base value before the switching. It is the received value. In other words, the base value B (n) calculated by the second base value calculating means keeps a constant value while following the sensor output value S (n) slowly, that is, gradually, or maintaining a constant value. It reflects or maintains the state immediately before the concentration rises.
Accordingly, if the difference value D (n), which is the difference between the base value B (n) calculated by the second base value calculation means and the current sensor output value S (n), is used, the current concentration of the specific gas is determined. The level can be determined based on the density at the time when the calculation formula of the base value B (n) is switched from the formula (1) to the formula (3) in the past.
[0035]
Therefore, when it is determined that the density level is different from the density level corresponding to the currently generated density level signal due to the variation of the difference value D (n), the density level signal is switched. That is, even when the concentration of the specific gas decreases or increases and the sensor output value S (n) decreases or increases, it is easily determined that the concentration of the specific gas decreases or increases based on the difference value D (n). it can. Moreover, since the follow-up / slowness of the base value B (n) can be adjusted by the coefficients k1 and k2, it is possible to capture an appropriate concentration increase or decrease timing.
For example, when the concentration of the specific gas decreases and the difference value D (n) becomes a value corresponding to a lower concentration level, the concentration is lower than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is lowered. On the other hand, when the concentration of the specific gas increases and the difference value D (n) becomes a value corresponding to the higher concentration level, the concentration higher than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is increased.
Note that the rank of the density level signal is also raised or lowered when the base value B (n) is calculated by the second base value calculation means.
[0036]
Further, when the difference value D (n) becomes a value corresponding to a density level equal to or lower than the predetermined density level during the generation period of the density level signal corresponding to the density level higher than the predetermined density level. Replaces the base value B (n) with the second base value calculation means, and again calculates with the first base value calculation means. Thereby, the base value B (n) again follows the sensor output value S (n) relatively quickly. Therefore, even if the concentration of the specific gas subsequently increases again, the increase in concentration can be detected quickly and reliably.
Note that the first coefficient k1 and the second coefficient k2 may be appropriately selected depending on the sampling period in the A / D conversion means, the fluctuation range of the sensor output value S (n), and the like.
[0037]
Thus, in calculating the base value B (n), the gas detection device of the present invention uses two different coefficients k1 and k2 and uses different calculation methods of the equations (1) and (3). . For this reason, by adjusting the coefficients k1 and k2, respectively, it is possible to set conditions suitable for the concentration rising time and the falling time.
In the gas detection device of the present invention, the concentration level signal switching generating means switches and generates a plurality of concentration level signals respectively corresponding to a plurality of concentration levels, so that not only the concentration of the specific gas is high but also a finer concentration. A density level signal corresponding to the level can be generated. For this reason, in various control systems such as flap control in an autoventilation system using this gas detection device and fan control in an air purifier control system, finer control according to the concentration level of a specific gas is performed. be able to.
[0038]
Further, in the gas detection device, the concentration level signal switching generating means is configured to detect the threshold between the levels corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. When the difference value is larger than the value, the density level signal corresponding to the one higher density level is generated as the density level signal to be generated, and the current density level and one lower level are generated. The density level signal generated when the difference value is smaller than the inter-level threshold corresponding to the inter-level boundary between the density levels, and the density level signal corresponding to the one lower density level. A gas detection device that generates a concentration level signal is preferable.
[0039]
The gas detection device of the present invention generates a concentration level signal corresponding to a higher concentration level as a concentration level signal to be generated when the difference value increases and the concentration level is increased from the present level. That is, the density level is increased by one rank. Further, when the difference value becomes smaller and the density level is lowered than the present level, a density level signal corresponding to the density level one level lower is generated as a density level signal to be generated. That is, the density level is lowered by one rank.
Thus, by changing the density level signal one by one to the higher level or the lower level, a sudden change in the output density level signal can be avoided.
[0040]
Alternatively, in the gas detection device, the concentration level signal switching generation unit may be configured to detect the threshold between levels corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. As the density level signal generated when the difference value is larger than the value, the highest level among the one or more boundary between the density levels corresponding to the threshold between levels exceeding the difference value The density level signal corresponding to the density level located on the higher side of the boundary between the density levels is generated, and the boundary between the levels between the current density level and the density level one level lower than the current density level is generated. As the density level signal generated when the difference value is smaller than the threshold value between levels, 1 or corresponding to the threshold value between levels where the difference value is lower Among the number of the density levels between the boundaries, it may be a gas detection device for generating the density level signal corresponding to the density level which is located to the low side between the lowest-order of the density level boundaries.
[0041]
The gas detection device of the present invention generates a concentration level signal corresponding to the concentration level corresponding to the difference value D (n) when the difference value is increased and the concentration level is increased from the current level. That is, the density level corresponding to the calculated difference value D (n) is changed. Also, when the difference value becomes smaller and the density level is lowered than the present level, a density level signal corresponding to the density level corresponding to the difference value D (n) is generated. That is, the density level corresponding to the calculated difference value D (n) is changed.
By changing the concentration level signal to the one corresponding to the obtained difference value D (n) in this way, the difference level D (n) and therefore the concentration level signal corresponding to the concentration of the specific gas are always output. can do.
[0042]
Still another solution is a gas detection device that uses a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to generate a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for outputting the sensor resistance value conversion circuit for increasing the sensor output potential when the concentration of the specific gas increases; and A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring a sensor output value; first base value calculation means for calculating a base value from the sensor output value according to the following equation (1);
B (n) = B (n-1) + k1 {S (n) -B (n-1)} (1)
Where S (n) is the sensor output value, B (n) is the base value, k1 is the first coefficient, 0 <k1 <1, n is an integer indicating the time-series order, and the sensor output value and the base value Difference value calculating means for calculating a difference value according to the following formula (2) from:
D (n) = S (n) -B (n) (2)
D (n) is a density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a difference value and a plurality of density levels, and an inter-level boundary between the plurality of density levels. A plurality of level-up threshold values corresponding to one-to-one, the level-up threshold value being larger as the level-up threshold value corresponding to the higher boundary between the density levels, and the plurality of density levels A plurality of level-down threshold values corresponding to the boundary between the levels, and the larger the level-down threshold value corresponding to the higher level boundary between the concentration levels, A level-down threshold value that is smaller than the corresponding level-up threshold value, and between the current density level and the density level one level higher than the current level. The density corresponding to a density level higher than the density level corresponding to the density level signal currently generated when the difference value is larger than the level-up threshold value corresponding to the boundary between levels. A level signal is generated, and when the difference value is smaller than the level-down threshold value corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, A density level signal switching generating means for generating the density level signal corresponding to a density level lower than the density level corresponding to the density level signal currently generated, and the density level signal switching generating means; During the generation period of the density level signal corresponding to the density level higher than the density level, the following equation (1) is obtained from the sensor output value instead of the equation (1). A second base value calculation means for calculating a base value in accordance)
B (n) = B (n-1) + k2 {S (n) -B (n-1)} (3)
However, k2 is a 2nd coefficient and is a gas detection apparatus provided with 0 <= k2 <k1 <1.
[0043]
The gas detection apparatus of the present invention also has first and second base value calculation means for calculating the base value B (n) in addition to the sensor resistance value conversion circuit and the A / D conversion means. The base value is calculated while switching. Since the first base value calculation means uses the first coefficient k1, the base value B (n) follows relatively quickly while slightly lagging behind the sensor output value S (n). First, while the base value is calculated by the first base value calculation means, that is, when the change in the sensor output value is small, such as when the concentration of the specific gas remains low, the difference value D (n) is not so large. It does not become a big value. However, if the concentration of the specific gas is increased and the sensor output value S (n) is greatly changed (increased), the base value B (n) cannot sufficiently follow, and the difference value D (n) becomes large. When D (n) exceeds some of a plurality of level-up thresholds, the density level signal switching generating means generates a corresponding density level signal. Further, during the generation period of the density level signal corresponding to the density level higher than the predetermined density level, the second base value calculation means is used for calculating the base value B (n).
[0044]
Since the second coefficient k2 used in the second base value calculation means is relatively small (0 ≦ k2 <k1), the change in the base value B (n) becomes slow, and the follow-up to the sensor output value is relatively slow. Become. Alternatively, the base value B (n) does not change (when k2 = 0). As described above, the base value B (n) calculated using the relatively small second coefficient k2 is a value affected by the past sensor output value or base value, specifically, the base value B (n). The value affected by the base value calculated by the equation (1) immediately before switching the calculation formula from the equation (1) to the equation (3), and therefore the influence of the sensor output value and the base value before the switching. It is the received value. In other words, the base value B (n) calculated by the second base value calculating means keeps a constant value while following the sensor output value S (n) slowly, that is, gradually, or maintaining a constant value. It reflects or maintains the state immediately before the concentration rises.
Accordingly, if the difference value D (n), which is the difference between the base value B (n) calculated by the second base value calculation means and the current sensor output value S (n), is used, the current concentration of the specific gas is determined. The level can be determined based on the density at the time when the calculation formula of the base value B (n) is switched from the formula (1) to the formula (3) in the past.
[0045]
Therefore, when it is determined that the density level is different from the density level corresponding to the currently generated density level signal due to the variation of the difference value D (n), the density level signal is switched. That is, even when the concentration of the specific gas decreases or increases and the sensor output value S (n) decreases or increases, it is easily determined that the concentration of the specific gas decreases or increases based on the difference value D (n). it can.
For example, when the concentration of the specific gas decreases and the difference value D (n) becomes a value corresponding to a lower concentration level, the concentration is lower than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is lowered. On the other hand, when the concentration of the specific gas increases and the difference value D (n) becomes a value corresponding to the higher concentration level, the concentration higher than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is increased.
Note that the rank of the density level signal is also raised or lowered when the base value B (n) is calculated by the second base value calculation means.
[0046]
Further, when the density level is equal to or lower than a predetermined density level, the base value B (n) is calculated again by the first base value calculating means instead of the second base value calculating means. Thereby, the base value B (n) again follows the sensor output value S (n) relatively quickly. Therefore, even if the concentration of the specific gas subsequently increases again, the increase in concentration can be detected quickly and reliably.
Note that the first coefficient k1 and the second coefficient k2 may be appropriately selected depending on the sampling period in the A / D conversion means, the fluctuation range of the sensor output value S (n), and the like.
[0047]
As described above, in the gas detection device of the present invention, the concentration level signal switching generation means switches and generates a plurality of concentration level signals respectively corresponding to the plurality of concentration levels. A density level signal corresponding to a finer density level can be generated. For this reason, in various control systems such as flap control in an autoventilation system using this gas detection device and fan control in an air purifier control system, finer control according to the concentration level of a specific gas is performed. be able to.
Thus, in calculating the base value B (n), the gas detection device of the present invention uses two different coefficients k1 and k2 and uses different calculation methods of the equations (1) and (3). . For this reason, by adjusting the coefficients k1 and k2, respectively, it is possible to set conditions suitable for the concentration rising time and the falling time.
In addition, when the density level signal is generated, a level-up threshold value corresponding to the boundary between density levels and a level-down threshold value smaller than the level-up threshold value corresponding to the boundary between the density levels of the peers Therefore, when the difference value D (n) is close to the threshold value, chattering in which the density level signal changes frequently is prevented.
[0048]
Further, in the gas detection device, the concentration level signal switching generating means is configured to increase the level corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. When the difference value is larger than the value, the density level signal corresponding to the one higher density level is generated as the density level signal to be generated, and the current density level and one lower level are generated. The density level signal generated when the difference value is smaller than the level-down threshold value corresponding to the level-level boundary between the density level and the density level signal corresponding to the one lower density level. A gas detection device that generates a concentration level signal is preferable.
[0049]
The gas detection device of the present invention generates a concentration level signal corresponding to a higher concentration level as a concentration level signal to be generated when the difference value increases and the concentration level is increased from the present level. That is, the density level is increased by one rank. Further, when the difference value becomes smaller and the density level is lowered than the present level, a density level signal corresponding to the density level one level lower is generated as a density level signal to be generated. That is, the density level is lowered by one rank.
In this way, by changing the density level signal one by one to a high level or a low level, a sudden change in the output density level signal can be avoided.
[0050]
Alternatively, in the gas detection device, the concentration level signal switching generating means may be configured to increase the level corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. When the difference value is larger than a value, the highest density among the one or more boundary between the density levels corresponding to the level-up threshold exceeding the difference value as the density level signal. Generating the density level signal corresponding to the density level positioned on the higher side of the inter-level boundary, and corresponding to the inter-level boundary between the current density level and the density level one level lower than the current density level; When the difference value is smaller than the level-down threshold value, the density level signal is 1 or corresponding to the level-down threshold value where the difference value is lower. Among the number of the density levels between the boundaries, it may be a gas detection device for generating the density level signal corresponding to the density level which is located to the low side between the lowest-order of the density level boundaries.
[0051]
The gas detection device of the present invention generates a concentration level signal corresponding to the concentration level corresponding to the difference value D (n) when the difference value is increased and the concentration level is increased from the current level. That is, the density level corresponding to the calculated difference value D (n) is changed. Also, when the difference value becomes smaller and the density level is lowered than the present level, a density level signal corresponding to the density level corresponding to the difference value D (n) is generated. That is, the density level corresponding to the calculated difference value D (n) is changed.
Thus, by changing the concentration level signal to one corresponding to the obtained difference value D (n), the concentration level signal corresponding to the difference value D (n), and hence the concentration of the specific gas, is always output. be able to.
[0052]
Furthermore, in the gas detection device according to any one of the above, the predetermined concentration level in the second base value calculation unit is the lowest among the plurality of concentration levels of the concentration level signal switching generation unit. A gas detection device having a concentration level may be used.
[0053]
In calculating the base value B (n), the second base value calculation means is used during the generation period of the density level signal corresponding to the density level higher than the lowest density level as in the present invention. The subsequent base value B (n) is calculated on the basis of the concentration at the time when the concentration of the specific gas increases from the lowest concentration level to the concentration level one level higher than that. For this reason, since the lowest concentration level can be used as a reference, the concentration level of the specific gas can be compared more accurately.
[0054]
Furthermore, in the gas detection device according to any one of the above, the second coefficient k2 may be a gas detection device in which k2> 0.
[0055]
In the gas detection device of the present invention, the second coefficient k2 is larger than 0 (k2> 0). For this reason, the base value B (n) calculated by the second base value calculation means during the generation period of the high concentration signal of the specific gas is not constant but follows the sensor output value S (n) although it is slow. Change.
As described above, the gas sensor element is affected not only by the change in the concentration of the specific gas but also by the environment such as temperature and humidity, the wind speed, and the like, and the sensor output value S (n) is obtained even when the concentration of the specific gas is constant. May change gradually. If the concentration of the specific gas increases and then decreases, specifically, the calculation of the base value B (n) is changed from the first base value calculating means to the second base value calculating means. If a drift occurs in the direction in which the sensor output value S (n) increases during the period during which the sensor gas is flowing, the sensor output value S (n) is caused by the drift even if the concentration of the specific gas is reduced to the same level as before the increase. Decreases only to a value greater than the value before the rise. Here, when the second coefficient k2 = 0, the base value B (n) does not change (B (n) = B (n−1)) according to the equation (3), so the difference value D ( n) also decreases only to a value larger than the value before the increase. Therefore, there is a risk that the concentration of the specific gas is actually lowered, but the difference value D (n) is large, so that it is erroneously determined that the concentration of the specific gas is high, and the decrease in the gas concentration cannot be determined. There is sex. For this reason, when the gas detection device of the present invention is used in a vehicle auto-ventilation system or an air purifier control system, the flap may remain closed for a long time or the fan may rotate at a high speed. This makes it difficult to control properly.
[0056]
On the other hand, in the present invention, since k2> 0, the base value B (n) follows the sensor output value S (n) although it is slow, even if the sensor output value S (n) drifts. After that, even when the concentration of the specific gas decreases, the difference value D (n) gradually decreases with the passage of time. Accordingly, when a certain amount of time has elapsed, a low density signal is always generated, or the density level is lowered to a lower density level, and a density level signal corresponding to this can be generated.
Therefore, in a vehicle auto-ventilation system or an air purifier control system, appropriate control can be performed such as opening a flap or lowering a fan when a certain amount of time has elapsed.
In addition, when a certain amount of time has elapsed, the base value B (n) can be calculated by using the first base value calculating unit instead of the second base value calculating unit, so that the sensor output value S again. A base value B (n) that follows (n) relatively quickly can be calculated, and this can be detected with respect to an increase in the concentration of the specific gas.
[0057]
Still another solution is a gas detection device that uses a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to generate a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for outputting a sensor resistance value conversion circuit for decreasing the sensor output potential when the concentration of the specific gas increases; and A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring a sensor output value; third base value calculation means for calculating a base value from the sensor output value according to the following equation (4);
B (n) = B (n-1) + k3 {S (n) -B (n-1)} (4)
However, S (n) is a sensor output value, B (n) is a base value, k3 is a third coefficient, 0 <k3 <1, n is an integer indicating a time-series order, and the sensor output value S (n ) And a base value B (n), a difference value calculating means for calculating a difference value D (n) according to the following equation (5):
D (n) = B (n) -S (n) (5)
However, D (n) is a density signal generating means for generating a difference value, either a low density signal or a high density signal, and when the difference value is larger than a predetermined density threshold, A concentration signal generating means for generating a signal and a base value B (n) according to the following equation (6) from the sensor output value S (n) instead of the above equation (4) during the generation period of the high concentration signal. A fourth base value calculating means for calculating;
B (n) = B (n-1) + k4 {S (n) -B (n-1)} (6)
However, k4 is a 4th coefficient and is a gas detection apparatus provided with 0 <= k4 <k3 <1.
[0058]
In addition to the sensor resistance value conversion circuit and the A / D conversion means, the gas detection device of the present invention has third and fourth base value calculation means for calculating the base value B (n) having such properties, The base value is calculated while switching between the two calculation means. Of these, the third base value calculation means uses a relatively large third coefficient k3 (k3> k4), so that the base value B (n) follows relatively quickly with a slight delay from the sensor output value S (n). To do. Therefore, when the base value is calculated by the third base value calculating means, that is, when the concentration of the specific gas remains low, the sensor output value is little changed, and a low concentration signal is generated. The difference value D (n) (= B (n) −S (n)) does not become a very large value. However, if the concentration of the specific gas is increased and the sensor output value S (n) is greatly changed (decreased), the base value B (n) cannot sufficiently follow, and the difference value D (n) increases. When this magnitude exceeds the density threshold value, the density signal generating means generates a high density signal instead of the low density signal. At the same time, the fourth base value calculating means is used for calculating the base value B (n).
[0059]
Since the fourth coefficient k4 used in the fourth base value calculating means is relatively small (0 ≦ k4 <k3), the change in the base value B (n) becomes slow, and the follow-up to the sensor output value is relatively slow. Become. Alternatively, the base value B (n) does not change (when k4 = 0). As described above, the base value calculated by using the relatively small fourth coefficient k4 is a value affected by the past sensor output value or base value, specifically, a calculation formula for the base value B (n). The value affected by the base value calculated by the expression (4) immediately before switching from the expression (4) to the expression (6), and therefore the value influenced by the sensor output value and the base value before switching. It has become. Typically, when k4 = 0, the base value B (n) can be easily understood from maintaining the base value immediately before switching. In other words, the base value B (n) calculated by the fourth base value calculating means keeps a constant value while following the sensor output value S (n) slowly, that is, gradually, or maintaining a constant value. It reflects or maintains the state immediately before the concentration rises.
Therefore, the value represented by the difference value D (n), which is the difference between the current sensor output value S (n) and the base value B (n) calculated by the fourth base value calculating means, is the current, that is, the concentration of the specific gas. It is a value obtained by comparing the state after the rise of the value and the past, that is, the state before the concentration rises.
For this reason, when the concentration of the specific gas decreases again and the sensor output value S (n) increases, the concentration of the specific gas decreases due to the difference value D (n) from the base value B (n). Can be easily determined. Specifically, the density signal generating means generates a low density signal instead of the high density signal.
[0060]
Further, in synchronism with the generation of the low density signal instead of the high density signal, the third base value calculation means using the third coefficient k3 instead of the base value B (n) instead of the fourth base value calculation means. calculate. Thereby, the base value B (n) again follows the sensor output value S (n) relatively quickly. Therefore, even if the concentration of the specific gas subsequently increases again, the increase in concentration can be detected quickly and reliably.
Note that the third coefficient k3 and the fourth coefficient k4 may be appropriately selected depending on the sampling period in the A / D conversion means, the fluctuation range of the sensor output value S (n), and the like.
[0061]
Further, the gas detection device has a concentration high threshold and a concentration low threshold smaller than the concentration high threshold instead of the predetermined concentration threshold, and the concentration signal When the difference value becomes larger than the high density threshold during the low density signal generation period, the generation means generates the high density signal instead of the low density signal, and during the high density signal generation period, If the difference value becomes smaller than the low concentration threshold, the gas detection device may generate a low concentration signal instead of the high concentration signal.
[0062]
The gas detector of the present invention has two threshold values, a high concentration threshold value and a low concentration threshold value. When generating a high concentration signal instead of a low concentration signal, the high concentration threshold value is generated. In addition, when generating a low density signal instead of a high density signal, the determination is based on a low density threshold value smaller than the high density threshold value. For this reason, when the difference value D (n) becomes a value close to these threshold values, chattering in which the high density signal and the low density signal are frequently switched due to a slight change in the difference value is prevented.
[0063]
Still another solution is a gas detection device that uses a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to generate a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for outputting a sensor resistance value conversion circuit for decreasing the sensor output potential when the concentration of the specific gas increases; and A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring a sensor output value; third base value calculation means for calculating a base value from the sensor output value according to the following equation (4);
B (n) = B (n-1) + k3 {S (n) -B (n-1)} (4)
However, S (n) is a sensor output value, B (n) is a base value, k3 is a third coefficient, 0 <k3 <1, n is an integer indicating a time-series order, the sensor output value and the base value Difference value calculating means for calculating a difference value according to the following formula (5) from:
D (n) = B (n) -S (n) (5)
D (n) is a density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a difference value and a plurality of density levels, and an inter-level boundary between the plurality of density levels. A plurality of inter-level thresholds corresponding to one-to-one, the inter-level threshold corresponding to the higher inter-density level boundary, and having a larger inter-level threshold, When the difference value is larger than the inter-level threshold corresponding to the inter-level boundary between the density level and the one higher level, the higher density level than the current density level. The density level signal corresponding to the density level is generated, and the threshold between the levels corresponding to the boundary between the levels between the current density level and the density level one lower than the current density level is higher than the threshold between levels. The density level signal switching generating means for generating the density level signal corresponding to a density level lower than the current density level when the fraction value is small, and the density level signal switching generating means, the predetermined density level A fourth base value calculating means for calculating a base value according to the following equation (6) from the sensor output value instead of the equation (4) during the generation period of the density level signal corresponding to the higher density level:
B (n) = B (n-1) + k4 {S (n) -B (n-1)} (6)
However, k4 is a 4th coefficient and is a gas detection apparatus provided with 0 <= k4 <k3 <1.
[0064]
The gas detection apparatus of the present invention also has third and fourth base value calculation means for calculating the base value B (n) in addition to the sensor resistance value conversion circuit and the A / D conversion means. The base value is calculated while switching. Since the third base value calculation means uses a relatively large third coefficient k3 (k3> k4), the base value B (n) follows relatively quickly with a slight delay from the sensor output value S (n). First, the difference value D (n) (= B (n) is calculated while the base value is calculated by the third base value calculating means, that is, when the concentration of the specific gas remains low. -S (n)) is not very large. However, if the concentration of the specific gas is increased and the sensor output value S (n) is greatly changed (decreased), the base value B (n) cannot sufficiently follow, and the difference value D (n) becomes large. When D (n) exceeds several thresholds between levels, the current density level, that is, the density level corresponding to the density level higher than the density level corresponding to the density level signal currently generated Generate a signal. That is, the rank of the density level signal is increased. Further, during the generation period of the density level signal corresponding to the density level higher than the predetermined density level, the fourth base value calculation means is used for calculating the base value B (n).
[0065]
Since the fourth coefficient k4 used in the fourth base value calculation means is relatively small (0 ≦ k4 <k3), the change in the base value B (n) becomes slow, and the follow-up to the sensor output value is relatively slow. Become. Alternatively, the base value B (n) does not change (when k4 = 0). As described above, the base value B (n) calculated using the relatively small fourth coefficient k4 is a value affected by the past sensor output value or base value, specifically, the base value B (n). The value affected by the base value calculated by the equation (4) immediately before switching the calculation formula from the equation (4) to the equation (6), and therefore the influence of the sensor output value and the base value before the switching. It is the received value. In other words, the base value B (n) calculated by the fourth base value calculating means keeps a constant value while following the sensor output value S (n) slowly, that is, gradually, or maintaining a constant value. It reflects or maintains the state immediately before the concentration rises.
Therefore, if the difference value D (n), which is the difference between the base value B (n) calculated by the fourth base value calculation means and the current sensor output value S (n), is used, the current concentration of the specific gas is determined. The level can be determined based on the density at the time when the calculation formula of the base value B (n) is switched from the formula (4) to the formula (6) in the past.
[0066]
Therefore, when it is determined that the density level is different from the density level corresponding to the currently generated density level signal due to the variation of the difference value D (n), the density level signal is switched. That is, even when the concentration of the specific gas decreases or increases and the sensor output value S (n) decreases or increases, it is easily determined that the concentration of the specific gas decreases or increases based on the difference value D (n). it can.
For example, when the concentration of the specific gas decreases and the difference value D (n) becomes a value corresponding to a lower concentration level, the concentration is lower than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is lowered. On the other hand, when the concentration of the specific gas increases and the difference value D (n) becomes a value corresponding to the higher concentration level, the concentration higher than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is increased.
Note that the rank of the density level signal is also raised or lowered when the base value B (n) is calculated by the fourth base value calculation means.
[0067]
Further, when the difference value D (n) becomes a value corresponding to a density level equal to or lower than the predetermined density level during the generation period of the density level signal corresponding to the density level higher than the predetermined density level. The base value B (n) is calculated again by the 31st base value calculating means instead of the fourth base value calculating means. Thereby, the base value B (n) again follows the sensor output value S (n) relatively quickly. Therefore, even if the concentration of the specific gas subsequently increases again, the increase in concentration can be detected quickly and reliably.
Note that the third coefficient k3 and the fourth coefficient k4 may be appropriately selected depending on the sampling period in the A / D conversion means, the fluctuation range of the sensor output value S (n), and the like.
[0068]
In the gas detection device of the present invention, the concentration level signal switching generating means switches and generates a plurality of concentration level signals respectively corresponding to a plurality of concentration levels, so that not only the concentration of the specific gas is high but also a finer concentration. A density level signal corresponding to the level can be generated. For this reason, in various control systems such as flap control in an autoventilation system using this gas detection device and fan control in an air purifier control system, finer control according to the concentration level of a specific gas is performed. be able to.
[0069]
Further, in the gas detection device, the concentration level signal switching generating means is configured to detect the threshold between the levels corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. When the difference value is larger than the value, the density level signal corresponding to the one higher density level is generated as the density level signal to be generated, and the current density level and one lower level are generated. The density level signal generated when the difference value is smaller than the inter-level threshold corresponding to the inter-level boundary between the density levels, and the density level signal corresponding to the one lower density level. A gas detection device that generates a concentration level signal is preferable.
[0070]
The gas detection device of the present invention generates a concentration level signal corresponding to a higher concentration level as a concentration level signal to be generated when the difference value increases and the concentration level is increased from the present level. That is, the density level is increased by one rank. Further, when the difference value becomes smaller and the density level is lowered than the present level, a density level signal corresponding to the density level one level lower is generated as a density level signal to be generated. That is, the density level is lowered by one rank.
In this way, the density level signal is changed to high level or low level one by one, so that sudden change of the output density level signal can be avoided.
[0071]
Alternatively, in the gas detection device, the concentration level signal switching generation unit may be configured to detect the threshold between levels corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. As the density level signal generated when the difference value is larger than the value, the highest level among the one or more boundary between the density levels corresponding to the threshold between levels exceeding the difference value The density level signal corresponding to the density level located on the higher side of the boundary between the density levels is generated, and the boundary between the levels between the current density level and the density level one level lower than the current density level is generated. As the density level signal generated when the difference value is smaller than the threshold value between levels, 1 or corresponding to the threshold value between levels where the difference value is lower Among the number of the density levels between the boundaries, it may be a gas detection device for generating the density level signal corresponding to the density level which is located to the low side between the lowest-order of the density level boundaries.
[0072]
The gas detection device of the present invention generates a concentration level signal corresponding to the concentration level corresponding to the difference value D (n) when the difference value is increased and the concentration level is increased from the current level. That is, the density level corresponding to the calculated difference value D (n) is changed. Also, when the difference value becomes smaller and the density level is lowered than the present level, a density level signal corresponding to the density level corresponding to the difference value D (n) is generated. That is, the density level corresponding to the calculated difference value D (n) is changed.
Thus, by changing the concentration level signal to one corresponding to the obtained difference value D (n), the concentration level signal corresponding to the difference value D (n) and therefore the concentration of the specific gas is always output. be able to.
[0073]
Still another solution is a gas detection device that uses a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to generate a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for outputting a sensor resistance value conversion circuit for decreasing the sensor output potential when the concentration of the specific gas increases; and A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring a sensor output value; third base value calculation means for calculating a base value from the sensor output value according to the following equation (4);
B (n) = B (n-1) + k3 {S (n) -B (n-1)} (4)
However, S (n) is a sensor output value, B (n) is a base value, k3 is a third coefficient, 0 <k3 <1, n is an integer indicating a time-series order, the sensor output value and the base value Difference value calculating means for calculating a difference value according to the following formula (5) from:
D (n) = B (n) -S (n) (5)
D (n) is a density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a difference value and a plurality of density levels, and an inter-level boundary between the plurality of density levels. A plurality of level-up threshold values corresponding to one-to-one, the level-up threshold value being larger as the level-up threshold value corresponding to the higher boundary between the density levels, and the plurality of density levels A plurality of level-down threshold values corresponding to the boundary between the levels, and the larger the level-down threshold value corresponding to the higher level boundary between the concentration levels, A level-down threshold value that is smaller than the corresponding level-up threshold value, between the current density level and the density level one level higher than the current level. When the difference value is larger than the level-up threshold corresponding to the boundary between the recording levels, the level corresponding to a density level higher than the density level corresponding to the density level signal currently generated. A density level signal is generated, and when the difference value is smaller than the level down threshold corresponding to the boundary between levels between the current density level and the density level one lower than the current density level, A density level signal switching generating means for generating the density level signal corresponding to a density level lower than the density level corresponding to the currently generated density level signal, and the density level signal switching generating means; In the generation period of the density level signal corresponding to the density level higher than the above density level, instead of the above formula (4), the following formula is obtained from the sensor output value. A fourth base value calculation means for calculating a base value according to 6),
B (n) = B (n-1) + k4 {S (n) -B (n-1)} (6)
However, k4 is a 4th coefficient and is a gas detection apparatus provided with 0 <= k4 <k3 <1.
[0074]
The gas detection apparatus of the present invention also has third and fourth base value calculation means for calculating the base value B (n) in addition to the sensor resistance value conversion circuit and the A / D conversion means. The base value is calculated while switching. Since the third base value calculation means uses the third coefficient k3, the base value B (n) follows relatively quickly with a slight delay from the sensor output value S (n). First, while the base value is calculated by the third base value calculating means, that is, when the change in the sensor output value is small, such as when the concentration of the specific gas remains low, the difference value D (n) is not so large. It does not become a big value. However, if the concentration of the specific gas is increased and the sensor output value S (n) is greatly changed (decreased), the base value B (n) cannot sufficiently follow, and the difference value D (n) becomes large. When D (n) exceeds some of a plurality of level-up thresholds, the density level signal switching generating means generates a corresponding density level signal. Further, during the generation period of the density level signal corresponding to the density level higher than the predetermined density level, the fourth base value calculation means is used for calculating the base value B (n).
[0075]
Since the fourth coefficient k4 used in the fourth base value calculation means is relatively small (0 ≦ k4 <k3), the change in the base value B (n) becomes slow, and the follow-up to the sensor output value is relatively slow. Become. Alternatively, the base value B (n) does not change (when k4 = 0). As described above, the base value B (n) calculated using the relatively small fourth coefficient k4 is a value affected by the past sensor output value or base value, specifically, the base value B (n). The value affected by the base value calculated by the equation (4) immediately before switching the calculation formula from the equation (4) to the equation (6), and therefore the influence of the sensor output value and the base value before the switching. It is the received value. That is, the base value B (n) calculated by the fourth base value calculating means is a state immediately before the concentration of the specific gas increases while gradually approaching the sensor output value S (n) or maintains a constant value. Will be reflected or maintained.
Therefore, if the difference value D (n), which is the difference between the base value B (n) calculated by the fourth base value calculation means and the current sensor output value S (n), is used, the current concentration of the specific gas is determined. The level can be determined based on the density at the time when the calculation formula of the base value B (n) is switched from the formula (4) to the formula (6) in the past.
[0076]
Therefore, when it is determined that the density level is different from the density level corresponding to the currently generated density level signal due to the variation of the difference value D (n), the density level signal is switched. That is, even when the concentration of the specific gas decreases or increases and the sensor output value S (n) decreases or increases, it is easily determined that the concentration of the specific gas decreases or increases based on the difference value D (n). it can.
For example, when the concentration of the specific gas decreases and the difference value D (n) becomes a value corresponding to a lower concentration level, the concentration is lower than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is lowered. On the other hand, when the concentration of the specific gas increases and the difference value D (n) becomes a value corresponding to the higher concentration level, the concentration higher than the concentration level corresponding to the concentration level signal currently generated. A density level signal corresponding to the level is generated. That is, the rank of the density level signal is increased.
Note that the rank of the density level signal is also raised or lowered when the base value B (n) is calculated by the fourth base value calculation means.
[0077]
Further, when the density level is equal to or lower than a predetermined density level, the base value B (n) is calculated again by the third base value calculating means instead of the fourth base value calculating means. Thereby, the base value B (n) again follows the sensor output value S (n) relatively quickly. Therefore, even if the concentration of the specific gas subsequently increases again, the increase in concentration can be detected quickly and reliably.
Note that the third coefficient k3 and the fourth coefficient k4 may be appropriately selected depending on the sampling period in the A / D conversion means, the fluctuation range of the sensor output value S (n), and the like.
[0078]
As described above, in the gas detection device of the present invention, the concentration level signal switching generation means switches and generates a plurality of concentration level signals respectively corresponding to the plurality of concentration levels. A density level signal corresponding to a finer density level can be generated. For this reason, in various control systems such as flap control in an autoventilation system using this gas detection device and fan control in an air purifier control system, finer control according to the concentration level of a specific gas is performed. be able to.
In addition, when the density level signal is generated, a level-up threshold value corresponding to the boundary between density levels and a level-down threshold value smaller than the level-up threshold value corresponding to the boundary between the density levels of the peers Therefore, when the difference value D (n) is close to the threshold value, chattering in which the density level signal changes frequently is prevented.
[0079]
Further, in the gas detection device, the concentration level signal switching generating means is configured to increase the level corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. When the difference value is larger than the value, the density level signal corresponding to the one higher density level is generated as the density level signal, and the current density level and the density one lower than the current density level are generated. When the difference value is smaller than the level-down threshold value corresponding to the inter-level boundary between levels, the density level signal corresponding to the one lower density level is used as the density level signal. It is preferable to use a gas detection device.
[0080]
The gas detection device of the present invention generates a concentration level signal corresponding to a higher concentration level as a concentration level signal to be generated when the difference value increases and the concentration level is increased from the present level. That is, the density level is increased by one rank. Further, when the difference value becomes smaller and the density level is lowered than the present level, a density level signal corresponding to the density level one level lower is generated as a density level signal to be generated. That is, the density level is lowered by one rank.
In this way, by changing the density level signal one by one to a high level or a low level, a sudden change in the output density level signal can be avoided.
[0081]
Alternatively, in the gas detection device, the concentration level signal switching generating means may be configured to increase the level corresponding to the boundary between the levels between the current concentration level and the concentration level one level higher than the current concentration level. When the difference value is larger than a value, the highest density among the one or more boundary between the density levels corresponding to the level-up threshold exceeding the difference value as the density level signal. Generating the density level signal corresponding to the density level positioned on the higher side of the inter-level boundary, and corresponding to the inter-level boundary between the current density level and the density level one level lower than the current density level; When the difference value is smaller than the level-down threshold value, the density level signal is 1 or corresponding to the level-down threshold value where the difference value is lower. Among the number of the density levels between the boundaries, it may be a gas detection device for generating the density level signal corresponding to the density level which is located to the low side between the lowest-order of the density level boundaries.
[0082]
In the gas detection device of the present invention, when the difference value increases to increase the concentration level, a concentration level signal corresponding to the concentration level corresponding to the difference value D (n) is generated. That is, the density level corresponding to the calculated difference value D (n) is changed. Further, when the difference value becomes small and the density level is lowered, a density level signal corresponding to the density level corresponding to the difference value D (n) is generated. That is, the density level corresponding to the calculated difference value D (n) is changed.
Thus, by changing the concentration level signal to one corresponding to the obtained difference value D (n), the concentration level signal corresponding to the difference value D (n) and therefore the concentration of the specific gas is always output. be able to.
[0083]
Furthermore, in the gas detection device according to any one of the above, the predetermined concentration level in the fourth base value calculation unit is the lowest among the plurality of concentration levels of the concentration level signal switching generation unit. A gas detection device having a concentration level may be used.
[0084]
In calculating the base value B (n), the fourth base value calculation means is used during the generation period of the density level signal corresponding to the density level higher than the lowest density level as in the present invention. The subsequent base value B (n) is calculated on the basis of the concentration at the time when the concentration of the specific gas increases from the lowest concentration level to the concentration level one level higher than that. For this reason, since the lowest concentration level can be used as a reference, the concentration level of the specific gas can be compared more accurately.
[0085]
Furthermore, in the gas detection device according to any one of the above, the fourth coefficient k4 may be a gas detection device in which k4> 0.
[0086]
In the gas detection device of the present invention, the fourth coefficient k4 is larger than 0 (k4> 0). For this reason, the base value B (n) calculated by the fourth base value calculation means during the generation period of the high concentration signal of the specific gas is not constant and follows the sensor output value S (n) although it is slow. Change.
As described above, the gas sensor element is affected not only by the change in the concentration of the specific gas but also by the environment such as temperature and humidity, the wind speed, and the like, and the sensor output value S (n) is obtained even when the concentration of the specific gas is constant. May change gradually. If the concentration of the specific gas increases and thereafter decreases, specifically, the calculation of the base value B (n) is changed from the third base value calculating means to the fourth base value calculating means. If a drift occurs in the direction in which the sensor output value S (n) decreases during the period during which the sensor gas is flowing, the sensor output value S (n) is caused by the drift even when the concentration of the specific gas increases to the same level as before the increase. Will only rise to a value less than the pre-rise value. Here, when the fourth coefficient k4 = 0, the base value B (n) does not change (B (n) = B (n−1)) according to the equation (6), so the difference value D ( n) falls only to a value larger than the value before the gas concentration rises. Therefore, there is a risk that the concentration of the specific gas is actually lowered, but the difference value D (n) is large, so that it is erroneously determined that the concentration of the specific gas is high, and the decrease in the gas concentration cannot be determined. There is sex. For this reason, when the gas detection device of the present invention is used in a vehicle auto-ventilation system or an air purifier control system, the flap may remain closed for a long time or the fan may rotate at a high speed. This makes it difficult to control properly.
[0087]
On the other hand, in the present invention, since k4> 0, the base value B (n) follows the sensor output value S (n) although it is slow, even if the sensor output value S (n) drifts. After that, even when the concentration of the specific gas decreases, the difference value D (n) gradually decreases with the passage of time. Accordingly, when a certain amount of time has elapsed, a low density signal is always generated, or a density level signal corresponding to this can be generated by lowering the density level to a lower density level.
Therefore, in a vehicle auto-ventilation system or an air purifier control system, appropriate control can be performed such as opening a flap or lowering a fan when a certain amount of time has elapsed.
In addition, when a certain amount of time has elapsed, the base value B (n) can be calculated by using the third base value calculating means instead of the fourth base value calculating means, so that the sensor output value S again. A base value B (n) that follows (n) relatively quickly can be calculated, and this can be detected with respect to an increase in the concentration of the specific gas.
[0088]
Still another solution is a gas detection device that uses a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to generate a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for outputting the sensor resistance value conversion circuit for increasing the sensor output potential when the concentration of the specific gas increases; and A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring a sensor output value, differential value calculation means for calculating a differential value from the sensor output value according to the following equation (7),
V (n) = S (n) -S (n-1) (7)
However, S (n) is a sensor output value, V (n) is a differential value, n is an integer indicating a time-series order, and a base value B (n) from the sensor output value S (n) according to the following equation (8) Base value calculating means for calculating
B (n) = B (n-1) + k {S (n) -B (n-1)} (8)
However, k is a coefficient, and 0 <k <1, difference value calculation means for calculating the difference value D (n) from the sensor output value S (n) and the base value B (n) according to the following equation (9) When,
D (n) = S (n) -B (n) (9)
A density signal generating means for generating either a low density signal or a high density signal, wherein the differential value V (n) is greater than a first threshold during the generation period of the low density signal. Density signal generating means for generating a high density signal and generating the low density signal when the difference value D (n) is smaller than a second threshold value during the high density signal generation period. It is a gas detection device.
[0089]
The differential value V (n) obtained by Expression (7) represents the difference between the sensor output value S (n) and the previous value S (n−1), that is, the amount of change. Therefore, for example, if the sensor output value increases greatly, it immediately becomes a large value. For this reason, when using a sensor resistance value conversion circuit whose characteristic is that the sensor output potential increases when the gas concentration increases, the differential value V (n) is used and the sensor is affected by the influence of the environment such as temperature and humidity. By comparing the first threshold value arbitrarily set in consideration of the fluctuation of the output value and the differential value V (n), the influence of the environment such as temperature and humidity is reduced, and the gas concentration is increased. It is possible to catch the increase in concentration at the initial stage. On the other hand, the base value B (n) has a property of changing following the fluctuation of the sensor output value S (n) as described above.
[0090]
In addition to the sensor resistance value conversion circuit and the A / D conversion means, the gas detection device of the present invention calculates the differential value calculation means for calculating the differential value V (n) having such properties, and calculates the base value B (n). Base value calculating means and difference value calculating means for generating and switching between a low density signal and a high density signal. That is, a high density signal is generated when the differential value is larger than the first threshold during the low density signal generation period.
On the other hand, when the difference value D (n) is smaller than the second threshold value during the high density signal generation period, the low density signal is generated. Here, the base value B (n) follows the sensor output value S (n) with a slight delay. Therefore, even if drift occurs in the direction in which the sensor output value S (n) increases, the difference value D (n) gradually decreases with time. For this reason, the difference value D (n) finally becomes smaller than the second threshold value, so that a low density signal can always be generated. In this way, when the gas concentration decreases, the decrease in gas concentration can be detected from the difference value D (n) calculated using the sensor output S (n) and the base value B (n). . In addition, the rate of tracking of the base value with respect to the sensor output value can be adjusted by the coefficient k when calculating the base value.
[0091]
Still another solution is a gas detection device that uses a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to generate a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for outputting a sensor resistance value conversion circuit for decreasing the sensor output potential when the concentration of the specific gas increases; and A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring a sensor output value, differential value calculation means for calculating a differential value from the sensor output value according to the following equation (10),
V (n) = S (n-1) -S (n) (10)
However, S (n) is a sensor output value, V (n) is a differential value, n is an integer indicating a time-series order, and a base value B (n) according to the following equation (11) from the sensor output value S (n) Base value calculating means for calculating
B (n) = B (n-1) + k {S (n) -B (n-1)} (11)
However, k is a coefficient, and 0 <k <1, difference value calculation means for calculating the difference value D (n) from the sensor output value S (n) and the base value B (n) according to the following equation (12) When,
D (n) = B (n) -S (n) (12)
A density signal generating means for generating either a low density signal or a high density signal, wherein the differential value V (n) is greater than a first threshold during the generation period of the low density signal. Density signal generating means for generating a high density signal and generating the low density signal when the difference value D (n) is smaller than a second threshold during the high density signal generation period. It is a gas detection device.
[0092]
The differential value V (n) obtained by the equation (10) represents the difference between the sensor output value S (n−1) immediately before the present and the current sensor output value S (n), that is, the amount of change. However, the expression (7) is a value obtained by reversing positive and negative. Therefore, for example, when the sensor output value is increased, the value immediately increases. For this reason, when using a sensor resistance value conversion circuit whose characteristic that the sensor output potential decreases when the gas concentration increases, this differential value V (n) is used, and the sensor output due to the influence of the environment such as temperature and humidity. By comparing the first threshold value arbitrarily set in consideration of the fluctuation of the value and the differential value V (n), the influence of the environment such as temperature and humidity is reduced, and the initial gas concentration rise It is possible to capture the increase in concentration at each stage. On the other hand, the base value B (n) has a property of changing following the fluctuation of the sensor output value S (n) as described above. Further, the difference value D (n) obtained by the equation (12) is a value obtained by subtracting the sensor output value from the base value, contrary to the equation (9).
[0093]
In addition to the sensor resistance value conversion circuit and the A / D conversion means, the gas detection device of the present invention calculates the differential value calculation means for calculating the differential value V (n) having such properties, and calculates the base value B (n). Base value calculating means and difference value calculating means for generating and switching between a low density signal and a high density signal. That is, a high density signal is generated when the differential value is larger than the first threshold during the low density signal generation period. As described above, by using the differential value, it is possible to capture the increase in concentration at the initial stage of the increase in gas concentration while reducing the influence of the environment such as temperature and humidity.
[0094]
On the other hand, when the difference value D (n) is smaller than the second threshold value during the high density signal generation period, the low density signal is generated. Here, since the base value B (n) follows the sensor output value S (n) with a slight delay, as described above, when the gas concentration decreases, the sensor output S (n) and the base value B A decrease in gas concentration can be detected by the difference value D (n) calculated using (n). In addition, the rate of tracking of the base value with respect to the sensor output value can be adjusted by the coefficient k when calculating the base value.
[0095]
Still another solution is a gas detection device that uses a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, and energizes the gas sensor element to generate a sensor output potential corresponding to the change in the sensor resistance value. A sensor resistance value conversion circuit for outputting the sensor resistance value conversion circuit for increasing the sensor output potential when the concentration of the specific gas increases; and A / D converting the sensor output potential at predetermined time intervals. A / D conversion means for acquiring sensor output values; moving average value calculation means for calculating m moving average values according to the following equation (13) from m sensor output values retroactive to new ones;
Md (n) = {S (n) + S (n−1) +... + S (n− (m−1))} (13)
However, S (n) is a sensor output value, Md (n) is m moving average values, n is an integer indicating the order of time series, m is the number of samples of moving average values, and the sensor output value S (n) first difference value calculating means for calculating a first difference value D (n) from m moving average values Md (n) according to the following equation (14):
D (n) = S (n) -Md (n) (14)
Base value calculating means for calculating a base value B (n) from the sensor output value S (n) according to the following equation (15);
B (n) = B (n-1) + k {S (n) -B (n-1)} (15)
Where k is a coefficient, and 0 <k <1, a second difference value D2 (n) for calculating the second difference value D2 (n) from the sensor output value S (n) and the base value B (n) according to the following equation (16). Difference value calculating means;
D2 (n) = S (n) -B (n) (16)
A density signal generating means for generating either a low density signal or a high density signal, wherein the first difference value D (n) is greater than a first threshold value during the low density signal generation period; A density signal generating means for generating the high density signal and generating the low density signal when the second difference value D2 (n) is smaller than a second threshold during the high density signal generation period. And a gas detection device.
[0096]
The m moving average value Md (n) is an average value of the past m sensor output values S (n) to S (n− (m−1)). This M moving average value Md (n) gently follows the sensor output value S (n). Therefore, for example, when the sensor output value rises gently due to drift or the like, the sensor output value changes following this. However, when the sensor output value changes quickly, the sensor output value cannot be sufficiently followed, so the first difference value becomes a large value. As described above, the base value B (n) also changes following the fluctuation of the sensor output value S (n).
[0097]
In addition to the sensor resistance value conversion circuit and the A / D conversion means, the gas detection device of the present invention includes a moving average value calculation means for calculating m moving average values Md (n) having such properties, a base value B ( a base value calculating means for calculating n), a first difference value calculating means, and a second difference value calculating means, which are generated by switching between a low density signal and a high density signal. That is, a high density signal is generated when the first difference value is larger than the first threshold value during the low density signal generation period. As described above, an increase in gas concentration can be captured by using the moving average value and the first difference value calculated from the moving average value.
On the other hand, a low concentration signal is generated when the second difference value is smaller than the second threshold value during the high concentration signal generation period. The base value follows the sensor output value with a slight delay. Accordingly, during the period in which the concentration decreases, the base value changes with a delay with respect to the sensor output value, so the second difference value gradually decreases and finally becomes smaller than the second threshold value. In this way, when the gas concentration decreases, the decrease in gas concentration can be detected by the second difference value. In addition, the rate of tracking of the base value with respect to the sensor output value can be adjusted by the coefficient k when calculating the base value.
[0098]
As described above, in this gas detection device, in the gas concentration increase stage, the concentration increase can be reliably captured by calculating the moving average value and the first difference value using the moving average value, while in the gas concentration decrease stage. By calculating the base value and the second difference value using the base value, it is possible to capture an appropriate concentration reduction time.
[0099]
Furthermore, a gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas, wherein the sensor resistance value outputs a sensor output potential according to the sensor resistance value change by energizing the gas sensor element. A sensor resistance value conversion circuit that reduces the sensor output potential when the concentration of the specific gas increases, and acquires a sensor output value by A / D converting the sensor output potential every predetermined time A / D conversion means, and moving average value calculating means for calculating m moving average values from the m sensor output values retroactively according to the following equation (17):
Md (n) = {S (n) + S (n−1) +... + S (n− (m−1))} (17)
However, S (n) is a sensor output value, Md (n) is m moving average values, n is an integer indicating the order of time series, m is the number of moving average samples, and the sensor output values S (n) and m First difference value calculating means for calculating a first difference value D (n) from the individual moving average value Md (n) according to the following equation (18);
D (n) = Md (n) -S (n) (18)
Base value calculating means for calculating a base value B (n) from the sensor output value S (n) according to the following equation (19);
B (n) = B (n-1) + k {S (n) -B (n-1)} (19)
However, k is a coefficient, and the second difference value D2 (n) for calculating the second difference value D2 (n) from the sensor output value S (n) and the base value B (n) according to the following equation (20) is 0 <k <1. Difference value calculating means;
D2 (n) = B (n) -S (n) (20)
A density signal generating means for generating either a low density signal or a high density signal, wherein the first difference value D (n) is greater than a first threshold value during the low density signal generation period; Generating the high density signal, and generating the low density signal when the second difference value D2 (n) is smaller than a second threshold value during the high density signal generation period. And a gas detection device.
[0100]
The m moving average value Md (n) is an average value of the past m sensor output values S (n) to S (n− (m−1)). The m moving average values Md (n) gently follow the sensor output value S (n). Therefore, for example, when the sensor output value rises gently due to drift or the like, the m moving average value Md (n) changes following this. When the sensor output value changes quickly, the first difference value becomes a large value because sufficient tracking cannot be performed. As described above, the base value B (n) also changes following the fluctuation of the sensor output value S (n).
However, since the sensor resistance value conversion circuit having the characteristic that the sensor output potential decreases when the gas concentration increases is used, the first difference value D (n) obtained by the equation (18) and the first difference value obtained by the equation (20) are used. The two difference values D2 (n) are values obtained by subtracting the sensor output value from the moving average value or the base value in order to facilitate the handling of the numerical values, contrary to the equation (14) or (16).
[0101]
In addition to the sensor resistance value conversion circuit and the A / D conversion means, the gas detection device of the present invention includes a moving average value calculation means for calculating m moving average values Md (n) having such properties, a base value B ( a base value calculating means for calculating n), a first difference value calculating means, and a second difference value calculating means, which are generated by switching between a low density signal and a high density signal. That is, a high density signal is generated when the first difference value is larger than the first threshold value during the low density signal generation period. As described above, by using the moving average value and the first difference value calculated from the moving average value, it is possible to suppress the influence of noise and capture an increase in gas concentration.
[0102]
On the other hand, a low concentration signal is generated when the second difference value is smaller than the second threshold value during the high concentration signal generation period. The base value follows the sensor output value with a slight delay. Accordingly, during the period in which the concentration decreases, the base value changes with a delay with respect to the sensor output value, so the second difference value gradually decreases and finally becomes smaller than the second threshold value. In this way, when the gas concentration decreases, the decrease in gas concentration can be detected by the second difference value. In addition, the rate of tracking of the base value with respect to the sensor output value can be adjusted by the coefficient k when calculating the base value.
[0103]
As described above, even in this gas detection device, in the gas concentration increase stage, the concentration increase can be reliably captured by calculating the moving average value and the first difference value using the moving average value, while in the gas concentration decrease stage. By calculating the base value and the second difference value using the base value, it is possible to capture an appropriate concentration reduction time.
[0104]
Further, it may be a vehicle auto ventilation system including any of the gas detection devices described above.
[0105]
The vehicle auto-ventilation system according to the present invention appropriately generates a high concentration signal and a low concentration signal or a concentration level signal in accordance with a change in the concentration of a specific gas. Can do.
[0106]
Furthermore, when the open / close device for the outside air inlet, the gas detection device according to any one of the above, and the concentration signal is a low concentration signal, the open / close device for the outside air inlet is fully opened, and the concentration signal is high. When the signal is a signal, the vehicle auto-ventilation system may include an opening / closing instruction means for outputting an opening / closing instruction signal for fully closing the opening / closing device of the outside air inlet.
[0107]
In this vehicle auto-ventilation system, the gas detection device generates a low concentration signal and a high concentration signal according to the concentration of a specific gas. When a high signal is generated, an opening / closing support signal for fully closing the opening / closing device is output. For this reason, according to the density | concentration of specific gas, an opening / closing apparatus can be opened and closed appropriately.
[0108]
Alternatively, the open / close device for the outside air inlet, the gas detector according to any one of the above, and the opening instruction signal for instructing the opening degree of the open / close device for the outside air inlet according to the concentration level signal. It is preferable that the vehicle auto-ventilation system includes a degree instruction means.
[0109]
In the vehicle autoventilation system, the gas detection device generates a concentration level signal corresponding to a specific gas among a plurality of concentration level signals according to the concentration of the specific gas. The opening degree instruction means outputs an opening degree instruction signal for instructing the opening degree of the switchgear according to the concentration level signal. For this reason, the opening degree of the switchgear can be adjusted appropriately according to the concentration of the specific gas.
[0110]
The opening degree instruction signal instructs the opening degree of the switchgear according to the concentration level signal. At this time, the plurality of concentration level signals and the opening degree of the switchgear may be set to correspond one-to-one, but the plurality of concentration level signals may correspond to the same opening degree. For example, when there are five levels of concentration level signals corresponding to five levels of levels 0 to 4, the opening degree of the switchgear is fully opened with respect to the level signals corresponding to levels 0 and 1. The opening degree of the switchgear may be half-opened for the concentration level signal corresponding to level 2, and the opening degree of the switchgear may be fully closed for the concentration level signals corresponding to level 3 and level 4.
[0111]
DETAILED DESCRIPTION OF THE INVENTION
(Embodiment 1)
A first embodiment of the present invention will be described with reference to FIGS. FIG. 1 shows a circuit diagram and a block diagram of a gas detection device 10 according to Embodiment 1, and a schematic configuration of a vehicle autoventilation system 100 including the circuit diagram and block diagram.
First, the gas detection device 10 will be described. This gas detection device 10 reacts with such a specific gas when the gas to be measured (atmosphere in the present embodiment) contains an oxidizing gas component such as NOx, and increases the concentration of the oxidizing gas component in response to the sensor resistance value. The oxide semiconductor gas sensor element 11 of the type in which Rs increases is used. The gas sensor element 11 is disposed outside the automobile.
Using this gas sensor element 11, the sensor output value S (n) is acquired by an acquisition unit including the sensor resistance value conversion circuit 14, the buffer 13, and the A / D conversion circuit 15. Specifically, the sensor resistance value conversion circuit 14 outputs a sensor output potential Vs corresponding to the sensor resistance value Rs of the gas sensor element 11. Specifically, the sensor output potential Vs at the operating point Pd obtained by dividing the power supply voltage Vcc by the gas sensor element 11 and the resistor 12 having the detection resistance value Rd is output via the buffer 13. Therefore, the sensor resistance value conversion circuit 14 is configured such that when the concentration of an oxidizing gas such as NOx increases, the sensor resistance value Rs increases and the sensor output potential Vs increases.
The output (sensor output potential Vs) of the buffer 13 is input to the A / D conversion circuit 15 and digitized at every predetermined sampling period (0.25 seconds in this embodiment). And input to the input terminal 17 of the microcomputer 16. n is a series of integers representing the order.
[0112]
Further, a density signal LV of either a high density signal or a low density signal for controlling the electronic control assembly 20 is output from the output terminal 18 of the microcomputer 16. The electronic control assembly 20 controls a flap 34 of a ventilation system 30 that controls the inside air circulation and outside air intake of the automobile. Specifically, in this embodiment, the ventilation system 30 includes a duct 31 connected to the interior of the automobile interior, and a duct 31 for taking in and circulating the inside air, and a duct 33 for taking in outside air. The flap 34 for switching between is controlled.
In the electronic control assembly 20, the flap drive circuit 21 includes a concentration signal LV from the output terminal 18 of the microcomputer 16, and in accordance with the present embodiment, the concentration of an oxidizing gas component such as NOx increases or decreases. In accordance with the concentration signal LV indicating whether or not, the actuator 22 is operated and the flap 34 is rotated to connect either the inside air intake duct 32 or the outside air intake duct 33 to the duct 31.
[0113]
For example, as shown in the flowchart of FIG. 2, after performing the initial setting in step S1, the density level signal LV is acquired in step S2, and whether or not the density signal LV is a high density signal in step S3, that is, the density. It is determined whether or not a high signal is being generated. Here, when No, that is, when a low concentration signal is being generated, the concentration of the specific gas is low, so in step S4, the flap 34 is fully opened. Thereby, the flap 34 rotates, the outside air intake duct 33 is connected to the duct 31, and the outside air is taken into the vehicle interior. On the other hand, if YES in step S3, that is, if a high concentration signal is being generated, the concentration of the specific gas outside the passenger compartment is high, so in step S5, the flap 34 is instructed to be fully closed. As a result, the flap 34 is rotated, the inside air intake duct 32 is connected to the duct 31, the introduction of the outside air is blocked, and the inside air is circulated.
[0114]
A fan 35 that pumps air is installed in the duct 31. The flap drive circuit 21 may open and close the flap 34 only according to the concentration signal LV. For example, a microcomputer or the like is used to indicate the concentration signal LV from the gas detection device 10 as well as the broken line in the figure. As shown, the flap 34 may be opened and closed in consideration of information from, for example, a room temperature sensor, a humidity sensor, and an outside air temperature sensor.
[0115]
In the microcomputer 16, the sensor output value S (n) input from the input terminal 17 is processed according to the flow described later, so that the oxidizing gas component of the gas sensor element 11 can be determined from the sensor resistance value Rs and the change thereof. Detect density changes. Although not shown in detail, the microcomputer 16 has a known configuration and includes a microprocessor that performs calculations, a RAM that temporarily stores programs and data, a ROM that stores programs and data, and the like. A circuit including the A / D conversion circuit 15 can also be used.
[0116]
Next, the control in the microcomputer 16 will be described with reference to the flowchart of FIG. When the automobile engine is driven, this control system is started. Waiting for the gas sensor element 11 to become active, first, initial setting is performed in step S11. As an initial setting, the initial sensor output value S (0) when the gas sensor element 11 is activated is stored as the base value B (0) (B (0) = S (0)). Further, a low density signal is generated as the density signal LV. Specifically, the density signal LV is set to a low level.
Thereafter, the process proceeds to step S12, and sensor signals, that is, sensor output potential Vs obtained by A / D conversion every 0.25 seconds are sequentially read. Next, in step S13, it is determined whether or not a concentration high signal indicating that the concentration signal LV is currently at a high level, that is, the concentration of the specific gas (oxidizing gas in the present embodiment) is at a high level is generated. If No, that is, the concentration of the specific gas is low, the concentration signal LV is at a low level, and a low concentration signal is generated, the process proceeds to step S14. On the other hand, if Yes, that is, if the concentration of the specific gas is high and the concentration signal LV is at a high level and a high concentration signal is generated, the process proceeds to step S15.
[0117]
In step S14, the base value B (n) is calculated by the following equation using the previous base value B (n-1) and the sensor output value S (n), and the process proceeds to step S16. B (n) = B (n−1) + k1 {S (n) −B (n−1)}, where the first coefficient k1 is 0 <k1 <1.
On the other hand, in step S15, the base value B (n) is calculated from the previous base value B (n-1) and sensor output value S (n) using the following equation, and the process proceeds to step S16. B (n) = B (n−1) + k2 {S (n) −B (n−1)}, where the second coefficient k2 is 0 ≦ k2 <k1 <1.
As described above, the base value B (n) has a relatively large first coefficient k1 (k1> k2) depending on the magnitude of the coefficients k1 and k2 to be used, and the degree of tracking with respect to the sensor output value S (n) is different. When used (step S14), the base value B (n) follows relatively quickly while being slightly delayed from the sensor output value S (n). On the other hand, when the relatively small second coefficient k2 (k2 <k1) is used (step S15), the base value B (n) changes slowly and follows slowly.
[0118]
Therefore, if the base value is calculated using the second coefficient k2 by switching the calculation formula via step S15 instead of step S14, it is calculated even if the sensor output value S (n) has changed greatly. The base value B (n) does not change much from the base value B (n−1) immediately before switching. Here, since the base value B (n−1) immediately before the switching is calculated using the first coefficient k1 in step S14, the value following the sensor output value S (n−1) before the switching. It has become. Accordingly, the base value B (n) calculated in step S15 is a value reflecting the influence of the past, that is, the state immediately before switching.
Conversely, when the base value is calculated using the first coefficient k1 by switching the base value calculation formula via step S14 instead of step S15, the base value B (n) is obtained from the current sensor output value S. Since (n) is followed quickly, the influence of the base value and sensor output value before switching becomes a small value.
[0119]
In step S16, the difference value D (n) is calculated according to the equation D (n) = S (n) −B (n), and is compared with the density threshold value T in step S17. If D (n)> T (Yes), the process proceeds to step S18, and if D (n) ≦ T (No), the process proceeds to step S19.
[0120]
If D (n)> T in the state where the low density signal has been generated (No in step S13) until then, the sensor output value S (n) is slightly higher than this. This shows that the difference from the base value B (n) that follows with a delay increases. That is, it is considered that the sensor output value S (n) has increased because the concentration of the specific gas (oxidizing gas) has increased.
Further, until D (n)> T in the state where the high concentration signal has been generated (Yes in Step S13), the current sensor output value S (n) and the past That is, the difference from the base value B (n) reflecting the state just before the concentration of the oxidizing gas increases to some extent is still large, that is, the concentration of the oxidizing gas is not yet sufficiently lowered. Is shown.
Therefore, in step S18, the high concentration signal of the specific gas is generated or the generation of the high concentration signal is maintained. Specifically, the density signal LV is set to a high level.
[0121]
On the other hand, if D (n) ≦ T (No in Step S17) in a state where a low density signal has been generated (No in Step S13), the current sensor output value S ( The difference between n) and the base value B (n) that follows slightly later than this does not become too large, indicating that the base value B (n) follows. That is, it is considered that the concentration of the specific gas (oxidizing gas) remains low.
Further, until D (n) ≦ T (No in Step S17) in a state where a high concentration signal has been generated (Yes in Step S13), the sensor output value S (n), That the difference from the base value B (n) reflecting the past state, that is, the state immediately before the concentration of the oxidizing gas increases to some extent, that is, that the concentration of the oxidizing gas has sufficiently decreased. Show.
Therefore, the low concentration signal of the specific gas is generated or maintained in step S19. Specifically, the density signal LV is set to a low level.
[0122]
Thereafter, the process proceeds to step S20 from both steps S18 and S19, stores the previous base value B (n) calculated in steps S14 and S15, and waits for the A / D sampling time to expire in step S21. Return to step S12.
When the concentration of the specific gas increases and the difference value D (n) increases, a high concentration signal is generated in step S18. After that, it is determined Yes in step S13, and the process proceeds to step S15. The coefficient for calculating the value B (n) is switched, and the base value B (n) is calculated using the relatively small second coefficient k2. Accordingly, the base value B (n) follows slowly with respect to the sensor output value S (n), and a value close to the base value at the time when the concentration of the specific gas increases is maintained. For this reason, it is considered that the base value B (n) calculated in step S15 holds the past state in which the concentration of the specific gas is relatively low, and the difference is based on the base value B (n). By calculating the value D (n), the concentration change of the specific gas can be determined.
[0123]
Conversely, when the concentration of the specific gas decreases and the difference value D (n) decreases, a low concentration signal is generated in step S19. Thereafter, the determination in step S13 is No, and the process proceeds to step S14. Then, the coefficient for calculating the base value B (n) is switched, and the base value B (n) is calculated again using the relatively large first coefficient k1. Therefore, the base value B (n) follows the sensor output value S (n) well. That is, it becomes difficult to be influenced by the past state. For this reason, when the concentration of the specific gas rises again, the difference value D (n) increases again without being affected by past fluctuations in the specific gas. Can be generated.
[0124]
Next, the sensor output value S (n), the base value B (n), the difference value D (n), and the concentration obtained by the control according to the flowchart shown in FIG. 3 when the NOx concentration is increased and then decreased. Examples of changes in the signal LV are shown in FIGS. In this example, the gas sensor element 11 is disposed in the wind tunnel, and initially, clean air not containing NOx is allowed to flow at a predetermined wind speed. Thereafter, air mixed with NOx having a predetermined concentration is allowed to flow for a predetermined time. The sensor output value S (n), the base value B (n), and the difference value D (n) are all numerical values processed in the microcomputer 16, but in order to facilitate understanding, in these figures, A / Expressed in terms of voltage values before D conversion.
First, the case where the first coefficient k1 = 1/16, the second coefficient k2 = 0, and the density threshold value T = 0.02V will be described.
From time 0 to about 35 seconds, clean air is flowed, and the sensor output value S (n) is maintained at a substantially constant value (about 1.0 V) although there is a slight fluctuation due to noise. When NOx starts to rise at about 35 seconds, the sensor output value S (n) rises accordingly, and becomes a substantially constant high value (about 1.8V) between about 70 and about 210 seconds. Thereafter, it can be seen that it gradually decreases and returns to the original level (about 1.0 V) at about 210 to about 300 seconds.
[0125]
On the other hand, the base value B (n) is maintained at a substantially constant value with a slight fluctuation following the sensor output value S (n) from the initial time of about 0 to about 35 seconds. Therefore, the difference value D (n) is maintained at approximately 0V. However, when the NOx concentration rises at about 35 seconds, the sensor output value S (n) starts to rise. Then, since the base value B (n) cannot be completely followed, the difference value D (n) becomes large. When the threshold value T = 0.02 V is exceeded, the density signal LV changes from the low level to the high level. Then, a high density signal is generated. From the next time on, k2 (= 0) is used to calculate the base value B (n). In step S15, when k2 = 0, B (n) = B (n−1), so that the base value B (n) is a constant value, that is, NOx regardless of the sensor output value S (n). The base value at the time when the concentration increases will be maintained. Accordingly, in FIG. 4, the base value B (n) is constant at a time of about 35 to 300 seconds.
[0126]
Thereafter, when the NOx concentration gradually decreases and the sensor output value S (n) decreases, the difference value D (n) also decreases. Finally, when the concentration threshold value T = 00.02V is reached in about 300 seconds. Therefore, it is determined that the concentration of NOx has decreased, and the concentration signal LV changes from the high level to the low level to generate a low concentration signal. At the same time, since the base value B (n) is calculated using the first coefficient k1, it changes following the sensor output value S (n).
Therefore, even if the NOx concentration rises again and the sensor output value S (n) rises as shown by the one-dot chain line in FIG. 4, this is immediately detected, and the concentration signal LV is set to the high level. A high signal can be generated.
[0127]
In the above, the second coefficient k2 = 0 is set when calculating the base value B (n) during the generation of the high density signal. However, as described above, the sensor resistance value Rs of the gas sensor 11 drifts due to the influence of not only the concentration of the specific gas but also the temperature, humidity, and wind speed. Accordingly, if drift occurs in the direction in which the sensor resistance value Rs increases during a state in which the concentration of NOx is high (for example, between about 35 to 210 seconds), clean air is reduced even if the concentration of NOx is reduced. 4, the sensor output value S (n) does not return to the original level (about 1.0V) and the difference value D (n) does not approach 0V, as indicated by the broken line in FIG. is there. Therefore, since the concentration threshold value T = 0.02 V is not fallen, actually, the concentration signal LV does not become low level even though the concentration of NOx is sufficiently lowered, and the concentration signal forever as shown by the broken line. It is possible to continue to generate high signals.
[0128]
Therefore, it is more preferable that the second coefficient k2> 0. FIG. 5 shows the results in the same manner as above except that the second coefficient k2 = 1/2048. In this way, a high concentration signal is generated at about 35 seconds, and thereafter the base value B (n) is calculated using the second coefficient k2, but the base value B (n) is It gradually increases so as to approach the sensor output value S (n) gently. Therefore, since the base value B (n) approaches the sensor output value S (n) after a long time, the difference value D (n) always approaches 0 and becomes a small value. For this reason, even if a drift occurs, the difference value D (n) always falls below the density threshold T, and the density signal LV returns to a low level, that is, a low density signal is generated.
When a low density signal is generated, the coefficient of the base value B (n) is switched and calculated using the first coefficient k1 (after about 240 seconds), so the base value B (n) is changed. It can be understood that the sensor output value S (n) follows well. Therefore, even in this case, even if the NOx concentration rises again after about 240 seconds, the rise can be reliably detected.
[0129]
(Modification 1)
Next, a modification of the first embodiment will be described. The gas detection device 40 and the vehicle autoventilation system 140 including the gas detection device 40 according to the first modification are processed by the configuration and the processing flow substantially the same as those of the first embodiment, but have some different points. That is, in the first embodiment, as the gas sensor element 11, a gas sensor element of a type in which the sensor resistance value Rs increases in response to an increase in the concentration of the oxidizing gas component in response to an oxidizing gas component such as NOx. It was. On the other hand, in the first modification, the gas sensor element 411 reacts when there is a reducing gas component such as CO or HC, and the sensor resistance value Rs decreases as the concentration of the reducing gas component increases. The difference is that the gas sensor element 41 is used.
Accordingly, the sensor resistance value conversion circuit 44 of the first modification outputs a sensor output potential Vs corresponding to the sensor resistance value Rs of the gas sensor element 41, and the concentration of reducing gas such as CO or HC increases. The sensor resistance value Rs is lowered and the sensor output potential Vs is also lowered.
Further, the processing flow in the microcomputer 16 is slightly different.
Therefore, different parts will be mainly described, and similar parts are denoted by the same symbols and numbers, and description thereof will be omitted or simplified.
[0130]
First, the gas detection device 40 will be described with reference to FIG. As described above, the gas detection device 40 uses the oxide semiconductor gas sensor element 41 of a type in which when there is a reducing gas component, the sensor resistance value Rs decreases in response to an increase in gas concentration.
The sensor resistance value conversion circuit 44 outputs a sensor output potential Vs corresponding to the sensor resistance value Rs of the gas sensor element 41. In the sensor resistance value conversion circuit 44, as described above, when the reducing gas concentration increases, the sensor output potential Vs at the operating point Pd decreases.
The sensor output potential Vs is A / D converted by the A / D conversion circuit 15 every 0.25 seconds and input to the input terminal 17 of the microcomputer 16 as the sensor output value S (n).
[0131]
Further, from the output terminal 18 of the microcomputer 16, as in the first embodiment, in order to control the electronic control assembly 20, either the concentration high signal indicating the high or low concentration of the reducing gas component concentration or the concentration low signal. The LV is output and the electronic control assembly 20 controls the flaps 34 of the ventilation system 30 that control the inside air circulation and outside air intake of the vehicle.
In the microcomputer 16, the sensor output value S (n) input from the input terminal 17 is processed according to a flow to be described later, and the concentration change of the reducing gas component is determined from the sensor resistance value Rs of the gas sensor element 41 and its change. Is detected.
[0132]
Next, the control in the microcomputer 16 in this modification will be described with reference to the flowchart of FIG. When the engine of the automobile is driven, this control system is started up and waits for the gas sensor element 41 to be activated. First, in step S11, initialization is performed as in the first embodiment.
Then, it progresses to step S12 and reads sensor output value S (n) sequentially. Next, in step S13, it is determined whether or not the density signal LV is generating a high density signal at the present time. If the low concentration signal is generated (No), the process proceeds to step S44. On the other hand, if the high density signal is generated (Yes), the process proceeds to step S45.
[0133]
In step S44, the base value B (n) is calculated by the following equation using the previous base value B (n-1) and the sensor output value S (n), and the process proceeds to step S46. B (n) = B (n−1) + k3 {S (n) −B (n−1)}, where the third coefficient k3 is 0 <k3 <1.
On the other hand, in step S45, the base value B (n) is calculated from the previous base value B (n-1) and sensor output value S (n) using the following formula, and the process proceeds to step S46. B (n) = B (n−1) + k4 {S (n) −B (n−1)}, where the fourth coefficient k4 is 0 ≦ k4 <k3 <1.
As described in the first embodiment, the base value B (n) has a relatively large third coefficient because the degree of tracking with respect to the sensor output value S (n) differs depending on the magnitudes of the coefficients k3 and k4 used. When k3 (k3> k4) is used (step S44), the base value B (n) follows relatively quickly while being slightly delayed from the sensor output value S (n). On the other hand, when a relatively small fourth coefficient k4 (k4 <k3) is used (step S45), the change in the base value B (n) becomes slow and follows slowly.
[0134]
Therefore, if the base value is calculated using the fourth coefficient k4 by switching the calculation formula via step S45 instead of step S44, it is calculated even if the sensor output value S (n) has changed greatly. The base value B (n) does not change much from the base value B (n−1) immediately before switching. Here, since the base value B (n−1) immediately before the switching is calculated using the third coefficient k3 in step S44, the value follows the sensor output value S (n−1) before the switching. It has become. Therefore, the base value B (n) calculated in step S45 is a value reflecting the influence of the past, that is, the state immediately before switching.
Conversely, when the base value is calculated using the third coefficient k3 by switching the base value calculation formula via step S44 instead of step S45, the base value B (n) is obtained from the current sensor output value S. Since (n) is followed quickly, the influence of the base value and sensor output value before switching becomes a small value.
[0135]
In step S46, the difference value D (n) is calculated according to the formula D (n) = B (n) −S (n) different from that in the first embodiment, and is compared with the density threshold value T in step S17. If D (n)> T (Yes), the process proceeds to step S18, and if D (n) ≦ T (No), the process proceeds to step S19.
[0136]
As in the first embodiment, in step S18, a high concentration signal of the specific gas is generated or the generation of the high concentration signal is maintained. Specifically, the density signal LV is set to a high level. On the other hand, in step S19, a low concentration signal of the specific gas is generated or maintained. Specifically, the density signal LV is set to a low level.
[0137]
Thereafter, the process proceeds to step S20 from both steps S18 and S19, stores the previous base value B (n) calculated in steps S14 and S15, and waits for the A / D sampling time to expire in step S21. Return to step S12.
[0138]
As in the first embodiment, when the concentration of the specific gas increases and the difference value D (n) increases, a high concentration signal is generated in step S18. After that, it is determined Yes in step S13, and the process proceeds to step S45. By proceeding, the coefficient for calculating the base value B (n) is switched, and the base value B (n) is calculated using the relatively small fourth coefficient k4. Therefore, the change in the base value B (n) becomes slow with respect to the current sensor output value S (n), and a value close to the base value at the time when the concentration of the specific gas increases is maintained. For this reason, this base value B (n) calculated in step S45 is considered to hold the past state in which the concentration of the specific gas is relatively low, and the difference is based on this base value B (n). By calculating the value D (n), the concentration change of the specific gas can be determined.
[0139]
On the other hand, if the concentration of the specific gas decreases and the difference value D (n) decreases, a low concentration signal is generated in step S19. After that, it is determined No in step S13, and the process proceeds to step S44. Then, the coefficient for calculating the base value B (n) is switched, and the base value B (n) is calculated again using the relatively large third coefficient k3. Therefore, the base value B (n) follows the sensor output value S (n) well. That is, it becomes difficult to be influenced by the past state. For this reason, when the concentration of the specific gas rises again, the difference value D (n) increases again without being affected by past fluctuations in the specific gas. Can be generated.
[0140]
Next, when the concentration of CO is increased and then decreased, the sensor output value S (n), the base value B (n), the difference value D (n), and the concentration obtained by the control according to the flowchart shown in FIG. An example of the change in the signal LV is shown in FIG. In this example as well, the gas sensor element 41 is arranged in the wind tunnel, and initially, clean air not containing CO is allowed to flow at a predetermined wind speed. Thereafter, air mixed with a predetermined concentration of CO is allowed to flow for a predetermined time. The sensor output value S (n), the base value B (n), the difference value D (n), and the concentration threshold value T are all numerical values processed in the microcomputer 16, but are easy to understand. In these drawings, the voltage values before A / D conversion are expressed.
The case where the third coefficient k3 = 1/16, the fourth coefficient k4 = 1/1920, and the density threshold T = 0.02 V will be described.
From time 0 to about 35 seconds, clean air is flowed, and the sensor output value S (n) is maintained at a substantially constant value (about 2.5 V) although there is a slight fluctuation due to noise. When the increase in CO starts at about 35 seconds, the sensor output value S (n) decreases accordingly. Thereafter, it gradually rises again from about 210 seconds to about 245 seconds and finally returns to the original level (about 2.5 V).
[0141]
On the other hand, the base value B (n) is maintained at a substantially constant value with a slight fluctuation following the sensor output value S (n) from the initial time of about 0 to about 35 seconds. Therefore, the difference value D (n) is maintained substantially at 0. However, when the CO concentration increases at about 35 seconds, the sensor output value S (n) starts to decrease. Then, since the base value B (n) cannot be completely followed, the difference value D (n) that is the difference becomes large. When the threshold value T = 0.02 V is exceeded, the density signal LV changes from low level to high level. Change to level and generate high density signal. From the next time on, k4 (= 1/1920) is used to calculate the base value B (n). In step S45, when k4 = 1/1920 (≠ 0), the base value B (n) gradually decreases so as to gradually approach the sensor output value S (n).
[0142]
Thereafter, when the CO concentration gradually decreases and the sensor output value S (n) increases, the difference value D (n) also decreases, and finally when the concentration threshold value T = 00.02V is reached at about 235 seconds. , It is determined that the concentration of CO has decreased, and the concentration signal LV changes from a high level to a low level to generate a low concentration signal. At the same time, since the base value B (n) is calculated using the third coefficient k3, the base value B (n) again follows the sensor output value S (n).
Therefore, even if the CO concentration increases again and the sensor output value S (n) decreases, this can be immediately detected, and the concentration signal LV can be set to the high level to generate a high concentration signal.
[0143]
Even with such control, in the vehicle auto-ventilation system 140 (see FIG. 6), the density signal LV (low density signal and high density signal) obtained by the same control as in the first embodiment (see FIG. 2). , The flap drive circuit 21 can instruct the opening and closing of the flap 34 to control the outside air introduction and the inside air circulation (fully opened / closed).
In the first modification, the fourth coefficient k4 = 0 has not been described. However, similarly to the first embodiment, even if k4 = 0, the concentration change of the reducing gas can be measured. . However, as described in the first embodiment, if the sensor resistance value Rs of the gas sensor element 41 drifts to a lower side due to the influence of environmental changes, the concentration of the reducing gas component is sufficiently reduced. Since it may be impossible to generate a low density signal, it is preferable that k4> 0 as described above.
[0144]
(Modification 2)
Next, a second modification will be described. Unlike the first modification, the second modification has the same gas detection device 10 as the first embodiment and a vehicle autoventilation system 100 including the same. That is, the system detects a change in the concentration of an oxidizing gas component such as NOx, and opens and closes the flap 34 based on this change. However, since the processing flow in the microcomputer 16 is different and the density threshold value has a hysteresis characteristic, the description will focus on the different parts, the same parts will be given the same symbols and numbers, and the description will be omitted or simplified. Turn into.
[0145]
Control in the microcomputer 16 of the second modification will be described with reference to the flowchart of FIG. As in the first embodiment, when the automobile engine is driven, the present control system is started up and the gas sensor element 11 is activated, and initialization is performed in step S11. As an initial setting, the initial sensor output value S (0) is stored as the base value B (0) (B (0) = S (0)). Further, a low density signal is generated as the density signal LV and is set to a low level.
Thereafter, the process proceeds to step S12, where the sensor output potential Vs is A / D converted every 0.25 seconds to sequentially read the sensor output value S (n). Next, in step S13, it is determined whether or not the density signal LV is at a high level at the present time, that is, whether a density high signal is generated. If No, that is, if a low density signal is generated, the process proceeds to step S14. On the other hand, if Yes, that is, if a high density signal is generated, the process proceeds to step S15.
[0146]
In step S14, the base value B (n) is calculated in the same manner as in the first embodiment, and the process proceeds to step S51. On the other hand, also in step S15, the base value B (n) is calculated, and the process proceeds to step S53.
As described above, the base value B (n) has a relatively large first coefficient k1 (k1> k2) depending on the magnitude of the coefficients k1 and k2 to be used, and the degree of tracking with respect to the sensor output value S (n) is different. When used (step S14), the base value B (n) quickly follows the sensor output value S (n). On the other hand, when the relatively small second coefficient k2 (k2 <k1) is used (step S15), the base value B (n) is a value that reflects the influence of the past state because its change becomes slow. Become.
[0147]
In step S51, the difference value D (n) is calculated according to the equation D (n) = S (n) −B (n), and is compared with the high concentration threshold Tu in step S52. If D (n)> Tu (Yes), the process proceeds to step S18. If D (n) ≦ Tu (No), the process proceeds to step S20.
[0148]
Yes in step S52 is a case where D (n)> Tu in a state where a low density signal has been generated until then (No in step S13), so the sensor output value S (n) And the base value B (n) that follows slightly later than this has increased. That is, it is considered that the sensor output value S (n) has increased because the concentration of the specific gas (oxidizing gas) has increased.
Therefore, a high concentration signal of the specific gas is generated in step S18. Specifically, the density signal LV is set to a high level.
[0149]
On the other hand, also in step S53, the difference value D (n) is calculated according to the equation D (n) = S (n) −B (n), and is compared with the low density threshold Td in step S54. The low concentration threshold Td is smaller than the high concentration threshold Tu (Tu> Td). If D (n) <Td (Yes), the process proceeds to step S19. If D (n) ≧ Td (No), the process proceeds to step S20.
[0150]
Yes in step S54 is the case where D (n) <Td in a state where a high density signal has been generated (Yes in step S13), and therefore sensor output value S (n). And the difference between the past state, that is, the base value B (n) that reflects the state before the concentration of the oxidizing gas increases to some extent, that is, the concentration of the oxidizing gas is sufficiently decreased. It is shown that.
Therefore, a low concentration signal of the specific gas is generated in step S19. Specifically, the density signal LV is set to a low level.
[0151]
Thereafter, the process proceeds to step S20 from both steps S18 and S19, stores the previous base value B (n) calculated in steps S14 and S15, and waits for the A / D sampling time to expire in step S21. The process returns to step S12.
Even in this case, as in the first embodiment, when the concentration of the specific gas increases and the difference value D (n) increases, a high concentration signal is generated in step S18. After that, it is determined Yes in step S13, and by proceeding to step S15, the coefficient for calculating the base value B (n) is switched, and the base value B (n using the relatively small second coefficient k2 is used. ) Is calculated. Accordingly, the base value B (n) changes slowly with respect to the sensor output value S (n), and a value close to the base value at the time when the concentration of the specific gas increases is maintained. For this reason, it is considered that the base value B (n) calculated in step S15 holds the past state in which the concentration of the specific gas is relatively low, and the difference is based on the base value B (n). By calculating the value D (n), the concentration change of the specific gas can be determined.
[0152]
Conversely, when the concentration of the specific gas decreases and the difference value D (n) decreases, a low concentration signal is generated in step S19. After that, it is determined No in step S13, and by proceeding to step S14, the coefficient for calculating the base value B (n) is switched, and the base value B (again using the relatively large first coefficient k1 is used. n) is calculated. Accordingly, the base value B (n) quickly follows the sensor output value S (n). For this reason, even if the concentration of the specific gas rises again, the difference value D (n) increases again without being affected by the fluctuation of the specific gas in the past. A high signal can be generated.
[0153]
In the process of the second modification, two threshold values Tu and Td are used as the density threshold values, and the difference value D (n) is larger than the high density threshold value Tu (D (n)> Tu). A high density signal is sometimes generated, and a low density signal is generated when the difference value D (n) is smaller than the low density threshold Td (D (n) <Td). For this reason, even when the sensor output value S (n) or the difference value D (n) is fluctuated due to noise or the like, there is an advantage that chattering in which the high density signal and the low density signal are frequently switched is less likely to occur.
[0154]
(Modification 3)
Next, a third modification will be described. In the second modification, the density threshold value is given hysteresis in the first embodiment. On the other hand, the third modification is different from the first modification in that the density threshold value is provided with hysteresis. Therefore, the third modification includes the same gas detection device 40 as that of the first modification and a vehicle autoventilation system 140 including the same. That is, it is a system that detects a change in concentration of a reducing gas component such as CO and opens and closes the flap 34 based on this change.
However, since the processing flow in the microcomputer 16 is different and the hysteresis characteristic is given to the density threshold value, different parts will be mainly described, and the same parts are denoted by the same symbols and numbers, and the description will be omitted or omitted. Simplify.
[0155]
Control in the microcomputer 16 of the third modification will be described with reference to the flowchart of FIG. As in the first modification, when the engine of the automobile is driven, the present control system is started up and waits for the gas sensor element 41 to be activated, and the initial setting is performed in step S11. As an initial setting, the initial sensor output value S (0) is stored as the base value B (0) (B (0) = S (0)). Further, a low density signal is generated as the density signal LV and is set to a low level.
Thereafter, the process proceeds to step S12, where the sensor output potential Vs is A / D converted every 0.25 seconds to sequentially read the sensor output value S (n). Next, in step S13, it is determined whether or not the density signal LV is at a high level at the present time, that is, whether a density high signal is generated. If No, that is, if a low density signal is generated, the process proceeds to step S44. On the other hand, if Yes, that is, if a high density signal is generated, the process proceeds to step S45.
[0156]
In step S44, the base value B (n) is calculated in the same manner as in the modified embodiment 1, and the process proceeds to step S61. On the other hand, also in step S45, the base value B (n) is calculated, and the process proceeds to step S63.
As described above, the base value B (n) differs in the degree of tracking with respect to the sensor output value S (n) depending on the magnitudes of the coefficients k3 and k4 to be used, and a relatively large third coefficient k3 (k3> k4). When used (step S44), the base value B (n) follows the sensor output value S (n) well. On the other hand, when the relatively small fourth coefficient k4 (k4 <k3) is used (step S45), the base value B (n) changes slowly and becomes a value reflecting the influence of the past state. .
[0157]
In step S61, the difference value D (n) is calculated according to the equation D (n) = B (n) −S (n), and is compared with the high concentration threshold Tu in step S62. If D (n)> Tu (Yes), the process proceeds to step S18. If D (n) ≦ Tu (No), the process proceeds to step S20.
[0158]
Yes in step S62 is a case where D (n)> Tu in a state where a low density signal has been generated so far (No in step S13), and therefore sensor output value S (n) And the base value B (n) that follows slightly later than this has increased. That is, it is considered that the sensor output value S (n) has increased because the concentration of the specific gas (reducing gas) has increased.
Therefore, a high concentration signal of the specific gas is generated in step S18. Specifically, the density signal LV is set to a high level.
[0159]
On the other hand, also in step S63, the difference value D (n) is calculated according to the equation D (n) = B (n) −S (n), and is compared with the low density threshold Td in step S64. The low concentration threshold Td is smaller than the high concentration threshold Tu (Tu> Td). If D (n) <Td (Yes), the process proceeds to step S19. If D (n) ≧ Td (No), the process proceeds to step S20.
[0160]
Yes in step S64 is the case where D (n) <Td in a state where a high concentration signal has been generated (Yes in step S13), and therefore sensor output value S (n). And the base value B (n) reflecting the past state, that is, the state before the concentration of the reducing gas increases to some extent, that is, the concentration of the reducing gas is sufficiently reduced. It is shown that.
Therefore, a low concentration signal of the specific gas is generated in step S19. Specifically, the density signal LV is set to a low level.
[0161]
Thereafter, the process proceeds to step S20 from both steps S18 and S19, stores the previous base value B (n) calculated in steps S44 and S45, and waits for the A / D sampling time to expire in step S21. The process returns to step S12.
Even in this case, as in the first modification, when the concentration of the specific gas increases and the difference value D (n) increases, a high concentration signal is generated in step S18. After that, it is determined Yes in step S13, and by proceeding to step S45, the coefficient for calculating the base value B (n) is switched and the base value B (n using the relatively small fourth coefficient k4 is used. ) Is calculated. Accordingly, the base value B (n) changes slowly with respect to the sensor output value S (n), and a value close to the base value at the time when the concentration of the specific gas increases is maintained. For this reason, this base value B (n) calculated in step S45 is considered to hold the past state in which the concentration of the specific gas is relatively low, and the difference is based on this base value B (n). By calculating the value D (n), the concentration change of the specific gas can be determined.
[0162]
Conversely, when the concentration of the specific gas decreases and the difference value D (n) decreases, a low concentration signal is generated in step S19. After that, it is determined No in step S13, and the process proceeds to step S44, whereby the coefficient for calculating the base value B (n) is switched, and the base value B (again using the relatively large third coefficient k3. n) is calculated. Therefore, the base value B (n) follows the sensor output value S (n) well. For this reason, when the concentration of the specific gas rises again, the difference value D (n) increases again without being affected by past fluctuations in the specific gas. Can be generated.
[0163]
Also in the process of the third modification, two threshold values Tu and Td are used as the density threshold values, and the difference value D (n) is larger than the high density threshold value Tu (D (n)> Tu). A high density signal is sometimes generated, and a low density signal is generated when the difference value D (n) is smaller than the low density threshold Td (D (n) <Td). For this reason, even when the sensor output value S (n) or the difference value D (n) is fluctuated due to noise or the like, there is an advantage that chattering in which the high density signal and the low density signal are frequently switched is less likely to occur.
[0164]
(Embodiment 2)
Next, a second embodiment will be described. The second embodiment also includes a gas detection device 10 similar to that of the first embodiment, and a vehicle autoventilation system 100 including the same. That is, the system detects a change in the concentration of an oxidizing gas component such as NOx, and opens and closes the flap 34 based on this change. However, the processing flow in the microcomputer 16 is different, and it is not two level signals of high density and low density, but four density level signals LV (LV) corresponding to three or more density levels, specifically, four density levels. = 0, 1, 2, 3), and three inter-level thresholds T1, T2, T3 (T1 <T2 <T3) that divide these density levels. Therefore, different parts will be mainly described, and similar parts are denoted by the same symbols and numbers, and description thereof will be omitted or simplified.
[0165]
Control in the microcomputer 16 of the second embodiment will be described with reference to the flowchart of FIG. As in the first embodiment, when the engine of the automobile is driven, the present control system is started up and the gas sensor element 11 is activated, and initialization is performed in step S71. As an initial setting, the initial sensor output value S (0) is stored as the base value B (0) (B (0) = S (0)). Further, a signal corresponding to LV = 0 is generated as the density level signal LV. Specifically, a PWM (pulse width modulation) signal is output as a signal output from the output terminal 18 of the microcomputer 16, the duty ratio is made to correspond to the density level signal, and a signal corresponding to LV = 0 is obtained. A PWM signal having a duty ratio of 15% is generated. Similarly, a PWM signal having a duty ratio of 30% as a signal corresponding to LV = 1, a duty ratio of 50% as a signal corresponding to LV = 2, and a duty ratio of 70% as a signal corresponding to LV = 3 is generated. It is said.
[0166]
Thereafter, the process proceeds to step S72 where the sensor output potential Vs is A / D converted every 0.25 seconds and the sensor output value S (n) is sequentially read. Next, in step S73, it is determined whether or not a density level signal LV = 0, that is, a signal indicating the lowest density level is currently generated. If No, that is, LV = 1, 2, or 3, the process proceeds to step S74. On the other hand, if a signal of Yes, ie, LV = 0, is generated, the process proceeds to step S75.
[0167]
In step S74, the base value B (n) is calculated in the same manner as in the first embodiment, and the process proceeds to step S76. On the other hand, also in step S75, the base value B (n) is calculated, and the process proceeds to step S76.
As described above, the base value B (n) has a relatively large first coefficient k1 (k1> k2) depending on the magnitude of the coefficients k1 and k2 to be used, and the degree of tracking with respect to the sensor output value S (n) is different. When used (step S74), the base value B (n) quickly follows the sensor output value S (n). On the other hand, when the relatively small second coefficient k2 (k2 <k1) is used (step S75), the base value B (n) is a value that reflects the influence of the past state because the change becomes slow. Become.
In step S76, the difference value D (n) is calculated according to the equation D (n) = S (n) −B (n), and it is determined whether or not the density level signal LV is generated by switching in the subroutine of step S77. .
[0168]
The contents of step S77 are shown in FIG. In step S77, it is first determined whether or not the density level signal LV currently generated in step S771 is LV = 0 corresponding to the lowest density level. Here, if Yes, that is, LV = 0, the process proceeds to step S774. On the other hand, if No, that is, LV = 1, 2, or 3, the process proceeds to step S772.
In step S772, it is determined whether or not the currently generated density level signal LV is LV = 1 corresponding to the second lowest density level. Here, if Yes, that is, LV = 1, the process proceeds to step S775. On the other hand, if No, that is, LV = 2 or 3, the process proceeds to step S773.
In step S773, it is determined whether or not the currently generated density level signal LV is LV = 2 corresponding to the third lowest density level. Here, if Yes, that is, LV = 2, the process proceeds to step S776. On the other hand, if No, that is, LV = 3 corresponding to the highest density level, the process proceeds to step S77C.
By doing in this way, it can be classified according to which density level signal LV it is.
[0169]
In step S774, it is determined whether or not the difference value D (n) is larger than the first level threshold value T1. Here, when No, that is, D (n) ≦ T1, it is not necessary to change from the lowest density level to the upper density level, so the process exits the subroutine and returns to the main routine. On the other hand, if Yes, that is, D (n)> T1, the process proceeds to step S777, the density level signal LV is set to LV = 1, and then the process returns to the main routine. Specifically, the duty ratio of the PWM signal output from the output terminal 18 of the microcomputer 16 is changed from 15% to 30%, and the process returns to the main routine.
In step S775, it is determined whether the difference value D (n) is larger than the second level threshold value T2. Here, if No, that is, D (n) ≦ T2, the process proceeds to step S77A. On the other hand, if Yes, that is, D (n)> T2, the process proceeds to step S778, the density level signal LV is set to LV = 2, which is one rank higher than the current level, and the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 30% to 50%, and the process returns to the main routine.
Further, in step S776, it is determined whether or not the difference value D (n) is greater than the third level threshold value T3. If No, that is, D (n) ≦ T3, the process proceeds to step S77B. On the other hand, if Yes, that is, D (n)> T3, the process proceeds to step S779, the density level signal LV is set to LV = 3, which is one rank higher than the current level, and the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 50% to 70%, and the process returns to the main routine.
[0170]
In step S77A, it is determined whether or not the difference value D (n) is smaller than the first level threshold value T1. Here, when No, that is, D (n) ≧ T1, there is no need to lower the rank from the current density level, so the subroutine is exited and the process returns to the main routine. On the other hand, if Yes, that is, D (n) <T1, the process proceeds to step S77D, the density level signal LV is set to LV = 0 one rank lower, and then the process returns to the main routine. Specifically, the duty ratio of the PWM signal output from the output terminal 18 of the microcomputer 16 is changed from 30% to 15%, and the process returns to the main routine.
In step S77B, it is determined whether or not the difference value D (n) is smaller than the second level threshold value T2. Here, if No, that is, D (n) ≧ T2, there is no need to lower the rank from the current density level, so the process returns to the main routine. On the other hand, if Yes, that is, D (n) <T2, the process proceeds to step S77E, the density level signal LV is set to LV = 1 lower than the current level, and the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 50% to 30%, and the process returns to the main routine.
Further, in step S77C, it is determined whether or not the difference value D (n) is smaller than the third level threshold value T3. Here, when No, that is, D (n) ≧ T3, it is not necessary to lower the rank from the current density level, so the process returns to the main routine. On the other hand, if Yes, that is, D (n) <T3, the process proceeds to step S77F to set the density level signal LV to LV = 2, which is one rank lower than the current level, and returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 70% to 50%, and the process returns to the main routine.
[0171]
Thereafter, in step S78, the previous base value B (n) calculated in steps S74 and S75 is stored. In step S79, the A / D sampling time is up, and the process returns to step S72.
[0172]
In this way, when the concentration of the specific gas increases and the difference value D (n) increases and exceeds the first level threshold value T1, the concentration level signal LV = 1 is set in step S777. After that, it is determined No in step S73, and by proceeding to step S75, the coefficient for calculating the base value B (n) is switched and the base value B (n using the relatively small second coefficient k2 is used. ) Is calculated. Accordingly, the base value B (n) changes slowly with respect to the sensor output value S (n), and a value close to the base value at the time when the concentration of the specific gas increases is maintained. For this reason, the concentration change of the specific gas can be determined by calculating the difference value D (n) using the base value B (n) as a reference. Moreover, in the second embodiment, the concentration of the specific gas can be divided into a plurality of concentration levels and output. Thereby, in the electronic control assembly 20, not only full open and full close but also the flap 34 can be appropriately opened and closed according to the gas concentration such as half open.
[0173]
Conversely, when the concentration of the specific gas sufficiently decreases and the difference value D (n) decreases, the concentration level signal LV = 0 is generated in step S77D. After that, it is determined Yes in step S73, and by proceeding to step S74, the coefficient for calculating the base value B (n) is switched, and the base value B (again using the relatively large first coefficient k1 is used. n) is calculated. Therefore, the base value B (n) follows the sensor output value S (n) well. For this reason, even if the concentration of the specific gas rises again, the difference value D (n) increases again without being affected by the fluctuation of the specific gas in the past. A high density level signal can be generated.
In the second embodiment, the density level signal LV is raised and lowered only by one rank. In this way, sudden changes in the density level signal can be prevented.
[0174]
Next, when the NOx concentration is increased and then decreased, the sensor output value S (n), the base value B (n), and the difference value D () obtained by the control according to the flowcharts shown in FIGS. FIG. 13 shows an example of changes in n) and the density level signal LV. In this example, similarly to the example described in the first embodiment, the gas sensor element 11 is arranged in the wind tunnel, and clean air that does not contain NOx is initially flowed at a predetermined wind speed, and then the predetermined concentration for a predetermined period. The air mixed with NOx was flowed. First coefficient k1 = 1/16, second coefficient k2 = 1/2048, first level threshold T1 = 0.02V, second level threshold T2 = 0.3V, third level threshold A case where the value T3 = 0.7 V will be described.
From time 0 to about 35 seconds, clean air is flowed, and the sensor output value S (n) is maintained at a substantially constant value (about 1.0 V) although there is a slight fluctuation due to noise. When NOx begins to rise at about 35 seconds, the sensor output value S (n) rises accordingly. Thereafter, it gradually decreases again from about 240 seconds to about 300 seconds, and finally returns to the original level (about 1.0 V).
[0175]
On the other hand, the base value B (n) is maintained at a substantially constant value with a slight fluctuation following the sensor output value S (n) from the initial time of about 0 to about 35 seconds. Therefore, the difference value D (n) is maintained at approximately 0V. However, when the NOx concentration rises at about 35 seconds, the sensor output value S (n) starts to rise. Then, since the base value B (n) cannot be completely followed, the difference value D (n) becomes large. When the threshold value T1 between the first levels exceeds 0.02V, the density level signal LV becomes LV = 0. To LV = 1. In addition, since the next time, in step S75, k2 (= 1/2048) is used to calculate the base value B (n), the base value B (n) gradually approaches the sensor output value S (n). So as to rise gradually.
[0176]
Furthermore, since the base value B (n) does not increase so much even if the sensor output value S (n) increases, the difference value D (n) further increases, so that the second level threshold value T2 = 0. When 3V is exceeded, the density level signal LV is changed to LV = 2, and when the third inter-level threshold T3 = 0.7V is exceeded, the density level signal LV is changed to LV = 3.
[0177]
Thereafter, when the NOx concentration gradually decreases and the sensor output value S (n) decreases, the difference value D (n) also decreases. When the difference value falls below the third level threshold T3 = 0.7 V, it is determined that the NOx concentration has decreased by one rank, and the concentration level signal LV is changed from LV = 3 to LV = 2. Further, when the difference value falls below the second level threshold T2 = 0.3V, it is determined that the NOx concentration has further decreased by one rank, and the concentration level signal LV is changed from LV = 2 to LV = 1. . Further, when the difference value falls below the first level threshold value T1 = 0.02V, it is determined that the concentration of NOx has sufficiently decreased, and the concentration level signal LV is changed from LV = 1 to LV = 0. At the same time, since the base value B (n) is calculated using the first coefficient k1 in step S74, the base value B (n) again follows the sensor output value S (n). Therefore, even if the NOx concentration increases again and the sensor output value S (n) decreases, this can be immediately detected and an appropriate concentration level signal LV can be generated.
In the second embodiment, the same inter-level thresholds T1, T2, and T3 are set as the inter-level threshold when the density level is increased by one rank and the inter-level threshold when the density level is increased by one rank. Since it is used, in the above example (see FIG. 13), there is a slight chattering.
[0178]
By using the concentration level signal LV obtained by such control, for example, the following control can be performed for the vehicle autoventilation system 100 (see FIG. 1). That is, in the flap drive circuit 21, as shown in the flowchart of FIG. 14, after the initial setting is performed in step S1, the density level signal LV is acquired in step S2A, and the density level signal LV detects the level in step S3A. . Here, if LV = 0, that is, if the concentration of the specific gas outside the passenger compartment is sufficiently low, in step S4A, the flap 34 is fully opened. Thereby, the flap 34 rotates, the outside air intake duct 33 is connected to the duct 31, and the outside air is taken into the vehicle interior. On the other hand, if LV = 2 or 3 in step S3A, that is, if the concentration of the specific gas outside the passenger compartment is quite high, instructing to fully close the flap 34 in step S5A. As a result, the flap 34 is rotated, the inside air intake duct 32 is connected to the duct 31, the introduction of the outside air is blocked, and the inside air is circulated. Further, in step S3A, if LV = 1, that is, if the concentration of the specific gas is slightly high, instructing half-opening of the flap 34 in step S6. As a result, the introduction of outside air is somewhat restricted and the inside air circulation is also performed.
As described above, by generating a plurality of (three in the present embodiment) concentration level signals, the opening degree of the flap 34 can be controlled more finely in addition to being fully closed and fully opened.
[0179]
Further, in the above description, the flap 34 is fully closed at both LV = 2 and 3, but the LV = 2 is 1/4 open, and the LV = 3 is fully closed. May be made to correspond one-to-one. On the other hand, the flap 34 can be controlled to be fully open when LV = 0 and fully closed when LV = 1, 2, or 3. Even in this case, there is an advantage that it is possible to know how much the concentration level of the specific gas is.
[0180]
In the second embodiment, the second coefficient k2 = 0 has not been described. However, similarly to the first embodiment, even if k2 = 0, the concentration change of the reducing gas can be measured. . However, as described in the first embodiment, if the sensor resistance value Rs of the gas sensor element 11 drifts to the higher side due to the influence of environmental change or the like, the concentration of the oxidizing gas component is sufficiently reduced. However, since it may not be possible to generate a density level signal of LV = 0, it is preferable that k2> 0 as described above.
[0181]
(Modification 4)
A modification of the second embodiment will be described. In the fourth modification, similarly to the second embodiment, in the processing flow in the microcomputer 16, three or more density levels, specifically, four density level signals LV (LV = 0) corresponding to the four density levels are used. , 1, 2, 3), and three inter-level thresholds T1, T2, T3 (T1 <T2 <T3) that divide these density levels. However, like the first modification, the gas detection device 40 and the vehicle auto-ventilation system 140 including the gas detection device 40 are included. That is, the second embodiment is different from the second embodiment in that the system detects a change in concentration of a reducing gas component such as CO and opens and closes the flap 34 based on the change. Therefore, different parts will be mainly described, and similar parts are denoted by the same symbols and numbers, and description thereof will be omitted or simplified.
[0182]
Control in the microcomputer 16 of the fourth modification will be described with reference to the flowchart of FIG. As in the second embodiment, when the automobile engine is driven, the present control system is started up and the gas sensor element 41 is activated, and initialization is performed in step S71. As an initial setting, the initial sensor output value S (0) is stored as the base value B (0) (B (0) = S (0)). Further, a signal corresponding to LV = 0 is generated as the density level signal LV. The duty ratio of the PWM signal output from the output terminal 18 is made to correspond to the density level signal, the signal corresponding to LV = 0 is a duty ratio of 15%, the signal corresponding to LV = 1 is a duty ratio of 30%, and LV = 2. Similarly to the second embodiment, a PWM signal having a duty ratio of 50% is generated as a signal corresponding to LV and a duty ratio of 70% is generated as a signal corresponding to LV = 3.
[0183]
Then, it progresses to step S72 and sensor output value S (n) is read sequentially. Next, in step S73, it is determined whether or not a density level signal LV = 0, that is, a signal indicating the lowest density level is currently generated. Here, if No, that is, if LV = 1, 2, or 3, the process proceeds to step S85. On the other hand, if a signal of Yes, ie, LV = 0, is generated, the process proceeds to step S84.
[0184]
In step S84, a base value B (n) is calculated using the third coefficient k3, and the process proceeds to step S86. On the other hand, in step S85, the base value B (n) is calculated using the fourth coefficient k4, and the process proceeds to step S86.
The base value B (n) has a different degree of tracking with respect to the sensor output value S (n) depending on the magnitudes of the coefficients k3 and k4 to be used, and a relatively large third coefficient k3 (k3> k4) is used (step) In S84), the base value B (n) quickly follows the sensor output value S (n). On the other hand, when the relatively small fourth coefficient k4 (k4 <k3) is used (step S85), the base value B (n) is a value that reflects the influence of the past state because the change becomes slow. Become.
In step S86, the difference value D (n) is calculated according to the equation D (n) = B (n) −S (n), and it is determined whether or not the density level signal LV is generated by switching in the subroutine of step S77. .
Since the processing in the subroutine of step S77 (see FIG. 12) is the same as that in the second embodiment, description thereof is omitted.
[0185]
Thereafter, in step S78, the previous base value B (n) calculated in steps S84 and S85 is stored. In step S79, the A / D sampling time is up, and the process returns to step S72.
[0186]
Even in this case, when the concentration of the reducing gas increases and the difference value D (n) increases and exceeds the first level threshold value T1, the concentration level signal LV = 1 is set in step S777. Thereafter, No is determined in step S73, and the process proceeds to step S85, whereby the coefficient for calculating the base value B (n) is switched, and the base value B (n using the relatively small fourth coefficient k4 is used. ) Is calculated. Accordingly, the base value B (n) changes slowly with respect to the sensor output value S (n), and a value close to the base value at the time when the concentration of the specific gas increases is maintained. For this reason, this base value B (n) calculated in step S85 is considered to hold the past state where the concentration of the specific gas is relatively low, and the difference is based on this base value B (n). By calculating the value D (n), it is possible to determine the concentration change of the specific gas. Moreover, in this modified embodiment 42, the concentration of the specific gas can be divided into a plurality of concentration levels and output. Thereby, in the electronic control assembly 20, not only full open and full close but also the flap 34 can be appropriately opened and closed according to the gas concentration such as half open.
[0187]
Conversely, when the concentration of the specific gas sufficiently decreases and the difference value D (n) decreases, the concentration level signal LV = 0 is generated in step S77D. After that, it is determined Yes in step S73, and by proceeding to step S84, the coefficient for calculating the base value B (n) is switched, and the base value B (again using the relatively large third coefficient k3 is used. n) is calculated. Therefore, the base value B (n) follows the sensor output value S (n) well. For this reason, even if the concentration of the specific gas rises again, the difference value D (n) increases again without being affected by the fluctuation of the specific gas in the past. A high density level signal can be generated.
In the present modification 42 as well, the density level signal LV is raised or lowered only by one rank. In this way, sudden changes in the density level signal can be prevented.
[0188]
Next, also in the fourth modification, when the CO concentration is increased and then decreased, the sensor output value S (n) and the base value B (n) obtained by the control according to the flowcharts shown in FIGS. ), An example of changes in the difference value D (n) and the density level signal LV is shown in FIG. In this example, similarly to the example described in the first modification, the gas sensor element 41 is arranged in the wind tunnel, and clean air not containing CO is initially flowed at a predetermined wind speed, and then the predetermined concentration for a predetermined period. The air which mixed CO of was flowed.
Third coefficient k3 = 1/16, fourth coefficient k4 = 1/1920, first level threshold T1 = 0.02 V, second level threshold T2 = 0.5 V, third level threshold A case where the value T3 = 1.1V will be described.
From time 0 to about 35 seconds, clean air is flowed, and the sensor output value S (n) is maintained at a substantially constant value (about 2.5 V) although there is a slight fluctuation due to noise. When the increase in CO starts at about 35 seconds, the sensor output value S (n) decreases accordingly. Thereafter, it gradually rises again from about 210 seconds to about 265 seconds, and finally it can be seen that it returns to the original level (about 2.5 V).
[0189]
On the other hand, the base value B (n) is maintained at a substantially constant value with a slight fluctuation following the sensor output value S (n) from the initial time of about 0 to about 35 seconds. Therefore, the difference value D (n) is maintained at approximately 0V. However, when the CO concentration increases at about 35 seconds, the sensor output value S (n) starts to increase. Then, since the base value B (n) cannot be completely followed, the difference value D (n) becomes large. When the threshold value T1 between the first levels exceeds 0.02V, the density level signal LV becomes LV = 0. To LV = 1. In addition, since the next time, in step S85, k4 (= 1/1920) is used to calculate the base value B (n), the base value B (n) gradually approaches the sensor output value S (n). Gradually decline.
[0190]
Further, even if the sensor output value S (n) decreases, the base value B (n) does not decrease so much, so the difference value D (n) further increases, so that the second level threshold value T2 = 0. When it exceeds 5V, the density level signal LV is changed to LV = 2, and when the threshold value between the third levels T3 = 1.1V is exceeded, the density level signal LV is changed to LV = 3.
[0191]
Thereafter, as the CO concentration gradually decreases and the sensor output value S (n) increases, the difference value D (n) also decreases. When the difference value falls below the third level threshold T3 = 1.1V, it is determined that the CO concentration has decreased by one rank, and the concentration level signal LV is changed from LV = 3 to LV = 2. Further, when the difference value falls below the second level threshold value T2 = 0.5V, it is determined that the CO concentration has further decreased by one rank, and the concentration level signal LV is changed from LV = 2 to LV = 1. . Further, when the difference value falls below the first level threshold value T1 = 0.02V, it is determined that the concentration of CO has sufficiently decreased, and the concentration level signal LV is changed from LV = 1 to LV = 0. At the same time, since the base value B (n) is calculated using the third coefficient k3 in step S84, the base value B (n) again follows the sensor output value S (n). Therefore, even if the CO concentration increases again and the sensor output value S (n) decreases, this can be immediately detected and an appropriate concentration level signal LV can be generated.
In the fourth modification, the same inter-level thresholds T1, T2, and T3 are set as the inter-level threshold when the density level is increased by one rank and the inter-level threshold when the density level is increased by one rank. Therefore, in the above example (see FIG. 16), chattering occurs slightly.
[0192]
Even with such control, in the vehicle auto-ventilation system 140 (see FIG. 6), the flap drive circuit 21 uses the obtained concentration level signal LV in the same manner as in the second embodiment (see FIG. 14). It is possible to instruct the opening degree of air and appropriately control the outside air introduction and the inside air circulation.
[0193]
In the fourth modification, the fourth coefficient k4 = 0 is not described. However, similarly to the first modification, even when k4 = 0, the concentration change of the reducing gas can be measured. . However, if the sensor resistance value Rs drifts to a lower side, a concentration level signal of LV = 0 may not be generated even if the concentration of the reducing gas component is sufficiently lowered. > 0 is preferred.
[0194]
(Deformation forms 5 and 6)
In the second embodiment and the fourth modification, in the subroutine of step S77 (see FIG. 12), the density level signal LV is raised or lowered only by one rank. However, the density level signal LV can be selected according to the difference value D (n) so that the density level signal LV can be moved up and down by a plurality of ranks at a time.
That is, the gas detection device 10 of the fifth modification and the vehicle autoventilation system 100 including the same are different from those of the second embodiment only in the subroutine of step S77 in the processing flow. The contents of the subroutine will be described with reference to FIG.
[0195]
When the difference value D (n) is calculated in step S76 and the process proceeds to step S77 (see FIG. 11), first, the density level signal LV currently generated in step S91 is LV = corresponding to the lowest density level. Determine if it is zero. Here, if Yes, that is, LV = 0, the process proceeds to step S94. On the other hand, if No, that is, LV = 1, 2, or 3, the process proceeds to step S92.
In step S92, it is determined whether the currently generated density level signal LV is LV = 1 corresponding to the second lowest density level. Here, if Yes, that is, LV = 1, the process proceeds to step S95. On the other hand, if No, that is, LV = 2 or 3, the process proceeds to step S93.
Further, in step S93, it is determined whether or not the currently generated density level signal LV is LV = 2 corresponding to the third lowest density level. Here, if Yes, that is, LV = 2, the process proceeds to step S96. On the other hand, if No, that is, LV = 3 corresponding to the highest density level, the process proceeds to step S97.
By doing in this way, it can be classified into which density level is present, that is, which density level signal LV is generated.
[0196]
In step S94, it is determined whether or not the difference value D (n) is larger than the first density level threshold value T1. Here, if No, that is, D (n) ≦ T1, the process proceeds to step S9A. On the other hand, if Yes, that is, D (n)> T1, the process proceeds to step S95.
Further, in step S95, it is determined whether or not the difference value D (n) is greater than the second density level threshold value T2. If No, that is, D (n) ≦ T2, the process proceeds to step S99. On the other hand, if Yes, that is, D (n)> T2, the process proceeds to step S96.
Further, in step S96, it is determined whether or not the difference value D (n) is larger than the third density level threshold value T3. Here, if No, that is, D (n) ≦ T3, the process proceeds to step S98. On the other hand, if Yes, that is, D (n)> T3, the process proceeds to step S9E.
[0197]
On the other hand, in step S97, it is determined whether or not the difference value D (n) is smaller than the third density level threshold value T3. If No, that is, D (n) ≧ T3, the process proceeds to step S9E. On the other hand, if Yes, that is, D (n) <T3, the process proceeds to step S98.
In step S98, it is determined whether or not the difference value D (n) is smaller than the second density level threshold value T2. If No, that is, D (n) ≧ T2, the process proceeds to step S9DC. On the other hand, if Yes, that is, D (n) <T2, the process proceeds to step S99.
Further, in step S99, it is determined whether or not the difference value D (n) is smaller than the first density level threshold value T1. Here, when No, that is, when D (n) ≧ T1, the process proceeds to step S9B. On the other hand, if Yes, that is, D (n) <T3, the process proceeds to step S9A.
As a result, regardless of the current density level, the case can be divided according to the difference value D (n).
[0198]
Therefore, in step S9A, the density level signal is set to LV = 0, or LV = 0 is maintained. In step S9B, the density level signal is set to LV = 1, or LV = 1 is maintained. In step S9D, the density level signal is set to LV = 2, or LV = 2 is maintained. In step S9E, the density level signal is set to LV = 3, or LV = 3 is maintained.
As described above, regardless of the current density level, it is possible to generate a density level signal corresponding to the difference value D (n) by dividing the case according to the difference value D (n). Therefore, when the difference value D (n) suddenly rises or falls, the density level signal LV can go up and down a plurality of ranks at a time.
[0199]
In the fifth modification, in the gas detection device 10 of the second embodiment and the vehicle autoventilation system 100 including the same, the contents of the subroutine of step S77 in the processing flow are shown in FIG. However, similarly, in the gas detection device 40 of the modification 4 and the vehicle auto-ventilation system 140 including the same, the content of the subroutine of step S77 may be a modification 6 to which the one shown in FIG. 17 is applied. . Also in this modified embodiment 6, it is possible to generate a density level signal corresponding to the difference value D (n) by performing case classification according to the difference value D (n) regardless of the current density level. . Therefore, when the difference value D (n) suddenly rises or falls, the density level signal LV can go up and down a plurality of ranks at a time.
[0200]
(Deformation forms 7 and 8)
In the second embodiment and the fourth modification, the same inter-level thresholds T1, T2, and the inter-level threshold when the density level is raised by one rank and the inter-level threshold when the density level is lowered by one rank are used. T3 was used. On the other hand, it is preferable to provide hysteresis for each threshold between levels. In other words, a level-up threshold is selected as the threshold for raising the level, and a level-down threshold value smaller than the corresponding level-up threshold is selected as the threshold for lowering the level. It is preferable to do.
That is, in the seventh modification, in the gas detection device 10 of the second embodiment and the vehicle autoventilation system 100 including the same, in the processing flow, as shown in FIG. The inter-level threshold values T1, T2, and T3 are replaced with level-up threshold values Tu1, Tu2, and Tu3, or level-down threshold values Td1, Td2, and Td3, respectively. The contents of the subroutine in step S77 will be described with reference to FIG.
The level-up thresholds Tu1, Tu2, Tu3 and the level-down thresholds Td1, Td2, Td3 are respectively Tu1 <Tu2 <Tu3, Td1 <Td2 <Td3, Td1 <Tu1, Td2 <Tu2, Td3 < The relationship is Tu3.
[0201]
As in the second embodiment, when the difference value D (n) is calculated in step S76 and the process proceeds to step S77 (see FIG. 11), first, the density level signal LV currently generated in step S771 is the lowest. It is determined whether or not LV = 0 corresponding to the density level. Here, if Yes, that is, LV = 0, the process proceeds to step S774A. On the other hand, if No, that is, LV = 1, 2, or 3, the process proceeds to step S772.
In step S772, it is determined whether the density level signal LV currently generated is LV = 1. Here, in the case of Yes, the process proceeds to step S775A. On the other hand, in the case of No, the process proceeds to step S773.
In step S773, it is determined whether the density level signal LV currently generated is LV = 2. Here, in the case of Yes, the process proceeds to step S776A. On the other hand, if No, that is, LV = 3, the process proceeds to step S77CA. By doing in this way, it can be classified according to which density level is present, that is, which density level signal LV is generated.
[0202]
In step S774A, it is determined whether or not the difference value D (n) is greater than the first level-up threshold value Tu1. Here, when No, that is, D (n) ≦ Tu1, there is no need to change from the lowest density level to the upper density level, so the subroutine is exited and the process returns to the main routine. On the other hand, if Yes, that is, D (n)> Tu1, the process proceeds to step S777, the density level signal LV is set to LV = 1, and then the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 15% to 30%, and the process returns to the main routine.
In step S775A, it is determined whether or not the difference value D (n) is greater than the second level-up threshold value Tu2. If No, that is, D (n) ≦ Tu2, the process proceeds to step S77AA. On the other hand, if Yes, that is, D (n)> Tu2, the process proceeds to step S778, the density level signal LV is set to LV = 2, which is one rank higher than the current level, and the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 30% to 50%, and the process returns to the main routine.
Furthermore, in step S776A, it is determined whether or not the difference value D (n) is greater than the third level-up threshold value Tu3. Here, if No, that is, D (n) ≦ Tu3, the process proceeds to step S77BA. On the other hand, if Yes, that is, D (n)> Tu3, the process proceeds to step S779, the density level signal LV is set to LV = 3, which is one rank higher than the current level, and the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 50% to 70%, and the process returns to the main routine.
As described above, in steps 774A, 775A, and 776A, the level-up threshold values Tu1, Tu2, and Tu3 are compared with the inter-level threshold values T1, T2, and T3.
[0203]
In step S77AA, it is determined whether or not the difference value D (n) is smaller than the first level down threshold value Td1. Here, when No, that is, D (n) ≧ Td1, there is no need to lower the rank from the current density level, so the subroutine is exited and the process returns to the main routine. On the other hand, if Yes, that is, D (n) <Td1, the process proceeds to step S77D, the density level signal LV is set to LV = 0 one rank lower, and then the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 30% to 15%, and the process returns to the main routine.
In step S77BA, it is determined whether or not the difference value D (n) is smaller than the second level-down threshold value Td2. Here, when No, that is, D (n) ≧ Td2, there is no need to lower the rank from the current density level, so the process returns to the main routine. On the other hand, if Yes, that is, D (n) <Td2, the process proceeds to step S77E to set the density level signal LV to LV = 1, which is one rank lower than the current level, and returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 50% to 30%, and the process returns to the main routine.
Further, in step S77CA, it is determined whether or not the difference value D (n) is smaller than the third level down threshold value Td3. Here, if No, that is, D (n) ≧ Td3, it is not necessary to lower the rank from the current density level, so the process returns to the main routine. On the other hand, if Yes, that is, D (n) <Td3, the process proceeds to step S77F, the density level signal LV is set to LV = 2 lower than the current level, and the process returns to the main routine. Specifically, the duty ratio of the PWM signal is changed from 70% to 50%, and the process returns to the main routine.
Thus, in steps 77AA, 77BA, and 77CA, the level-down threshold values Td1, Td2, and Td3 are compared with the inter-level threshold values T1, T2, and T3.
[0204]
Thereafter, in step S78, the previous base value B (n) calculated in steps S74 and S75 is stored. In step S79, the A / D sampling time is up, and the process returns to step S72 (see FIG. 11). ).
[0205]
In this way, as in the second embodiment, the concentration of the specific gas increases and the difference value D (n) increases, and when the threshold value Tu1 between the first levels is exceeded, a relatively small second coefficient k2 is set. Using this, the base value B (n) is calculated. Therefore, the base value B (n) changes slowly with respect to the sensor output value S (n), and the calculated base value B (n) maintains the past state where the concentration of the specific gas is relatively low. it seems to do. By calculating the difference value D (n) using the base value B (n) as a reference, it is possible to determine the concentration change of the specific gas.
Also in the present modified embodiment 7, the concentration of the specific gas can be divided and outputted in a plurality of concentration levels. In the electronic control assembly 20, not only fully open and fully closed but also appropriate flaps depending on the gas concentration such as half open. 34 can be opened and closed.
[0206]
Further, as described above, the level-up threshold value Tu1 when the density level is raised by one rank and the level-down threshold value Td1 when the density level is lowered by one rank are different from each other. It is preferable because the problem that the density level changes with a slight fluctuation when n) becomes a value near the threshold, that is, chattering in which the density level signal LV changes frequently can be prevented.
[0207]
Next, when the concentration of NOx is increased and then decreased, the sensor output value S (n) and the base value B () obtained by the control according to the modified embodiment 7, that is, the flowcharts shown in FIGS. n), examples of changes in the difference value D (n) and the density level signal LV are shown in FIG. In this example, the same data as described in the second embodiment is used, and data processing according to the flowchart shown in FIG. 18 is performed. Therefore, the first coefficient k1 = 1/16 and the second coefficient k2 = 1/2048. Also, the first level up threshold Tu1 = 0.02V, the second level up threshold Tu2 = 0.3V, the third level up threshold Tu3 = 0.7V, the first level dyne threshold Tu1 = 0V, the second level down threshold Tu2 = 0.2V, and the third level down threshold Tu3 = 0.6V.
[0208]
In the density level signal LV of the second embodiment shown in FIG. 13, chattering occurred at about 150 seconds, whereas no chattering occurred in the example of FIG. As described above, since the hysteresis is provided by using the level-up threshold value and the level-down threshold value, it can be understood that chattering can be prevented according to the seventh modification.
[0209]
In the modified embodiment 7, in the gas detection device 10 of the second embodiment and the vehicle autoventilation system 100 including the same, the contents of the subroutine of step S77 in the processing flow are shown in FIG. However, similarly, in the gas detection device 40 of Modification 4 and the vehicle autoventilation system 140 including the same, the content of the subroutine of Step S77 may be Modification 8 in which the one shown in FIG. 18 is applied. . Also in the modified embodiment 8, since the level-up threshold value Tu1 when the density level is increased by one rank and the level-down threshold value Td1 when the density level is decreased by one rank are different, the difference value D (n ) Becomes a value in the vicinity of the threshold value, it is preferable to prevent a problem that the density level changes with a slight fluctuation, that is, chattering in which the density level signal LV changes frequently.
[0210]
Similarly, when the CO concentration is increased and then decreased, the sensor output value S (n) and the base value B obtained by the control according to the present modification 8, that is, the flowcharts shown in FIGS. An example of changes in (n), the difference value D (n), and the density level signal LV is shown in FIG. In this example, the same data as described in the fourth modification is used, and data processing according to the flowchart shown in FIG. 18 is performed. Therefore, the third coefficient k3 = 1/16 and the fourth coefficient k4 = 1/1920. Also, the first level-up threshold Tu1 = 0.02V, the second level-up threshold Tu2 = 0.5V, the third level-up threshold Tu3 = 1.1V, the first level dyne threshold Tu1 = 0V, second level down threshold Tu2 = 0.4V, and third level down threshold Tu3 = 1.0V.
[0211]
In the density level signal LV of the modified example 4 shown in FIG. 16, chattering occurred at a time of about 180 to 200 seconds, whereas no chattering occurred in the example of FIG. Thus, since the hysteresis is provided using the level-up threshold value and the level-down threshold value, it can be understood that chattering can be prevented also in the present modification 8.
[0212]
(Deformation forms 9 and 10)
In the above modified embodiments 5 and 6, the same interlevel threshold values T1, T2, and T3 are used as the interlevel threshold value when the density level is raised and the interlevel threshold value when the density level is lowered. (See FIG. 17). On the other hand, it is preferable to provide hysteresis for each inter-level threshold value as in the seventh and eighth modifications. In other words, a level-up threshold is selected as the threshold for raising the level, and a level-down threshold value smaller than the corresponding level-up threshold is selected as the threshold for lowering the level. It is preferable to do.
That is, in the present modification 9, in the gas detection device 10 of the second embodiment and the vehicle autoventilation system 100 including the same, in the processing flow, as shown in FIG. The inter-level threshold values T1, T2, and T3 are replaced with level-up threshold values Tu1, Tu2, and Tu3, or level-down threshold values Td1, Td2, and Td3, respectively. The contents of the subroutine in step S77 will be described with reference to FIG.
The level-up thresholds Tu1, Tu2, Tu3 and the level-down thresholds Td1, Td2, Td3 are respectively Tu1 <Tu2 <Tu3, Td1 <Td2 <Td3, Td1 <Tu1, Td2 <Tu2, Td3 < The relationship is Tu3.
[0213]
As in the second embodiment and the fifth modification, when the difference value D (n) is calculated in step S76 and the process proceeds to step S77 (see FIG. 11), first, the density level signal LV currently generated in step S91. Determines whether LV = 0. Here, if Yes, the process proceeds to step S94A. On the other hand, in the case of No, the process proceeds to step S92.
In step S92, it is determined whether or not the currently generated density level signal LV is LV = 1. Here, if Yes, that is, LV = 1, the process proceeds to step S95A. On the other hand, in the case of No, the process proceeds to step S93.
In step S93, it is determined whether the density level signal LV currently generated is LV = 2. Here, in the case of Yes, the process proceeds to step S96A. On the other hand, if No, that is, LV = 3, the process proceeds to step S97A.
By doing in this way, as in the fourth modification, it is possible to classify which density level is present, that is, which density level signal LV is generated.
[0214]
Next, in step S94A, it is determined whether or not the difference value D (n) is greater than the first level-up threshold value Tu1. If No, that is, D (n) ≦ Tu1, the process proceeds to step S9A. On the other hand, if Yes, that is, D (n)> Tu1, the process proceeds to step S95A.
Further, in step S95A, it is determined whether or not the difference value D (n) is larger than the second level-up threshold value Tu2. If No, that is, D (n) ≦ Tu2, the process proceeds to step S99A. On the other hand, if Yes, that is, D (n)> Tu2, the process proceeds to step S96A.
Further, in step S96A, it is determined whether or not the difference value D (n) is larger than the third level-up threshold value Tu3. If No, that is, D (n) ≦ Tu3, the process proceeds to step S98A. On the other hand, if Yes, that is, D (n)> Tu3, the process proceeds to step S9E.
[0215]
On the other hand, in step S97A, it is determined whether or not the difference value D (n) is smaller than the third level down threshold value Td3. If No, that is, D (n) ≧ Td3, the process proceeds to step S9E. On the other hand, if Yes, that is, D (n) <Td3, the process proceeds to step S98A.
Further, in step S98A, it is determined whether or not the difference value D (n) is smaller than the second level down threshold value Td2. Here, if No, that is, D (n) ≧ Td2, the process proceeds to step S9D. On the other hand, if Yes, that is, D (n) <Td2, the process proceeds to step S99A.
Further, in step S99A, it is determined whether or not the difference value D (n) is smaller than the first level down threshold value Td1. Here, if No, that is, D (n) ≧ Td1, the process proceeds to step S9B. On the other hand, if Yes, that is, D (n) <Td13, the process proceeds to step S9A.
As a result, even in the present modification 9, cases can be classified according to the difference value D (n) regardless of the current density level.
[0216]
Therefore, in step S9A, the density level signal is set to LV = 0, or LV = 0 is maintained. In step S9B, the density level signal is set to LV = 1, or LV = 1 is maintained. In step S9D, the density level signal is set to LV = 2, or LV = 2 is maintained. In step S9E, the density level signal is set to LV = 3, or LV = 3 is maintained.
As described above, also in the ninth embodiment, similarly to the fifth modification, the density level corresponding to the difference value D (n) is obtained by performing the case classification according to the difference value D (n) regardless of the current density level. A signal can be generated. Therefore, when the difference value D (n) suddenly rises or falls, the density level signal LV can go up and down a plurality of ranks at a time.
Further, in the ninth modification, since the level-up threshold value and the level-down threshold value are used, it is possible to prevent chattering of the density level signal when the density level is changed.
[0217]
In the modified embodiment 9, in the gas detector 10 of the modified embodiment 5, that is, the vehicle auto-ventilation system 100 including the same, the contents of the subroutine of step S77 in the processing flow are shown in FIG. As shown. However, similarly, in the gas detection device 40 according to the sixth modification, that is, the fourth modification, and the vehicle auto-ventilation system 140 including the same, a modification in which the subroutine shown in FIG. Form 10 may be adopted. Even in the modified embodiment 10, it is possible to generate a density level signal corresponding to the difference value D (n) by performing case classification according to the difference value D (n) regardless of the current density level. . Therefore, when the difference value D (n) suddenly rises or falls, the density level signal LV can go up and down a plurality of ranks at a time.
Moreover, in the present modification 10, since the level-up threshold value and the level-down threshold value are used, it is possible to prevent chattering of the density level signal when the density level is changed.
[0218]
(Embodiment 3)
Next, a third embodiment will be described. The third embodiment also includes a gas detection device 10 similar to the first and second embodiments and a vehicle autoventilation system 100 including the same (see FIG. 1). That is, the system detects a change in the concentration of an oxidizing gas component such as NOx, and opens and closes the flap 34 based on this change.
However, the processing flow in the microcomputer 16 is different. That is, in the first and second embodiments described above, different calculation methods are used when the low density signal is generated and when the high density signal is generated. As a specific method, the same base value B (n ), But the calculation method was varied by changing the coefficient.
On the other hand, in the third embodiment, a change in gas concentration is detected using a differential value during generation of a low concentration signal. On the other hand, during the generation of a high concentration signal, a change in gas concentration is detected using the base value B (n). Therefore, in the third embodiment, the description will focus on the parts different from the first and second embodiments, and the description of the same parts will be omitted or simplified.
[0219]
Control in the microcomputer 16 of the third embodiment will be described with reference to the flowchart of FIG. As in the first embodiment, when the automobile engine is driven, the present control system is started up, and the gas sensor element 11 is activated, and initialization is performed in step S101. As an initial setting, a low density signal is generated as the density signal LV. Specifically, the density signal LV is set to a low level.
[0220]
Thereafter, the process proceeds to step S102, and sensor output values S (n) obtained by A / D converting the sensor output potential Vs every 0.4 seconds are sequentially read. Next, in step S103, it is determined whether or not a concentration high signal indicating that the concentration signal LV is currently at a high level, that is, the concentration of the specific gas (oxidizing gas in the present embodiment) is at a high level is generated. If No, that is, the concentration of the specific gas is low, the concentration signal LV is at a low level, and a low concentration signal is generated, the process proceeds to step S104. On the other hand, if Yes, that is, if the concentration of the specific gas is high and the concentration signal LV is high and a high concentration signal is generated, the process proceeds to step S108.
[0221]
In step S104, unlike the first embodiment, the differential value V (n) is calculated. Specifically, using the current sensor output value S (n) and the sensor output value S (n−1) one cycle before (0.4 seconds before), the following equation V (n) = S (n ) −S (n−1), and the process proceeds to step S105.
This differential value V (n) indicates a change in the sensor output value S (n) at the present time and one cycle before. Therefore, when the sensor output value S (n) increases due to the increase in the concentration of the oxidizing gas, the change immediately appears in the differential value V (n).
[0222]
Next, in step S105, the base value B (n) is adjusted. The adjustment of the base value in step S105 will be described later. Thereafter, the differential value V (n) is compared with the differential threshold value Tv in step S106. When the differential value V (n) is larger than the differential threshold value Tv (Yes), the process proceeds to step S107, Instead of the generated low density signal, a high density signal is generated, and the process proceeds to step S112. Specifically, the density signal LV is switched from the low level to the high level. On the other hand, when the magnitude of the differential value V (n) is equal to or less than the differential threshold value Tv (No), the process proceeds to step S112.
[0223]
On the other hand, in step S108, the base value B (n) is calculated from the previous base value B (n-1) and the sensor output value S (n) using the same formula (see below) as in the first embodiment. Then, the process proceeds to step S109. B (n) = B (n−1) + k {S (n) −B (n−1)}, where the coefficient k is 0 <k <1.
As described above, the base value B (n) has a property of changing more slowly than the sensor output value while following the sensor output value S (n). Moreover, the degree of follow-up with respect to the sensor output value S (n) differs depending on the magnitude of the coefficient k to be used. When a relatively large coefficient k is used, the base value B (n) is the sensor output value S (n). Follows relatively quickly with a slight delay. On the other hand, when a relatively small coefficient k is used, the change of the base value B (n) becomes slow and slowly follows the sensor output value.
[0224]
Accordingly, the base value B (n) does not increase as much as the sensor output value S (n) during the period when the sensor output value S (n) increases due to the increase in the oxidizing gas concentration. That is, the calculated base value B (n) does not change much from the immediately preceding base value B (n−1). Therefore, retroactively, the influence of the base value at the time of switching from the low density signal to the high density signal in step S107 is reflected.
[0225]
Here, in step S105, adjustment is performed to substitute the current sensor output value S (n) as the base value B (n). Therefore, the base value immediately before switching from the low density signal to the high density signal (step S107) is equal to the sensor output value at that time (immediately before switching). For this reason, the base value calculated in step S108 thereafter becomes a value that gradually changes from the sensor output value immediately before switching. In this way, the base value B (n) calculated in step S108 is a value that slowly follows the change in the sensor output value from the sensor output value immediately before switching.
[0226]
In step S109, the difference value D (n) is calculated according to the equation D (n) = S (n) −B (n), and is compared with the PI threshold value Tp in step S110. When the difference value is smaller than the PI threshold value Tp, that is, when D (n) <Tp (Yes), the process proceeds to step S111, and instead of the currently generated high density signal, the low density signal And proceeds to step S112. Specifically, the density signal LV is switched from high level to low level. On the other hand, if the difference value D (n) is greater than or equal to the PI threshold value Tp (No), the process proceeds to step S112.
As described above, when the difference value D (n) becomes smaller than the PI threshold value Tp, that is, when the difference between the sensor output value and the base value becomes smaller than the PI threshold value Tp, the oxidation is performed. It is determined that the concentration of the sex gas has decreased, and the high concentration signal is switched to the low concentration signal.
[0227]
Thereafter, the process proceeds to step S112 from both steps S107 and S111, stores the previous base value B (n) calculated in steps S105 and S108, and waits for the A / D sampling time to expire in step S113. Return to step S102.
In this way, when the concentration of the oxidizing gas greatly increases, the differential value V (n) immediately becomes larger than the differential threshold value Tv, and a high concentration signal is generated at an early stage of the concentration increase. Thereafter, Yes is determined in step S103, and the process proceeds to step S108 to calculate the base value B (n) instead of the differential value V (n).
[0228]
Conversely, when the concentration of the oxidizing gas decreases, the difference value D (n) decreases, and a low concentration signal is generated in step S111. Thereafter, No is determined in step S103, and the process proceeds to step S104, whereby the differential value V (n) is calculated again. Therefore, even if the concentration of the oxidizing gas rises again, it can be detected at an early stage of the gas concentration rise and a high concentration signal can be generated.
[0229]
Next, the sensor output value S (n) and the base value B when the gas detection device 10 and the vehicle autoventilation system 100 that operate according to the flowchart are applied to the gas concentration change data when traveling on an actual road. An example of changes in (n), the difference value D (n), the differential value V (n), and the density signal LV is shown in the graph of FIG. Since the sensor output value S (n), the differential value V (n), the base value B (n), and the difference value D (n) are all numerical values processed in the microcomputer 16, the sensor output value, The vertical axis at the left end and the right end in the figure showing the magnitude of the base value and the difference value may be considered as an arbitrary numerical unit. In addition, for the sake of easy understanding, the differential value V (n) is displayed only as a positive value, and as indicated by the vertical axis at the right end in the figure, the unit for each scale is made larger than the sensor output value or the like. The density signal LV shown in the lowermost stage is switched to two stages of high / low, and the upper part in the figure corresponds to the high level. In the present embodiment, a case where the coefficient k = 1/64, the differential threshold value Tv = 100, and the PI threshold value Tp = 0 will be described.
[0230]
In the period from time 0 to 785 seconds, except for a part (330 to 345 seconds and 635 to 680 seconds), the density signal LV generates a low level, that is, a low density signal. During this period, since the base value B (n) = S (n) is set in step S105, the sensor output value and the base value change in accordance with each other.
After that, around the time of about 785 seconds, the sensor output value increased rapidly (stepwise). Then, since the differential value V (n) immediately increases and exceeds the differential threshold value Tv, a high density signal is generated instead of the low density signal (that is, the density signal is set to the high level), and the base value B (n ) Is calculated in step S108.
Thereafter, when the sensor output value starts to decrease at about 890 seconds, the difference value also decreases, and at about 905 seconds, the difference value becomes PI threshold value Tp = 0 or less. Accordingly, in step S111, a low density signal is generated instead of the high density signal.
[0231]
Similar operations can be confirmed at about 1155 to 1260 seconds and about 1285 to 1345 seconds.
Further, as can be understood from the relationship between the sensor output value and the base value in the vicinity of the time of about 785 seconds, 1155 seconds, and 1285 seconds, in this embodiment, when the low concentration signal is generated, the sensor output value is expressed by the differential value V (n). Since an increase, that is, an increase in gas concentration is detected, it can be seen that it is possible to generate a high concentration signal instead of a low concentration signal at the very beginning of the increase.
In the above graph, k = 1/64 is used as the coefficient k in calculating the base value. However, if a smaller coefficient (for example, 1/256) is used, the base value is greater than the sensor output value. In order to follow slowly, it is possible to switch to a low density signal when the sensor output value becomes even lower.
[0232]
Also by the above control, in the vehicle auto-ventilation system 100 (see FIG. 1), the flap is obtained using the obtained density signal LV (low density signal and high density signal) as in the first embodiment (see FIG. 2). The drive circuit 21 can instruct the opening and closing of the flap 34 to control the introduction of the outside air and the circulation of the inside air (fully open / fully closed).
[0233]
(Modification 11)
Next, a modification of the third embodiment will be described. The gas detection device 40 of the present modification 11 and the vehicle autoventilation system 140 including the same have the same configuration as that of the above-described modification 1 (see FIG. 6). Therefore, the processing flow is almost the same as that of the third embodiment, but has some different points. That is, in the third embodiment, a gas sensor element of a type in which the sensor resistance value Rs increases as the concentration of the oxidizing gas component increases is used as the gas sensor element 11. On the other hand, this modification 11 is different in that a gas sensor element 41 of a type in which the sensor resistance value Rs decreases with increasing concentration of the reducing gas component is used.
Accordingly, the sensor resistance value conversion circuit 44 of the present modification 11 is configured such that when the concentration of the reducing gas increases, the sensor resistance value Rs decreases and the sensor output potential Vs decreases. Different.
Further, the processing flow in the microcomputer 16 is slightly different.
Therefore, the description will focus on the differences from the first and third embodiments, and the description of similar parts will be omitted or simplified.
[0234]
Control in the microcomputer 16 according to the eleventh modification will be described with reference to the flowchart of FIG. As in the third embodiment, when the automobile engine is driven, the present control system is started up, and the gas sensor element 41 is activated, and initialization is performed in step S201. As an initial setting, a low density signal is generated as the density signal LV. Specifically, the density signal LV is set to a low level.
[0235]
Thereafter, the process proceeds to step S202, and the sensor output potential Vs is sequentially read every 0.4 seconds. Next, in step S203, it is determined whether or not a high density signal is generated. If No, that is, if the density signal LV is at a low level, the process proceeds to step S104. On the other hand, if Yes, that is, if the density signal LV is at a high level, the process proceeds to step S108.
[0236]
In step S204, the differential value V (n) is calculated as in the third embodiment. However, unlike step S104 of the third embodiment (see FIG. 22), the current sensor output value S (n) is subtracted from the sensor output value S (n−1) one cycle before, that is, the following equation V (n ) = S (n−1) −S (n), and the process proceeds to step S205. The reason why the differential value V (n) is calculated in this way is to make the differential value easy to handle by making the differential value a positive value when the gas concentration increases. This differential value V (n) indicates a change in the sensor output value S (n) from the previous cycle to the current one. Therefore, if the sensor output value S (n) decreases due to the increase in the concentration of the reducing gas, the change immediately appears in the differential value V (n).
[0237]
Next, in step S205, the base value B (n) is adjusted. The adjustment of the base value in step S205 will be described later. Thereafter, in step S206, the differential value V (n) is compared with the differential threshold value Tv. When the differential value V (n) is larger than the differential threshold value Tv (Yes), the process proceeds to step S207, where the current occurrence occurs. Instead of the low density signal, a high density signal is generated, and the process proceeds to step S212. Specifically, the density signal LV is switched from the low level to the high level. On the other hand, when the magnitude of the differential value V (n) is equal to or smaller than the differential threshold value Tv (No), the process proceeds to step 212.
[0238]
On the other hand, in step S208, the base value B (n) is calculated using the same formula (see below) as in the first modification, and the process proceeds to step S209. B (n) = B (n−1) + k {S (n) −B (n−1)}, where the coefficient k is 0 <k <1.
The base value B (n) changes more slowly than the sensor output value while following the sensor output value S (n).
[0239]
Accordingly, the base value B (n) does not decrease as much as the sensor output value S (n) during the period in which the sensor output value S (n) decreases due to an increase in the reducing gas concentration. Therefore, retroactively, the influence of the base value at the time when the low density signal is switched to the high density signal in step S207 is reflected.
[0240]
Here, in step S205, since the current sensor output value S (n) is adjusted as the base value B (n), the base value calculated in step S208 thereafter is the value just before switching. The value gradually changes from the sensor output value. Thus, the base value B (n) calculated in step S208 is a value that slowly follows the change in sensor output value from the sensor output value immediately before switching.
[0241]
In step S209, the difference value D (n) is obtained as in the third embodiment. However, it calculates according to the formula of D (n) = B (n) -S (n). This is also to facilitate handling of the difference value as a positive value. Thereafter, it is compared with the PI threshold value Tp in step S210. If D (n) <Tp (Yes), the process proceeds to step S211, a low density signal is generated instead of the high density signal currently generated, and the process proceeds to step S212. On the other hand, if D (n) ≧ Tp (No), the process proceeds to step S212.
In this way, when the difference value D (n) becomes smaller than the PI threshold value Tp, it is determined that the concentration of the reducing gas has decreased, and the high concentration signal is switched to the low concentration signal. This is because the fact that the difference value D (n) has become smaller than the PI threshold value Tp is considered to indicate that the concentration of the reducing gas has decreased.
[0242]
Thereafter, in step S212, the previous base value B (n) calculated in steps S205 and S208 is stored. In step S213, the A / D sampling time is up, and the process returns to step S202.
In this way, when the concentration of the reducing gas greatly increases, the differential value V (n) immediately becomes larger than the differential threshold value Tv, and a high concentration signal is generated at an early stage of the concentration increase. Thereafter, Yes is determined in step S203, and the process proceeds to step S208, whereby the base value B (n) is calculated instead of the differential value V (n).
[0243]
Conversely, when the concentration of the reducing gas decreases, the difference value D (n) decreases, and a low concentration signal is generated in step S211. Thereafter, No is determined in step S203, and the process proceeds to step S204, whereby the differential value V (n) is calculated again. Therefore, even if the concentration of the reducing gas increases again, this can be detected at an early stage of the gas concentration increase, and a high concentration signal can be generated.
[0244]
(Embodiment 4)
Next, a fourth embodiment will be described. The fourth embodiment also includes a gas detection device 10 similar to the first and third embodiments, and a vehicle autoventilation system 100 including the same. That is, the system detects a change in the concentration of the oxidizing gas component and opens and closes the flap 34 based on the change. Further, as in the third embodiment, the differential value is calculated during the low gas concentration period, and the base value and the difference value are calculated during the high gas concentration period.
However, in the fourth embodiment, the processing flow in the microcomputer 16 is different, and it is not a density signal of two levels of high density (high) and low density (low), but three or more density levels as in the second embodiment. More specifically, it has four density level signals LV (LV = 0, 1, 2, 3) corresponding to the four density levels. Unlike the second embodiment, in addition to the three inter-level thresholds Tp1, Tp2, and Tp3 (Tp1 <Tp2 <Tp3) that divide these concentration levels, when the gas concentration increases from the state of LV = 0, the differential A differential threshold value Tv is provided as a threshold value to be compared with the value. Therefore, the description will focus on parts different from the first and third embodiments, and description of similar parts will be omitted or simplified.
[0245]
Control in the microcomputer 16 of the fourth embodiment will be described with reference to the flowcharts of FIGS. As in the first and third embodiments, when the engine of the automobile is driven, the present control system starts up and waits for the gas sensor element 11 to be activated, and the initial setting is performed in step S301. As an initial setting, a signal corresponding to LV = 0 is generated as the density level signal LV.
Specifically, as in the second embodiment, a PWM signal is output as an output signal from the output terminal 18, the duty ratio is made to correspond to the density level signal, and the PWM signal having a duty ratio of 15% is made to correspond to LV = 0. generate. Similarly, a PWM signal having a duty ratio of 30% as a signal corresponding to LV = 1, a duty ratio of 50% as a signal corresponding to LV = 2, and a duty ratio of 70% as a signal corresponding to LV = 3 is generated.
[0246]
Thereafter, the process proceeds to step S302, where the sensor output potential Vs is A / D converted every 0.4 seconds, and the sensor output value S (n) is sequentially read. Next, in step S303, it is determined whether or not a density level signal LV = 0, that is, a signal indicating the lowest density level is currently generated. Here, if No, that is, if LV = 1, 2, or 3, the process proceeds to step S308. On the other hand, if a signal of Yes, ie, LV = 0, is generated, the process proceeds to step S304.
[0247]
In step S304, the differential value V (n) is calculated in the same manner as in the third embodiment, and the process proceeds to step S305. In step S305, the base value B (n) is adjusted in the same manner as in the third embodiment. The adjustment of the base value in step S305 is the same as in the third embodiment. Thereafter, in step S306, the differential value V (n) is compared with the differential threshold value Tv. When the differential value V (n) is larger than the differential threshold value Tv (Yes), the process proceeds to step S307, where the current occurrence occurs. Instead of the density level signal of LV = 0, the density level signal of LV = 1 is generated, and the process proceeds to step S311. On the other hand, when the magnitude of the differential value V (n) is equal to or smaller than the differential threshold value Tv (No), the process proceeds to step S311.
As a result, when the sensor output value S (n) greatly increases during one cycle and the differential value V (n) becomes larger than the differential threshold value Tv, this is quickly captured and the concentration level The signal can be switched from LV = 0 to LV = 1 to inform that the gas concentration has increased.
[0248]
On the other hand, in step S308, the base value B (n) is calculated as in the third embodiment, and the process proceeds to step S309.
As described above, the base value B (n) has a property of changing more slowly than the sensor output value while following the sensor output value S (n).
In step S309, the difference value D (n) is calculated according to the equation D (n) = S (n) −B (n), and is used to determine whether or not to switch the density level signal LV in the subroutine shown in step S310.
[0249]
The contents of the subroutine in step S310 are shown in FIG. This subroutine S310 is the same as the subroutine S77 in the second embodiment except that there is no step corresponding to steps S91 and S94.
That is, when the process proceeds to step S310, it is first determined in step S321 whether the density level signal LV currently generated is LV = 1 corresponding to the second lowest density level. Here, if Yes, that is, LV = 1, the process proceeds to step S323. On the other hand, if No, that is, LV = 2 or 3, the process proceeds to step S322.
In step S322, it is determined whether the currently generated density level signal LV is LV = 2 corresponding to the second highest density level. Here, if Yes, that is, LV = 2, the process proceeds to step S324. On the other hand, if No, that is, LV = 3 corresponding to the highest density level, the process proceeds to step S325.
By doing in this way, it can be classified according to which density level signal LV is currently generated.
[0250]
In step S323, it is determined whether or not the difference value D (n) is greater than the second level threshold value Tp2. Here, if No, that is, D (n) ≦ Tp2, the process proceeds to step S327. On the other hand, if Yes, that is, D (n)> Tp2, the process proceeds to step S324.
Furthermore, in step S324, it is determined whether or not the difference value D (n) is greater than the third level threshold value Tp3. Here, if No, that is, D (n) ≦ Tp3, the process proceeds to step S326. On the other hand, if Yes, that is, D (n)> Tp3, the process proceeds to step S331.
[0251]
On the other hand, in step S325, it is determined whether or not the difference value D (n) is smaller than the third level threshold value Tp3. Here, if No, that is, D (n) ≧ Tp3, the process proceeds to step S331. On the other hand, if Yes, that is, D (n) <Tp3, the process proceeds to step S326.
Further, in step S326, it is determined whether or not the difference value D (n) is smaller than the second level threshold value Tp2. Here, if No, that is, D (n) ≧ Tp2, the process proceeds to step S330. On the other hand, if Yes, that is, D (n) <Tp2, the process proceeds to step S327.
Further, in step S327, it is determined whether or not the difference value D (n) is smaller than the first level threshold value Tp1. Here, if No, that is, D (n) ≧ Tp1, the process proceeds to step S329. On the other hand, if Yes, that is, D (n) <Tp3, the process proceeds to step S328.
As a result, regardless of the current density level, the case can be divided according to the difference value D (n).
[0252]
Therefore, in step S328, the density level signal is set to LV = 0. In step S329, the density level signal is set to LV = 1, or LV = 1 is maintained. In step S330, the density level signal is set to LV = 2, or LV = 2 is maintained. In step S331, the density level signal is set to LV = 3, or LV = 3 is maintained.
As described above, regardless of the current density level, it is possible to generate a density level signal corresponding to the difference value D (n) by dividing the case according to the difference value D (n). Therefore, when the difference value D (n) suddenly rises or falls, the density level signal LV can go up and down a plurality of ranks at a time.
Furthermore, after setting the density level signal to LV = 0 in step S328, it is determined Yes in step S303, and the process proceeds to step S304, whereby the differential value V (n) is calculated again. Therefore, even if the concentration of the reducing gas increases again, this can be detected at an early stage of the gas concentration increase, and the concentration level signal LV = 1 can be generated.
[0253]
Next, the sensor output value S (n) and the base value B when the gas detection device 10 and the vehicle autoventilation system 100 that operate according to the flowchart are applied to the gas concentration change data when traveling on an actual road. An example of changes in (n), difference value D (n), differential value V (n), and density level signal LV is shown in the graph of FIG.
The sensor output value data used in this graph was the same as the gas concentration change data shown in FIG. The coefficient k for calculating the base value was also the same value. Accordingly, in addition to the sensor output value, the differential value, base value, and difference value are all the same as those shown in FIG. 23, and only the density level signal is different. That is, in the present embodiment, since the density level signal corresponding to the four levels of LV = 0, 1, 2, 3 is output as the density level signal, this graph also corresponds to the higher density level signal in the upper part of the figure. To express.
Similarly to FIG. 21, the left and right vertical axes in the figure showing the magnitudes of the sensor output value, base value, and difference value are arbitrary numerical units, and the differential value V (n) is a positive value only. In addition to displaying, the unit for each scale was made larger than the sensor output value. The coefficient k = 1/64, the differential threshold Tv = 100, the first level threshold Tp1 = 0, the second level threshold Tp2 = 1000, and the third level threshold Tp3 = 2000.
[0254]
In the period from time 0 to 785 seconds, except for a part (330 to 345 seconds and 635 to 680 seconds), the density level signal LV generates a PWM signal with a duty ratio of 15% corresponding to LV = 0. . During this period, since the base value B (n) = S (n) is set in step S305, the sensor output value and the base value change in accordance with each other.
After that, around the time of about 785 seconds, the sensor output value increased rapidly (stepwise). Then, since the differential value V (n) immediately increases and exceeds the differential threshold value Tv, LV = 1 (PWM signal with a duty ratio of 30%) is generated as the density level signal, and the base value B (n) is stepped. It is calculated by S308. Therefore, since the base value increases slowly as the sensor output value increases, there is a difference between them, and the difference value becomes a positive value (here, about 1600). Therefore, in the subroutine of step S310, the density level signal is switched to LV = 2 (duty ratio 50%). Thereafter, as can be seen from this graph, the density level signal is switched to LV = 2 or LV = 1 according to the variation of the difference value.
Thereafter, at about 905 seconds, the difference value becomes equal to or less than the first level threshold value Tp1 = 0. Accordingly, in step S111, LV = 0 is generated as the density level signal.
[0255]
Similar operations can be confirmed at about 1155 to 1260 seconds and about 1285 to 1345 seconds. In particular, in the vicinity of 1155 seconds, the difference value became extremely large (about 4000), so that it can be seen that there was also a period in which LV = 3 (duty ratio 70%) was generated as the density level signal.
Furthermore, as can be understood from the relationship between the sensor output value and the base value at around 785 seconds, 1155 seconds, and 1285 seconds, in this embodiment, when LV = 0 occurs as the concentration level signal, the differential value V (n) Since an increase in the sensor output value, that is, an increase in gas concentration is detected by, one of LV = 1, 2, and 3 is generated instead of LV = 0 as the concentration level signal at the very beginning of the increase. I understand that.
In the above graph, k = 1/64 is used as the coefficient k in calculating the base value. However, if a smaller coefficient (for example, 1/256) is used, the base value is greater than the sensor output value. In order to follow slowly, the density level signal can be switched to LV = 0 when the sensor output value further decreases.
[0256]
Even with such control, in the vehicle auto-ventilation system 100 (see FIG. 1), the flap drive circuit 21 uses the obtained concentration level signal LV in the same manner as in the second embodiment (see FIG. 14). It is possible to instruct the opening degree of air and appropriately control the outside air introduction and the inside air circulation.
[0257]
In the fourth embodiment, the present invention is applied to the gas detection device 10 using the gas sensor element 11 that reacts to the oxidizing gas and the vehicle autoventilation system 100. However, similar to the fourth and eleventh embodiments, the same processing may be performed in the gas detection device 40 using the gas sensor element 41 that reacts with the reducing gas and the vehicle auto-ventilation system 140. However, in this case, as the concentration of the reducing gas increases, the sensor output value decreases, so that the differential value V (n) is set to V (n) = S (n−1) as in the above-described modified embodiment 11. ) −S (n) and the difference value D (n) is calculated by D (n) = B (n) −S (n) (see FIG. 24).
[0258]
(Embodiment 5)
Next, a fifth embodiment will be described. The fifth embodiment also includes a gas detection device 10 similar to that of the first embodiment, and a vehicle autoventilation system 100 including the same. That is, the system detects a change in the concentration of the oxidizing gas component and opens and closes the flap 34 based on the change.
However, in the first embodiment, the base value and the difference value are calculated in both the low concentration signal generation period and the high concentration signal generation period to detect the gas concentration change.
On the other hand, in the fifth embodiment, m moving average values and difference values (first difference values) are calculated in the low density signal generation period, and the base value and difference value (second difference value) are calculated in the high density signal generation period. ) Is calculated to detect a change in gas concentration. Therefore, the description will be centered on parts different from the first embodiment, and description of similar parts will be omitted or simplified. In the fifth embodiment, m = 100.
[0259]
Control in the microcomputer 16 of the fifth embodiment will be described with reference to the flowchart of FIG. As in the first embodiment, when the engine of the automobile is driven, this control system is started up and the gas sensor element 11 is activated, and initialization is performed in step S401. As this initial setting, a low density signal is generated as the density signal LV. Specifically, the density signal LV is set to a low level.
Thereafter, the process proceeds to step S402, and sensor output values S (n) obtained by A / D converting the sensor output potential Vs are sequentially read. This is repeated in step S403 until n ≧ m−1, and thus n ≧ 99. As described below, in order to calculate m moving average values (100 moving average values) in step S406, m-1 (= 99) sensor output values are obtained in advance. Note that the time interval of the sensor output values repeatedly acquired in steps S402 and S403 was set to be every 0.4 seconds, as in the case of acquiring sensor output values described later. However, in order to enable gas detection earlier, the sampling time in steps S402 and S403 may be set short.
[0260]
Thereafter, the process proceeds to step S404, and sensor output values S (n) obtained by A / D converting the sensor output potential Vs every 0.4 seconds are sequentially read. Next, in step S405, it is determined whether or not a concentration high signal indicating that the concentration signal LV is currently at a high level, that is, the concentration of the specific gas (oxidizing gas in the present embodiment) is at a high level is generated. If No, that is, if the density signal LV is at a low level and a low density signal is generated, the process proceeds to step S406. On the other hand, if Yes, that is, if the density signal LV is at a high level and a high density signal is generated, the process proceeds to step S411.
[0261]
In step S406, unlike the first embodiment, m moving average values (100 moving average values in the fifth embodiment) Md (n) are calculated. Specifically, an average value of m (= 100) sensor output values S (n) to S (n-99) is calculated retroactively from the present. Specifically, calculation is performed using the following formula Md (n) = (S (n) + S (n−1) +... + S (n−99)) / 100, and the process proceeds to step S407.
This moving average value Md (n) is an average value of 100 sensor output values S (n) going back from the present time, and is an average value. Therefore, the moving average value Md (n) sufficiently follows the rapid fluctuation of the sensor output value. Can not. Therefore, for example, when the sensor output value S (n) slowly increases due to a drift of the sensor output value due to a temperature change of the gas sensor element 11 or the like, the moving average value Md (n) also increases following the change. However, when the sensor output value rises greatly, the moving average value cannot sufficiently follow and rises behind the sensor output value.
[0262]
Next, in step S407, the first difference value D (n) is calculated according to the equation D (n) = S (n) −Md (n).
When the concentration of the oxidizing gas is low and the change is small or when the change is slow, the moving average value Md (n) changes following the sensor output value S (n). D (n) does not take a very large value.
However, if the concentration of the oxidizing gas is greatly increased and the sensor output value S (n) is greatly increased, the moving average value Md (n) cannot sufficiently follow, and the first difference value D (n) increases. Accordingly, in step S409, which will be described later, it is determined that D (n)> Tm, and a high density signal can be generated in step S410.
[0263]
In step S408, the base value B (n) is adjusted. The base value is adjusted in step S408 for the same reason as in step S105 in the third embodiment.
Thereafter, in step S409, the first difference value D (n) is compared with the moving average threshold value Tm. When the first difference value D (n) is larger than the moving average threshold value Tm (Yes), Proceeding to step S410, a high density signal is generated instead of the low density signal currently generated, and the process proceeds to step S416. Specifically, the density signal LV is switched from the low level to the high level. On the other hand, when the magnitude of the first difference value D (n) is equal to or smaller than the moving average threshold value Tm (No), the process proceeds to step S416.
[0264]
Thereby, when the sensor output value increases and the first difference value D (n) becomes larger than the moving average threshold value Tm, this is detected and the low density signal is switched to the high density signal. Can do.
In this embodiment, m = 100. However, as the moving average sample number m increases, the m moving average value Md (n) is less likely to change, and is slower than the sensor output value S (n). To follow. Conversely, when the number of samples m is reduced, the sensor output value S (n) is followed relatively quickly. Therefore, the size of the sample number m may be appropriately selected in consideration of the environment in which the gas detection device 10 is used.
Note that the moving average value Md (n) is more sensitive to changes in the sensor output value S (n) than the base value B (n) calculated in step S411 described below. And the coefficient k should be determined.
[0265]
On the other hand, in step S411, the base value B (n) is calculated using the same formula (see below) as in the first embodiment, and the process proceeds to step S412. B (n) = B (n−1) + k {S (n) −B (n−1)}, where the coefficient k is 0 <k <1.
The base value B (n) has a property of changing more slowly than the sensor output value while following the sensor output value S (n). In addition, the degree of tracking with respect to the sensor output value S (n) can be changed depending on the magnitude of the coefficient k to be used.
[0266]
Accordingly, the base value B (n) does not increase as much as the sensor output value S (n) during the period when the sensor output value S (n) increases due to the increase in the oxidizing gas concentration. That is, the calculated base value B (n) does not change much from the immediately preceding base value B (n−1). Therefore, retroactively, the influence of the base value at the time of switching from the low density signal to the high density signal in step S410 is reflected. Here, in step S408, adjustment is performed to substitute the current sensor output value S (n) as the base value B (n). Accordingly, the base value immediately before switching from the low density signal to the high density signal (step S410) is equal to the sensor output value at that time (immediately before switching). Further, the base value calculated in step S411 thereafter is a value that gradually changes from the sensor output value immediately before switching. Thus, the base value B (n) calculated in step S411 is a value that slowly follows the change in the sensor output value from the sensor output value immediately before switching.
[0267]
In step S412, the second difference value D2 (n) is calculated according to the formula D2 (n) = S (n) −B (n).
In step S413, the past sensor output value is adjusted and stored. Specifically, 99 (= m−1) past sensor output values S (n−1) to S (n−99) are rewritten to the current sensor output value S (n). As described below, when a low density signal is generated instead of a high density signal in step S405, a moving average value is calculated in step S406. This is because the value of the moving average value Md (n) calculated at that time is set to a value close to the sensor output value immediately before the concentration signal switching, and the operation at the time of switching is prevented from becoming unstable.
[0268]
In step S414, the second difference value D2 (n) is compared with the PI threshold value Tp. If D2 (n) <Tp (Yes), the process proceeds to step S415, and instead of the currently generated high density signal, a low density signal is generated, and the process proceeds to step S416. Specifically, the density signal LV is switched from high level to low level.
As described above, when D2 (n) <Tp, that is, when the difference between the sensor output value and the base value is smaller than the PI threshold value Tp, the concentration of the oxidizing gas is reduced. Judgment is made and the high density signal is switched to the low density signal.
[0269]
While the high concentration signal is being generated (Yes in step S405), if the oxidizing gas concentration decreases, the base value B (n) decreases with respect to the decrease in the sensor output value S (n). The difference value D2 (n) gradually decreases. Therefore, it is considered that the fact that the second difference value D2 (n) is smaller than the PI threshold value Tp indicates that the concentration of the oxidizing gas has decreased.
On the other hand, if the magnitude of the second difference value D2 (n) is greater than or equal to the PI threshold value Tp (No), the process proceeds to step S416, and the generation of the high density signal is maintained.
[0270]
Thereafter, the process proceeds to step S416 from both steps S410 and S415, stores the previous base value B (n) calculated in steps S408 and S411, and waits for the A / D sampling time to expire in step S417. Return to step S404.
In this way, when the concentration of the oxidizing gas increases, the moving average Md (n) changes behind the increase of the sensor output value S (n). Therefore, the first difference value D (n) calculated using this changes. ) Becomes larger than the moving average threshold value Tm, and a high density signal is generated in step S410. Thereafter, Yes is determined in step S405, and the process proceeds to step S411, whereby the base value B (n) is calculated instead of the moving average value Md (n).
[0271]
Thereafter, when the concentration of the oxidizing gas decreases, the second difference value D2 (n) decreases, and a low concentration signal is generated in step S414. Thereafter, No is determined in step S405, and the process proceeds to step S406, whereby the moving average value Md (n) is calculated again. Therefore, even if the concentration of the oxidizing gas increases again, this can be captured and a high concentration signal can be generated.
[0272]
Also by the above control, in the vehicle auto-ventilation system 100 (see FIG. 1), the flap is obtained using the obtained density signal LV (low density signal and high density signal) as in the first embodiment (see FIG. 2). The drive circuit 21 can instruct the opening and closing of the flap 34 to control the introduction of the outside air and the circulation of the inside air (fully open / fully closed).
[0273]
(Modification 12)
Next, a modification of the fifth embodiment will be described. The gas detection device 40 of the present modification 12 and the vehicle autoventilation system 140 including the same have the same configuration as that of the above-described modification 1 (see FIG. 6). Therefore, the processing flow is substantially the same as that of the fifth embodiment, but there are some differences. That is, in the fifth embodiment, a gas sensor element of a type in which the sensor resistance value Rs increases as the concentration of the oxidizing gas component increases is used as the gas sensor element 11. On the other hand, the present modification 12 is different in that a gas sensor element 41 of a type in which the sensor resistance value Rs decreases as the concentration of the reducing gas component increases is used.
Accordingly, the sensor resistance value conversion circuit 44 of the present modification 12 is configured such that when the concentration of the reducing gas increases, the sensor resistance value Rs decreases and the sensor output potential Vs decreases. But it is different.
Further, the processing flow in the microcomputer 16 is slightly different.
Therefore, the description will focus on the parts that are different from the modification 1 and the fifth embodiment, and the description of the same parts will be omitted or simplified.
[0274]
Control in the microcomputer 16 according to the twelfth modification will be described with reference to the flowchart of FIG. As in the first modification, when the engine of the automobile is driven, the present control system is started up and the gas sensor element 41 is activated, and initialization is performed in step S501. As an initial setting, a low density signal is generated as the density signal LV. Specifically, the density signal LV is set to a low level.
Thereafter, the process proceeds to step S502, and sensor output values S (n) obtained by A / D converting the sensor output potential Vs are sequentially read. This is repeated until n ≧ 99 in step S503. As described below, in order to calculate m moving average values (100 moving average values) in step S506, m−1 (= 99) sensor output values are obtained in advance.
[0275]
Thereafter, the process proceeds to step S504, and sensor output values S (n) obtained by A / D converting the sensor output potential Vs every 0.4 seconds are sequentially read. Next, in step S505, it is determined whether a high density signal is currently generated. If No, that is, if a low density signal is generated, the process proceeds to step S506. On the other hand, if Yes, that is, if a high density signal is generated, the process proceeds to step S511.
[0276]
In step S506, 100 moving average values Md (n) are calculated in the same manner as in the fifth embodiment, and the process proceeds to step S507.
The moving average value Md (n) changes following the sensor output value as in the fifth embodiment. Accordingly, when the sensor output value S (n) is slowly decreased due to temperature drift of the gas sensor element 41, the moving average value Md (n) is also decreased following the change. However, when the sensor output value greatly decreases due to an increase in the concentration of the reducing gas, the moving average value cannot sufficiently follow and decreases after the sensor output value.
[0277]
Next, in step S507, the first difference value D (n) is calculated according to the equation D (n) = Md (n) −S (n). Note that the calculation formula is different from that in step S407 in the fifth embodiment in consideration of the characteristics of the gas sensor element 41 used in the present modified embodiment, and the first difference value D (n) in the rising phase of the reducing gas. This is for facilitating the processing so that becomes a positive value.
In step S508, the base value B (n) is adjusted. The adjustment of the base value in step S508 is for the same reason as in steps S105 and S408 in the third and fifth embodiments.
[0278]
Thereafter, in step S509, the first difference value D (n) is compared with the moving average threshold value Tm. When the first difference value D (n) is larger than the moving average threshold value Tm (Yes), Proceeding to step S510, a high density signal is generated instead of the low density signal currently generated, and the process proceeds to step S516. Specifically, the density signal LV is switched from the low level to the high level. On the other hand, when the magnitude of the first difference value D (n) is equal to or less than the moving average threshold value Tm (No), the process proceeds to step S516.
As a result, when the sensor output value S (n) decreases and the first difference value D (n) becomes larger than the moving average threshold value Tm, this is captured and the density low signal is changed to the density high value. You can switch to a signal.
[0279]
On the other hand, in step S511, the base value B (n) is calculated using the following equation similar to that in the first modification, and the process proceeds to step S512. B (n) = B (n−1) + k {S (n) −B (n−1)}, where the coefficient k is 0 <k <1.
The base value B (n) has a property of changing more slowly than the sensor output value while following the sensor output value S (n). In addition, the degree of tracking with respect to the sensor output value S (n) can be changed depending on the magnitude of the coefficient k to be used.
[0280]
Therefore, the base value B (n) does not decrease as much as the sensor output value S (n) in the period in which the sensor output value S (n) decreases due to the increase in the concentration of the reducing gas. That is, the calculated base value B (n) does not change much from the immediately preceding base value B (n−1). Therefore, retroactively, the influence of the base value at the time when the low density signal is switched to the high density signal in step S510 is reflected.
Here, in step S508, adjustment is performed to substitute the current sensor output value S (n) as the base value B (n). Accordingly, the base value immediately before switching from the low density signal to the high density signal (step S510) is equal to the sensor output value at that time (immediately before switching). Further, the base value calculated in step S511 thereafter becomes a value that gradually changes from the sensor output value immediately before switching. Thus, the base value B (n) calculated in step S511 is a value that slowly follows the change in the sensor output value from the sensor output value immediately before switching.
[0281]
In step S512, the second difference value D2 (n) is calculated according to the formula D2 (n) = B (n) −S (n). Note that the calculation formula is different from that in step S412 in the present modification 12 in consideration of the characteristics of the gas sensor element 41 used in the present modification and the second difference value D2 (n ) Is a positive value to facilitate processing.
In step S513, the past sensor output value is adjusted and stored. Specifically, 99 past sensor output values S (n−1) to S (n−99) are rewritten to the current sensor output value S (n). When the moving average value is calculated again in step S506, the calculated moving average value Md (n) is set to a value close to the sensor output value immediately before the concentration signal switching, and the operation at the time of switching is performed. This is to prevent instability.
[0282]
In step S514, the second difference value D2 (n) is compared with the PI threshold value Tp. If D2 (n) <Tp (Yes), the process proceeds to step S515, a low density signal is generated instead of the high density signal currently generated, and the process proceeds to step S516. Specifically, the density signal LV is switched from high level to low level. As described above, when the second difference value D2 (n) is smaller than the PI threshold value Tp, that is, when the difference between the base value and the sensor output value is smaller than the PI threshold value Tp, the reduction is performed. It is determined that the concentration of the sex gas has decreased, and the high concentration signal is switched to the low concentration signal.
[0283]
While the high concentration signal is being generated (Yes in step S505), if the concentration of the reducing gas decreases, the base value B (n) increases with a delay with respect to the increase in the sensor output value S (n). 2 The difference value D2 (n) gradually decreases. Accordingly, the fact that the second difference value D2 (n) is smaller than the PI threshold value Tp is considered to indicate that the concentration of the reducing gas has decreased.
On the other hand, if D2 (n) ≧ Tp (No), the process proceeds to step 516 and the generation of the high density signal is maintained.
[0284]
Thereafter, the process proceeds to step S516 from both steps S510 and S515, stores the previous base value B (n) calculated in steps S508 and S511, and waits for the A / D sampling time to increase in step S517. Return to step S504.
In this way, when the concentration of the reducing gas increases, the moving average Md (n) changes behind the increase of the sensor output value S (n). Therefore, the first difference value D (n) calculated using this is calculated. ) Exceeds the moving average threshold value Tm, and a high density signal is generated in step S510. Thereafter, Yes is determined in step S505, and the process proceeds to step S511 to calculate the base value B (n) instead of the moving average value Md (n).
[0285]
Thereafter, when the concentration of the reducing gas decreases, the second difference value D2 (n) decreases, and a low concentration signal is generated in step S514. Thereafter, No is determined in step S505, and the process proceeds to step S506, whereby the moving average value Md (n) and the first difference value D (n) are calculated again. Therefore, even if the concentration of the reducing gas rises again, this can be captured and a high concentration signal can be generated.
[0286]
Also by the above control, in the vehicle auto-ventilation system 140 (see FIG. 6), the flaps are obtained using the obtained density signal LV (low density signal and high density signal) as in the first embodiment (see FIG. 2). The drive circuit 21 can instruct the opening and closing of the flap 34 to control the introduction of the outside air and the circulation of the inside air (fully open / fully closed).
[0287]
In the above, the present invention has been described with reference to the embodiments and modified embodiments. However, the present invention is not limited to the above-described embodiments and modified embodiments, and can be appropriately modified and applied without departing from the gist thereof. Needless to say.
For example, in the above-described embodiments and modifications, the gas sensor elements 11 and 41 are positioned on the ground side (lower side) of the voltage dividing circuit, and the detection resistor 12 is on the power source side (upper side) (see FIGS. 1 and 6). The gas sensor elements 11 and 41 may be positioned on the power supply side (upper side) of the voltage dividing circuit and the detection resistor 12 may be on the ground side (lower side). However, in this case, for example, when the concentration of NOx increases, the sensor resistance conversion circuit characteristics are reversed such that the sensor voltage Vs changes in a decreasing direction. There is a need to do.
[0288]
In the third embodiment and the eleventh modification, the base value B (n) is calculated. However, instead of calculating the base value, a moving average value may be calculated. In the third embodiment and the like, the differential value V (n) is calculated. In addition to the differential value, a second-order differential value or a calculation method similar to differentiation (for example, S (n) -S (n-2)). You may use the value calculated | required by.
[0289]
Further, in the above-described modified embodiments 2, 3, 7, 8, 9, and 10, in order to prevent density chattering, a hysteresis is given to the threshold value, and judgment is made based on different threshold values when the density level is raised and lowered. I am doing so. However, chattering of the density signal and density level signal can be prevented by other methods. For example, there is a technique in which once the density level is changed, the density level is maintained until a predetermined time elapses.
[0290]
Further, in each of the above embodiments and modifications, the sensor resistance conversion circuits 14 and 44 that use the potential Vs of the operating point Pd by dividing the power supply potential Vcc between the gas sensor elements 11 and 41 and the detection resistor 12 are used. did. However, the sensor resistance conversion circuit may be any circuit as long as it outputs a sensor output potential corresponding to the sensor resistance value Rs of the gas sensor element, and may have a circuit configuration other than the voltage dividing circuit.
For example, a gas concentration detection device 50 having a sensor resistance conversion circuit 51 shown in FIG. 30 and an autoventilation system 150 including the same can be used. That is, the sensor resistance conversion circuit 51 is a sensor resistance conversion circuit for obtaining the sensor voltage Vs (output signal) at the operating point Pd that changes according to the sensor resistance value Rs of the gas sensor element 57, and includes a pulse input terminal 52, And an output terminal 53.
A fixed resistor 54 having a resistance value Rc is connected to the pulse input terminal 52, and an anode 551 of a diode 55 is connected in series with the resistor 54. Further, the cathode 552 of the diode 55 is connected to the other end 561 of the capacitor 56 having a capacitance C and having one end 562 grounded. Further, the gas sensor element 57 is disposed in parallel with the capacitor 56, one end 572 is grounded, and the other end 571 is connected to the other end 561 of the capacitor 56 and the cathode 552 of the diode 55. This connection point is the operating point Pd. A sensor potential Vs at the operating point Pd is led to the output terminal 53.
[0291]
Similarly to the first embodiment, the sensor potential Vs is A / D converted by the A / D conversion circuit 15 and the sensor output value S (n) input to the input terminal 17 is processed by the microcomputer 16 to obtain the gas potential. Detect density changes. Similarly to the first embodiment, the electronic control assembly 20 (specifically, the flap drive circuit 17 and the actuator 18) is connected to the output terminal 18 of the microcomputer 16 so that the flap 34 is controlled. Yes.
Further, the microcomputer 16 outputs a pulse signal Sc from an open drain type control output terminal 19 in accordance with the sensor output value S (n) or the like. The gas sensor element drive circuit 51 is driven by the pulse signal Sc. This pulse signal Sc is a pulse signal having a frequency fp in which two potentials of 0 V and +5 V appear alternately as shown in the lower circle in the figure, and the duty ratio DT (%) of the pulse signal Sc is DT = 100t1 / (t1 + t2).
[0292]
When the pulse signal Sc applied to the input terminal 52 of the sensor resistance conversion circuit 51 becomes high level, the capacitor 56 is charged through the fixed resistor 54 and the diode 55 with a time constant τ1 = C · Rc · Rs / (Rc + Rs). Is done.
On the other hand, when the pulse signal Sc becomes low level, the electric charge of the capacitor 56 is discharged through the gas sensor element 57 with the time constant τ2 = CRs.
When the pulse signal Sc is repeatedly input, a steady state in which charging and discharging are balanced is achieved. As shown in the upper circle in the figure, the sensor voltage Vs has a slight ripple Vr, but has a substantially constant value. Since the sensor voltage Vs changes according to the sensor resistance value Rs, a change in gas concentration can be detected by A / D converting the sensor voltage Vs and processing in the same manner as in the first embodiment. .
[0293]
In addition, when the sensor resistance conversion circuit 51 is used, the charging voltage of the capacitor 56 can be changed according to the duty ratio DT of the pulse signal Sc.
As described above, in the circuit (see FIG. 1) in which the power supply voltage Vcc is divided by the gas sensor element 11 and the detection resistor 12 to obtain the sensor voltage Vs, the sensor resistance value Rs varies greatly depending on the environment such as temperature and humidity. In some cases, the sensor voltage Vs may be biased near the power supply potential Vcc or near the ground potential. Then, even if the sensor resistance value Rs further changes due to the gas concentration change, the change in the sensor voltage Vs due to the change may be small, and the gas concentration change may not be detected accurately.
In contrast, in the gas concentration detection device 50 using the sensor resistance conversion circuit 51 and the vehicle autoventilation system 150 including the gas concentration detection device 51, the duty ratio of the pulse signal Sc is appropriately selected even in such a case. Thus, there is an advantage that the sensor voltage Vs is kept in a desired range such as 1 to 3.5 V, for example, and the fluctuation of the sensor voltage Vs due to the change of the gas concentration can be accurately measured within the voltage range.
[0294]
In addition, the gas concentration detection device 60 having the sensor resistance conversion circuit 61 shown in FIG. 31 and the autoventilation system 160 including the same can be used. This sensor resistance conversion circuit 61 is different in that the electric charge accumulated in the capacitor 70 is discharged via the gas sensor element 67 and the second diode 68 to the control output terminal 19 that is at the ground potential (0 V). Therefore, it demonstrates centering on a different part.
[0295]
In the sensor resistance conversion circuit 61, a fixed resistor 64 and a first diode 65 having a cathode on the capacitor 70 side are connected in series between the pulse input terminal 62 and the other end 701 of the capacitor 70 whose one end 702 is grounded. The connected RD series circuit 66 and the SD series circuit 69 in which the gas sensor element 67 and the second diode 68 having the capacitor 70 side as an anode are connected in series are connected in parallel. The other end 701 of the capacitor is the operating point Pd, and the sensor potential Vs at this operating point Pd is led to the output terminal 63.
[0296]
Also in the sensor resistance conversion circuit 61, when the pulse signal Sc output from the control output terminal 19 of the microcomputer 16 becomes high level, the capacitor 70 is charged through the RD series circuit 66 with the time constant τ1 = CRc. Further, when the pulse signal Sc becomes low level, the charge stored in the capacitor 70 is discharged through the SD series circuit 69 with the time constant τ2 = CRs.
When the pulse signal Sc is repeatedly input, the sensor voltage Vs becomes a substantially constant value as in the sensor resistance conversion circuit 51. Since the sensor voltage Vs changes according to the sensor resistance value Rs, a change in gas concentration can be detected by A / D converting the sensor voltage Vs and processing in the same manner as in the first embodiment. .
[0297]
In addition, the charging voltage of the capacitor 70 can be changed according to the duty ratio DT of the pulse signal Sc. For this reason, as in the case of the gas detection device 50 and the auto-ventilation system 150, when the sensor resistance value Rs greatly fluctuates depending on the environment such as temperature and humidity, the sensor voltage Vs is biased near the power supply potential Vcc or the ground potential. Even if the duty ratio of the pulse signal Sc is appropriately selected, the sensor voltage Vs is maintained in a desired range such as 1 to 3.5 V, for example, and the sensor voltage due to a change in gas concentration within the voltage range. There is an advantage that fluctuations in Vs can be reliably measured.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram showing an outline of a gas detection device and a vehicle autoventilation system according to a first embodiment.
FIG. 2 is an explanatory diagram showing a control flow in the vehicle auto-ventilation system according to the first embodiment.
FIG. 3 is an explanatory diagram showing a control flow in a microcomputer of the gas detection apparatus according to the first embodiment.
FIG. 4 is a diagram illustrating the sensor output value S (n), the base value B (n), and the difference value D when the NOx concentration increases for a certain period when the second coefficient k2 = 0 according to the first embodiment. It is explanatory drawing which shows the change of (n), and the change of a density | concentration signal.
FIG. 5 shows changes in sensor output value S (n), base value B (n), and difference value D (n) when the concentration of NOx increases for a certain period when the second coefficient k2> 0. It is explanatory drawing which shows the change of density signal.
FIG. 6 is an explanatory diagram showing an outline of a gas detection device and a vehicle autoventilation system according to a first modification.
FIG. 7 is an explanatory diagram showing a control flow in a microcomputer of the gas detection device according to the first modification.
8 shows a variation of sensor output value S (n), base value B (n), difference value D (n), and concentration signal when CO concentration increases for a certain period according to Modification 1. FIG. It is explanatory drawing which shows.
FIG. 9 is an explanatory diagram showing a control flow in a microcomputer in the gas detection device according to the second modification.
FIG. 10 is an explanatory diagram showing a control flow in a microcomputer of the gas detection device according to the third modification.
FIG. 11 is an explanatory diagram showing a control flow in a microcomputer of the gas detection apparatus according to the second embodiment.
FIG. 12 is an explanatory diagram showing the contents of a subroutine for density level signal switching in the control flow according to the second embodiment.
FIG. 13 is a diagram illustrating changes in the sensor output value S (n), the base value B (n), the difference value D (n), and the change in the concentration signal when the NOx concentration increases for a certain period according to the second embodiment. It is explanatory drawing which shows.
FIG. 14 is an explanatory diagram showing a control flow in the vehicle auto-ventilation system according to the second embodiment.
FIG. 15 is an explanatory diagram showing a control flow in a microcomputer of the gas detection device according to the fourth modification.
FIG. 16 is a diagram illustrating a variation of the sensor output value S (n), the base value B (n), the difference value D (n), and the change of the concentration signal when the CO concentration increases for a certain period according to the variation 4; It is explanatory drawing which shows.
FIG. 17 is an explanatory diagram showing the contents of a subroutine for density level signal switching in the control flow according to the fifth and sixth modifications.
FIG. 18 is an explanatory diagram showing the contents of a subroutine for density level signal switching in the control flow according to modified embodiments 7 and 8.
FIG. 19 shows a variation of the sensor output value S (n), the base value B (n), the difference value D (n), and the change of the concentration signal when the NOx concentration increases for a certain period according to the modified embodiment 7; It is explanatory drawing which shows.
20 shows changes in sensor output value S (n), base value B (n), difference value D (n), and change in concentration signal when the CO concentration rises for a certain period according to variant 8. FIG. It is explanatory drawing which shows.
FIG. 21 is an explanatory diagram showing the contents of a subroutine for density level signal switching in the control flow according to the ninth and tenth modifications.
FIG. 22 is an explanatory diagram showing a control flow in a microcomputer of the gas detection apparatus according to the third embodiment.
FIG. 23 is a diagram illustrating an example of a sensor output value S (n) during actual traveling, a base value B (n), a difference value D (n), and a change in a differential value V (n) according to the third embodiment; It is explanatory drawing which shows the change of a density signal.
FIG. 24 is an explanatory diagram showing a control flow in a microcomputer of the gas detection device according to the eleventh modification;
FIG. 25 is an explanatory diagram showing a control flow in a microcomputer of the gas detection apparatus according to the fourth embodiment.
FIG. 26 is an explanatory diagram showing the contents of a subroutine for density level signal switching in the control flow according to the fourth embodiment.
FIG. 27 is a diagram illustrating an example of sensor output value S (n) during actual travel, a change in base value B (n), difference value D (n), and differential value V (n) according to the fourth embodiment; It is explanatory drawing which shows the change of a density level signal.
FIG. 28 is an explanatory diagram showing a control flow in a microcomputer of the gas detection apparatus according to the fifth embodiment.
FIG. 29 is an explanatory diagram showing a control flow in a microcomputer of the gas detection device according to the twelfth embodiment.
FIG. 30 is an explanatory diagram showing an outline of a gas concentration detection device including another sensor resistance conversion circuit and a vehicle auto-ventilation system.
FIG. 31 is an explanatory diagram showing an outline of a gas concentration detection device including a further sensor resistance conversion circuit and a vehicle autoventilation system.
[Explanation of symbols]
100, 140, 150, 160 Auto Ventilation System for Vehicle
10, 40, 50, 60 Gas detector
11, 41, 57, 67 Gas sensor element
12 Sensing resistance
14, 44, 51, 61 Sensor resistance value conversion circuit
16 Microcomputer
20 Electronic control assembly
21 Flap drive circuit
31, 32, 33 Duct
34 flaps

Claims (31)

特定ガスの濃度に応じて電気的特性が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子を用いてセンサ出力値を取得する取得手段と、
上記センサ出力値を用いて算出された第1判断対象値が、第1しきい値に対し第1大小関係を満たしているか否かを判断する第1判断手段と、
上記センサ出力値を用いて、上記第1判断対象値を算出する算出手法とは異なる算出手法で算出された第2判断対象値が、第2しきい値に対し第2大小関係を満たしているか否かを判断する第2判断手段と、
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、
上記濃度低信号を発生している期間において、上記第1判断手段で上記第1大小関係が満たされたときに、上記濃度低信号に代えて上記濃度高信号を発生し、
上記濃度高信号を発生している期間において、上記第2判断手段で上記第2大小関係が満たされたときに、上記濃度高信号に代えて上記濃度低信号を発生する
濃度信号発生手段と、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose electrical characteristics change according to the concentration of a specific gas,
Obtaining means for obtaining a sensor output value using the gas sensor element;
First determination means for determining whether or not a first determination target value calculated using the sensor output value satisfies a first magnitude relationship with respect to a first threshold value;
Whether the second determination target value calculated by a calculation method different from the calculation method for calculating the first determination target value using the sensor output value satisfies the second magnitude relationship with respect to the second threshold value. Second determination means for determining whether or not,
A density signal generating means for generating either a low density signal or a high density signal,
In the period when the low density signal is generated, when the first determination means satisfies the first magnitude relationship, the high density signal is generated instead of the low density signal,
Density signal generating means for generating the low density signal instead of the high density signal when the second determination means satisfies the second magnitude relationship during the period of generating the high density signal;
A gas detection device comprising:
請求項1に記載のガス検出装置であって、
前記センサ出力値と、このセンサ出力値を用いて算出され、このセンサ出力値が変化したときに、このセンサ出力値よりも緩慢に追従変化する第2計算値と、の差分である第2差分値を算出する第2算出手段を備え、
前記第2判断手段は、
前記第2判断対象値である上記第2差分値が、前記第2しきい値に対し、前記第2大小関係を満たすか否かの判断を行う
ガス検出装置。
The gas detection device according to claim 1,
A second difference that is a difference between the sensor output value and a second calculated value that is calculated using the sensor output value and changes more slowly than the sensor output value when the sensor output value changes. A second calculating means for calculating a value;
The second determination means includes
A gas detection device that determines whether or not the second difference value that is the second determination target value satisfies the second magnitude relationship with respect to the second threshold value.
請求項2に記載のガス検出装置であって、
前記センサ出力値と、このセンサ出力値を用いて算出され、このセンサ出力値が変化したときに、前記第2計算値よりも敏感に追従変化する第1計算値との差分である第1差分値を算出する第1算出手段を備え、
前記第1判断手段は、
前記第1判断対象値である上記第1差分値が、前記第1しきい値に対し、前記第1大小関係を満たすか否かの判断を行う
ガス検出装置。
The gas detection device according to claim 2,
A first difference that is a difference between the sensor output value and a first calculated value that is calculated using the sensor output value and changes more sensitively than the second calculated value when the sensor output value changes. First calculating means for calculating a value;
The first determination means includes
A gas detection device that determines whether or not the first difference value that is the first determination target value satisfies the first magnitude relationship with respect to the first threshold value.
特定ガスの濃度に応じて電気的特性が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子を用いてセンサ出力値を取得する取得手段と、
複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段と、
上記センサ出力値を用いて算出された第1判断対象値が、第1しきい値に対し第1大小関係を満たしているか否かを判断する第1判断手段と、
上記センサ出力値を用いて、上記第1判断対象値を算出する算出手法とは異なる算出手法で算出された第2判断対象値と、上記複数の濃度レベル同士間のレベル間境界に対して1対1に対応する複数のレベル間しきい値とが、それぞれ所定の大小関係を満たすか否かを判断する第2判断手段と、
を備え、
上記濃度レベル信号切替発生手段は、
最も低位の濃度レベルに対応する濃度レベル信号を発生している期間において、上記第1判断手段で上記第1大小関係が満たされたときに、上記最も低位の濃度レベルに対応する濃度レベル信号に代えて、上記最も低位の濃度レベルより1つ高位の濃度レベルに対応する濃度レベル信号を発生し、
最も低位の濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号を発生している期間において、
上記第2判断対象値が、現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値に対し、上記所定の大小関係を満たすときに、上記現在の濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、
上記第2判断対象値が、現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値に対し、上記所定の大小関係を満たさないときに、上記現在の濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
A gas detection device using a gas sensor element whose electrical characteristics change according to the concentration of a specific gas,
Obtaining means for obtaining a sensor output value using the gas sensor element;
Density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a plurality of density levels;
First determination means for determining whether or not a first determination target value calculated using the sensor output value satisfies a first magnitude relationship with respect to a first threshold value;
1 for a second determination target value calculated by a calculation method different from the calculation method for calculating the first determination target value using the sensor output value, and an inter-level boundary between the plurality of density levels. A second determination means for determining whether or not a plurality of inter-level thresholds corresponding to pair 1 satisfy a predetermined magnitude relationship;
With
The density level signal switching generating means is
In a period in which a density level signal corresponding to the lowest density level is generated, when the first determination means satisfies the first magnitude relationship, the density level signal corresponding to the lowest density level is displayed. Instead, a density level signal corresponding to the density level one higher than the lowest density level is generated,
In a period in which a density level signal corresponding to a density level higher than the lowest density level is generated,
The second determination target value satisfies the predetermined magnitude relationship with respect to the inter-level threshold corresponding to the inter-level boundary between the current density level and the density level one higher than the current density level. When the density level signal corresponding to a density level higher than the current density level is generated,
The second determination target value satisfies the predetermined magnitude relationship with respect to the inter-level threshold corresponding to the inter-level boundary between the current density level and the density level one lower than the current density level. A gas detection device that generates the concentration level signal corresponding to a concentration level lower than the current concentration level when there is not.
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(1)に従ってベース値を算出する第1ベース値算出手段と、
B(n)=B(n−1)+k1{S(n)−B(n−1)} …(1)
但し、S(n)はセンサ出力値、B(n)はベース値、k1は第1係数であり、0<k1<1、nは時系列の順序を示す整数、
上記センサ出力値S(n)とベース値B(n)とから下記式(2)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(2)
但し、D(n)は差分値、
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、
上記差分値が所定の濃度しきい値よりも大きいときに、上記濃度高信号を発生する濃度信号発生手段と、
上記濃度高信号の発生期間中、上記式(1)に代えて、上記センサ出力値S(n)から下記式(3)に従ってベース値B(n)を算出する第2ベース値算出手段と、
B(n)=B(n−1)+k2{S(n)−B(n−1)} …(3)
但し、k2は第2係数であり、0≦k2<k1<1、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential increases when the concentration of the specific gas increases. A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
First base value calculating means for calculating a base value from the sensor output value according to the following equation (1);
B (n) = B (n-1) + k1 {S (n) -B (n-1)} (1)
Where S (n) is the sensor output value, B (n) is the base value, k1 is the first coefficient, 0 <k1 <1, n is an integer indicating the time-series order,
Difference value calculating means for calculating a difference value D (n) from the sensor output value S (n) and the base value B (n) according to the following equation (2);
D (n) = S (n) -B (n) (2)
Where D (n) is the difference value,
A density signal generating means for generating either a low density signal or a high density signal,
Density signal generating means for generating the high density signal when the difference value is greater than a predetermined density threshold;
A second base value calculating means for calculating a base value B (n) according to the following equation (3) from the sensor output value S (n) instead of the equation (1) during the generation period of the high concentration signal;
B (n) = B (n-1) + k2 {S (n) -B (n-1)} (3)
However, k2 is a 2nd coefficient, 0 <= k2 <k1 <1,
A gas detection device comprising:
請求項5に記載のガス検出装置であって、
前記所定の濃度しきい値に代えて、濃度高しきい値と、上記濃度高しきい値よりも小さな濃度低しきい値と、を有し、
前記濃度信号発生手段は、
前記濃度低信号の発生期間中に前記差分値が上記濃度高しきい値よりも大きくなると、上記濃度低信号に代えて上記濃度高信号を発生し、
上記濃度高信号発生期間中に前記差分値が上記濃度低しきい値よりも小さくなると、上記濃度高信号に代えて濃度低信号を発生する
ガス検出装置。
The gas detection device according to claim 5,
In place of the predetermined concentration threshold, a high concentration threshold, and a low concentration threshold smaller than the high concentration threshold,
The concentration signal generating means includes
When the difference value is larger than the high density threshold during the low density signal generation period, the high density signal is generated instead of the low density signal,
A gas detection device that generates a low concentration signal instead of the high concentration signal when the difference value becomes smaller than the low concentration threshold during the high concentration signal generation period.
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(1)に従ってベース値を算出する第1ベース値算出手段と、
B(n)=B(n−1)+k1{S(n)−B(n−1)} …(1)
但し、S(n)はセンサ出力値、B(n)はベース値、k1は第1係数であり、0<k1<1、nは時系列の順序を示す整数、
上記センサ出力値とベース値とから下記式(2)に従って差分値を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(2)
但し、D(n)は差分値、
複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、
上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベル間しきい値であって、高位の上記濃度レベル間境界に対応する上記レベル間しきい値ほど大きな値であるレベル間しきい値を有し、
現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が大きいときに、上記現在の濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、
現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が小さいときに、上記現在の濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する
濃度レベル信号切替発生手段と、
上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(1)に代えて、上記センサ出力値から下記式(3)に従ってベース値を算出する第2ベース値算出手段と、
B(n)=B(n−1)+k2{S(n)−B(n−1)} …(3)
但し、k2は第2係数であり、0≦k2<k1<1、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential increases when the concentration of the specific gas increases. A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
First base value calculating means for calculating a base value from the sensor output value according to the following equation (1);
B (n) = B (n-1) + k1 {S (n) -B (n-1)} (1)
Where S (n) is the sensor output value, B (n) is the base value, k1 is the first coefficient, 0 <k1 <1, n is an integer indicating the time-series order,
Difference value calculating means for calculating a difference value according to the following equation (2) from the sensor output value and the base value;
D (n) = S (n) -B (n) (2)
Where D (n) is the difference value,
Density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a plurality of density levels,
A plurality of inter-level thresholds corresponding to the inter-level boundaries between the plurality of density levels in a one-to-one relationship, and the larger the inter-level threshold corresponding to the higher inter-density level boundary. Has a threshold between levels,
When the difference value is larger than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, the current density level is higher than the current density level. The above density level signal corresponding to the higher density level is generated,
When the difference value is smaller than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, the current density level is lower than the current density level. Density level signal switching generating means for generating the density level signal corresponding to the lower density level;
During the generation period of the density level signal corresponding to the density level higher than the predetermined density level by the density level signal switching generation means, the following equation (3) is obtained from the sensor output value instead of the equation (1). Second base value calculating means for calculating a base value according to:
B (n) = B (n-1) + k2 {S (n) -B (n-1)} (3)
However, k2 is a 2nd coefficient, 0 <= k2 <k1 <1,
A gas detection device comprising:
請求項7に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 7,
The density level signal switching generating means is
As the density level signal generated when the difference value is larger than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, Generating the density level signal corresponding to the one higher density level;
As the density level signal generated when the difference value is smaller than the threshold between levels corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, A gas detection device for generating the concentration level signal corresponding to the one lower concentration level.
請求項7に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記差分値が超えた上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記差分値が下回った上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 7,
The density level signal switching generating means is
As the density level signal generated when the difference value is larger than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, The density corresponding to the density level located on the higher side of the highest boundary between density levels among the one or more boundary between density levels corresponding to the threshold between levels exceeding the difference value Generates a level signal,
As the density level signal generated when the difference value is smaller than the threshold between levels corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, The density corresponding to the density level located on the lower side of the lowest density level boundary among the one or more density level boundaries corresponding to the threshold value between levels where the difference value is lower. A gas detector that generates a level signal.
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(1)に従ってベース値を算出する第1ベース値算出手段と、
B(n)=B(n−1)+k1{S(n)−B(n−1)} …(1)
但し、S(n)はセンサ出力値、B(n)はベース値、k1は第1係数であり、0<k1<1、nは時系列の順序を示す整数、
上記センサ出力値とベース値とから下記式(2)に従って差分値を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(2)
但し、D(n)は差分値、
複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、
上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベルアップしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルアップしきい値ほど大きな値であるレベルアップしきい値と、
上記複数の濃度レベル間境界と1対1に対応する複数のレベルダウンしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルダウンしきい値ほど大きな値であり、同位の上記濃度レベル間境界に対応する上記レベルアップしきい値よりも小さな値であるレベルダウンしきい値と、
を有し、
現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベルアップしきい値よりも、上記差分値が大きいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、
現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベルダウンしきい値よりも、上記差分値が小さいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する
濃度レベル信号切替発生手段と、
上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(1)に代えて、上記センサ出力値から下記式(3)に従ってベース値を算出する第2ベース値算出手段と、
B(n)=B(n−1)+k2{S(n)−B(n−1)} …(3)
但し、k2は第2係数であり、0≦k2<k1<1、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential increases when the concentration of the specific gas increases. A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
First base value calculating means for calculating a base value from the sensor output value according to the following equation (1);
B (n) = B (n-1) + k1 {S (n) -B (n-1)} (1)
Where S (n) is the sensor output value, B (n) is the base value, k1 is the first coefficient, 0 <k1 <1, n is an integer indicating the time-series order,
Difference value calculating means for calculating a difference value according to the following equation (2) from the sensor output value and the base value;
D (n) = S (n) -B (n) (2)
Where D (n) is the difference value,
Density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a plurality of density levels,
A plurality of level-up threshold values corresponding to the level-to-level boundaries between the plurality of density levels in a one-to-one relationship, and the level-up threshold value corresponding to the higher-level boundary between the density levels is larger. Level-up threshold,
A plurality of level-down threshold values corresponding to the plurality of density level boundaries in a one-to-one relationship, the value being larger as the level down threshold value corresponding to the higher boundary between the density levels, A level-down threshold value that is smaller than the level-up threshold value corresponding to the boundary between density levels;
Have
When the difference value is larger than the level-up threshold value corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, the current occurrence is performed Generating the density level signal corresponding to a density level higher than the density level corresponding to the density level signal;
When the difference value is smaller than the level-down threshold value corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, the current occurrence occurs. Density level signal switching generating means for generating the density level signal corresponding to a density level lower than the density level corresponding to the density level signal;
During the generation period of the density level signal corresponding to the density level higher than the predetermined density level by the density level signal switching generation means, the following equation (3) is obtained from the sensor output value instead of the equation (1). Second base value calculating means for calculating a base value according to:
B (n) = B (n-1) + k2 {S (n) -B (n-1)} (3)
However, k2 is a 2nd coefficient, 0 <= k2 <k1 <1,
A gas detection device comprising:
請求項10に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 10,
The density level signal switching generating means is
As the density level signal generated when the difference value is larger than the level-up threshold value corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, Generating the density level signal corresponding to the one higher density level;
As the density level signal generated when the difference value is smaller than the level down threshold corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, A gas detection device for generating the concentration level signal corresponding to the one lower concentration level.
請求項10に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、前記濃度レベル信号として、上記差分値が超えた上記レベルアップしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、前記濃度レベル信号として、上記差分値が下回った上記レベルダウンしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 10,
The density level signal switching generating means is
When the difference value is larger than the level-up threshold value corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, the density level signal is The density level signal corresponding to the density level located on the higher side of the highest boundary between the density levels among the one or more boundary between the density levels corresponding to the level-up threshold exceeding the difference value. Occur and
When the difference value is smaller than the level-down threshold value corresponding to the boundary between levels between the current density level and the density level one lower than the current density level, the density level signal is The density level signal corresponding to the density level located on the lower side of the lowest density level boundary among the one or more density level boundaries corresponding to the level down threshold with a difference value below Gas detection device that generates
請求項7〜請求項12のいずれかに記載のガス検出装置であって、
前記第2ベース値算出手段における前記所定の濃度レベルは、
前記濃度レベル信号切替発生手段が有する前記複数の濃度レベルのうち、最も低位の濃度レベルである
ガス検出装置。
A gas detection device according to any one of claims 7 to 12,
The predetermined density level in the second base value calculation means is:
A gas detection device having the lowest concentration level among the plurality of concentration levels of the concentration level signal switching generation means.
請求項5〜請求項13のいずれかに記載のガス検出装置であって、
前記第2係数k2は、k2>0である
ガス検出装置。
The gas detection device according to any one of claims 5 to 13,
The gas detection device in which the second coefficient k2 is k2> 0.
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(4)に従ってベース値を算出する第3ベース値算出手段と、
B(n)=B(n−1)+k3{S(n)−B(n−1)} …(4)
但し、S(n)はセンサ出力値、B(n)はベース値、k3は第3係数であり、0<k3<1、nは時系列の順序を示す整数、
上記センサ出力値S(n)とベース値B(n)とから下記式(5)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(5)
但し、D(n)は差分値、
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、上記差分値が所定の濃度しきい値よりも大きいときに、上記濃度高信号を発生する濃度信号発生手段と、
上記濃度高信号の発生期間中、上記式(4)に代えて、上記センサ出力値S(n)から下記式(6)に従ってベース値B(n)を算出する第4ベース値算出手段と、
B(n)=B(n−1)+k4{S(n)−B(n−1)} …(6)
但し、k4は第4係数であり、0≦k4<k3<1、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential decreases when the concentration of the specific gas increases A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
Third base value calculation means for calculating a base value from the sensor output value according to the following equation (4);
B (n) = B (n-1) + k3 {S (n) -B (n-1)} (4)
However, S (n) is a sensor output value, B (n) is a base value, k3 is a third coefficient, 0 <k3 <1, n is an integer indicating a time-series order,
Difference value calculating means for calculating a difference value D (n) from the sensor output value S (n) and the base value B (n) according to the following equation (5);
D (n) = B (n) -S (n) (5)
Where D (n) is the difference value,
A density signal generating means for generating either a low density signal or a high density signal, wherein the density signal generating means for generating the high density signal when the difference value is greater than a predetermined density threshold;
A fourth base value calculating means for calculating a base value B (n) from the sensor output value S (n) according to the following equation (6) instead of the equation (4) during the generation of the high concentration signal;
B (n) = B (n-1) + k4 {S (n) -B (n-1)} (6)
However, k4 is a 4th coefficient, 0 <= k4 <k3 <1,
A gas detection device comprising:
請求項15に記載のガス検出装置であって、
前記所定の濃度しきい値に代えて、濃度高しきい値と、上記濃度高しきい値よりも小さな濃度低しきい値と、を有し、
前記濃度信号発生手段は、
前記濃度低信号の発生期間中に前記差分値が上記濃度高しきい値よりも大きくなると、上記濃度低信号に代えて上記濃度高信号を発生し、
上記濃度高信号発生期間中に前記差分値が上記濃度低しきい値よりも小さくなると、上記濃度高信号に代えて濃度低信号を発生する
ガス検出装置。
The gas detection device according to claim 15,
In place of the predetermined concentration threshold, a high concentration threshold, and a low concentration threshold smaller than the high concentration threshold,
The concentration signal generating means includes
When the difference value is larger than the high density threshold during the low density signal generation period, the high density signal is generated instead of the low density signal,
A gas detection device that generates a low concentration signal instead of the high concentration signal when the difference value becomes smaller than the low concentration threshold during the high concentration signal generation period.
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(4)に従ってベース値を算出する第3ベース値算出手段と、
B(n)=B(n−1)+k3{S(n)−B(n−1)} …(4)
但し、S(n)はセンサ出力値、B(n)はベース値、k3は第3係数であり、0<k3<1、nは時系列の順序を示す整数、
上記センサ出力値とベース値とから下記式(5)に従って差分値を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(5)
但し、D(n)は差分値、
複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、
上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベル間しきい値であって、高位の上記濃度レベル間境界に対応する上記レベル間しきい値ほど大きな値であるレベル間しきい値を有し、
現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が大きいときに、上記現在の濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、
現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベル間しきい値よりも、上記差分値が小さいときに、上記現在の濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する
濃度レベル信号切替発生手段と、
上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(4)に代えて、上記センサ出力値から下記式(6)に従ってベース値を算出する第4ベース値算出手段と、
B(n)=B(n−1)+k4{S(n)−B(n−1)} …(6)
但し、k4は第4係数であり、0≦k4<k3<1、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential decreases when the concentration of the specific gas increases A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
Third base value calculation means for calculating a base value from the sensor output value according to the following equation (4);
B (n) = B (n-1) + k3 {S (n) -B (n-1)} (4)
However, S (n) is a sensor output value, B (n) is a base value, k3 is a third coefficient, 0 <k3 <1, n is an integer indicating a time-series order,
Difference value calculating means for calculating a difference value according to the following equation (5) from the sensor output value and the base value;
D (n) = B (n) -S (n) (5)
Where D (n) is the difference value,
Density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a plurality of density levels,
A plurality of inter-level thresholds corresponding to the inter-level boundaries between the plurality of density levels in a one-to-one relationship, and the larger the inter-level threshold corresponding to the higher inter-density level boundary. Has a threshold between levels,
When the difference value is larger than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, the current density level is higher than the current density level. The above density level signal corresponding to the higher density level is generated,
When the difference value is smaller than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, the current density level is lower than the current density level. Density level signal switching generating means for generating the density level signal corresponding to the lower density level;
During the generation period of the density level signal corresponding to the density level higher than the predetermined density level by the density level signal switching generation means, the following equation (6) is obtained from the sensor output value instead of the above equation (4). A fourth base value calculating means for calculating a base value according to
B (n) = B (n-1) + k4 {S (n) -B (n-1)} (6)
However, k4 is a 4th coefficient, 0 <= k4 <k3 <1,
A gas detection device comprising:
請求項17に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 17,
The density level signal switching generating means is
As the density level signal generated when the difference value is larger than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, Generating the density level signal corresponding to the one higher density level;
As the density level signal generated when the difference value is smaller than the threshold between levels corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, A gas detection device for generating the concentration level signal corresponding to the one lower concentration level.
請求項17に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が大きいときに、発生する前記濃度レベル信号として、上記差分値が超えた上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベル間しきい値よりも、前記差分値が小さいときに、発生する前記濃度レベル信号として、上記差分値が下回った上記レベル間しきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 17,
The density level signal switching generating means is
As the density level signal generated when the difference value is larger than the threshold value between levels corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, The density corresponding to the density level located on the higher side of the highest boundary between density levels among the one or more boundary between density levels corresponding to the threshold between levels exceeding the difference value Generates a level signal,
As the density level signal generated when the difference value is smaller than the threshold between levels corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, The density corresponding to the density level located on the lower side of the lowest density level boundary among the one or more density level boundaries corresponding to the threshold value between levels where the difference value is lower. A gas detector that generates a level signal.
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(4)に従ってベース値を算出する第3ベース値算出手段と、
B(n)=B(n−1)+k3{S(n)−B(n−1)} …(4)
但し、S(n)はセンサ出力値、B(n)はベース値、k3は第3係数であり、0<k3<1、nは時系列の順序を示す整数、
上記センサ出力値とベース値とから下記式(5)に従って差分値を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(5)
但し、D(n)は差分値、
複数の濃度レベルにそれぞれ対応する複数の濃度レベル信号を切り替えて発生する濃度レベル信号切替発生手段であって、
上記複数の濃度レベル同士間のレベル間境界と1対1に対応する複数のレベルアップしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルアップしきい値ほど大きな値であるレベルアップしきい値と、
上記複数の濃度レベル間境界と1対1に対応する複数のレベルダウンしきい値であって、高位の上記濃度レベル間境界に対応する上記レベルダウンしきい値ほど大きな値であり、同位の上記濃度レベル間境界に対応する上記レベルアップしきい値よりも小さな値であるレベルダウンしきい値と、
を有し、
現在の上記濃度レベルとこれより1つ高位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベルアップしきい値よりも、上記差分値が大きいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも高位の濃度レベルに対応する上記濃度レベル信号を発生し、
現在の上記濃度レベルとこれより1つ低位の上記濃度レベルとの間の上記レベル間境界に対応する上記レベルダウンしきい値よりも、上記差分値が小さいときに、上記現在発生している上記濃度レベル信号に対応する上記濃度レベルよりも低位の濃度レベルに対応する上記濃度レベル信号を発生する
濃度レベル信号切替発生手段と、
上記濃度レベル信号切替発生手段で、所定の上記濃度レベルよりも高位の濃度レベルに対応する濃度レベル信号の発生期間中、上記式(4)に代えて、上記センサ出力値から下記式(6)に従ってベース値を算出する第4ベース値算出手段と、
B(n)=B(n−1)+k4{S(n)−B(n−1)} …(6)
但し、k4は第4係数であり、0≦k4<k3<1、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential decreases when the concentration of the specific gas increases A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
Third base value calculation means for calculating a base value from the sensor output value according to the following equation (4);
B (n) = B (n-1) + k3 {S (n) -B (n-1)} (4)
However, S (n) is a sensor output value, B (n) is a base value, k3 is a third coefficient, 0 <k3 <1, n is an integer indicating a time-series order,
Difference value calculating means for calculating a difference value according to the following equation (5) from the sensor output value and the base value;
D (n) = B (n) -S (n) (5)
Where D (n) is the difference value,
Density level signal switching generating means for switching and generating a plurality of density level signals respectively corresponding to a plurality of density levels,
A plurality of level-up threshold values corresponding to the level-to-level boundaries between the plurality of density levels in a one-to-one relationship, and the level-up threshold value corresponding to the higher-level boundary between the density levels is larger. Level-up threshold,
A plurality of level-down threshold values corresponding to the plurality of density level boundaries in a one-to-one relationship, the value being larger as the level down threshold value corresponding to the higher boundary between the density levels, A level-down threshold value that is smaller than the level-up threshold value corresponding to the boundary between density levels;
Have
When the difference value is larger than the level-up threshold value corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, the current occurrence is performed Generating the density level signal corresponding to a density level higher than the density level corresponding to the density level signal;
When the difference value is smaller than the level-down threshold value corresponding to the boundary between levels between the current density level and the density level one level lower than the current density level, the current occurrence occurs. Density level signal switching generating means for generating the density level signal corresponding to a density level lower than the density level corresponding to the density level signal;
During the generation period of the density level signal corresponding to the density level higher than the predetermined density level by the density level signal switching generation means, the following equation (6) is obtained from the sensor output value instead of the above equation (4). A fourth base value calculating means for calculating a base value according to
B (n) = B (n-1) + k4 {S (n) -B (n-1)} (6)
However, k4 is a 4th coefficient, 0 <= k4 <k3 <1,
A gas detection device comprising:
請求項20に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、前記濃度レベル信号として、上記1つ高位の濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、前記濃度レベル信号として、上記1つ低位の濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 20, wherein
The density level signal switching generating means is
When the difference value is larger than the level-up threshold value corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, the density level signal is Generate the above density level signal corresponding to one higher density level,
When the difference value is smaller than the level-down threshold value corresponding to the boundary between levels between the current density level and the density level one lower than the current density level, the density level signal is A gas detection device for generating the concentration level signal corresponding to one lower concentration level.
請求項20に記載のガス検出装置であって、
前記濃度レベル信号切替発生手段は、
前記現在の濃度レベルとこれより1つ高位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルアップしきい値よりも、前記差分値が大きいときに、前記濃度レベル信号として、上記差分値が超えた上記レベルアップしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も高位の上記濃度レベル間境界の高位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生し、
前記現在の濃度レベルとこれより1つ低位の前記濃度レベルとの間の前記レベル間境界に対応する前記レベルダウンしきい値よりも、前記差分値が小さいときに、前記濃度レベル信号として、上記差分値が下回った上記レベルダウンしきい値に対応する1又は複数の上記濃度レベル間境界のうち、最も低位の上記濃度レベル間境界の低位側に位置する上記濃度レベルに対応する上記濃度レベル信号を発生する
ガス検出装置。
The gas detection device according to claim 20, wherein
The density level signal switching generating means is
When the difference value is larger than the level-up threshold value corresponding to the boundary between levels between the current density level and the density level one higher than the current density level, the density level signal is The density level signal corresponding to the density level located on the higher side of the highest boundary between the density levels among the one or more boundary between the density levels corresponding to the level-up threshold exceeding the difference value. Occur and
When the difference value is smaller than the level-down threshold value corresponding to the boundary between levels between the current density level and the density level one lower than the current density level, the density level signal is The density level signal corresponding to the density level located on the lower side of the lowest density level boundary among the one or more density level boundaries corresponding to the level down threshold with a difference value below Gas detection device that generates
請求項17〜請求項22のいずれかに記載のガス検出装置であって、
前記第4ベース値算出手段における前記所定の濃度レベルは、
前記濃度レベル信号切替発生手段が有する前記複数の濃度レベルのうち、最も低位の濃度レベルである
ガス検出装置。
The gas detection device according to any one of claims 17 to 22,
The predetermined density level in the fourth base value calculation means is:
A gas detection device having the lowest concentration level among the plurality of concentration levels of the concentration level signal switching generation means.
請求項15〜請求項23のいずれかに記載のガス検出装置であって、
前記第4係数k4は、k4>0である
ガス検出装置。
The gas detection device according to any one of claims 15 to 23, wherein:
The fourth coefficient k4 is a gas detection device in which k4> 0.
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(7)に従って微分値を算出する微分値算出手段と、
V(n)=S(n)−S(n−1) …(7)
但し、S(n)はセンサ出力値、V(n)は微分値、nは時系列の順序を示す整数、
上記センサ出力値S(n)から下記式(8)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(8)
但し、kは係数であり、0<k<1、
上記センサ出力値S(n)とベース値B(n)とから下記式(9)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=S(n)−B(n) …(9)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、
上記濃度低信号の発生期間中、上記微分値V(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、
上記濃度高信号の発生期間中、上記差分値D(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する
濃度信号発生手段と、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential increases when the concentration of the specific gas increases. A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
Differential value calculating means for calculating a differential value from the sensor output value according to the following equation (7);
V (n) = S (n) -S (n-1) (7)
Where S (n) is the sensor output value, V (n) is the differential value, n is an integer indicating the time-series order,
Base value calculating means for calculating a base value B (n) from the sensor output value S (n) according to the following equation (8);
B (n) = B (n-1) + k {S (n) -B (n-1)} (8)
Where k is a coefficient and 0 <k <1,
Difference value calculating means for calculating a difference value D (n) from the sensor output value S (n) and the base value B (n) according to the following equation (9);
D (n) = S (n) -B (n) (9)
A density signal generating means for generating either a low density signal or a high density signal,
During the generation period of the low concentration signal, the high concentration signal is generated when the differential value V (n) is larger than the first threshold value,
Density signal generating means for generating the low density signal when the difference value D (n) is smaller than a second threshold value during the high density signal generation period;
A gas detection device comprising:
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
上記センサ出力値から下記式(10)に従って微分値を算出する微分値算出手段と、
V(n)=S(n−1)−S(n) …(10)
但し、S(n)はセンサ出力値、V(n)は微分値、nは時系列の順序を示す整数、
上記センサ出力値S(n)から下記式(11)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(11)
但し、kは係数であり、0<k<1、
上記センサ出力値S(n)とベース値B(n)とから下記式(12)に従って差分値D(n)を算出する差分値算出手段と、
D(n)=B(n)−S(n) …(12)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、
上記濃度低信号の発生期間中、上記微分値V(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、
上記濃度高信号の発生期間中、上記差分値D(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する
濃度信号発生手段と、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential decreases when the concentration of the specific gas increases A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
Differential value calculating means for calculating a differential value from the sensor output value according to the following equation (10);
V (n) = S (n-1) -S (n) (10)
Where S (n) is the sensor output value, V (n) is the differential value, n is an integer indicating the time-series order,
Base value calculation means for calculating a base value B (n) from the sensor output value S (n) according to the following equation (11):
B (n) = B (n-1) + k {S (n) -B (n-1)} (11)
Where k is a coefficient and 0 <k <1,
Difference value calculating means for calculating a difference value D (n) from the sensor output value S (n) and the base value B (n) according to the following equation (12);
D (n) = B (n) -S (n) (12)
A density signal generating means for generating either a low density signal or a high density signal,
During the generation period of the low concentration signal, the high concentration signal is generated when the differential value V (n) is larger than the first threshold value,
Density signal generating means for generating the low density signal when the difference value D (n) is smaller than a second threshold value during the high density signal generation period;
A gas detection device comprising:
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が上昇するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
新しいものから遡ってm個分の上記センサ出力値から下記式(13)に従ってm個移動平均値を算出する移動平均値算出手段と、
Md(n)={S(n)+S(n−1)+…+S(n−(m−1))}…(13)
但し、S(n)はセンサ出力値、Md(n)はm個移動平均値、nは時系列の順序を示す整数、mは移動平均値のサンプル数、
上記センサ出力値S(n)とm個移動平均値Md(n)とから下記式(14)に従って第1差分値D(n)を算出する第1差分値算出手段と、
D(n)=S(n)−Md(n) …(14)
上記センサ出力値S(n)から下記式(15)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(15)
但し、kは係数であり、0<k<1、
上記センサ出力値S(n)とベース値B(n)とから下記式(16)に従って第2差分値D2(n)を算出する第2差分値算出手段と、
D2(n)=S(n)−B(n) …(16)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、
上記濃度低信号の発生期間中、上記第1差分値D(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、
上記濃度高信号の発生期間中、上記第2差分値D2(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する
濃度信号発生手段と、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential increases when the concentration of the specific gas increases. A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
Moving average value calculating means for calculating m moving average values from m sensor output values retroactively according to the following equation (13):
Md (n) = {S (n) + S (n−1) +... + S (n− (m−1))} (13)
However, S (n) is a sensor output value, Md (n) is m moving average values, n is an integer indicating the order of time series, m is the number of samples of moving average values,
First difference value calculating means for calculating a first difference value D (n) from the sensor output value S (n) and m moving average values Md (n) according to the following equation (14):
D (n) = S (n) -Md (n) (14)
Base value calculating means for calculating a base value B (n) from the sensor output value S (n) according to the following equation (15);
B (n) = B (n-1) + k {S (n) -B (n-1)} (15)
Where k is a coefficient and 0 <k <1,
Second difference value calculating means for calculating a second difference value D2 (n) from the sensor output value S (n) and the base value B (n) according to the following equation (16):
D2 (n) = S (n) -B (n) (16)
A density signal generating means for generating either a low density signal or a high density signal,
During the generation period of the low density signal, the high density signal is generated when the first difference value D (n) is larger than a first threshold value,
Density signal generating means for generating the low density signal when the second differential value D2 (n) is smaller than a second threshold value during the high density signal generation period;
A gas detection device comprising:
特定ガスの濃度に応じてセンサ抵抗が変化するガスセンサ素子を用いるガス検出装置であって、
上記ガスセンサ素子に通電して、そのセンサ抵抗値変化に応じたセンサ出力電位を出力するセンサ抵抗値変換回路であって、上記特定ガスの濃度が上昇したときに上記センサ出力電位が低下するセンサ抵抗値変換回路と、
所定時間毎に上記センサ出力電位をA/D変換してセンサ出力値を取得するA/D変換手段と、
新しいものから遡ってm個分の上記センサ出力値から下記式(17)に従ってm個移動平均値を算出する移動平均値算出手段と、
Md(n)={S(n)+S(n−1)+…+S(n−(m−1))}…(17)
但し、S(n)はセンサ出力値、Md(n)はm個移動平均値、nは時系列の順序を示す整数、mは移動平均のサンプル数、
上記センサ出力値S(n)とm個移動平均値Md(n)とから下記式(18)に従って第1差分値D(n)を算出する第1差分値算出手段と、
D(n)=Md(n)−S(n) …(18)
上記センサ出力値S(n)から下記式(19)に従ってベース値B(n)を算出するベース値算出手段と、
B(n)=B(n−1)+k{S(n)−B(n−1)} …(19)
但し、kは係数であり、0<k<1、
上記センサ出力値S(n)とベース値B(n)とから下記式(20)に従って第2差分値D2(n)を算出する第2差分値算出手段と、
D2(n)=B(n)−S(n) …(20)
濃度低信号と濃度高信号のいずれかを発生する濃度信号発生手段であって、
上記濃度低信号の発生期間中、上記第1差分値D(n)が第1しきい値よりも大きいときに、上記濃度高信号を発生し、
上記濃度高信号の発生期間中、上記第2差分値D2(n)が第2しきい値よりも小さいときに、上記濃度低信号を発生する
濃度信号発生手段と、
を備えるガス検出装置。
A gas detection device using a gas sensor element whose sensor resistance changes according to the concentration of a specific gas,
A sensor resistance value conversion circuit for energizing the gas sensor element and outputting a sensor output potential corresponding to a change in the sensor resistance value, wherein the sensor output potential decreases when the concentration of the specific gas increases A value conversion circuit;
A / D conversion means for A / D converting the sensor output potential every predetermined time to obtain a sensor output value;
Moving average value calculating means for calculating m moving average values from m sensor output values retroactively according to the following equation (17);
Md (n) = {S (n) + S (n−1) +... + S (n− (m−1))} (17)
Where S (n) is the sensor output value, Md (n) is the m moving average value, n is an integer indicating the time-series order, m is the number of moving average samples,
First difference value calculating means for calculating a first difference value D (n) from the sensor output value S (n) and m moving average values Md (n) according to the following equation (18);
D (n) = Md (n) -S (n) (18)
Base value calculating means for calculating a base value B (n) from the sensor output value S (n) according to the following equation (19);
B (n) = B (n-1) + k {S (n) -B (n-1)} (19)
Where k is a coefficient and 0 <k <1,
Second difference value calculating means for calculating a second difference value D2 (n) from the sensor output value S (n) and the base value B (n) according to the following equation (20);
D2 (n) = B (n) -S (n) (20)
A density signal generating means for generating either a low density signal or a high density signal,
During the generation period of the low density signal, the high density signal is generated when the first difference value D (n) is larger than a first threshold value,
Density signal generating means for generating the low density signal when the second differential value D2 (n) is smaller than a second threshold value during the high density signal generation period;
A gas detection device comprising:
請求項1〜請求項28のいずれかに記載のガス検出装置を含む
車両用オートベンチレーションシステム。
An automotive ventilation system comprising the gas detection device according to any one of claims 1 to 28.
外気導入口の開閉装置と、
請求項1〜請求項3、請求項5、請求項6、請求項15、請求項16、請求項25〜請求項28のいずれかに記載のガス検出装置と、
前記濃度信号が濃度低信号であるときに、上記外気導入口の開閉装置を全開とし、
前記濃度信号が濃度高信号であるときに、上記外気導入口の開閉装置を全閉とする開閉指示信号を出力する開閉指示手段と、
を備える車両用オートベンチレーションシステム。
An open / close device for the outside air inlet;
A gas detector according to any one of claims 1 to 3, claim 5, claim 6, claim 15, claim 16, claim 25 to claim 28,
When the concentration signal is a low concentration signal, the open / close device of the outside air inlet is fully opened,
An open / close instruction means for outputting an open / close instruction signal for fully closing the open / close device of the outside air inlet when the concentration signal is a high concentration signal;
A vehicle auto-ventilation system.
外気導入口の開閉装置と、
請求項4、請求項7〜請求項14、請求項17〜請求項24のいずれかに記載のガス検出装置と、
前記濃度レベル信号に応じて、上記外気導入口の開閉装置の開度を指示する開度指示信号を出力する開度指示手段と、
を備える車両用オートベンチレーションシステム。
An open / close device for the outside air inlet;
A gas detection device according to any one of claims 4, 7 to 14, and 17 to 24,
An opening degree instruction means for outputting an opening degree instruction signal for instructing an opening degree of the open / close device of the outside air inlet according to the concentration level signal;
A vehicle auto-ventilation system.
JP2001157733A 2000-05-31 2001-05-25 Gas detector, vehicle auto ventilation system Expired - Fee Related JP4198897B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001157733A JP4198897B2 (en) 2000-05-31 2001-05-25 Gas detector, vehicle auto ventilation system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000162595 2000-05-31
JP2000-162595 2000-05-31
JP2001157733A JP4198897B2 (en) 2000-05-31 2001-05-25 Gas detector, vehicle auto ventilation system

Publications (2)

Publication Number Publication Date
JP2002055068A JP2002055068A (en) 2002-02-20
JP4198897B2 true JP4198897B2 (en) 2008-12-17

Family

ID=26593039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001157733A Expired - Fee Related JP4198897B2 (en) 2000-05-31 2001-05-25 Gas detector, vehicle auto ventilation system

Country Status (1)

Country Link
JP (1) JP4198897B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3367930B2 (en) * 2000-02-28 2003-01-20 日本特殊陶業株式会社 Control system
JP3924225B2 (en) 2002-09-12 2007-06-06 日本特殊陶業株式会社 Gas detector, vehicle auto ventilation system
JP4704997B2 (en) * 2005-11-11 2011-06-22 日本特殊陶業株式会社 Liquid state detection device
KR20210022318A (en) 2019-08-20 2021-03-03 삼성전자주식회사 Gas concentration measurement apparatus and method

Also Published As

Publication number Publication date
JP2002055068A (en) 2002-02-20

Similar Documents

Publication Publication Date Title
KR100827866B1 (en) Gas detector and automobile ventilation system
US6794837B1 (en) Motor speed-based anti-pinch control apparatus and method with start-up transient detection and compensation
US6822410B2 (en) Motor speed-based anti-pinch control apparatus and method
JPH01502848A (en) Circuit device for evaluating signals generated by semiconductor gas sensors
JP4198897B2 (en) Gas detector, vehicle auto ventilation system
KR930002444Y1 (en) Air cleaner controlling circuit
JP3914141B2 (en) Gas detection device and vehicle auto ventilation system
JP4317640B2 (en) Control system
KR100477078B1 (en) Method for judgement pollution of the by gas sensor
CN218683674U (en) Curtain motor and electric curtain
JP3924147B2 (en) Gas detector, vehicle auto ventilation system
JPH10122615A (en) Control device of air cleaner
JP4455789B2 (en) Gas detection device, vehicle auto ventilation system
JP4414715B2 (en) Gas detector
JP2003057202A (en) Gas detection apparatus, and auto ventilation system for vehicle
JP4209802B2 (en) Gas detection device and vehicle auto ventilation system
JP4409902B2 (en) Gas detection device and vehicle auto ventilation system
JP2009198373A (en) Gas detection device
JP4422459B2 (en) GAS SENSOR, ITS CONTROL METHOD, AND VEHICLE AIR CONDITIONING CONTROL DEVICE
JPS5942210B2 (en) air conditioner
JPH0921274A (en) Opening/closing control device for opening/closing body
JP7081504B2 (en) Open / close member control device
KR940002335B1 (en) Method and apparatus for controlling air conditioner
JP2011064487A (en) Gas detector
JP2003307076A (en) Insert detector of power window

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061103

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: 20080909

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081002

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

Free format text: PAYMENT UNTIL: 20111010

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: 20111010

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131010

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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