Skip to content

abcdaaaaaaaaa/SP3S-AQ2DataScience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SP3S-AQ2DataScience v5.5.4

SP3S-AQ2DataScience What can be create?

"The first and only Arduino library where SP3S-AQ2 Gas Sensor combine with Data Science"

1) Advanced Data Science System for Regression Calculations

SP3S-AQ2 gas curves

2) Ppm Analysis of SP3S-AQ2 Gases

SP3S-AQ2 Ppm Analysis

3) Slope Estimation in Time-Dependent SP3S-AQ2 Gases

SP3S-AQ2 Gases Slope Estimation

Ppm Formullas

log

loghello)

image1 image2

The first formula is determined according to all points while the second formula is determined according to the first and last point. (if R^2 = 1 (%100) always: logm = valueb, logb = log10(valuea)).

y = ax^b --> ppm = a×ratio^b

Therefore, we need to make a transition according to the formula:

image3

In data graphs, the x-axis is given as ppm and the y-axis is given as ratio.

Determining coefficients a and b according to the ratio

Methane a b
R > 0.952 1.1086 -0.0448
0.94 < R <= 0.952 0.9867 -0.0105
0.906 < R <= 0.94 1.097 -0.0335
0.878 < R <= 0.906 1.0513 -0.0261
0.842 < R <= 0.878 1.1424 -0.0381
R <= 0.842 2.2563 -0.1231
IsoButane a b
R > 0.821 1.0725 -0.0786
0.658 < R <= 0.821 1.5342 -0.1838
0.514 < R <= 0.658 1.8529 -0.2248
0.351 < R <= 0.514 3.1315 -0.3168
0.231 < R <= 0.351 4.8725 -0.3808
R <= 0.231 4.0796 -0.3586
CO a b
R > 0.658 1.4117 -0.2244
0.428 < R <= 0.658 2.2176 -0.3572
0.274 < R <= 0.428 2.7757 -0.406
0.148 < R <= 0.274 5.0696 -0.5116
0.084 < R <= 0.148 5.2111 -0.5156
R <= 0.084 3.0264 -0.4477
Ethanol a b
R > 0.554 1.6105 -0.3138
0.303 < R <= 0.554 3.0468 -0.5012
0.148 < R <= 0.303 6.1074 -0.6522
0.067 < R <= 0.148 6.3217 -0.6583
0.042 < R <= 0.067 1.2629 -0.4251
R <= 0.042 1.0192 -0.3983
Hydrogen a b
R > 0.444 1.5579 -0.3691
0.237 < R <= 0.444 2.6156 -0.5214
0.139 < R <= 0.237 2.2189 -0.4857
0.07 < R <= 0.139 3.5841 -0.5698
0.05 < R <= 0.07 0.5806 -0.3063
R <= 0.05 0.2205 -0.1853

Determining SensorCalibrationValue

image4

V = I × R

image5
image6

Final ppm calculation

image7

Check out all our DataScience libraries under the SpaceData series!

"The first and only Arduino library series where Gas Sensors and Geiger Counter combine with Data Science"

Library Scope
MQDataScience MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131_LOW, MQ131_HIGH, MQ135, MQ136, MQ137, MQ138, MQ214, MQ216, MQ303A, MQ303B, MQ306A, MQ307A, MQ309A Gas Sensors
TGSDataScience TGS813, TGS822, TGS826, TGS2201, TGS2442, TGS2600, TGS2602, TGS2610, TGS2611, TGS2612, TGS2620, TGS6812, TGS8100 Gas Sensors
MG811DataScience MG811 Gas Sensor
SP3S-AQ2DataScience SP3S-AQ2-01 Gas Sensor
RadioactiveDataScience Geiger Counter

For detailed explanation, You can also check out the github Wiki Page!

You can access the library's article Here!

About

This library calculates the ppm values of Methane, IsoButane, CO, Ethanol and Hydrogen using analog data obtained from the SP3S-AQ2-01 gas sensor. Additionally, the library supports Python-based data science applications, including ppm concentration graph simulations and a ppm slope estimation platform for advanced data analysis.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors