Friday, January 19, 2007

It's here! New 1-wire sensors in operation

Yes! The 1-Wire sensor that I ordered arrived today. In the box from Hobby-Boards, which got here quickly thanks to fast (and cheap) shipping, included the following:

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:

Syndication


[What is this?]

NEW: Simply click on the link below to add this content to anything you could possibly imagine.

Add to any service

Legal Information

© 2005-2007 by Jake Hughes. Some rights reserved - see below.

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 License.

Never base important decisions on this or any weather information obtained from the Internet.

All other trademarks and copyrighted material not mentioned here are the property of their respective owners.