IDUINO for maker’s life User Manual for DIY GP2Y1010AU0F SHARP Dust Sensor Compatible with Arduino(SE035) www.openplatform.
IDUINO for maker’s life Description: Sharp’s GP2Y1010AU0F is an optical air quality sensor, designed to sense dust particles. An infrared emitting diode and a phototransistor are diagonally arranged into this device, to allow it to detect the reflected light of dust in air. It is especially effective in detecting very fine particles like cigarette smoke, and is commonly used in air purifier systems. The sensor has a very low current consumption (20mA max, 11mA typical), and can be powered with up to 7VDC.
IDUINO for maker’s life Tutorial In this exercise with the use of our Arduino Yún, we learn to build our detector air quality. To do this we will use the capabilities of the GP2Y1010AU0F. It's a dust sensor by optical sensing system with an infrared emitting diode (IRED) and a phototransistor that are diagonally arranged into this device. It detects the reflected light of dust in air. Especially, it is effective to detect very fine particle like the cigarette smoke.
IDUINO for maker’s life Be sure to follow the connections shown in the fritzing circuit and in the next table : Sharp pin 1 (V-LED) Sharp pin 2 (LED-GND) Sharp pin 3 (LED) Sharp pin 4 (S-GND) Sharp pin 5 (Vo) Sharp pin 6 (Vcc) => 5V (connected to 150ohm resistor,220 uF capacitor) => Arduino GND pin => Arduino pin 2 => Arduino GND pin => Arduino A0 pin => 5V *****Code begin***** /* Detector air quality with Arduino Yun and ** Optical Dust Sensor (GP2Y1010AU0F) ** */ int dustPin = 0; // dust sensor - Ard
IDUINO for maker’s life float voMeasured = 0; float calcVoltage = 0; float dustDensity = 0; void setup(){ Serial1.begin(230400); pinMode(ledP,OUTPUT); } void loop(){ digitalWrite(ledP,LOW); // power on the LED delayMicroseconds(280); voMeasured = analogRead(dustPin); // read the dust value delayMicroseconds(40); digitalWrite(ledP,HIGH); // turn the LED off delayMicroseconds(9680); // 0 - 5V mapped to 0 - 1023 integer values // recover voltage calcVoltage = voMeasured * (5.0 / 1024.0); dustDensity = 0.
IDUINO for maker’s life Serial1.print(calcVoltage); Serial1.print(" - Dust Density: "); Serial1.println(dustDensity); // mg/m3 delay(1000); } *****Code End***** Reference: https://www.sparkfun.com/products/9689 https://www.sparkfun.com/datasheets/Sensors/gp2y1010au_e.pdf www.openplatform.