While this library should still work, you should probably use the official library from the manufacturer available here. |
An Arduino library for the SPS30 particulate sensor from Sensirion. The SPS30 is a high quality Laser based particulate sensor capable of detecting particles between 0.3μm and 10μm. To maintian performance, the SPS30 has the ability to clean itself using the built in fan, there are commands to manually start this process as well as to set the interval at which it automatically starts the process.
This library makes reading the particulate matter concentration (μg/m³, and #/m³) easy. The pinouts are described in datasheet from Sensirion, the required configuration to use this library is:
Pin | Use |
---|---|
1 | 5v |
2 | SDA |
3 | SCL |
4 | GND |
5 | GND |
Note: The SPS30 has an automatic self-cleaning routine. Sensirion recommends at most 7 days of use between cleanings.
- /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
- /src - Source files for the library (.cpp, .h).
- library.properties - General library properties for the Arduino package manager.
I got my one from FutureElectronics, however I needed to buy a ZH5-1.5mm cable separately, Sparkfun advertises a nice looking one included.
This library is a derivative of the excellent Sparkfun SCD30 Library. It has been modified to work with the SPS30 but retains much of the original work. Thank you to the people at Sparkfun for open sourcing your library.
This library uses the MIT liscense.