WeatherDuino Forum

Full Version: 8 point wind direction
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Firstly I'd like to say what a great project this is and thanks to all who have developed it. I have the weatherduino up and running, A few slight mods here and there but all running great. I am planning to 3d print my own set of screens and sensors on my home made 3d printer but, unfortunately it is out of action for the time being. At the moment I have a "Cheap" sensor setup and it only has a 8 point wind vain. How can I quickly and easily get this up and running for correct wind direction. If i leave it as is i only get N, NW, W & SW over the 360 degree rotation.

Thanks
Pete
(10-05-2015, 04:41)zipidy66 Wrote: [ -> ]Hi,

Firstly I'd like to say what a great project this is and thanks to all who have developed it. I have the weatherduino up and running,

Good to know. It seems you have started it on 2 of May. Sometimes on the first day, some erroneous data are recorded, in these cases, may be a good idea deleting the data of the first day, as they will affect your records forever.

If you want the model of weather station shown on your web pages is one WeatherDuino Pro2, change this line in Cumulus.ini

Code:
[Station]
Model=WeatherDuino Pro2


(10-05-2015, 04:41)zipidy66 Wrote: [ -> ]At the moment I have a "Cheap" sensor setup and it only has a 8 point wind vain. How can I quickly and easily get this up and running for correct wind direction. If i leave it as is i only get N, NW, W & SW over the 360 degree rotation.

Supposing that your wind vane works in a similar way than the FO, my suggestion is that you use resistor values for the eight wind directions, equal to the ones used in the Fine Offset wind vane for the same eight wind directions.
If your wind vane uses a different principle, I don't know how to help you, but certainly it will not work without considerable modifications on the code.
Thanks for that, Ive updated the INI file and deleted the first 2 days of data.

As for the resistors there is only 4 resistors with 4 read switches to give 8 points of reference as opposed to others with 8 resistors and 8 read switches to give 16 points. I believe this sensor is a fine offset one but the resolution is that of 8 points. I was hoping to do some changes in the software but not 100% on that. I was looking at the following lines:

// --- Vane -----------
const int vaneValues[] PROGMEM={66,84,92,127,184,244,287,406,461,600,631,702,786,827,889,946};
const int vaneDirections[] PROGMEM={1125,675,900,1575,1350,2025,1800,225,450,2475,2250,3375,0,2925,3150,2700};
#ifdef Local_TestMode
const char vaneDirectionsText[16] [4] = {"N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"};
String winddr;
#endif
unsigned int WindDir;

Can anything be changed here?
May be not so simple... Some things need to be changed on that lines, but also in the wind vane routine.

Before you attempt to do anything, you must know what voltage you get for each wind direction.
Refer to this document, it may give you extra info about what I mean:

http://www.meteocercal.info/forum/Thread...nstruments


I can't help you to modify the code, but can give you some hints:
The first array, holds the ADC readings for each voltage corresponding to each wind direction point.
The seconds array holds the 16 wind directions in degress times ten.

Don't know if it worth all the work, unless is for learning. The FO wind vane are very cheap and easy to find, at least here in Europe