Weather Sensor Assembly SEN-08942

Weather Sensor Assembly <https://www.sparkfun.com/datasheets/Sen … embly…pdf>

SEN-08942

WEATHER METER KIT

I am having trouble figuring out the data table published in

Weather Sensor Assembly.pdf. It does not make any sense to me.

Please review and see what you think.

Hi spoggles,

That table is showing the various voltages created by using a voltage divider circuit on the output of the Wind Vane using a 5V supply and a 10k resistor. The voltage will vary and can be read by an analog to digital converter. Any of our Weather Shields like the [SparkFun Weather Shield for Arduino will have that voltage divider circuit built-in and the output is sent to an available analog pin to read that voltage and return a direction.

I hope this helps clear up any confusion regarding that table in the datasheet.](https://www.sparkfun.com/products/13956)

Yes, I realize this, but the data seems to be rather random. How is one supposed to use it?

Degrees Res Voltage

0 3.30E+004 3.84

22.5 6.57E+003 1.98

45 8.20E+003 2.25

67.5 891 0.41

90 1.00E+003 0.45

112.5 688 0.32

135 2.20E+003 0.9

157.5 1.41E+003 0.62

180 3.90E+003 1.4

202.5 3.14E+003 1.19

225 1.60E+004 3.08

247.5 1.41E+004 2.93

270 1.20E+005 4.62

292.5 4.21E+004 4.04

315 6.49E+004 4.78

337.5 2.19E+004 3.43

Excuse the format, I expected it to be tabular. Sorry

Per the document, the magnet in the vane can activate two adjacent reed switches at once when half-way between the 45 degree points. The values for the 45 degree points are for a single resistor (33k, 8k2, 1k, 2k2, 3k9, 26k, 120k, 64k9). The values for the points between these are for two resistors in parallel (ie. 22.5 degrees is 33k || 8k2 which works out to (33 * 8.2)/(33 + 8.2) = 6k57. The values for the 45 degree points were chosen to make the 22.5 degree points work out to values that are suitably different from each other and the 45 degree resistors to allow for reliable measurement given part tolerances)

From a software point of view, just create a table and test for a match with some tolerance.

/mike