> For the complete documentation index, see [llms.txt](https://sharinghub-eng.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-eng.kittenbot.hk/educational-kit-sets/weather-station-educational-kit/iot-weather-station-instructions/6-in-1-complete-weather-station.md).

# 6-in-1 Complete Weather Station

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FAb1ns9yw3jBU8zcixgIy%2Fcomplete_robotbit.png?alt=media&#x26;token=2019262a-0e03-472f-9d60-c59adf61e3b5" alt=""><figcaption></figcaption></figure>

#### Building Instructions <a href="#mo-xing-da-jian-shui-ming-shu" id="mo-xing-da-jian-shui-ming-shu"></a>

{% content-ref url="/pages/Bo86oTyhTwqXYVgDEGXT" %}
[6-in-1 Weather Station Instructions](/educational-kit-sets/weather-station-educational-kit/weather-station-building-instructions/6-in-1-weather-station-instructions.md)
{% endcontent-ref %}

#### Hardware Wiring Diagram <a href="#mo-xing-jie-xian-tu" id="mo-xing-jie-xian-tu"></a>

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FPOJgS5i9hQxAG2YFeXvr%2Fcomplete_wiring_robotbit_iot.png?alt=media&#x26;token=2257b789-d053-482c-a751-bfe2650cdba1" alt=""><figcaption></figcaption></figure>

### MakeCode Sample Program(MakerCloud)

{% hint style="info" %}
Fill in your own MakerCloud credentials.

Use a unique dn and dsn.
{% endhint %}

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

{% hint style="info" %}
Use a unique dn and dsn.
{% endhint %}

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FuyUrppn43fH09d2P5Lze%2Fimage.png?alt=media&#x26;token=b27ecfc3-b953-4d27-8611-1a87a0c7157c" alt=""><figcaption></figcaption></figure>

### MakeCode Sample Program(ThingSpeak)

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

#### Operating Instructions

1. Press A or B to switch between modes.
   1. Wind Speed and Wind Direction Mode
   2. Temperature, Humidity and Air Pressure Mode
   3. Light and Rain Fall Mode
2. The weather data will be shown on the preferred IoT platform.

### Calibration Procedure

Download the sample program, the OLED Module should display the grayscale value.

Use the included mini compass to point the wind vane needle towards North, then record the value shown on the OLED module, this value is the calibration value for North.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fzf9BXrYjxcVxPU8jjdiU%2F20231116_132248.jpg?alt=media&#x26;token=db29c525-68b7-4fdd-8704-c1181d2056e7" alt=""><figcaption></figcaption></figure>

Input the calibration value for North.

{% hint style="info" %}
For example, OLED shows 443 when it is pointing at North, so we input 443 into the program.
{% endhint %}

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F1KJRGX4ch19TRWNOsw6Z%2Fimage.png?alt=media&#x26;token=8c81819f-6941-4248-8cf5-ea3aabaec699" alt=""><figcaption></figcaption></figure>

Repeat the above steps for the remaining 3 directions.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FQZrSs9Vq5hmdGn7xI83a%2Fimage.png?alt=media&#x26;token=2e63668c-0b34-49dc-b13d-83a6e67f8ca8" alt=""><figcaption></figcaption></figure>

When finished, download the program onto Micro:bit again.
