or .


Check our facebook page for updates and special offers

DIY Air Quality Meter & Emissions Tester

This little project shows how a simple hand held meter can be made for testing for air pollutants such as smoke and dust. It is based on the Sharp GP2Y1010AU0F sensor which measures light reflected from airborne particulates passing through the sensor. It is very similar in operation to the popular GP2Y0A21YK0F from Sharp which is used for measuring distance using reflected infrared light.

This project came about as we were looking for a simple way of measuring car exhaust emissions. Searching online for other DIY Car Emission Testers did not bring up much, so we decided to create this device and share it here. There is lots of scope for improvement on this project, even in just some more advanced code for more functionality.

 

What's Inside?

Inside the box is the GP2Y1010AU0F sensor, a small fan, and our PDI-1 which is a simple Arduino based controller with an integrated LCD screen. The code provided should work on any compatible Arduino device such as a Nano, or Arduino Pro Mini. The advantage of the PDI-1 is simply that it already has a display, speaker, buttons, and a rotary encoder built in.

The outer enclosure is made from laser cut acrylic. If you have acress to a laser, you cam make use of the box design file provided. You might want to tweak the design a little as it did not leave much space inside for a battery. The 9V PP3 battery we used did not really give a good service life.

To get the reading, the microcontroller sends a pulse to the sensor. The sensor then takes a measurement and outputs an analogue voltage proportional to the amount of pollution detected. For a stable reading, we take multiple readings 10ms apart and then take an average value. The code then converts this value to be displayed on a graph.

Making use of the built in rotary encoder, it has been set up so that turning it adjust the scale on the graph allowing you to sort of zoom in for more precision on small changes. A single press of the encoder button will switch the graph from a bar chart, to a line graph.

Using The Meter to Test Car Emissions

For a good reading the sensor needs a continuous flow of air through it. To achieve this a small 40mm fan was mounted inside the box which blew air out of the underside. This created negative pressure in the box allowing the air from outside to be drawn in through the sensor. On the outside of the box a common 8mm barb pipe fitting was added which in part helps to prevent outside light interfering with the sensor and also allows for a silicone hose to be easily fitted. To take the measurements the free end of the silicone pipe was simply put into the car exhaust while observing the screen. In the image here you can see the difference in readings for clean air, the car idling, and when the engine is revved.

The reading given is currently just a number from the analogue input. To improve this project, the system could be calibrated to give an actual particle density value. However for our needs, a simple relative reading was all that was needed.

The code for this project is available here. If you have any suggestions for improvements or have your own examples, we would love to hear from you. Please post your comments using the form below.

Comments and questions for DIY Air Quality Meter

The information provided here can not be guaranteed as accurate or correct. Always check with an alternate source before following any suggestions made here.