7

I want to add CO2 measuring feature to my room weather station. Can someone please recommend a CO2 sensor easy to integrate with Arduino?

Anonymous Penguin
6,36510 gold badges34 silver badges62 bronze badges
asked Apr 21, 2014 at 0:32
1
  • you can try this co2 sensor ... Commented May 14, 2014 at 9:32

5 Answers 5

5

You could try the K30 CO2 sensor. There is also a guide using it to make an arduino CO2 detector here.

I've also seen people use the MG-811 module, you can buy them from dfrobot.com . There is also good documentation for how to use the MG-811 with arduino here.

Handoko
3872 silver badges8 bronze badges
answered Apr 22, 2014 at 10:36
1
  • Are these sensors good for external environment, not only to inside building? Commented Sep 13, 2014 at 9:47
2

Based on hands-on time with CCS811 CO2 sensors, I would recommend against them. They tend to drift high, sometimes way high, and then come back to their senses and provide reasonable readings when reset.

I've tried two batches of CJMCU-811 sensors, purchased months apart (hoping to get a different manufacturing lot), and they were all rubbish.

answered Sep 13, 2020 at 23:27
1

This worked well for me on a colour screen. A small delay for the sensor and a long burn (24hrs) required. But easy KIWI

#include <XTronical_ST7735.h> // Hardware-specific library
#include <SPI.h>
#include <Adafruit_GFX.h> // Core graphics library
#include <sSense-CCS811.h>
#include <dht.h>
#define SERIAL_SPEED 9600
#define TFT_SCLK 13 // SPI clock
#define TFT_MOSI 11 // SPI Data
#define TFT_CS 10 // Display enable (Chip select), if not enabled will not talk on SPI bus
#define TFT_RST 9 // Display reset pin, you can also connect this to the Arduino reset
 // in which case, set this #define pin to -1!
#define TFT_DC 8 
CCS811 ssenseCCS811;
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST); 
dht DHT;
#define DHT11_PIN 7
void setup()
{
 DebugPort.begin(SERIAL_SPEED);
 delay(5000);
 Serial.println("s-Sense CCS811 I2C sensor.");
 if(!ssenseCCS811.begin(uint8_t(I2C_CCS811_ADDRESS), uint8_t(CCS811_WAKE_PIN), driveMode_1sec))
 DebugPort.println("Initialization failed.");
 tft.init(); // initialize a ST7735S chip,
 tft.setRotation(0);
 tft.fillScreen(ST7735_GREEN);
 tft.setTextColor(ST7735_RED);
 tft.setCursor(0, 30); 
 tft.setTextSize(1); 
}
void loop()
{ 
 ssenseCCS811.setEnvironmentalData((float)(21.102), (float)(57.73)); // replace with temperature and humidity values from HDC2010 sensor
 int chk = DHT.read11(DHT11_PIN);
 if (ssenseCCS811.checkDataAndUpdate())
 {
 
 tft.fillScreen(ST7735_GREEN);
 tft.setCursor(10,10);
 tft.print("CO2 ppm ");
 tft.print(ssenseCCS811.getCO2());
 tft.setCursor(10,40);
 tft.print("tVOC ppb ");
 tft.print(ssenseCCS811.gettVOC());
 tft.setCursor(10,70);
 tft.print("Temp C ");
 tft.print(DHT.temperature);
 tft.setCursor(10,100);
 tft.print("Humid % ");
 tft.print(DHT.humidity);
 
 }
 else if (ssenseCCS811.checkForError())
 {
 ssenseCCS811.printError();
 }
 delay(2000);
}
sempaiscuba
1,0429 gold badges21 silver badges32 bronze badges
answered Sep 15, 2020 at 10:41
0

How about this one? http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=380915024016&ssPageName=STRK:MESE:IT The MG-811 is highly sensitive to CO2 and less sensitive to alcohol and CO.

answered Aug 12, 2014 at 10:23
0

This one: http://sandboxelectronics.com/?product=mg-811-co2-gas-sensor-module

They also got a nice demo code there. Here is a wiring scheme if you use the demo without modification:

  1. Red - 5V
  2. Black - GND
  3. Yellow - Analog input 0
  4. Green - Digital I/O 2

The easeir integration ever

answered Nov 29, 2016 at 19:54

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.