商品評價 :
分享 :
本商品適用活動
    • 折價券
    • $77全站免運-超取常溫-迎新購物節 (01/09-01/15)
    • 折價券
    • $77全站免運-超取常溫-週末限定 (01/09-01/11)
    • 折價券
    • $999折50-迎新購物節 (01/09-01/15)
    • 折價券
    • $1999折100-迎新購物節 (01/09-01/15)

►288◄PM2.5感測器 粉塵感測器 灰塵感測器 GP2Y1014AU0F 日本夏普 替代 GP2Y1010AU0F

商品編號:P7349910550967 原始貨號:288
$ 150
預計出貨天數2
數量
  • 付款方式:
    超商取貨付款
  • 運送方式:
    常溫7-ELEVEN店到店取貨付款

商品特色

檢測原理 其原理如下圖,感測器中心有個洞可以讓空氣自由流過,定向發射LED光,通過檢測經過空氣中灰塵折射過後的光線來判斷灰塵的含量。 使用測試代碼: 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); } 測試得到的資料和空氣品質對照: 3000 + = 很差 1050-3000 = 差 300-1050 = 一般 150-300 = 好 75-150 = 很好 0-75 = 非常好 靈敏度電流 - DC 正向 (If)電壓 - 輸出電壓 - 電源安裝類型工作溫度 0.5V/(0.1mg/m3) 10mA 3.4V 4.5 V ~ 5.5 V 底座安裝 -10°C ~ 65°C 該傳感器具有非常低的電流消耗(最大20mA,11毫安培典型值),最高7VDC供電。 感測器的輸出是一個類比電壓成正比的測量粉塵密度,具有0.5V/0.1mg/m3的靈敏度。 Sensor Pin Arduino Pin 1 Vled –> 5V(150歐電阻) 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. Arduino 原始程式碼 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); }
敲敲話
敲敲話