Arduino PM2.5 / PM10Ā PollutionĀ Sensor based on Sharp Optical Dust Sensor GP2Y1010AU0F Part #2
In previous Part #1 Iāve described basics of Sharp Optical Dust Sensor. Now it is time to connect it to Arduino and run the code, to read sensor data and convert it to useful format.
Iāve bought cheap and small Arduino Nano board, breadboard and bunch of wires because I donāt like to spend time with soldering. I am going to build prototype, and later create smaller solution with LCD panel, some buttons to change modes and batteries pack.Ā
Iāve got following solution, that could show some dust measurement results. Iāve spend a lot of time to proceed data, since that sensor produces analog signal of optical air measurement, and it should be converted to some useful units like milligrams per square meter.Ā
As I mentioned in previous Part #1 my goal is to measure PM2.5 & PM10 pollution. So 25 µg/m3 of PM2.5 is considered as 100% pollution value. And I want to know when level is more than 300% which is considered as unhealthy conditions and it is better to stay at home and not open the windows.
Since PM2.5 is more dangerous, I would like to be able to measure PM2.5 & PM10 separately. But unfortunatelyĀ GP2Y1010AU0F is unable to distinguish between different particles and shows general pollution level.
So, lets review how to connectĀ Sharp Optical Dust Sensor to Arduino Nano board and show data on computer, connected to Arduino Nano via USB cable. If you have some LCD display then we also could use that to show data and have mobile solution.
Sharp Optical Dust Sensor GP2Y1010AU0FĀ
WaveshareĀ Dust Sensor connection board
16x2 LCD Display (optional)
Fig 1 - Arduino Nano board
Fig 2 - Waveshare Ā Dust Sensor boardĀ with connectedĀ GP2Y1010AU0F
Waveshare Sensor Board has 4 pin connector and is very easy to connect it to Arduino.Ā
Pin 1 VCC is connected to Arduino 5V pin.Ā
Pin 2 GND is connected to any Arduino ground pin.
Pin 3 AOUT (Analog Output) is connected to Arduino A0 pin.
Pin4 ILED (Infrared LED) is connected to Arduino D7 pin
Whole system is powered by mini USB connector that is located on Arduino Nano board.Ā Waveshare Ā Dust Sensor boardĀ has red LED, that lights if power is connected to VCC.
In next Part #3 we will review Arduino program that is designed to read analog signals from Arduino A0 port.
Later we will convert analog data to pollution levels based on US and Europe standards.
Open this chart as large image in another post...
Go to next Part #3: Ā Ā Arduino PM2.5 Sensor based on Sharp Optical Dust Sensor GP2Y1010AU0F