10-05-2015, 19:49
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
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

