# Wind Vane

### How the Sensor Works

The wind vane uses the [**AS5600**](https://drive.google.com/file/d/1f8m0zBGUlcEmwGa42xqODvVKy_ajvcer/view?usp=sharing) magnetic encoder to measure the angular position of the vane as it aligns with wind flow. Direction is sampled every second and combined with wind speed data to form vectors. These vectors are averaged over 60 seconds to calculate the mean wind direction, while the peak gust direction is determined by averaging the three vectors corresponding to the highest 3-second wind speed period.

### Instruction Slides for Assembling the Wind Vane

{% embed url="<https://docs.google.com/presentation/d/1fWEpuH6EHiyVtK8szDu9YT-vMGDX7-jr/edit?ouid=102244773211795243299&rtpof=true&sd=true&usp=sharing>" %}

### Aligning the Wind Vane to North (0°)

Follow the directions at the bottom of "Testing the Sensors" to align the pointer to North (0°)

{% content-ref url="broken-reference" %}
[Broken link](https://3dpaws.comet.ucar.edu/building-3d-paws/building-the-core-instruments/broken-reference)
{% endcontent-ref %}

### Tutorial Videos for Assembling the Wind Vane

This video playlist demonstrates the entire assembly of the instrument. You can toggle between assembly videos using the "fast forward" and "rewind" buttons.

{% embed url="<https://youtube.com/playlist?list=PL_rvcKZhmIf02LAZGMwgVSpYQ5ltpMpbt&si=GauiSj5z5saHrMz6>" %}
