Blog Post

Gas Sensor: a Grove Sensor Adapter project

2327

The Grove gas sensor allow for some unique experiments. The gas module can detect "H2, LPG, CH4, CO, Alcohol," and we're using the MQ5 model which is best at detecting "LPG, Natural Gas, Town Gas." With the mindsensors Grove Sensor Adapter it's super easy to connect it to your EV3 and start taking measurements, so let's get right to it.

The Grove Sensor Adapter is connected to sensor port 1, and the Grove gas sensor is connected to the adapter.

The sensor and adapter are mounted on the side for convenience, and to keep everything together.

First we need to calibrate the gas sensor, as every environment is different. This program displays the initial R0 value. We just run the program and copy the number.

Then we can start taking readings! The main measurement we're interested in is the RS/R0 ratio.

With the graph below you can find how many parts-per-million there are of these gasses. Our measurement is 6.5369 is right at the air level, very little or none of the other gasses detected. Remember the scales of this graph are logarithmic!

The first program is fairly straight-forward. It takes 100 readings from the sensor, calculates the average.

With that average it does a bit of math and displays the R0 value on screen.

The first block of the second program is that R0 number we just got. This program also takes a measurement, does a bit of slightly-different math, and shows the result on screen.

Some of the intermediate numbers are also shown, if you want to take a look at those.

This sensor is great at detecting any gas leakage, and has high sensitivity and response time. The Grove Sensor Adapter makes it a snap to get the sensor's value on the EV3. The gas sensor enables some very unique experiments!

Downloads and Links

  • EV3 Block
    EV3 Block
  • EV3 Program
    EV3 Program
  • Grove Sensor Adapter product page
    Product Page
  • Grove Sensor Kit product page
    Grove Sensor Kit

Attribution

The graph and gas types are from the Seeed wiki for Grove devices.

Comments (2)

Allen M 05.05.2017
Hi Seth,I really like all of your Grove sensor posts. I was thinking about buying a Gas sensor., but I thought I read in the wiki that it takes 24 hours to heat up. If so, do you just leave your EV3 running or how do you do it?
Seth T 05.05.2017
Good morning! Yes, I was going by the Grove wiki. It does say it should be allowed to heat up for 24 hours. The Alcohol sensor had a similar notice. We have an EV3 with a 9V barrel plug wired to the battery connectors. I plugged in EV3 into the wall and let it stay on overnight, but when I can back in the morning the screen was off. I think I might have forgotten to change the Sleep setting to "never" (oops!). I'm afraid for the moment we don't know. If you do decide to test it yourself, feel free to comment with your findings, or I could edit the post with them!
Please Login to add your comments

Featured Posts

The mindsensors Grove Sensor Adapter makes it easy to use a variety of unique Grove sensors with the...

Read more

The mindsensors Grove Sensor Adapter makes it easy to use a variety of unique Grove sensors with the...

Read more

Poll

  • What do you use to program your FRC Robot?
    Total: