{"repo":"jelson/aqi","free":true,"listed":false,"github":"https://github.com/jelson/aqi","clone":"git clone https://github.com/jelson/aqi.git","description":"System for sampling a PMS5003 particulate air quality sensor on a raspberry pi and sending it to a database on a server.","language":"Python","stars":17,"topics":["pms5003","raspberry-pi","air-quality"],"license":"MIT","category":"databases-storage","readme_excerpt":"DIY Air Quality Sensor with Wireless Logging This is the software for a do-it-yourself air quality sensor system based on the Plantower PMS5003 particulate sensor, which senses PM1.0, PM2.5 and PM10.0 particulates. Each sensor is connected to a Raspberry Pi Zero W, which periodically transmits data wirelessly to a small web server. Any number of sensors are supported. All data is written to a Postgres database, which can be easily visualized with tools such as Grafana. Also included is a 3D printable case I designed to fit the Pi and sensor. Credits The PMS5003 parsing code is based on Adafruit's and dgj's code. Hardware Buy a PMS5003 sensor. They're sold under various brand names on various sites including Adafruit / Mouser, Amazon, BangGood, AliExpress, eBay... Buy a Raspberry Pi Zero W (the WiFi variant) without headers Solder 3 wires from the PMS5003 to the Raspberry Pi. For reference, see the diagrams of the sensor pinout and Pi pinout. Sensor Pin 1 (VCC) to Pi Pin 4 (5V Power) Sensor Pin 2 (GND) to Pi Pin 6 (GND) Sensor Pin 5 (TXD) to Pi Pin 10 (Serial port RX) Optional: 3D print the case I designed. Attach the Pi to the case's integrated standoffs using 4xM2.5 machine screws. The cover also attaches to the case using 4xM2.5 screws. Software Configure the server that receives the data: Install Postgres on your server. Use a SQL script similar to this example to create a database and table. Install the receiver service's prereqs on your server: python modules aqi and che","default_branch":null,"files":null,"tree":[],"storefront":"/r/jelson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jelson/aqi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}