The SGP30 is a digital multi-pixel gas sensor from Sensirion, designed for air purifiers, ventilation systems and IoT applications. The sensor contains a temperature controlled micro hotplate highly sensitive to the presence of Ethanol and H2, and from these measurements it calculates the two air quality signals TVOC (Total Volatile Organic Compound) and CO2eq (Carbon Dioxide Equivalent).
Here are the some of the board's main features:
The first step with the SGP30 Indoor Air Quality Sensor is to solder the 4 pin header that comes along with the board. The easiest way to solder the board is to insert the header into a breadboard (long pins down) and solder the short pins to the board.
Here is how you can connect the SPG30 via I2C. The first step is to connect the board to the power supply.
Now we connect the board to the I2C bus. The I2C communication uses basically two wires. The clock signal is generated by the Arduino and transferred to the sensor through the SCL line. The Arduino can send commands to the sensor using the SDA line. Just as well, all data from the sensor goes back to the Arduino through the SDA line. Because of that, the SDA line is bidirectional.
The BlueDot SGP30 board works best with the Arduino Library written by Adafruit. The easiest way to start using your new sensor is to download and install the library directly from the Arduino IDE. Just open the Arduino IDE and go to Sketch > Include Library > Manage Libraries... and search for the Adafruit SGP30 Library on the Library Manager.
xkcd.com
After installing the library we can open an example sketch. Just go to File > Examples > Adafruit SGP Sensor and open the sketch sgp30test.
Now upload the example sketch to your microcontroller and you are good to go!
xkcd.com
xkcd.com