02-16-2014 03:51 PM
I just want to connect a CO, CO2, or CH4 Gas sensor to myRIO and be able to record data in LabVIEW without any further programming. Thank you for your help and support.
02-17-2014 09:15 AM
Hey Coren,
There are no CO, Co2 or CH4 sensor Vis that ship with myRIO but it should be fairly easy for you to get those sensors working with a myRIO. If you post some links to the sensor you want to use we can help guide you on how to implement the LabVIEW code to talk to them.
Thanks!
-Sam K
Join / Follow the LabVIEW Hacker Group on google+
02-17-2014 04:24 PM
I have already purchased the following sensors from Parallax but none of them has any VI for LabVIEW. I'd really appreciate your help to build a VI so I can talk to the sensors.
The following are the products I've purchased.
CH4 Gas Sensor
http://www.parallax.com/product/605-00008
Datasheet of the CH4 Gas Sensor
http://www.parallax.com/sites/default/files/downloads/605-00008-MQ-2-Datasheet.pdf
CO Gas Sensor
http://www.parallax.com/product/605-00007
Datasheet of the CO Gas Sensor
http://www.parallax.com/sites/default/files/downloads/605-00007-MQ-7-Datasheet.pdf
Parallax Gas Sensor Modules
http://www.parallax.com/sites/default/files/downloads/27904-Gas-Sensor-Modules-Guide-v2.3.pdf
Gas Sensor Board
http://www.parallax.com/product/27983
Product Guide for Gas Sensor Board
http://www.parallax.com/sites/default/files/downloads/27983-Gas-Sensor-Board-Guide-v1.0.pdf
02-18-2014 10:32 AM
Hey Coren,
The first two sensors work as resistors and their resistance varies with the gas level. You can build a voltage divider and a myRIO analog input to sample the voltage. Then use the equations for a voltage divider to calculate the resistance of the sensor. From there you can use the sensor data sheet to convert the resistance into the units you need.
I'll take a look at the third one when I get a chance.
Thanks!
-Sam K
Join / Follow the LabVIEW Hacker Group on google+
02-19-2014 01:02 AM
Thanks a lot Sam.
02-20-2014 08:21 AM
I'm happy to help.
The third sensor you posted looks like there is just a single digital output that you can read using a myRIO Digital Input. You use some potentiometers on the module to set the 'trip point', then when the sensed gas level is greater than the trip point the digital line goes high.
Let us know if you get them working.
Good luck!
-Sam K
Join / Follow the LabVIEW Hacker Group on google+