首页传感器 › 夏普粉尘传感器GP2Y1010AU0F参考程序

夏普粉尘传感器GP2Y1010AU0F参考程序

简介:

PM2.5粉尘传感器GP2Y1010AU0F空气质量PM2.5检测是一款光学空气质量传感器,其内部对角安放着红外线发光二极管和光电晶体管,使得其能够探测到空气中尘埃反射光,即使非常细小的如烟草烟雾颗粒也能够被检测到,通常在空气净化系统中应用。可测量0.8微米以上的微笑粒子,感知烟草产生的咽气和花粉,房屋粉尘等.体积小,重量轻,便于安装,广泛应用于空气清新机,换气空调,换气扇等产品
该传感器具有非常低的电流消耗(大20mA,典型值11mA),可使用高达7VDC。该传感器输出为模拟电压,其值与粉尘浓度成正比。

可测量0.8微米以上的微笑粒子,感知烟草产生的咽气和花粉,房屋粉尘等.体积小,重量轻,便于安装,广泛应用于空气清新机,换气空调,换气扇等产品.

灵敏度:

0.5V/0.1mg/m3

尺寸:

(46.0 × 30.0 × 17.6 mm)

1

 

2

Do not miss the 150ohm resistor and a 220uF capacitor

3

Sensor Pin Arduino Pin
1 Vled –> 5V (150ohm resistor)
2 LED-GND –> GND
3 LED –> Digital pin 2
4 S-GND –> GND
5 Vo –> Analog pin 0
6 Vcc –> 5V

 

The LED pin has to be modulated with a cycle of 1ms as discussed in the datasheet.
The LED seems to use a PNP transistor so to power on, the LED pin must actually recieve a lower voltage.

例程:int dustPin=0;
int dustVal=0;
int ledPower=2;
int delayTime=280;
int delayTime2=40;
float offTime=9680;
void setup(){
Serial.begin(9600);
pinMode(ledPower,OUTPUT);
pinMode(4, OUTPUT);
}
void loop(){
// ledPower is any digital pin on the arduino connected to Pin 3 on the sensor
digitalWrite(ledPower,LOW); // power on the LED
delayMicroseconds(delayTime);
dustVal=analogRead(dustPin); // read the dust value via pin 5 on the sensor
delayMicroseconds(delayTime2);
digitalWrite(ledPower,HIGH); // turn the LED off
delayMicroseconds(offTime);
delay(3000);
Serial.println(dustVal);
}

转载请注明出处:传感器应用_仪表仪器应用_智能硬件产品 – 工采资讯 http://news.isweek.cn/2991.html

上一篇:

下一篇:

您必须启用javascript在这里看到验证码!

×
用户注册

 

登录 忘记密码?
×
用户登录

 

注册 忘记密码?