GrovePi and Mq9


#1

Hi,
someone has more detailed examples of how to use the sensor mq9 ?

how can I measure the various gases detected ( Carbon Monoxide, Coal Gas, Liquefied Gas ) ?

the value printed in the file grove_gas_sensor.py is something similar to

('sensor_value =', 43, ' density =', 0.0)
('sensor_value =', 43, ' density =', 0.0)
('sensor_value =', 43, ' density =', 0.0)
('sensor_value =', 44, ' density =', 0.0)
('sensor_value =', 47, ' density =', 0.0)
('sensor_value =', 45, ' density =', 0.0)
('sensor_value =', 45, ' density =', 0.0)
('sensor_value =', 43, ' density =', 0.0)
('sensor_value =', 43, ' density =', 0.0)
('sensor_value =', 43, ' density =', 0.0)
('sensor_value =', 39, ' density =', 0.0)
('sensor_value =', 45, ' density =', 0.0)
('sensor_value =', 45, ' density =', 0.0)
('sensor_value =', 39, ' density =', 0.0)
('sensor_value =', 45, ' density =', 0.0)
('sensor_value =', 45, ' density =', 0.0)
('sensor_value =', 45, ' density =', 0.0)

but what is the meaning of sensor_value and density ?

Thx to all


#2

The density is just the sensor value between 0-1 representing the value between 0-1023. There seems to be a bug in the code which is why you are getting 0 in density but it can be used as as threshold. Now this sensor is not used a lot for accurate measurement. The wiki on Seeed says that you can use this as a threshold: http://www.seeedstudio.com/wiki/Grove_-_Gas_Sensor(MQ9) or use approximations using the values they provide in the wiki. But even the wiki says: " However, we can’t provide a formula because the relation between ratio and concentration is nonlinear. " .

-Karan