practicalarduino/SHT1x — Issue #3: Temperature Errors with Ubuntu
Author: geekinthesticks
Created: 2012-01-12 19:02:37+00:00
State: open

I am using the Nuelectronics modulw http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=7&products_id=34

When I compile the example code on my Arch computer it gives the correct readings. However, moving the code to an Ubuntu computer and re-compiling I get erroneous readings:

Temperature: -37.7299995422C / -35.8419990539F. Humidity: 3.52%
Temperature: -37.7200012207C / -35.8240013122F. Humidity: 3.59%
Temperature: -37.7200012207C / -35.8419990539F. Humidity: 3.59%

I am using Arduino 1.0 IDE on both computers and I have copied all the libraries over from my Arch machine to make sure they are the same on both computers. I have tried several different pins and am using 5 volts. On the Ubunntu comuter I installed arduino from synaptic to get all the deps, then uninstalled it and installed the 1.0 IDE.

Unfortunately, I need to use Ubuntu as the version of gcc on Arch has problems compiling the EtherCard ibrary, which I need for my project.