How to Interface With Optical Dust Sensor

94,621

78

26

Introduction: How to Interface With Optical Dust Sensor

This tutorial is going to teach you basics on using Optical Dust Sensor.

Step 1: Introduction

Description:

Sharp's GP2Y1010AU0F is an optical air quality sensor, or may also known as optical dust sensor, is 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.

To interface with this sensor, you need to connect to its 6-pin, 1.5mm pitch connector by using mating connector.

Specifications:

  • Low Current Consumption (MAX: 20mA)
  • Typical Operating Voltage: 4.5V to 5.5V (MAX: 7V)
  • The presence of dust can be detected by the photometry of only one pulse
  • Enable to distinguish smoke from house dust
  • Dimensions: 1.81 x 1.18 x 0.69'' (46.0 x 30.0 x 17.6mm)

Step 2: Pin Definition

Step 3: Sample Hardware Installation

Step 4: Sample Schematic

The above schematic is applicable to both Arduino Uno and Arduino Fio.

*For Arduino Uno, connect Pin Vo of GP2Y1010AU0F to Pin A5 of Arduino Uno. And also, Pin V-LED and Pin Vcc of GP2Y1010AU0F can be connected to either 5V or 3.3V of Arduino Uno.

Step 5: Sample Source Code

To get the result, please download the sample source code attached below and upload it into Arduino.

*Kindly download the datasheet of Optical Dust Sensor for your own reference and for understanding the coding written better.

Step 6: Ways to Open "Serial Monitor"

Step 7: Result (1)

The reading shown on Serial Monitor when the optical dust sensor is left in a room. The measurement of dust density obtained shows that the air only contains a low amount of dust.

Step 8: Result (2)

The reading shown on Serial Monitor when a pen is inserted into the dust detector area. The measurement of dust density obtained shows that there is a high amount of dust in the air.

Step 9: Video

This video shows how optical dust sensor works.

6 People Made This Project!

Recommendations

  • For the Home Contest

    For the Home Contest
  • Big and Small Contest

    Big and Small Contest
  • Game Design: Student Design Challenge

    Game Design: Student Design Challenge

26 Comments

0
MeliS
MeliS

Question 11 months ago

Hello! I used this circuit diagram in my project and it worked well. I am currently working on creating a wiring diagram for my project in fritzing, for which I would use this, among other things. Would you be so kind as to publish the fritzing file? I would be very grateful. Thank you, Melinda

0
n.alrteab
n.alrteab

Question 1 year ago

I wanted to ask the values of dust density what is the unit?
also i did every thing as given in this page but still it gives me the dust density 0.53 without anything in the detection area!

1
sacpan71
sacpan71

2 years ago

Any one can help me GP2Y1010AU0F
I have this sensor
I want to use this sensor without arduino or without any other programable card

I WANT TO SIMPLY USE ANALOG OUTPUT OF THE SENSOR ACCORDING TO PM2. 5 CONCENTRATION IN AIR
don't want to connect with arduino
It is possible?

0
Muhammad Hanif
Muhammad Hanif

Reply 1 year ago

I think its possible since the output is linearish
Just hook up with the classic op amp lm358 with non inverting amplifier.
Then hook the output with cheapo voltmeter
Bam done.

1
atzounis
atzounis

2 years ago

Any ideas why I am getting this? I am pretty sure I have soldered the components and the cables correctly. The sensor is on 3.3V and A0/0 ports on NodeMCU.

Raw Signal Value (0-1023):
1024.00
Voltage:
5.00
Dust Density:
0.75
Thank you!

0
gsm8
gsm8

3 years ago

Very Nice presentation

0
Al007Vishwa
Al007Vishwa

Tip 3 years ago

5V shall be given . I doubt that there is some problem (I hope it is this 5V one).I was getting improper values .

0
diegossal
diegossal

Question 3 years ago

how yo get the right timimg? cause datasheet says that you need a pulse of 0.32 ms and start to read the value at 0.28ms, that left you 40us but analogread needs at least 100us to read a value.

0
Anup123
Anup123

4 years ago

whats the unit of output data you are showing??

0
AndresR145
AndresR145

4 years ago

Nice project and you made a really good and understandable documentation. Well done!

0
DharaneshsaiC
DharaneshsaiC

Question 4 years ago on Step 3

can we interface optical dust sensor ,ardiuno and gsm module to get amount dust present in air as an sms

0
WongS8
WongS8

Answer 4 years ago

yes

0
ShreyaS59
ShreyaS59

Question 4 years ago on Step 9

I tried simulating the sensor using CNY 70 in Proteus, as there is no module available for it in Proteus .Please check if there is any fault in the, as the analog reading is not changing with the change in sensor input .It shows a zero value .

I used your code.

dust sensor.png
0
trickybilly.
trickybilly.

Question 5 years ago

Question: I have made this project thank you. May I copy your instructions and code to an USB drive where I keep all information regarding my Arduino sensors/modules/projects? It is hard to remember which website has which project so I like to save everything on a USB.

0
namaa
namaa

5 years ago on Step 3

What is the principle of the work of the dust sensor

0
namaa
namaa

5 years ago on Step 3

What is the function of capacitor and resistors

0
SundarP3
SundarP3

5 years ago

Hi, Please help to do this project i have zero knowledge in this project but any how i need to do this project i bought dust sensor arduino uno and all but i could not able to do. So please request to help me to finish this. my mobile no 9944356300 if possible give your no i will call u and clear my doubt. kindly help me by sundar

0
TizanaMenYo
TizanaMenYo

5 years ago

i don't know where did you get the equation to calculate the dust density ?
(0.17*Voltage)-0.1 ??

i tried the equation with linear part of the curve in the datasheet it didn't give me the correct dust density ? did you change the unit ?