Sht11 config issue
GrantmcF
Posts: 30
in Accessories
I'm trying to use an SHT11 with a prop mini and sensirion_full code from the object exchange. Both my temp and Rh are reading high (10+ deg temp and 30+% Rh). The code seems optimized for a 3.3V circuit but I am using a 5V circuit. I changed the voltage call out in the SHT config line to 50, but that didn't seem to affect anything. I did try bringing the voltage down to 3.3V and managed to get an acceptable temp reading but the Rh reading was still way high. I think I am missing some other variables that need to be changed, but I don't understand the code enough to know which ones. I was going to try Thomas Allen's sensirion_integer code since it looks simpler but the notes say that it assumes 3.3V and I didn't see where it change that. Can anybody point me to what I need to change to use this in a 5V circuit?
Comments
There is not much difference between operating on 3.3V vs 5V. It only affects the temperature offset. In sensirion_integer, you will see constants defined at the top.
What problem did you have in making sensirion_integer.spin give readings in Fahrenheit?
°F = °C *9/5 + 3200.
In units of 0.01F.