Pages: [1]   Go Down
Author Topic: CO2 Parallax sensor  (Read 3401 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Everyone,
Has anyone worked with Prallax CO2 sensor kit (includes the amplifier) http://www.robotshop.com/parallax-co2-gas-sensor-module-2.html
I'm trying to wire it up but not sure if my approach is right. see attached a picture of my wiring,


So since the sensor needs more power i am using an external of 9V and sharing the sensor's GND with Arduino GND
then I'm reading both pins CNTL and ALR as analog-ins
I have a feeling I am missing something here.
any comments or advice would be appreciated!

Cheers,
Fishtnk


* CO2 Parallax.jpg (997.04 KB, 2560x1920 - viewed 38 times.)
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks OK to me.  Does it work?  If you set the trip level just below where the LED turns on can you turn the LED on by breathing on the sensor (with the CNTL line turned on, of course).
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the reply,
I can't get a stable Voltage from TP1 and TP2, it starts at 3.3V and dropping very slowly and jumps back to 3.3V after a while.
When the LED is on I can read the pins, but when the LED is off I only get zeros.

Logged

New Jersey
Online Online
Faraday Member
**
Karma: 48
Posts: 3402
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not sure you should be reading both pins - as Johnwasser alluded to, it appears from the datasheet that cntl needs to be held high to get a reading from the sensor & if there's enough CO2 detected, depending on R3 setting, you'll get high or low on ALR.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

As has already been said, you need to drive the CTRL pin from an Arduino output. A high on this pin turns the heater on, which is necessary for the CO2 sensor to work.

I'd ignore the ALM output and connect TP1 to an Arduino analog input instead. That will give you a readout of the CO2 level, rather than just telling you whether it is above or below the alarm level.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the tip! It worked really well and I am reading analog from TP1 which gives me a good range to work with.
The heating element is working for sure, I'm guessing it is supposed to be as hot as it is and you can leave it on for a while with out damaging the sensor.

cheers,
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the feedback, I'm glad it worked for you.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What voltage did you end up using for the heater? (CNTL pin)

Also, did you ever read 0V at T1?
Logged

0
Offline Offline
Newbie
*
Karma: 1
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just finished playing around with this sensor and got this:

1) it actually works!!!  smiley
2) to get graduated readings use test point 1 (TP1)
3) Alarm out or (E3 ALM) gives you the set point value for a 3.3v HIGH trigger (I cant think of an mcu type application where you would use a trigger considering graduated readings are available on TP1) 

this is my configuration...

E1   > set at 5v HIGH from any available pin
E2   > NA
E3   > 6-12v (don't use a 9v battery as it will drain very quickly - the mg811 and sensors of this type are gas-guzzler's)
E4   > ground
TP1 > to analog in (graduated readings - using arduino's analog map can come in handy)

Now my big question is: how to calculate PPM?

Thanks Parallax!
Logged

Brunsbüttel, SH, F.Rep.GERM
Offline Offline
God Member
*****
Karma: 4
Posts: 596
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

u could put it in a little box and use calibration gases in a otherwise well(!) ventilated area...
and then try to find a most simple formula that (almost) goes through all those known points... smiley
fresh air has 400ppm...
if u know a paramedic: he/she has possibly 4% CO2 in his/her bag (but the rest is O2 not normal air, which could disturb the sensor slightly)...

but i dont know if the readings r reproducible...
maybe the NDIR principle is more accurate?
http://en.wikipedia.org/wiki/CO2_sensor
« Last Edit: July 09, 2012, 01:56:15 am by RIDDICK » Logged

-Arne

Pages: [1]   Go Up
Jump to: