Download Print this page

sparkfun SGP30 Hook-Up Manual

Air quality sensor

Advertisement

Quick Links

SparkFun Air Quality Sensor - SGP30 (Qwiic) Hookup Guide
Introduction
Do you want to know the quality of the air in your room or house? Maybe you need to monitor the volatile organic
compounds emitted during a 3D Print so you know when to turn on some ventilation (or leave the room!). The
SparkFun Air Quality Sensor - SGP30 (Qwiic) may be just the sensor you need! Indoor air quality (referred to as
IAQ) sensors are great for measuring CO and volatile organic compounts (commonly referred to as VOCs) but
some of them like the CCS811 require a burn-in time of 48 hours and a 20-min start up time. By comparison, the
SGP30 can return valid IAQ readings within 15 seconds of powering up!
Along with a very quick start-up time, the SGP30 is very resistant to contamination from other gases to ensure low
drift and long-term stability for extremely reliable results. To cap it all off, you can also read the SGP30's raw
measurements of ethanol and H . The SGP30 communicates via I C so naturally we broke out the pins on the
sensor to Qwiic connectors so you can easily connect it to SparkFun's ever growing Qwiic Ecosystem!
SparkFun Air Quality Sensor - SGP30 (Qwiic)
 SEN-16531
Product Showcase: SparkFun Qwiic Air Quality Sens... ...
Product Showcase: SparkFun Qwiic Air Quality Sens
2
2
2

Advertisement

loading
Need help?

Need help?

Do you have a question about the SGP30 and is the answer not in the manual?

Questions and answers

Summary of Contents for sparkfun SGP30

  • Page 1 To cap it all off, you can also read the SGP30's raw measurements of ethanol and H . The SGP30 communicates via I C so naturally we broke out the pins on the...
  • Page 2 In this guide we will go over the features of the SGP30, how to connect and use it as well as an Arduino library with examples to get you started monitoring your indoor air quality. Required Materials To follow along with this guide you will need a microcontroller to communicate with the SGP30. Below are a few...
  • Page 3 SparkFun Qwiic Cable Kit SparkFun Qwiic Shield for Arduino Nano  KIT-15081  DEV-16789 SparkFun Qwiic Shield for Arduino SparkFun Qwiic Adapter  DEV-14352  DEV-14495 You will also need at least one Qwiic cable to connect your sensor to your microcontroller.
  • Page 4: Hardware Overview

    Arduino Nano. Hardware Overview The brains of this breakout is the excellent SGP30 gas sensor from Sensirion. In this section we will cover some of the features and characteristics of the SGP30 as well as the hardware present on this breakout.
  • Page 5 Qwiic and I C Interface The SGP30 communicates via I C so of course we broke out these pins to two Qwiic connectors as well as 0.1"- spaced header pins if you would prefer to use standard PTH connections. Since the sensor operates at 1.8V we...
  • Page 6 The SGP30's I C address is 0x58 (1011000 bin) and is hardware-set. If you have other devices that share the same address as the SGP30 or need to use multiple SGP30 sensors on a single I C bus, you will want to use a multiplexer/mux like the Qwiic Mux Breakout 8-Channel.
  • Page 7: Hardware Hookup

    Hardware Hookup Using the Qwiic system, assembling the hardware is a breeze. All you need to do is connect your SparkFun Air Quality Sensor - SGP30 (Qwiic) to your chosen development board with a Qwiic cable or adapter cable. If you would prefer to not use the Qwiic connectors, you can connect to the 0.1"...
  • Page 8 How to Solder: Through-Hole Soldering SEPTEMBER 19, 2013 This tutorial covers everything you need to know about through-hole soldering. With the SGP30 connected to your microcontroller it's time to get some code uploaded and start taking measurements! SGP30 Arduino Library Note: This library assumes you are using the latest version of the Arduino IDE on your desktop.
  • Page 9 Arduino Examples The SGP30 Arduino Library includes nine examples to get you started. For the scope of this tutorial, we'll just cover the first three as they demonstrate the basics of setting up and reading from the SGP30.
  • Page 10 This example includes both the TVOC and CO readings from the SGP30 along with raw readings for ethanol and H . The Ethanol and H values are primarily for internal processing on the SGP30 but you can use them for rough measurements of both gases.
  • Page 11 The value stored for the on-chip humidity compensation will remain static until a new value is sent or the SGP30 is reset. We have included an option to send the letter "H" (upper or lower case) through your serial monitor to adjust the humidity compensation value to a new reading from the SHTC3 to avoid having to reset the circuit.
  • Page 12 LED Cloud-Connected Cloud Photon Remote Temperature Sensor Make an RGB colored cloud light! You can also control Learn how to build your own Internet-connect, solar- it from your phone, or hook up to the weather! powered temperature collection station using the Photon from Particle.