夏普 GP2Y1010AU0F_粉尘传感器参考程序简介: Sharp's GP2Y1010AU0F 是一款光学空气质量传感器,设计用来感应空气中的尘埃粒子,其内部对角安放着红外线发光二极管和光电晶体管,使得其能够探测到空气中尘埃反射光,即使非常细小的如烟草烟雾颗粒也能够被检测到,通常在空气净化系统中应用
该传感器具有非常低的电流消耗(最大 20mA,典型值 11mA),可使用高达 7VDC
该传感器输出为模拟电压,其值与粉尘浓度成正比
8 微米以上的微笑粒子,感知烟草产生的咽气和花粉,房屋粉尘等
体积小,重量轻,便于安装,广泛应用于空气清新机,换气空调,换气扇等产品
1mg/m3尺寸:46
0 × 30
0 × 17
6 mm) Do not miss the 150ohm resistor and a 220uF capacitor Sensor PinArduino Pin1Vled–>5V (150ohm resistor)2LED-GND–>GND3LED–>Digital pin 24S-GND–>GND5Vo–>Analog pin 06Vcc–>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