Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate a proper IAQ when BME680 is in use #176

Open
IU5HKU opened this issue Sep 13, 2024 · 3 comments
Open

Calculate a proper IAQ when BME680 is in use #176

IU5HKU opened this issue Sep 13, 2024 · 3 comments

Comments

@IU5HKU
Copy link

IU5HKU commented Sep 13, 2024

This isn't a proper issue, but a proposal for a better use of the "gas resistence" value obtained by BME680 reading.
This piece of hardware can sense the VOC (Volatile Organic Compounds) in the air, and using their proprietary library you can obtain a lot of interesting infos, but the library is way too big to insert here, and is closed sourced too (Bosch "bsec" library if you are interested, here https://github.com/boschsensortec/BSEC-Arduino-library).
Anyway, there is a smart piece of code written by David Bird (G6EJD) who calcs a IAQ (Index of Air Quality) using a short formula that i think can be used in our case. His repo here on github is here:

https://github.com/G6EJD/BME680-Example/blob/master/ESP32_bme680_CC_demo_03.ino

and as you can see is well explained and easily embeddable into the IGate code. Not precise as the bsec one, but precise enough and better than a raw ohmic resistance value.
There is an issue: for a proper measurement first the resistence must be heated for few milliseconds, ok, it consumes a bit of your battery, but you obtain a real value and not a random one....i think that it worth the battery consumption, and many of us have the iGate over the desk, with a proper power source...and aprs.fi can show IAQ in a graph, i think.
You must ask him for permission to include part of his code in your project, but i hope that he don't disagree, it's for a good cause... :-)
Hope this idea can be appreciated, i can help you in integration of this feature if you want, let me know.
Have a good day

@richonguzman
Copy link
Owner

if you can help contacting him and making a small proposal to start with it, it would be awesome help

@IU5HKU
Copy link
Author

IU5HKU commented Sep 13, 2024

Sure, i'll write an email to David asking for the permission.

@IU5HKU
Copy link
Author

IU5HKU commented Sep 14, 2024

Hi Ricardo, David grants us the permission to use his code, he wrote me "Please go ahead and use the code." :D
As previous said, this is an approximation of the real IAQ (IAQ stands for Indoor Air Quality and not Index of Air Quality, sorry, my fault) but for sure is more useful compared to the raw ohmic value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants