From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone know if there's any CO, CO2, or CH4 Gas sensor with VI's that is fully compatible with myRIO?

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.

0 Kudos
Message 1 of 6
(7,775 Views)

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

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 2 of 6
(7,750 Views)

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

0 Kudos
Message 3 of 6
(7,737 Views)

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

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

 

 

 

0 Kudos
Message 4 of 6
(7,722 Views)

Thanks a lot Sam.

0 Kudos
Message 5 of 6
(7,708 Views)

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

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 6 of 6
(7,691 Views)