The Nova PM Sensor SDS011 by Nova Fitness is a high-precision air quality detection sensor module designed to measure the concentration of particulate matter (PM) in the air. It can differentiate between fine particles with a diameter of 2.5 micrometers (PM2.5) and 10 micrometers (PM10), making it an essential tool for environmental monitoring, air purification systems, and indoor air quality assessment.
Pin Number | Name | Description |
---|---|---|
1 | 1-µ | Micro USB power supply (5V) |
2 | 2-µ | Micro USB data - |
3 | 3-µ | Micro USB data + |
4 | 4-µ | NC (Not Connected) |
5 | 5-µ | NC (Not Connected) |
6 | 6-µ | NC (Not Connected) |
7 | 7-µ | NC (Not Connected) |
Note: The SDS011 sensor also includes a 4-pin connector with the following pinout:
Pin Number | Name | Description |
---|---|---|
1 | 5V | Power supply (5V) |
2 | TX | Transmit pin (sends data to microcontroller) |
3 | RX | Receive pin (receives data from microcontroller) |
4 | GND | Ground |
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
Serial.begin(9600);
mySerial.begin(9600);
}
void loop() {
if (mySerial.available() > 0) {
// Read the data from the sensor
int pm25 = 0, pm10 = 0;
if (readPMData(&pm25, &pm10)) {
Serial.print("PM2.5: ");
Serial.print(pm25);
Serial.print(" µg/m³, PM10: ");
Serial.print(pm10);
Serial.println(" µg/m³");
}
}
}
bool readPMData(int *pm25, int *pm10) {
byte dataBuf[10];
if (mySerial.readBytes(dataBuf, 10) == 10) {
// Check data packet
if (dataBuf[0] == 0xAA && dataBuf[1] == 0xC0 && dataBuf[9] == 0xAB) {
*pm25 = (dataBuf[3] << 8) + dataBuf[2];
*pm10 = (dataBuf[5] << 8) + dataBuf[4];
return true;
}
}
return false;
}
Note: The example code above uses a SoftwareSerial library to create a serial communication channel on pins 10 and 11 of the Arduino UNO. The readPMData
function reads the data from the sensor and outputs the PM2.5 and PM10 values.
Q: How often should the sensor be calibrated? A: The SDS011 sensor comes factory-calibrated. However, if you notice significant deviations in readings, you may need to recalibrate the sensor using a known reference.
Q: Can the sensor be used outdoors? A: Yes, but it should be protected from direct sunlight, rain, and extreme humidity to prevent damage.
Q: What is the lifespan of the sensor? A: The SDS011 sensor has a lifespan of approximately 8000 hours of continuous operation, after which its accuracy may degrade.
For further assistance, please refer to the manufacturer's official documentation or contact their technical support team.