8000 GitHub - rpanfili/airQualityMeter: Detects air particulate matter (PM - pm1, pm2.5, pm10) concentrations and sends data to an MQTT server. An alternative firmware for ESP8266 devices like the NodeMCU board written for Arduino IDE and PlatformIO
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Detects air particulate matter (PM - pm1, pm2.5, pm10) concentrations and sends data to an MQTT server. An alternative firmware for ESP8266 devices like the NodeMCU board written for Arduino IDE and PlatformIO

License

Notifications You must be signed in to change notification settings

rpanfili/airQualityMeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
8000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air Quality Meter

"There's so much pollution in the air now that if it weren't for our lungs there'd be no place to put it all." - Robert Orben

Detects air particulate matter (PM - pm1, pm2.5, pm10) concentrations with a Plantower PMS5003ST sensor and sends data to an MQTT topic.

An alternative firmware for ESP8266 devices like the NodeMCU board written for Arduino on PlatformIO

License Build Status

Disclaimer

We don't take any responsibility nor liability for using this software nor for the installation or any tips, advice, videos, etc. given by any member of this site or any related site.

Hardware

NodeMCU

An opensource IoT platform, tiny and powerful, based on the ESP-12 module. It's very affordable (you can buy them for a few bucks) and you can develop custom firmwares like this one using Lua scription language or in C/C++ with the arduino tools!

nodeMCU board

NodeMCU on Wikipedia

Plantower PMS5003ST

A digital particle concentration sensor that count the number of suspended particles in the air using a laser and the scattering principle and output them as digital data. It's not expensive and you can find it on almost every marketplace like AliExpress.

The ST version that I used works differently from the PMS5003 standard because has also a formaldehyde, temperature and humidity sensor so it needs to transfer more data.

plantower 5003ST

Installing / Getting started

A quick introduction of the minimal setup you need to get all up and running. Remember that you can do all the setup steps without the PMS sensor connected!

Get PlatformIO up and running

If you are used to this kind of software you already know how easier is to manage project dependencies, custom build routine, etc but if you are not don't worry! It's really easy and this can be a good starting point to learn something new :) You only need to install it for your favorite IDE between Atom and VSCode.

[NOT REQUIRED] - Edit the configuration file

If you would like it you can edit the data/config.json configuration file to preload all parameters and skip the access-point mode configuration step later. If you want you can configure only some of the parameters. Remove the property or leave it empty to use default project values. Then you will need to upload this file into the SPI filesystem using the PlatformIO command:

pio run -t uploadfs

or by using the IDE top menu: "PlatformIO" >> "Run other target..." >> "PIO Upload File System Image"

Flash the module