Ligne 151 : | Ligne 151 : | ||
[[Catégorie:technique]] | [[Catégorie:technique]] | ||
[[Catégorie:électrokids]] | [[Catégorie:électrokids]] | ||
+ | [[Catégorie:traduire]] | ||
+ | [[Catégorie:grove]] |
Sommaire |
This Dust Sensor measures the Particulate Matter level in air by counting the Lo Pulse Occupancy time(LPO time) in given time unit. LPO time is in proportion to PM concentration. This sensor can provide you pretty reliable data for your PM2.5 project or air purifier system because it's still responsive to particulates whose diameter is 1um.
Note: New version updates output Hi Voltage from Approx. over 4.0V change to Approx over 4.5V.
Items | Min | Norm | Max | Unit | |
---|---|---|---|---|---|
VCC | 4.75 | - | 5.25 | V | |
Standby Current Supply | - | 90 | - | mA | |
Detectable range of concentration | - | 0~28,000 | - | pcs/liter | |
Operating Temperature Range | 0 | - | 45 | °C | |
Output Method | Negative Logic, Digital output,Hi over 4.0V(Rev.2) Lo: under 0.7V | ||||
Detecting the particle diameter | >1 um | ||||
Dimensions | 59(W) × 45(H) × 22(D) [mm] | ||||
Humidity Range | 95%rh or less |
Here is a demo to show you how to obtain PM concentration data from this Grove - Dust Sensor.
1. Plug the dust sensor into digital port D8 on the Grove - Base Shield. It can only be D8, because the operation of this sensor involves sampling, a function only can be achieved by D8, the capture input pin of Atmage328P, on Arduino/Seeeduino.
2. Copy and paste the demo code below to a new Arduino sketch.
/* Grove - Dust Sensor Demo v1.0 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 JST Pin 1 (Black Wire) => Arduino GND JST Pin 3 (Red wire) => Arduino 5VDC JST Pin 4 (Yellow wire) => Arduino Digital Pin 8 */ int pin = 8; unsigned long duration; unsigned long starttime; unsigned long sampletime_ms = 30000;//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(lowpulseoccupancy); Serial.print(","); Serial.print(ratio); Serial.print(","); Serial.println(concentration); lowpulseoccupancy = 0; starttime = millis(); } }
In this program, the seeeduino samples the total duration of "logic low" in 30s, and this duration illustrates the dust density of environment. Open serial monitor, we can read air quality's value detected by sensor from pc serial port.
The result above consists of three parts: lowpulseoccupancy, ratio and concentration.
"lowpulseoccupancy" represents the Lo Pulse Occupancy Time(LPO Time) detected in given 30s. Its unit is microsecond.
"ratio" reflects on which level LPO Time takes up the whole sample time.
"concentration" is a figure that has physical meaning. It's calculated from the characteristic graph below by using the LPO time.
Grove_-_Dust_sensor datasheet
Fichier:Grove dust sensor demo code.zip
Example of uploading data from dust sensor to Cosm.
If you have questions or other better design ideas, you can go to our forum or wish to discuss.
Cette page est la traduction de celle-ci : http://www.seeedstudio.com/wiki/Grove_-_Dust_sensor
Traducteurs : machine et bidule - 2013 dans le cadre de Master 2 rédacteur traducteur 2013
© Graphisme : Les Petits Débrouillards Grand Ouest (Patrice Guinche - Jessica Romero) | Développement web : Libre Informatique