Okay I got the anemometer working with the two thermistors! thanks for all your help, Here's my final code:
const byte BUTTON = 2;
float elapsed, diff, start;
float windspeed;
void setup ()
{
Serial.begin(9600);
digitalWrite (BUTTON, HIGH); // internal pull-up resistor
attachInterrupt (0, pinChange, RISING); // attach interrupt handler
start = millis();
Serial.println("Therm 1 / Therm 2 / WindSpd");
} // end of setup
// Interrupt Process
void pinChange ()
{
elapsed=millis()-start; //gets the full period (in ms) of rotation
windspeed=2.5/(elapsed/1000); //gets freq from ms then * by 2.5 to get mph (according to hardware spec)
start=millis(); //resets the counter
} // end of Interrupt Loop
void loop ()
{
//Start Temperature Measurement:
int therm0 = analogRead(A0); //1. input on Analog pin 0
float volt0 = therm0 * (5 / 1023.0); //2. conversion to Voltage
float temp0 = ((volt0 + 10.281)/0.0458)-273.15; //3. temperature calc 0
int therm1 = analogRead(A1); //1. input on Analog pin 1
float volt1 = therm1 * (5 / 1023.0); //2. conversion to Voltage
float temp1 = ((volt1 + 10.281)/0.0458)-273.15; //3. temperature calc 1
Serial.print(temp0);
Serial.print("DegC");
Serial.print(" ");
Serial.print(temp1);
Serial.print("DegC");
Serial.print(" ");
Serial.print(windspeed);
Serial.print(" ");
Serial.println("mph");
delay(1000);
//End Temperature Measurement
}
Now I just need to work out the strain gauges... Data logging... and low power standby
Feel free to PM me with any questions you might have