Skip to content

WhyKickAmooCow/arduino-sps

 
 

Repository files navigation

Sensirion SPS30 Particulate Sensor Library

SparkFun SPS30 Particulate Sensor

⚠️ Notice
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.

Repository Contents

  • /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.

Where to Buy

I got my one from FutureElectronics, however I needed to buy a ZH5-1.5mm cable separately, Sparkfun advertises a nice looking one included.

Sparkfun

FutureElectronics

Element14

Digi-Key

Mouser

Notice

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.

License Information

This library uses the MIT liscense.

About

An Arduino library for the SPS30 LASER particulate sensor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%