Open c2h2 opened 13 years ago
Using 3V3 should only put off your Celsius degrees off by 0.33 as far as I can see. This library is calibrated for 5V.
If the Sensirion sensor SHt1x or SHT7x is supplied with a VDD = 3.3V, then you need to use a different conversion coefficient D1 in formula to convert the digital readout (SOT) to the temperature value. Interpolating the D1 coefficient values listed in the Sensirion datasheet table 8, the linear intepolated values to be used in the .cpp file are:
In case of degrees Celsius readTemperatureC() const float D1 = -39.66; // for 14 Bit @ 3.3V
In case of degrees Fahrenheit readTemperatureF() const float D1 = -39.42; // for 14 Bit @ 3.3V
Ciao, Giulio https://twitter.com/giuliotamberi
Looking at the code I see that this improved accuracy will impact the relative humidity more than the simply shift of 0.33 degrees Celsius for temperature. This makes @giuliotamberi's edits as comments worthwhile.
I have constantly different reading figures, on the sensors side I have used typ 3.3v to SHT15 sensors.
on USB5v. The reading seems always 3-4 degrees higher. (tested on many machines).
While on the DC power, readings are very similar to other instruments for calibrating.