SPS30 Particulate sensor~
This feature is not included in precompiled binaries
When compiling your build add the following to user_config_override.h
:
#define USE_SPS30 // [I2cDriver30] Enable Sensiron SPS30 particle sensor (I2C address 0x69) (+1.7 code)
Device information~
The Sensirion SPS30 is a laser based, fan driven, MCERTS-certified particulate matter (PM) sensor with a I²C and UART interface (datasheet). The Tasmota driver implements the I²C interface.
Mass Concentration Measurements~
The device exposes the following data:
- Volumetric concentration (μg/m³):
- PM1.0, PM2.5, PM4 and PM10
- Number concentration (binning, #/cm³):
- PM0.5, PM1.0, PM2.5, PM4 and PM10
- Typical particle size (μm)
Sampling~
The module has a minimum sampling interval of 1 second in continuous mode (default).
Automatic Cleaning~
It implements an automatic fan cleaning routine, which sets the built-in fan speed to maximum for 10 seconds to clear out the detector chamber and accumulated dust on the fan blades. The default cleaning interval is 1 week of interrupted use, and resetting the sensor power also resets the built-in time counter for this. The current implementation does not support disabling this or setting a custom interval.
Configuration~
The sensor has a 5 pin JST ZHR type connector, with a 1.5mm pitch (connector, datasheet). Pin5 (SEL/Interface Select) must be shorted to Pin4/Ground to enable the I²C interface.
The sensor and fan components require 5V VDD, so a 5V capable board (e.g. Wemos D1) or external power must be supplied.
Finding appropriate connectors/cables for this module are somewhat cumbersome, SparkFun sells them with handy breadboard friendly breakout cables.
Pin | SPS30 | ESP | Comment |
---|---|---|---|
1 | VDD | + | 5V ± 10% |
2 | SDA | GPIOx | 5V and 3.3V compatible |
3 | SCL | GPIOy | 5V and 3.3V compatible |
4 | SEL | - | Pull to GRD to enable I²C |
5 | GND | - |
Tasmota Settings~
In the Configuration -> Configure Module page assign:
- GPIOx to
I2C SDA
- GPIOy to
I2C SCL
After saving the board will reboot and the particulate measurements will be displayed on the main page.