# 水位雨水測試魔塊

水位雨水測試魔塊 (HKBM8012G)

![](https://kittenbothk.readthedocs.io/en/latest/_images/03drop.png)

這是一塊水位雨水測試魔塊，它可以測量水位高低和是否有雨滴，水位越高數值越大。

![](https://kittenbothk.readthedocs.io/en/latest/_images/IMG_2581.GIF)

![](https://kittenbothk.readthedocs.io/en/latest/_images/IMG_2578.GIF)

### 使用注意事項：

* 若長期不使用感應器，請妥善放置乾燥地方保管，防止潮濕被氧化。
* 感應器上有最大限位線，請勿過度插入土壤或者水中，避免損壞電路。

### 接線方法

將溫度濕度感應器用4pin排線連接至Armourbit，然後用3pin排線將感應器連接至溫度濕度感應器。

![](https://kittenbothk.readthedocs.io/en/latest/_images/water_wire.png)

### MakeCode編程教學

![](https://kittenbothk.readthedocs.io/en/latest/_images/mcbanner13.png)

#### 加載PowerBrick插件：

#### 在擴展頁直接搜尋powerbrick (PowerBrick已經過微軟認證，可以直接搜尋)

![](https://kittenbothk.readthedocs.io/en/latest/_images/powerbrick_search.png)

#### 你亦可以用插件地址搜尋

PowerBrick插件地址：<https://github.com/KittenBot/pxt-powerbrick>

#### [詳細方法](/programmingplatforms/makecode/kittenbotandmakecode.md)

#### 水位雨水測試魔塊積木塊:

![](https://kittenbothk.readthedocs.io/en/latest/_images/environmentblocks.png)

#### 水位探測編程

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

[參考程式網址](https://makecode.microbit.org/_h4Ebo11zUhTr)

#### MakeCode教學短片

{% embed url="<https://www.youtube.com/watch?v=ilXSpFd86DQ>" %}

#### 示範短片

{% embed url="<https://www.youtube.com/watch?v=SnVxMlFzfR0>" %}

### 插件版本與更新

插件可能會不定時推出更新，改進功能。亦有時候我們可能需要轉用舊版插件才可使用某些功能。

詳情請參考: [Makecode插件版本更換](/programmingplatforms/makecode/makecodeextupdate.md)

### KittenBlock編程教學

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbbanner7.png)

#### 加載PowerBrick插件

在左上角小貓logo旁邊的硬件欄選擇PowerBrick，加載Microbit與Powerbrick插件。

![](https://kittenbothk.readthedocs.io/en/latest/_images/addextension1.png)

#### 環境積木塊

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbenvblocks.png)

#### 水位探測編程

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbwaterlevel.png)

[參考程式下載](https://bit.ly/PowerbrickM2_01sb3)

### FAQ

1：為什麼我點擊積木塊沒有反應呢？

首先確保已經連接好Microbit，然後上載韌體再試一試。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub.kittenbot.hk/functional_modules/pwmodules/waterlevel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
