Hi Everyone!
With recent wildfires in California, the outdoor air quality here is changing very quickly*. I created a simple Raspberry Pi station that allows you to watch the PM levels in real time in your browser. With the Raspberry Pi W, you can easily build the station under 30USD. It's obviously pretty barebones. The goal was for it to be quick to re-create, and for the code to be easily readable rather than to have a ton of features :)
(*When I started writing this, the PM 10 levels were at 55ug/m3. By the time I finished they were back at 15ug/m3)
HW SetupAll you need is:
- Raspberry Pi (pretty much any model)
- PMS7003 sensor
- 3 jumper wires
Connect the 5V, GND and TX pins of the sensor to 5V, GND, and RX pins of raspberry pi. Like in this picture:
git clone https://github.com/tomek-l/smokey.git
cd smokey
pip3 install -r requirements.txt
python3 main.py
You can now navigate your browser to your pi's IP address on port 8888.
For me it's: http://192.168.0.11:8888, but if your pi has avahi installed, http://raspberrypi.local:8888/ should work too.
And that's it! You can now see the realtime measurements in your browser!
Now you can just put it outside, figure out some USB power and check on your measurements now and then.
Oh, also you can 3D print an enclosure for this project, details below:
Comments