gitic0n/nitroxanalyser
There it is. Not only am I not really a C programmer, I'm also unfamiliar with Github. As I say in the readme, I picked a different gain to you for the mV range. I'm waiting for an O2 sensor to arrive, so meanwhile I'm testing it with a power supply capable of providing mV-level output. I'm working on ~30-40mV as 'air', so it might turn out that I need to tweak the gain. I'm impressed at the accuracy of these very cheap ADCs! It agrees pretty closely with my voltmeters (though the repeatability and linearity probably matter more for this purpose.
For calibration, I just average a bunch of readings, then do a running average in normal operation. It takes a second or so to settle to a new value, but as you no doubt discovered before me, it's a compromise between a jittery reading and speed of update.
I've fixed the MOD calculation at 1.4bar ppO2, but no doubt one could add a way of changing that.
There it is. Not only am I not really a C programmer, I'm also unfamiliar with Github. As I say in the readme, I picked a different gain to you for the mV range. I'm waiting for an O2 sensor to arrive, so meanwhile I'm testing it with a power supply capable of providing mV-level output. I'm working on ~30-40mV as 'air', so it might turn out that I need to tweak the gain. I'm impressed at the accuracy of these very cheap ADCs! It agrees pretty closely with my voltmeters (though the repeatability and linearity probably matter more for this purpose.
For calibration, I just average a bunch of readings, then do a running average in normal operation. It takes a second or so to settle to a new value, but as you no doubt discovered before me, it's a compromise between a jittery reading and speed of update.
I've fixed the MOD calculation at 1.4bar ppO2, but no doubt one could add a way of changing that.