I think I mentioned somewhere that I am working with a CO sensor - here is the datasheet.
A signal, Vgas is used to derive ppm CO. The derivation is improved by some temperature compensation.
There is another signal, Vtem, that is described in the datasheet as - Voltage Output. Vtemp is proportional to temperature.
The relationship, however, is not given in the datasheet (at least nowhere that I can see and I have looked).
Looking further, specifically here, I found the relationship. The relevant section appears below.
I do not understand that formula and am under the impression that something is missing or that something should be inferred/assumed that I am not getting.
I set up a DS18b20 temp sensor right next to the CO sensor and below you see, on each line:
DS temp [C], Vtem [V], and my calculated temp based on my interpretation of that formula.
V+=5.0 and Vtemp is accurately calculated from an ADC.
Using V+ and Vtem, from those samples, can you tell me how you would calculate Temperature?
I will likely write the company and ask, but maybe I am missing something that everyone elses sees (would not be the first time), so I am asking.
A signal, Vgas is used to derive ppm CO. The derivation is improved by some temperature compensation.
There is another signal, Vtem, that is described in the datasheet as - Voltage Output. Vtemp is proportional to temperature.
The relationship, however, is not given in the datasheet (at least nowhere that I can see and I have looked).
Looking further, specifically here, I found the relationship. The relevant section appears below.
I do not understand that formula and am under the impression that something is missing or that something should be inferred/assumed that I am not getting.
I set up a DS18b20 temp sensor right next to the CO sensor and below you see, on each line:
DS temp [C], Vtem [V], and my calculated temp based on my interpretation of that formula.
V+=5.0 and Vtemp is accurately calculated from an ADC.
Code:
25.31 1.62 [24.45]
25.25 1.62 [24.45]
25.12 1.61 [24.37]
25.69 1.63 [24.71]
26.75 1.65 [25.05]
27.87 1.68 [25.47]
28.50 1.69 [25.73]
28.81 1.71 [26.07]
31.12 1.80 [27.68]
30.62 1.80 [27.60]
29.81 1.78 [27.26]
29.06 1.77 [27.09]
28.69 1.76 [26.92]
28.37 1.75 [26.75]
28.06 1.75 [26.66]
27.87 1.74 [26.49]
Using V+ and Vtem, from those samples, can you tell me how you would calculate Temperature?
I will likely write the company and ask, but maybe I am missing something that everyone elses sees (would not be the first time), so I am asking.
Last edited: