LoginSignup
11
12

More than 5 years have passed since last update.

CO2センサー > MQ-135 Gas Sensor > MQ135_MAXRSRO / MQ135_MINRSRO の求め方

Last updated at Posted at 2016-01-30

http://qiita.com/erukiti/items/1d9658f7c363e79d051b
に記載のMQ-135(SNS-MQ135)の計算に使われている係数(MQ135_MAXRSRO と MQ135_MINRSRO)の整理。

#define MQ135_DEFAULTPPM 399 //default ppm of CO2 for calibration
#define MQ135_DEFAULTRO 68550 //default Ro for MQ135_DEFAULTPPM ppm of CO2
#define MQ135_SCALINGFACTOR 116.6020682 //CO2 gas value
#define MQ135_EXPONENT -2.769034857 //CO2 gas value
#define MQ135_MAXRSRO 2.428 //for CO2
#define MQ135_MINRSRO 0.358 //for CO2

係数を決めたDavid Gironiのblogによると

Rs/Ro_limit = (ppm/a)^(1/b) -- (1)

という式を使っている。

Datasheet does not tell us much for detecting concentration scope for this gas, the figure is from 0.1 to 100ppm, but we can suppose a limit from 10 to 2000ppm.

という記載があり、10から2000ppmの範囲を考慮している。

aとbは以下の記載がある。

  • scaling factor (a)
  • exponent (b)

上記の#defineの定義では

  • a = 116.6020682
  • b = -2.769034857

となっている。

(1)式にそれぞれ10ppm, 2000ppmを代入すると

10ppm

Rs/Ro_limit = (10/116.6020682)^(1/(-2.769034857)) = 2.42787
google計算

2000ppm

Rs/Ro_limit = (2000/116.6020682)^(1/(-2.769034857)) = 0.35829
google計算

以上でそれぞれの値の計算が再現できた。

PS. MQ-135はaitendoで購入できるのが分かった。3個買っておいた。

11
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
12