-
Notifications
You must be signed in to change notification settings - Fork 181
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
Converted c++ code into python #19
Comments
Looks like the code you're using talks - via i2c - to an ATmega168 which is what actually handles reading the gas sensor. I can't find the firmware for the ATmega168, so I can't figure out what it actually does. If I were to hazard a guess, then the IE if This is all pretty much guesswork, but I'd suggest that the Hopefully working example:
|
Thanks @Gadgetoid for spending some time on this, any help is much appreciated :) Looking at set_multiplexer function, would I be able to use the following rather than
|
Hi @davidtme, @Gadgetoid; I am also trying to measure gas concentrations, I need to get ppm values for CO, NO2, CH4... and the other detectable gases. I think that the correct way to do it is as @Gadgetoid says, But trying the same with Thanks for your ideas and have a nice day. |
@Andermutu I've tried the adc.get_voltage('in0/gnd') / 3.3 and I get some numbers :) |
This seems to work for me. Do wish I knew how accurate it was though.
|
I have two Enviro+ boards and the gas sensors give very different readings in the same room. Not only that they are extremely dependent on a few degrees change in room temperature. The OX sensor also has a slow climb over a month and seems no sign of stopping. I.e. started around 7K but is now 127K. I don't see how any meaningful absolute readings can be made unless there is some temperature compensation and a calibration procedure to account for the large difference between sensors. |
Interesting, after 24 hours of running this code the values are still relatively close with no climb. I will keep it going but I'd imagine I would have seen a climb by now. |
beautiful chart, I will use it from now on :-) |
The code is here: https://github.com/nophead/EnviroPlusWeb |
I'm trying to converted a bit of c++ code which uses a MiCS6814 to estimate the ppm of the detectable gasses but I'm not sure how to get the equivalent enviroplus-python values for resistance & base resistance with in the getCurrentRatio function which is then used with in the measure function. Could anyone give me any pointers please?
The text was updated successfully, but these errors were encountered: