Wind Sensor
Posted: Fri Oct 24, 2014 2:36 am
Dear Paul,
I'm building a wind sensor based on your device rev c (as I'm aware now that there is a rev p).
Everything is working as aspected. I'm using a spark core (wifi enabled development board) for reading the analog pins.
I'm running for severals days now to fill my dataset. And now I'm trying to implement your second order polynomial that you derived from your dataset.
Now things are getting fussy, as I'm not getting values I would like. I'm trying to derive the TMP read out at first, to see if it is reading room temperature correctly. But it isn't.
In your excel plot the x- and y-labels are missing, that leaves me to guess what you are doing there.
http://moderndevice.com/wp-content/uplo ... .10-PM.png
In your Arduino sketch you are only using the analog read is a variable: TempCtimes100 = (0.005 *((float)TMP_Therm_ADunits * (float)TMP_Therm_ADunits)) - (16.862 * (float)TMP_Therm_ADunits) + 9075.4;
So, are you plotting analog read (V) against temperature (C)? Or is it something different?
I'm also wondering at what resolution you are reading the analog pins, the SparkCore is reading them at 2^14, so 5volts devided by 2^14 = 0,00122070313V per step. Maybe that is a difference in my sketch.
Best regards,
LVX
I'm building a wind sensor based on your device rev c (as I'm aware now that there is a rev p).
Everything is working as aspected. I'm using a spark core (wifi enabled development board) for reading the analog pins.
I'm running for severals days now to fill my dataset. And now I'm trying to implement your second order polynomial that you derived from your dataset.
Now things are getting fussy, as I'm not getting values I would like. I'm trying to derive the TMP read out at first, to see if it is reading room temperature correctly. But it isn't.
In your excel plot the x- and y-labels are missing, that leaves me to guess what you are doing there.
http://moderndevice.com/wp-content/uplo ... .10-PM.png
In your Arduino sketch you are only using the analog read is a variable: TempCtimes100 = (0.005 *((float)TMP_Therm_ADunits * (float)TMP_Therm_ADunits)) - (16.862 * (float)TMP_Therm_ADunits) + 9075.4;
So, are you plotting analog read (V) against temperature (C)? Or is it something different?
I'm also wondering at what resolution you are reading the analog pins, the SparkCore is reading them at 2^14, so 5volts devided by 2^14 = 0,00122070313V per step. Maybe that is a difference in my sketch.
Best regards,
LVX