Detection principle:
There is a hole in the center of the sensor, which can let the air flow freely and emit LED light directionally. The content of dust can be judged by detecting the light refracted by the dust in the air.

Use test code:

int dustPin=0;

float dustVal=0;
 
int ledPower=2;
int delayTime=280;
int delayTime2=40;
float offTime=9680;
void setup(){
Serial.begin(9600);
pinMode(ledPower,OUTPUT);
pinMode(dustPin, INPUT);
}
 
void loop(){
// ledPower is any digital pin on the arduino connected to Pin 3 on the sensor
digitalWrite(ledPower,LOW); 
delayMicroseconds(delayTime);
dustVal=analogRead(dustPin); 
delayMicroseconds(delayTime2);
digitalWrite(ledPower,HIGH); 
delayMicroseconds(offTime);
 
delay(1000);
if (dustVal>36.455)
Serial.println((float(dustVal/1024)-0.0356)*120000*0.035);
}
 
The test data were compared with the air quality:
3000 + = very bad
1050-3000 = poor
300-1050 = General
150-300 = good
75-150 = good
0-75 = very good
 
Sensitivity current - DC Forward (If) voltage - output voltage - power installation type operating temperature
0.5V/(0.1mg/m3)
10mA
3.4V
4.5 V ~ 5.5 V
Base installation
-10 ° C ~ 65 ° C
The sensor has very low current consumption (up to 20mA, 11 Ma typical) and up to 7VDC power supply.
The output of the sensor is proportional to the analog voltage and has a sensitivity of 0.5v/0.1mg/m3.
 

Quantity: 1pcs

PushAuction