久久久久国产综合av天堂_强插女教师av在线_久久精品国产99国产精偷_性欧美大战久久久久久久

首頁傳感器 › 夏普粉塵傳感器GP2Y1010AU0F參考程序

夏普粉塵傳感器GP2Y1010AU0F參考程序

簡介:

PM2.5粉塵傳感器GP2Y1010AU0F空氣質(zhì)量PM2.5檢測是一款光學(xué)空氣質(zhì)量傳感器,其內(nèi)部對角安放著紅外線發(fā)光二極管和光電晶體管,使得其能夠探測到空氣中塵埃反射光,即使非常細(xì)小的如煙草煙霧顆粒也能夠被檢測到,通常在空氣凈化系統(tǒng)中應(yīng)用。可測量0.8微米以上的微笑粒子,感知煙草產(chǎn)生的咽氣和花粉,房屋粉塵等.體積小,重量輕,便于安裝,廣泛應(yīng)用于空氣清新機(jī),換氣空調(diào),換氣扇等產(chǎn)品
該傳感器具有非常低的電流消耗(大20mA,典型值11mA),可使用高達(dá)7VDC。該傳感器輸出為模擬電壓,其值與粉塵濃度成正比。

可測量0.8微米以上的微笑粒子,感知煙草產(chǎn)生的咽氣和花粉,房屋粉塵等.體積小,重量輕,便于安裝,廣泛應(yīng)用于空氣清新機(jī),換氣空調(diào),換氣扇等產(chǎn)品.

靈敏度:

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);
}

轉(zhuǎn)載請注明出處:傳感器應(yīng)用_儀表儀器應(yīng)用_電子元器件產(chǎn)品 – 工采資訊 http://www.iohhome.com/2991.html

上一篇:

下一篇:

×
用戶注冊

 

登錄 忘記密碼?
×
用戶登錄

 

注冊 忘記密碼?