Tutorial: How to Use Mg811 Co2 Carbon Dioxide Gas Sensor

7,813

3

5

Introduction: Tutorial: How to Use Mg811 Co2 Carbon Dioxide Gas Sensor

Description:

This tutorial will shows you a few simple steps about how to use Mg811 Co2 Gas Sensor by using Arduino Uno. At the end of this tutorial, you will get a result of comparison when the sensor can detect a motion and could not detect any movement.

This sensor module has an MG-811 on-board as the sensor component. There is an on-board signal conditioning circuit for amplifying output signal and an on-board heating circuit for heating the sensor. The MG-811 is highly sensitive to CO2 and less sensitive to alcohol and CO. It could be used in air quality control, ferment process, in-door air monitoring application. The output voltage of the module falls as the concentration of the CO2 increases.

Features:

  • Carbon dioxide sensor module (with analog signal output, TTL level signals, temperature compensated output).

  • TTL output valid signal is low. (Low-level signal when the output light can be directly connected to the microcontroller).

  • Analog output (0 ~ 2V/0-4V) voltage output selectable default hair 0-2V.

  • Rapid response and recovery characteristics.

  • The main chip: LM393, carbon dioxide gas sensing probe

  • Working voltage: DC 6V

  • Size: 32mm X22mm X30mm L * W * H.

Step 1: Item Preparation

The photo above show item needed in this tutorial:

  1. Arduino UNO
  2. MG811 CARBON DIOXIDE CO2 GAS SENSOR MODULE
  3. Jumper Wire

Step 2: Follow the Video Step

Step 3: Source Code

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Maps Challenge

      Maps Challenge
    • Fruit and Veggies Speed Challenge

      Fruit and Veggies Speed Challenge

    5 Comments

    0
    MarbenB1
    MarbenB1

    16 days ago

    What's the purpose of these two knobs/potentiometer at the back of the sensor? Is it connected to sensitivity?

    MG811 (back).jpg
    0
    luis.turco.lt
    luis.turco.lt

    Question 3 months ago

    There is any tutorial in order to connect DOUT?

    0
    manushak.khalulyan
    manushak.khalulyan

    5 months ago

    Hi
    I have tried this sensor with Arduino and with another analog device(NI ELVISII).
    with Arduini, the measurements are unstable, can be in range (10-40) or in range (400-500) or (6000-7000).
    On ELVIS II, Analog voltage measurements in the range 0-10V, and the AO values I measure from the sensor is 0.035-0.045 volt, also unstable.
    And I cannot understand from where the coefficients co2_b = 600; co2_d = 400 in Arduino function comes.

    0
    kgregor2
    kgregor2

    9 months ago

    I cant seem to find the library for this sensor in the arduino ide for desktop or online.

    0
    sitinurliah24
    sitinurliah24

    1 year ago

    Hi, nice to meet you.
    Can you tell m e what is parameter is inertial coefficient which value 0.99? because i tried with that code but the result is 247ppm? is that any problem?
    then, if you can tell me please inform me :)
    nurliahfisika24@gmail.com
    thank you