Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Latest commit

 

History

History
44 lines (25 loc) · 1.95 KB

README.md

File metadata and controls

44 lines (25 loc) · 1.95 KB

The most recent version can be found at https://github.com/Sensirion/arduino-sps

Arduino library for the SPS30 particulate matter sensor

To learn more about the SPS30, please visit https://www.sensirion.com/sps30/. For support questions on the SPS30, please visit https://sensirion.com/contact.

This library is using the code from Sensirion's embedded-sps library, and adding a handful of changes to adapt to Arduino.

Most notably, this is using an alternative I2C Master Library to work around the I2C buffer size limit that exists on certain Arduino platform, including the Arduino Uno series.

Installation

At this point, this library is not yet available through the Arduino Library manager. To install, following the following steps:

  1. Download the latest ZIP file from the Github release page
  2. Start the Arduino IDE
  3. Select Sketch > Include Library > Add .ZIP Library...
  4. A dialog will open; here, select the file you selected in step 1

Usage

Serial Monitor (Text output)

  1. Open the example from File > Examples > arduino-sps > sps30.
  2. Open the serial monitor from the Tools menu
  3. Press the "Upload" button to compile and upload the sketch

If you check the serial monitor window, you should see something like this:

Serial monitor

Serial Plotter (Graphical output)

  1. Open the example from File > Examples > arduino-sps > sps30.
  2. Open the serial plotter from the Tools menu (if you have the serial monitor open, you'll need to close it first)
  3. Uncomment line 8 of the sample program; it should now read #define PLOTTER_FORMAT
  4. Press the "Upload" button to compile and upload the sketch

If you check the serial plotter window, you should see something like this:

Serial monitor