夏普GP2Y1010AU0F_粉尘传感器参考程序.doc
4页1、夏普GP2Y1010AU0F_粉尘传感器参考程序简介:Sharps GP2Y1010AU0F 是一款光学空气质量传感器,设计用来感应空气中的尘埃粒子,其内部对角安放着红外线发光二极管和光电晶体管,使得其能够探测到空气中尘埃反射光,即使非常细小的如烟草烟雾颗粒也能够被检测到,通常在空气净化系统中应用。该传感器具有非常低的电流消耗(最大20mA,典型值11mA),可使用高达7VDC。该传感器输出为模拟电压,其值与粉尘浓度成正比。可测量0.8微米以上的微笑粒子,感知烟草产生的咽气和花粉,房屋粉尘等.体积小,重量轻,便于安装,广泛应用于空气清新机,换气空调,换气扇等产品.灵敏度:0.5V/0.1mg/m3尺寸:46.0 30.0 17.6 mm)Do not miss the 150ohm resistor and a 220uF capacitorSensor PinArduino Pin1Vled5V (150ohm resistor)2LED-GNDGND3LEDDigital pin 24S-GNDGND5VoAnalog pin 06Vcc5VThe LED pin has to b
2、e 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 sensordigitalWrite(ledPower,LOW); / power on the LEDdelayMicroseconds(delayTime);dustVal=analogRead(dustPin); / read the dust value via pin 5 on the sensordelayMicroseconds(delayTime2);digitalWrite(ledPower,HIGH); / turn the LED offdelayMicroseconds(offTime);delay(3000);Serial.println(dustVal);
《夏普GP2Y1010AU0F_粉尘传感器参考程序.doc》由会员飞****9分享,可在线阅读,更多相关《夏普GP2Y1010AU0F_粉尘传感器参考程序.doc》请在金锄头文库上搜索。
2019年抚顺市第六中学高考生物简单题专项训练(含解析)
2019年教科版八年级物理上册全册学案
2019年宝鸡晨光中学高考生物简单题专项训练(含解析)
2019年象山港书院高考生物简单题专项训练(含解析)
2019年一级建造师工程经济考点总结
2019年小学教育教学工作总结4篇
2019年浙江省金华市中考数学试卷(解析版)
2019年布拖县中学高考生物简单题专项训练(含解析)
2010年卫生系列中级职称内科学风湿及结缔组织病习题及参考答案
2019年信阳晨光中学高考生物简单题专项训练(含解析)
2018年一级建造师市政实务必考点
2019年和县第三中学高考生物简单题专项训练(含解析)
2018高考化学微题型微考点训练1--20
2019年大理市大理第二中学高考生物简单题专项训练(含解析)
2019年三中高考生物简单题专项训练(含解析)
2018检验检测机构质量手册
2019年衡南县第三中学高考生物简单题专项训练(含解析)
2019年宏华中学高考生物简单题专项训练(含解析)
2018年银行从业资格考试个人贷款考点重点难点总结
2018全省行政执法资格模拟考试试题
2023-11-22 28页
2023-11-22 23页
2023-11-20 71页
2022-09-02 50页
2022-09-02 54页
2022-09-02 50页
2022-09-02 70页
2022-08-22 17页
2022-08-22 9页
2022-08-22 11页