> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/kits/smartweatherstation/instructions_asr/asr_windvane.md).

# 風向計

<figure><img src="/files/3BkT0R8Vmb0w6rQz6orX" alt=""><figcaption></figcaption></figure>

### 模型搭建說明書

{% content-ref url="/pages/Vj31nvrVk8U1dpM3Td3I" %}
[風向計說明書](/kits/smartweatherstation/building/windvane_building_instructions.md)
{% endcontent-ref %}

### 模型接線圖

### Robotbit EDU接線圖

<figure><img src="/files/542qSMQaSn543Lzx58ZK" alt=""><figcaption></figcaption></figure>

### Robotbit 2.2接線圖

<figure><img src="/files/u6Tuq9DX2DJoh7BogOD7" alt=""><figcaption></figcaption></figure>

### 參考程式

{% hint style="info" %}
請自行因應東南西北四個方位的數值修改程式。
{% endhint %}

{% embed url="<https://makecode.microbit.org/_9F1hfREsr59y>" %}

#### 模型玩法:

1. 模型會一直顯示現時的風向

### 校正步驟

首先下載參考程式，OLED模組會一直顯示灰度感應器的讀數。

利用套件附帶的指南針，將指針撥向北的方位。記錄灰度感應器的讀數，這讀數就是北這個方位的校正數值。

<figure><img src="/files/jtnD2iXJkI5JwlOz5UEi" alt=""><figcaption></figcaption></figure>

打開MakeCode，將北的校正數值填入程式裡面。

{% hint style="info" %}
例如，指針在北這個方位時讀數為443，將此數值填入程式中。
{% endhint %}

<figure><img src="/files/WEqkMIUPuRZ9HGcd6qDl" alt=""><figcaption></figcaption></figure>

重複以上步驟，對其餘3個方位進行校正。

<figure><img src="/files/Es4sHzlfQljz1EaHStBW" alt=""><figcaption></figcaption></figure>

完成後再次下載程式到Micro:bit。
