Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use NDIR C8 CO2: Examples, Pinouts, and Specs

Image of NDIR C8 CO2Design with NDIR C8 CO2 in Cirkit Designer

Introduction

The NDIR C8 is a non-dispersive infrared (NDIR) sensor designed for measuring carbon dioxide (CO2) concentrations in various environments. It operates by detecting the specific infrared wavelengths absorbed by CO2 molecules, ensuring accurate and reliable readings. This sensor is widely used in applications such as air quality monitoring, HVAC systems, industrial safety, and greenhouse management. Its robust design and high sensitivity make it suitable for both indoor and outdoor environments.

Explore Projects Built with NDIR C8 CO2

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP8266-Controlled CO2 Monitoring System with Multi-Color LED Indicators and Buzzer Alarm: A project utilizing NDIR C8 CO2 in a practical application
ESP8266-Controlled CO2 Monitoring System with Multi-Color LED Indicators and Buzzer Alarm

This circuit is designed to monitor CO2 levels in an environment using a SenseAir S8 CO2 sensor, with an ESP-8266 microcontroller handling data processing and communication. The ESP-8266 controls three LEDs (red, yellow, green) and a buzzer as indicators of CO2 concentration levels, and it is programmed to send CO2 data to a ThingSpeak server for remote monitoring. A push switch is connected to the reset pin of the ESP-8266 for manual resetting of the microcontroller.

Open Project in Cirkit Designer

Technical Specifications

Below are the key technical details and pin configuration for the NDIR C8 CO2 sensor:

Key Technical Details

Parameter Value
Measurement Range 0 - 5000 ppm (parts per million)
Accuracy ±50 ppm or ±3% of reading
Operating Voltage 4.5V - 5.5V
Operating Current < 50 mA
Communication Interface UART (TTL level)
Warm-Up Time < 3 minutes
Operating Temperature -10°C to 50°C
Operating Humidity 0% - 95% RH (non-condensing)
Dimensions 33 mm x 20 mm x 9 mm

Pin Configuration

Pin Number Pin Name Description
1 VCC Power supply input (4.5V - 5.5V)
2 GND Ground connection
3 TXD UART Transmit pin (data output)
4 RXD UART Receive pin (data input)

Usage Instructions

How to Use the NDIR C8 in a Circuit

  1. Power Supply: Connect the VCC pin to a 5V power source and the GND pin to the ground of your circuit.
  2. UART Communication: Use the TXD and RXD pins to establish UART communication with a microcontroller or computer. Ensure the UART voltage levels are compatible (TTL level).
  3. Warm-Up Time: Allow the sensor to warm up for at least 3 minutes after powering it on to ensure accurate readings.
  4. Data Reading: The sensor outputs CO2 concentration data via the TXD pin. Use a microcontroller to read and process this data.

Important Considerations and Best Practices

Example: Connecting to an Arduino UNO

Below is an example of how to connect and use the NDIR C8 CO2 sensor with an Arduino UNO:

Wiring Diagram

NDIR C8 Pin Arduino UNO Pin
VCC 5V
GND GND
TXD RX (Pin 0)
RXD TX (Pin 1)

Arduino Code

#include <SoftwareSerial.h>

// Define RX and TX pins for SoftwareSerial
SoftwareSerial mySerial(10, 11); // RX = Pin 10, TX = Pin 11

void setup() {
  Serial.begin(9600); // Initialize Serial Monitor
  mySerial.begin(9600); // Initialize SoftwareSerial for NDIR C8

  Serial.println("NDIR C8 CO2 Sensor Initialized");
}

void loop() {
  if (mySerial.available()) {
    // Read data from the sensor
    String co2Data = "";
    while (mySerial.available()) {
      char c = mySerial.read();
      co2Data += c;
    }

    // Print the received CO2 data to the Serial Monitor
    Serial.println("CO2 Concentration: " + co2Data + " ppm");
  }

  delay(1000); // Wait 1 second before the next reading
}

Notes:

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Data Output:

    • Cause: Incorrect wiring or baud rate mismatch.
    • Solution: Double-check the connections and ensure the UART baud rate is set to 9600.
  2. Inaccurate Readings:

    • Cause: Insufficient warm-up time or poor ventilation.
    • Solution: Allow the sensor to warm up for at least 3 minutes and ensure proper airflow.
  3. Sensor Not Responding:

    • Cause: Power supply issues or damaged sensor.
    • Solution: Verify the power supply voltage (4.5V - 5.5V) and check for physical damage.
  4. Interference from Other Devices:

    • Cause: Electrical noise from nearby components.
    • Solution: Use proper shielding and keep the sensor away from high-frequency devices.

FAQs

Q: Can the NDIR C8 measure CO2 concentrations above 5000 ppm?
A: No, the sensor's maximum measurement range is 5000 ppm. For higher concentrations, consider using a sensor with a wider range.

Q: How often should I calibrate the sensor?
A: Calibration frequency depends on the application. For critical applications, calibrate every 6-12 months.

Q: Can I use the NDIR C8 outdoors?
A: Yes, but ensure the sensor is protected from direct exposure to water and extreme temperatures.

Q: What is the lifespan of the NDIR C8 sensor?
A: The sensor typically has a lifespan of 5-10 years, depending on usage and environmental conditions.