The DS9490 1-Wire USB Adapter (in blue), the Humidity/Temperature sensor and case, a RJ-45 coupler, and a special RJ-12 to RJ45 cable to interface between the sensor and USB adapter.
Here's a few photos of the inside of the Humidity/Temperature sensor.
As you may know, I am using the book Weather Toys: Building and Hacking Your Own 1-Wire Weather Station (Amazon link). In that book, author Tim Bitson takes you step-by-step in building the entire station, but he gives you the source code to the software so that you can modify and hack to your needs. Also, he set up a website for support and other ideas for the network. After setting up a mini 1-Wire network, I tried out the software, and this is what I got:
init:
deps-jar:
compile:
run:
Starting SimpleWeather 1.0
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Found Adapter: {DS9490} on Port USB1
Resetting 1-wire bus
Time = Fri Jan 19 21:09:06 CST 2007
Temperature = 72.5degs F
Humidity = 29.719664%
Time = Fri Jan 19 21:09:09 CST 2007
Temperature = 72.5degs F
Humidity = 29.721657%
Time = Fri Jan 19 21:09:12 CST 2007
Temperature = 72.5degs F
Humidity = 29.35742%
Time = Fri Jan 19 21:09:15 CST 2007
Temperature = 72.5degs F
Humidity = 29.35742%
Pretty cool, huh? I kind of changed the code to refresh every 3 seconds, instead of the default one minute. Soon, I will order some more parts to expand this network into a fully functional weather station! Watch for more details.
No comments:
Post a Comment