HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to build a DIY air quality sensor

33,589 views October 29, 2019 5:25

Watch on YouTube
ChannelGrist

Description from the creator

I built a DIY air pollution sensor from a Raspberry Pi. Here's how you can, too!

Also, check out our video on how air sensor tech is changing how we see pollution in cities here:
youtube.com/watch?v=s_Rf7PHjdxI

Shopping list:
Raspberry Pi Zero WH (cuts out the hammering step)
adafruit.com/product/3708

Pimoroni Enviro+ pHat
shop.pimoroni.com/products/enviro-plus

PMS5003 Particulate Matter Sensor
shop.pimoroni.com/products/pms5003-particulate-…

Accessories:
pHat standoff screws are helpful for supporting your pHat, so it doesn't bend the pins:
adafruit.com/product/2337?gclid=EAIaIQobChMIjrn…

If you're not buying the pre-soldered pin connector, a solderless pin connector and hammer jig is an easy alternative. This is what was used in the video:
adafruit.com/product/3413?gclid=EAIaIQobChMIhsa…

And if you're just getting started with Raspberry Pi, you'll need some basic accessories to get set up. This can vary, based on how much you want to spend and personal preferences. Here's a helpful guide on things you'll need to get started:
projects.raspberrypi.org/en/projects/raspberry-…


Instructions:
I used Pimoroni's instruction manual for this build. You can find that here:
learn.pimoroni.com/tutorial/sandyj/getting-star…

And if you have any questions, you could check out Pimoroni's help forum:
forums.pimoroni.com/c/support

And, as promised, here's what I typed in the terminal:

Installing the Python library from Pimoroni:
Once you've got your sensor put together, boot it up and type this into the terminal:
"git clone github.com/pimoroni/enviroplus-python
cd enviroplus-python
sudo ./install.sh"

Running the Python script:
Once everything's downloaded, you'll want to run the "All in One" example in the Python library. You'll do that by typing the address of that file into the terminal. For me, that was:
"/home/pi/enviroplus-python/examples/all-in-one.py"
But this might vary based on where you store your python library file.

Once the program is running, the sensor data should display on the tiny LCD screen on the pHat. You can tap the little light sensor and it will toggle through all the different sensor outputs until you get to particulate matter.

Thanks for watching!
-Jesse

#diy #airsensor #howto #airpollution #raspberrypi #airquality #smoke #airquality #AQI

About this tutorial

Grist published this 5:25 video tutorial on October 29, 2019. It has been watched 33,589 times on YouTube.

Channel
Grist
Duration
5:25
Published
October 29, 2019
Views
33,589
Likes
431

Share

This tutorial in other languages