CO2 Monitor

CO2 monitor and log based on MQ-135 with temperature and relative humidity correction.

Jan 20, 2020

34602 views

10 respects

Components and supplies

1

Resistor 221 ohm

1

Resistor 10k ohm

2

Temperature sensor with thermistor VMA-320

1

Alphanumeric LCD, 16 x 2

1

SD card logging shield VMA-304

1

Resistor 1k ohm

1

MQ-135

1

General Purpose Quad Op-Amp

1

Arduino UNO

Project description

Code

Time.cpp

c_cpp

Time and date utility

Calculations.h

c_cpp

Header to Calculations.ccp

Calculations.cpp

c_cpp

Calculation of temperature, relative humidity, sensor resistance based on values read from A0, A1 and A2. From these date it calculates water vapour pressures and sensor correction factor are derived. Finally the CO2 concentration is measured

CO2v2.ino

c_cpp

Main program

Time.h

c_cpp

Header for Time.ccp

Calculations.h

c_cpp

Header to Calculations.ccp

Calculations.cpp

c_cpp

Calculation of temperature, relative humidity, sensor resistance based on values read from A0, A1 and A2. From these date it calculates water vapour pressures and sensor correction factor are derived. Finally the CO2 concentration is measured

CO2v2.ino

c_cpp

Main program

Time.cpp

c_cpp

Time and date utility

Time.h

c_cpp

Header for Time.ccp

Downloadable files

Wiring CO2 measurement and logging project

Measures CO2 concentration. Correction for temperature and relative humidity. Writes results to SD card and LCD display

Wiring CO2 measurement and logging project

Comments

Only logged in users can leave comments

Immagine
Immagine

Anonymous user

2 years ago

Cool project. It looks like you are deriving the CO2 concentration based on other metrics using a formula. So how precise are those CO2 concentrations ? How satisfied are you of the MQ-135 sensor ?

Immagine
Immagine

ArduinoKoen

2 years ago

Dear Jan, I have derived my formulas from datasheets on mq135. The measurement is corrected for water content in the air and temperature. Since I used the monitor inside, RH and T did not really vary much. The meter readings however were highly fluctuating. One would expect that during the night the value gradually will come back to the background CO2 concentration. This value however is different every day. It seems that some pollutants adsorb on the element that do not come off easily.  Good about MQ 135 is that it senses human presence quite well. As soon as someone enters the room, the readings go up. Especially when all windows and doors are closed. From the time needed to reach a new steady state I have derived that our house needs better ventilation. I also found datasheets stating that mq135 is sensitive to many more gasses than only CO2. So, MQ135 shows large measuring drift, is not selective and can still give an impression on  ventilation in your house and air quality (good/reasonable/bad). Sensitivity should be set via calibration, not with data from the datasheet as it varies from sensor to sensor  and from time to time. For me it was a fun project and I had in mind to do an update of my project with my experiences... Good luck. Groet, Koen. Outlook voor Android downloaden (https://aka.ms/ghei36) ------------------------------- Van: Hackster.io <help@hackster.io> Verstuurd: maandag 26 oktober 2020 11:29 Aan: koenmeesters@hotmail.com Onderwerp: New comment for CO2 Monitor

Immagine
Immagine

Anonymous user

2 years ago

Hi Koen, On AliExpress I find a whole range of MQ-135's. Which one did you use? Thnx Jaap

Immagine
Immagine

Anonymous user

4 years ago

Cool project. It looks like you are deriving the CO2 concentration based on other metrics using a formula. So how precise are those CO2 concentrations ? How satisfied are you of the MQ-135 sensor ?

Immagine
Immagine

ArduinoKoen

2 years ago

Dear Jan, I have derived my formulas from datasheets on mq135. The measurement is corrected for water content in the air and temperature. Since I used the monitor inside, RH and T did not really vary much. The meter readings however were highly fluctuating. One would expect that during the night the value gradually will come back to the background CO2 concentration. This value however is different every day. It seems that some pollutants adsorb on the element that do not come off easily.  Good about MQ 135 is that it senses human presence quite well. As soon as someone enters the room, the readings go up. Especially when all windows and doors are closed. From the time needed to reach a new steady state I have derived that our house needs better ventilation. I also found datasheets stating that mq135 is sensitive to many more gasses than only CO2. So, MQ135 shows large measuring drift, is not selective and can still give an impression on  ventilation in your house and air quality (good/reasonable/bad). Sensitivity should be set via calibration, not with data from the datasheet as it varies from sensor to sensor  and from time to time. For me it was a fun project and I had in mind to do an update of my project with my experiences... Good luck. Groet, Koen. Outlook voor Android downloaden (https://aka.ms/ghei36) ------------------------------- Van: Hackster.io <help@hackster.io> Verstuurd: maandag 26 oktober 2020 11:29 Aan: koenmeesters@hotmail.com Onderwerp: New comment for CO2 Monitor

Immagine
Immagine

Anonymous user

4 years ago

Hi Koen, On AliExpress I find a whole range of MQ-135's. Which one did you use? Thnx Jaap

Immagine
Immagine

Anugrah_123

5 years ago

how to add calculations.h directory .pls uplode a zip file of thes directory

Immagine
Immagine

IoT_hobbyist

2 years ago

It is similar to how to add pitches.h, see: https://arduinogetstarted.com/tutorials/arduino-potentiometer-triggers-piezo-buzzer#content_arduino_code_-_melody_-_voltage_threshold