Product Specifications

General
Type: Sensor
Architecture: For Arduino
Output Signal: Digital (Negative Logic and PWM)
Detectable Range of Cencentration: 0 ~ 280000 pcs/litre (0 ~ 8000 pcs/0.01cf CF = 283 ml)
Detectable particle diameter: > 1µm
Operating Humidity Range: 95% relative humidity or less
Operating Temperature: 0°C ~ 45°C
Stabilisation time: 1 minute after powered (3 minutes for the first time)
Power
Operating Voltage: +4.75 ~ +5.75 volts
Operating current: 90mA
Output Signal Voltage: High: > +4 volts – +4.5 volts (For newer models);
Low: > 0.7 volts
Weight and Dimensions
Weight: 25g
Wire Length: 21 cm
Size (L × W × H): 58.7 cm × 46 cm × 19 cm

Pinout

Black Wire: GND (-)
Red Wire: VCC (+)
Yellow Wire: Signal

Product Review

This one-of-a-kind sensor provides an excellent alternative to many sensors involving air quality detection, because it includes functions and attributes such as:


Sample code

Arduino Grove - Dust Sensor (PPD42NS) Sample Code

    int pin = 8;
    unsigned long duration;
    unsigned long starttime;
    unsigned long sampletime_ms = 2000;//sampe 30s ;
    unsigned long lowpulseoccupancy = 0;
    float ratio = 0;
    float concentration = 0;
    void setup() {
        Serial.begin(9600);
        pinMode(8,INPUT);
        starttime = millis();//get the current time;
    }
    void loop() {
        duration = pulseIn(pin, LOW);
        lowpulseoccupancy = lowpulseoccupancy+duration;
        if ((millis()-starttime) >= sampletime_ms)//if the sampel time = = 30s
        {
            ratio = lowpulseoccupancy/(sampletime_ms*10.0);  // Integer percentage 0=>100
            concentration = 1.1*pow(ratio,3)-3.8*pow(ratio,2)+520*ratio+0.62; // using spec sheet curve
            Serial.print("Concentration = ");
            Serial.print(concentration);
            Serial.println(" pcs/0.01cf");
            Serial.println("\n");
            lowpulseoccupancy = 0;
            starttime = millis();
        }
    }
		

Seeedstudio Product Page

Check out the product here: ​https://www.seeedstudio.com/Grove-Dust-Sensor%EF%BC%88PPD42NS%EF%BC%89-p-1050.html



Enjoy! Feel free to contact us for any inquiries!