Avnet / clickmodules

C Code for MikroE Click Modules used by Avnet
Other
12 stars 7 forks source link

Rest of the readings from Air Quality 5 click #12

Open psycik opened 4 years ago

psycik commented 4 years ago

This board can read a lot more values then are included here: monoxide (CO), nitrogen dioxide (NO2), ethanol (C2H5OH), hydrogen (H2), ammonia (NH3), methane (CH4), propane (C3H8), and isobutane (C4H10). For example: airq5_getCOData() returns: dataBuffer[0] - CO in ppm dataBuffer[1] - CH4 in ppm dataBuffer[2] - H2 in ppm dataBuffer[3] - C2H5OH in ppm

Can we get the rest of the readings from this library?

ghost commented 4 years ago

Thank you for thew enhancement suggestion. If you could implement these changes and do a pull request that would be wonderful--then we could have it available for others to use also. Our original intention with this library was to provide a working sample that would allow others to build upon. Suggestions like yours are always welcome! Do you think you would be able to implement it?

psycik commented 4 years ago

They clearly have some interesting documentation, the function is defined in the docs but not implemented in their code: https://github.com/MikroElektronika/Air_Quality_5_click/blob/master/library/__airq5_driver.c However it appears I only need to find the correct ratio RS / RO to get the value of the other gases, I will give it a shot.