How to Use Carbon Dioxide Sensor Module

Photo of a carbon dioxide sensor module

You can measure the amount of carbon dioxide and dirt in the air.

About the Component

With the carbon dioxide sensor module, you can read the concentration of carbon dioxide and the cleanliness of the air. SPACEBLOCK communicates with it using I2C communication using two signal lines, SDA and SCL.

About I2C

I2C communication uses two signal lines, SDA and SCL. SDA stands for Serial Data and is the signal line for data. SCL stands for Serial Clock and is the signal line for the clock.

About Carbon Dioxide Concentration

Carbon dioxide concentration indicates the proportion of carbon dioxide in 1 m³ of air. The carbon dioxide concentration in the air is usually considered 410 ppm, and the standard for indoor carbon dioxide concentration is 1,000 ppm or less. The carbon dioxide concentration in the air is expressed in 'ppm'. Ppm is a unit that represents a proportion similar to '%', indicating 'how many in a million'. 1 ppm is 0.0001%.
The reference for carbon dioxide concentration and its effects on the human body is as follows:

  • 80,000 ppm: Decreased consciousness level
  • 40,000 ppm: Discomfort due to hyperventilation
  • 50,000 ppm: Hygienic guideline administrative regulations
  • 1,000 ppm: Health management standards
  • 400 ppm: Outdoor CO2 concentration

Notes on the Sensor

The carbon dioxide sensor measures at a cycle of 250 ms (milliseconds, 1/1000 seconds), so it takes more than 250 ms for the next sensor value to be updated after acquiring the sensor value.

Specifications

Voltage5V
Communication MethodI2C
eCO2 Measurement Range400~29206ppm
TVOC Measurement Range0〜32768ppb
Size 34 x 20 (mm)

Connection

Connect the carbon dioxide sensor module and the SPACEBLOCK microcontroller board using jumper wires (male-female) as follows:

  • Module's GND pin to SPACEBLOCK's GND
  • Module's VCC pin to SPACEBLOCK's 5V
  • Module's SDA pin to SPACEBLOCK's B3 or B2 (I2C compatible pin)
  • Module's SCL pin to SPACEBLOCK's B1 or B0 (I2C compatible pin)
  • Module's WAKE pin to SPACEBLOCK's GND
Connection method between SPACEBLOCK microcontroller board and carbon dioxide sensor module

※ The image shows a diagram where the signal lines are connected to the B1 and B3 pins. ※ I2C compatible pins are combinations of B1 and B3, or B0 and B2.

※ 5V and GND can also be inserted into the pins with the same markings on the SPACEBLOCK microcontroller board.

Usage

You can read the concentration of carbon dioxide and the cleanliness of the air with the block in the 'Input' category of your project.

To read carbon dioxide, use the following block:

Block to read carbon dioxide concentration (ppm) with the carbon dioxide sensor module

To read carbon dioxide, use the following block:

Block to read air dirt (ppb) with the carbon dioxide sensor module

For detailed usage of the block, click here.

Read ~ with the carbon dioxide sensor