I have spent much of my free time in the last year building a weather server for my AAG weather station, humidity sensor and TAI-8570 baro pressure sensor. I decided to do this after reading an article in Nuts and Volts where a basic stamp was used to read the temperature, wind speed and direction of a one wire weather station. It didn't do much else but it was interesting. Back to your original question: The wind speed is a counter so you can read a start count then start a timer and read an end count on the timer interrupt. Thats how I chose to do this anyway. The wind direction of the new style weather station is an A/D convertor that reads various fixed resistors based on which reed switches are closed so this is an easy one to deal with. The Nuts and Volts example code shows this done very well.
You can see my weather station here: http://mith.sytes.net
Nuts & Volts 2002 issue: http://www.nutsvolts.com/toc_Pages/T...02_Weather.htm
It's done with an 18F252, siteplayer module, 256k epm, DS1629 rtc, 4x16 lcd, 3x4 matrix keypad, TAI weather station, 1910 Humidity sensor & Rain Gauge bucket.
Pete
Bookmarks