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.
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.
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.
Need help?
Do you have a question about the SGP30 and is the answer not in the manual?
Questions and answers