The Sharp Optical Dust Sensor (GP2Y1010AU0F) is especially effective in detecting very fine particles like cigarette smoke, and is commonly used in air purifier systems.
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.
The sensor has a very low current consumption (20mA max, 11mA typical), and can be powered with up to 7VDC. The output of the sensor is an analog voltage proportional to the measured dust density, with a sensitivity of 0.5V/0.1mg/m3.
For your convenience, ITEAD ship this sensor with a 6-pin, 1.5mm pitch mating connector and cable.
ledPower is any digital pin on the arduino connected to Pin 3 on the sensor
delay(1000);
if (dustVal>36.455)
Serial.println((float(dustVal/1024)-0.0356)*120000*0.035);
Test data and air quality control:
3000 + = very poor
1050-3000 = error
300-1050 = General
150-300 = good
75-150 = very good
0-75 = very good
measurePin = 0; Connect an analog port 0, that is, routine 1 dustPin
ledPower = 2; Connecting digital pins 2
Int samplingTime = 280; //LED turn on period of time was 280 μs
Int deltaTime = 40; //the whole pulse duration of 320 μs. Therefore, we needed to wait 40 μs
digitalWrite(ledPower,LOW); Open internal LED
delayMicroseconds(samplingTime); 280us waiting time after the opening LED
voMeasured = analogRead(measurePin); Read analog values
delayMicroseconds(deltaTime); 40us wait time
digitalWrite(ledPower,HIGH); Turn off LED
0 - 5V mapped to 0 - 1023 integer values
recover voltage
calcVoltage = voMeasured * (5.0 / 1024.0); Analog values into a voltage value
dustDensity = 0.17 * calcVoltage - 0.1; To output the voltage value to a dust density units
Serial.print("Raw Signal Value (0-1023): ");
Serial.print(voMeasured);
Serial.print(" - Voltage: ");
Serial.print(calcVoltage);
Serial.print(" - Dust Density: ");
Serial.println(dustDensity); Final concentration value, output units: mg/m³
Note: the above two of the wiring is the same as the code under test, you don't have to change, and then you can just burn to write code to test.
PIN definition:
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
LED pins must be adjusted to 1ms cycle, discussed in a data table.
LED appears to be PNP transistors to power on LED pins must accept a lower voltage.
Optical dust sensor (GP2Y1010AU0F) in the detection of very fine particles, such as cigarette smoke,Is particularly effective,
And is commonly used in air purification systems.
In the device,An infrared light emitting diode and a phototransistor, diagonally arranged to allow it to detectThe dust in the airThe reflected light.
The sensor has an extremely low current consumption (maximum 20mA,11 Ma typical), can carry up to 7VDCOf the sensor. Is an analog voltage output proportional to the measured concentration, sensitivity and 0.5V/0.1mg/m3.
Free 6pin DuPont line.
Use this text to share the information which you like!.
Recently viewed!