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

How to Use SparkFun Air Quality Breakout - CCS811: Examples, Pinouts, and Specs

Image of SparkFun Air Quality Breakout - CCS811Design with SparkFun Air Quality Breakout - CCS811 in Cirkit Designer

Introduction

The SparkFun Air Quality Breakout featuring the CCS811 is an advanced sensor that measures the levels of volatile organic compounds (VOCs) and equivalent carbon dioxide (eCO2) in the air. This sensor is designed for indoor air quality monitoring and can be used in various applications such as smart homes, HVAC systems, and air purifiers.

Explore Projects Built with SparkFun Air Quality Breakout - CCS811

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 ESP32-Based Air Quality Monitoring System with LoRa Communication: A project utilizing SparkFun Air Quality Breakout - CCS811 in a practical application
ESP32-Based Air Quality Monitoring System with LoRa Communication

This circuit is designed for environmental monitoring, featuring a collection of sensors interfaced with an ESP32 microcontroller. It includes a LoRa Ra-02 SX1278 module for long-range communication, various air quality sensors (CCS811, PMS5003, MQ6, MQ-7) for detecting pollutants and gases, and an SHT1x sensor for measuring temperature and humidity. The ESP32 collects sensor data and can transmit it wirelessly via LoRa, enabling remote air quality and climate monitoring.

Open Project in Cirkit Designer
Image of ESP8266-Based Air Quality Monitoring System with LCD Display and Wi-Fi Connectivity: A project utilizing SparkFun Air Quality Breakout - CCS811 in a practical application
ESP8266-Based Air Quality Monitoring System with LCD Display and Wi-Fi Connectivity

This circuit is an air quality monitoring system using an ESP8266 NodeMCU microcontroller. It integrates various sensors including a DHT11 for temperature and humidity, an MQ135 for air quality, and a BMP280 for pressure and altitude, displaying the data on a 16x2 I2C LCD and sending alerts via Blynk. A buzzer and LED are used to provide audible and visual alerts when air quality or temperature exceeds predefined thresholds.

Open Project in Cirkit Designer
Image of ESP8266-Based Air Quality Monitoring System with LCD Display and Wi-Fi Connectivity: A project utilizing SparkFun Air Quality Breakout - CCS811 in a practical application
ESP8266-Based Air Quality Monitoring System with LCD Display and Wi-Fi Connectivity

This circuit is an air quality monitoring system using an ESP8266 NodeMCU microcontroller. It integrates various sensors including a DHT11 for temperature and humidity, an MQ135 for air quality, and a BMP280 for pressure and altitude, displaying the data on a 16x2 I2C LCD and sending alerts via Blynk. A buzzer and LED provide local alerts when air quality or temperature exceeds predefined thresholds.

Open Project in Cirkit Designer
Image of Arduino Nano-Based Air Quality Monitor with OLED Display and Alert Buzzer: A project utilizing SparkFun Air Quality Breakout - CCS811 in a practical application
Arduino Nano-Based Air Quality Monitor with OLED Display and Alert Buzzer

This circuit features an Arduino Nano microcontroller interfaced with an Adafruit SGP30 air quality sensor, an Adafruit SHTC3 temperature and humidity sensor, and a 0.96" OLED display for real-time environmental monitoring. The sensors communicate with the Arduino via I2C, with the SGP30 and SHTC3 sensors providing air quality readings (CO2 and TVOC) and temperature/humidity data, respectively, which are then displayed on the OLED. Additionally, a buzzer is connected to the Arduino and is programmed to activate when CO2 levels exceed a certain threshold, serving as an alert system.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VCC Power supply (3.3V)
2 GND Ground
3 SDA I2C Data
4 SCL I2C Clock
5 WAKE Wake pin (active low)
6 INT Interrupt pin
7 RST Reset pin (active low)
8 ADDR I2C Address select (float or tie to GND)

Usage Instructions

Integration with a Circuit

To use the CCS811 sensor in a circuit:

  1. Connect the VCC pin to a 3.3V power supply.
  2. Connect the GND pin to the ground of the power supply.
  3. Connect the SDA and SCL pins to the I2C data and clock lines, respectively.
  4. The WAKE pin can be connected to ground to keep the sensor awake.
  5. The INT pin can be left unconnected if the interrupt feature is not used.
  6. The RST pin can be connected to a digital pin on a microcontroller for software reset functionality.
  7. The ADDR pin can be left floating or connected to ground to set the I2C address.

Best Practices

Example Code for Arduino UNO

#include <Wire.h>
#include "SparkFunCCS811.h"  // Include the CCS811 library

#define CCS811_ADDR 0x5A  // Default I2C Address
CCS811 mySensor(CCS811_ADDR);

void setup() {
  Serial.begin(9600);
  Wire.begin();

  if (mySensor.begin() == false) {
    Serial.println("CCS811 sensor not found. Please check wiring.");
    while (1);
  }
}

void loop() {
  // Check if data is available to read
  if (mySensor.dataAvailable()) {
    mySensor.readAlgorithmResults();  // Read sensor data
    Serial.print("CO2: ");
    Serial.print(mySensor.getCO2());
    Serial.print(" ppm, TVOC: ");
    Serial.print(mySensor.getTVOC());
    Serial.println(" ppb");
  }
  delay(500);  // Delay between readings
}

Troubleshooting and FAQs

Common Issues

Solutions and Tips

FAQs

Q: Can the sensor measure CO2 directly? A: No, the sensor measures eCO2 which is an estimation based on VOC levels.

Q: What is the lifespan of the sensor? A: The CCS811 sensor has a typical lifespan of five years when operated within its specifications.

Q: How often should the sensor be calibrated? A: Calibration frequency depends on the application, but a monthly check is a good practice.

For further assistance, consult the manufacturer's datasheet and the SparkFun CCS811 library documentation.