I got the sensor MG811 that senses carbon dioxide, you can see an image of the sensor here
I googled to use that sensor properly but i have doubts about the wiring with arduino and the proper way to calibrating.
So, i got think i can got the data from AOUT pin, but i really don't know if i can use the 5V pin from arduino to connect in vdd or i need another source (around 12V).
So, what are the function of the other pins DOUT and TCM?
I tried with this article, but i cannot identify what pin is BOOL conected to Arduino.
Also, thers Heat pin and vcc pin, so, is there two source pins?
This eBay link seems to show the same breakout board your using and in the description there is an image that details what the pins are.
The bool pin will be Dout on the board and is pin 2 in the example sketch you linked to here. As the module has a TTL level adjust pot you will need to adjust it to get the desired on/off level from the sensor.
jpill:
Now the BOOL is HIGH but the values aren't consistent, so, do i need to change the potenciometers?
The idea of the BOOL output is that with the trimmer pot you can set it to change LOW/HIGH at a specific voltage so instead of reading an analogue value and converting it to a CO2 level using maths you can just use BOOL to give a simple answer to if the CO2 is above/below a set level. That way you would be able to use simple electronics instead of a MCU. As a theoretical example you have a test chamber with the sensor in and when the CO2 level goes above a certain level the BOOL output would turn on a fan to extract the CO2.
You do need to give these sensors a few minutes to warm up properly before taking readings (they do have a heater in them). As to why your code is not putting out consistent value I have no idea.
Are you using the exact same code as linked in your first post or are you using your own?
How is all this wired up and what other things are connected to the system?
jpill:
So i changed the ZERO_POINT_VOLTAGE value from 0.22 to 0.39 , so i get ppm values that "seems" consistent.
so, do you think that change is fine or can give bad values?
Sorry jpill but I have no idea. The module your using is different to the one used for the demo program your also using so I would expect the values to be different but in what way I do not know.
As your now using 6V power then be careful in using the DOut & AOut output as they may swing between 0V & 6V now and that might damage your Arduino pins.
Hey everyone I have been using mg811 sensor for past two months but I haven't preheated it at all still it is showing me readings. I have connected my sensor to my laptop and i'm running the sensor on arduino ide on my laptop. Would it be alright If I preheat it now? And what should be the preheating period for my sensor to work properly?
Here is the link from where I have referred the code and connections -