Skip to content
SPS-30: Particulate Matter Air Quality

icon picker
SPS-30 Setup Guide

Equipment Needed

SENSIRON SPS30
Arduino Nano
Cables/Connectors
Arduino IDE
The SPS30 module can be connected in either UART or I2C communication mode.
These modes can be selected using the SEL pin, SEL > GND = I2C while SEL > Floating (Not connected) = UART
Pinout
Wiring/Connections
Arduino
Column 2
GND
GND
GND
SEL
A5
SCL
A4
SDA
5V
VDD
There are no rows in this table
image.png

Code & Test

Before you can program the Arduino, you will need to get the "sensirion-sps" Library, to do so first open the Library Manager as shown below,

In the Library Manager search for "sensirion-sps" and install the latest version.
image.png
image.png
image.png
image.png

Download the attached SPS30_Example.ino for the code used in the project.
[download link]

*Note that the BAUD rate is set to "115200" not the standard "9600" see the attached BAUD select image for how to change this in the Arduino IDE.

Once successfully programmed the Arduino will be writing to the serial communication port every 15 seconds with the sensor reading, in the format shown above, this is all the 10 available outputs.

Sources



Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.