Quickstart Guide-Dust Sensor Module
Quickstart Guide-Dust Sensor Module
Quickstart Guide
The Dust Sensor Module is an air quality sensor capable of detecting air quality by measuring dust
concentration in your surroundings. It is responsive to particles >1µm in diameter. Use this for detecting
PM 2.5 particles, environment monitoring or pollution monitoring.
PARTS LIST
For this quickstart guide, we will need the following materials. Click on the image for additional
information:
Arduino Uno Line Follower Sensor Board (1 channel) Male-Female Connecting Wires
1 piece 1 piece 1 piece
HARDWARE OVERVIEW
The Dust Sensor has 5 pins to connect to: GND, OUTPUT (P2), VDC, OUTPUT (P1) and Thresh. The Pinout
for the connector is shown in the table beside the image:
Pin Description
1 GND
2 Output (P2)
3 VDC
4 Output(P1)
5 Thresh
In using the table, pin labels are printed in the PCB, indicated by the numbers 1 and 5.
The table below describes the function of each pin in the module
INPUT Description
Adjust threshold voltage used in increasing or decreasing sensitivity when using
Thresh
P2 sensor.
WIRING CONNECTION
Connect the dust sensor to Arduino Uno according to the table. Pin label of dust sensor is printed on the
board:
ARDUINO CODE
Open Arduino IDE. Set the board to Arduino/Genuino Uno. Copy the code below to the programmer:
Interface to Shinyei Model PPD42NS Particle Sensor
Program by Christopher Nafis
Written April 2012
http://www.seeedstudio.com/depot/grove-dust-sensor-p-1050.html
http://www.sca-shinyei.com/pdf/PPD42NS.pdf
int pin = 8;
void setup() {
Serial.begin(9600);
pinMode(8,INPUT);
starttime = millis();
}
void loop() {
duration = pulseIn(pin, LOW);
lowpulseoccupancy = lowpulseoccupancy+duration;
OUTPUT
The Serial output displays 3 outputs: low pulse occupancy, ratio, and concentration. Low pulse
occupancy is the amount
SOURCES
http://52ebad10ee97eea25d5e-
d7d40819259e7d3022d9ad53e3694148.r84.cf3.rackcdn.com/UK_SHN_PPD42NJ_DS.pdf
https://www.mouser.com/ds/2/744/Seeed_101020012-1217636.pdf
http://takingspace.org/wp-content/uploads/ShinyeiPPD42NS_Deconstruction_TracyAllen.pdf
http://wiki.seeedstudio.com/Grove-Dust_Sensor/