27929 mg811
35°C0lDFuSion
Posts: 5
Why is it so hard to have clear information on the 27929 board.
I want to be able to determine what ppm of co2 is present in the air.
I have search all over the internet and found nothing that can help me.
I want to hook up the board to a arduino board and be able to determine how many ppm of co2 is present.
From what I have see in my research, is that I am not alone who want this information.
Use this thread to finally give all the information that is needed for this device.
I can not understand why parallax does not give any sample code or a .h to help them sale the device.
I have found many post of succes using this board but no code to help me learn and use this board.
If you are able to help please do. I will, upon completion give my code and if I can make a 27929.h to help
future buyer and developper of the 27929 board.
I want to be able to determine what ppm of co2 is present in the air.
I have search all over the internet and found nothing that can help me.
I want to hook up the board to a arduino board and be able to determine how many ppm of co2 is present.
From what I have see in my research, is that I am not alone who want this information.
Use this thread to finally give all the information that is needed for this device.
I can not understand why parallax does not give any sample code or a .h to help them sale the device.
I have found many post of succes using this board but no code to help me learn and use this board.
If you are able to help please do. I will, upon completion give my code and if I can make a 27929.h to help
future buyer and developper of the 27929 board.
Comments
If you want to be able to get the ppm value of co2 is that
you have to get a reading from tp1.
well to get this reading do you need a common ground with you power supply.
I have a 6 volt power supply connected to the VIN and groung but do I
need to also connect the ground to the arduino.
how do I get info from the tp1 from the arduino.
need code exemple.
I plugge the 27929 board using a 6v power supply to GND, VIN and CNTL.
I also plugge the GND from the arduino to the GND of the 27929.
The TP1 of the 27929 is plugge to the arduino analog port.
I use this code and it give me the ppm
Look like it's working good but a little pain to calibrate.
this is how anthony_p1234 did it
Hope this help many and fell free to comment to help correct and improve this solution.
As per the documentation Parallax Inc does not provide any calibration information and that is something that must be done on a per sensor / installation basis. Example code for the BASIC Stamp and Propeller Chip would require calibration. That is all that is needed to operate this sensor, however you do need to calibrate it using a calibrated reference which we cannot provide.
I'm skeptical of the calibration method proposed by anthony_p1234 and quoted in post #4. The response curve of the MG-811 (as shown in its data sheet), shows no tendency to level off at 10000ppm (1%). If the gas concentration produced by the vinegar/soda reaction is much greater, as it probably is, then the slope of the logarithmic curve will be greatly overestimated. I think it is better to rely on the data sheet typical value. The data sheet value from the curve below, using 400ppm and 10000ppm is mV = -41 log(ppm) + 429. Compare that with the value from post #4, where the slope estimated is -83. The data sheet specs the slope between -30 and -50 mV between 350 and 10k ppm, so -41 is about in the middle.
A better calibation might be had by using a 5 liter bottle full of ambient air, and then use a small measured amount of soda to add quantitative amount of CO2 to that volume.
Anyone curious about that sensor should look at the principles behind its operation. Unlike a lot of the other gas sensors which depend on surface resistance changes in a catalytic film, the CO2 sensor is a solid state electrolytic cell, a little battery, based on an exotic material, class "Nasicom". Conduction involves migration of an ion like lithium (in the MG811) or sodium through pores in a tetrahedral lattice.